diff options
author | Ken Moore <ken@ixsystems.com> | 2017-01-09 14:41:30 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-01-09 14:41:30 -0500 |
commit | d1750c349cf59bce56569e5be74886edc97ba967 (patch) | |
tree | 48a28f398286f721c8272c85017aa8bbf3b83228 /src-qt5/core/lumina-desktop-unified/src-screensaver/animations/BaseAnimGroup.cpp | |
parent | Flip the location of the +/- buttons on the panel config widget to match the ... (diff) | |
parent | Merge remote-tracking branch 'origin/master' (diff) | |
download | lumina-d1750c349cf59bce56569e5be74886edc97ba967.tar.gz lumina-d1750c349cf59bce56569e5be74886edc97ba967.tar.bz2 lumina-d1750c349cf59bce56569e5be74886edc97ba967.zip |
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core/lumina-desktop-unified/src-screensaver/animations/BaseAnimGroup.cpp')
-rw-r--r-- | src-qt5/core/lumina-desktop-unified/src-screensaver/animations/BaseAnimGroup.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/BaseAnimGroup.cpp b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/BaseAnimGroup.cpp new file mode 100644 index 00000000..1e55dc76 --- /dev/null +++ b/src-qt5/core/lumina-desktop-unified/src-screensaver/animations/BaseAnimGroup.cpp @@ -0,0 +1,27 @@ +//=========================================== +// Lumina-DE source code +// Copyright (c) 2015, Ken Moore +// Available under the 3-clause BSD license +// See the LICENSE file for full details +//=========================================== +#include "BaseAnimGroup.h" + +//Include all the known subclasses here, then add a unique ID for it to the functions at the bottom +#include "SampleAnimation.h" + +//============================== +// PLUGIN LOADING/LISTING +//============================== +BaseAnimGroup* BaseAnimGroup::NewAnimation(QString type, QWidget *parent, QSettings *set){ + //This is where we place all the known plugin ID's, and load the associated subclass + if(type == "sample"){ + return (new SampleAnimation(parent, set)); + }else{ + //Unknown screensaver, return a blank animation group + return (new BaseAnimGroup(parent, set)); + } +} + +QStringList BaseAnimGroup::KnownAnimations(){ + return (QStringList() << "sample"); +}
\ No newline at end of file |