diff options
author | Ken Moore <moorekou@gmail.com> | 2015-11-02 10:31:39 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2015-11-02 10:31:39 -0500 |
commit | b2c02af28049c4feed7a845505ef9a931237056a (patch) | |
tree | 535afc3e4aba5191a0604e70a78f7ca4a72f0762 /lumina-wm-INCOMPLETE/animations/BaseAnimGroup.h | |
parent | Cleanup how auto-start apps are launched a bit (start them via a single lumin... (diff) | |
download | lumina-b2c02af28049c4feed7a845505ef9a931237056a.tar.gz lumina-b2c02af28049c4feed7a845505ef9a931237056a.tar.bz2 lumina-b2c02af28049c4feed7a845505ef9a931237056a.zip |
Add all the animations framework for the screensaver side of lumina-wm (with a quick "sample" plugin).
Diffstat (limited to 'lumina-wm-INCOMPLETE/animations/BaseAnimGroup.h')
-rw-r--r-- | lumina-wm-INCOMPLETE/animations/BaseAnimGroup.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lumina-wm-INCOMPLETE/animations/BaseAnimGroup.h b/lumina-wm-INCOMPLETE/animations/BaseAnimGroup.h new file mode 100644 index 00000000..05c36ea2 --- /dev/null +++ b/lumina-wm-INCOMPLETE/animations/BaseAnimGroup.h @@ -0,0 +1,39 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2015, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +// This class is the container which provides the screensaver animations +// and should be subclassed for each of the various animation types +//=========================================== +#ifndef _LUMINA_DESKTOP_SCREEN_SAVER_BASE_ANIMATION_GROUP_H +#define _LUMINA_DESKTOP_SCREEN_SAVER_BASE_ANIMATION_GROUP_H + +#include "GlobalDefines.h" + +class BaseAnimGroup : public QParallelAnimationGroup{ + Q_OBJECT +public: + QWidget *canvas; + QSettings *settings; + + virtual void LoadAnimations(){} //This is the main function which needs to be subclassed + + BaseAnimGroup(QWidget *parent, QSettings *set){ + canvas = parent; + settings = set; + //Now load the animations for this particular plugin + LoadAnimations(); + } + ~BaseAnimGroup(){} + + //============================== + // PLUGIN LOADING/LISTING (Change in the .cpp file) + //============================== + static BaseAnimGroup* NewAnimation(QString type, QWidget *parent, QSettings *set); + static QStringList KnownAnimations(); + +}; + +#endif
\ No newline at end of file |