diff options
author | François Andriot <albator78@libertysurf.fr> | 2014-06-18 12:56:04 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-06-18 12:56:04 +0900 |
commit | db19d360b6f2abc0796a3789e3b428de68ad120d (patch) | |
tree | 174e37c9c40b7ce56334210372861ca2798d1336 /kdesktop/bgmanager.h | |
parent | e96ee72ff00de1de77dd4a50fca83cea15d5b549 (diff) | |
download | tdebase-db19d360b6f2abc0796a3789e3b428de68ad120d.tar.gz tdebase-db19d360b6f2abc0796a3789e3b428de68ad120d.zip |
Added smooth crossfade effect option when changing the desktop wallpaper.
Diffstat (limited to 'kdesktop/bgmanager.h')
-rw-r--r-- | kdesktop/bgmanager.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/kdesktop/bgmanager.h b/kdesktop/bgmanager.h index 2d29278f7..71ca6c1bb 100644 --- a/kdesktop/bgmanager.h +++ b/kdesktop/bgmanager.h @@ -7,12 +7,13 @@ * License. See the file "COPYING" for the exact licensing terms. */ -#ifndef __BGManager_h_Included__ -#define __BGManager_h_Included__ +#ifndef __BGMANAGER_H__ +#define __BGMANAGER_H__ #include <tqstring.h> #include <tqptrvector.h> +#include <tqdatetime.h> #include <KBackgroundIface.h> #if defined(Q_WS_X11) && defined(HAVE_XRENDER) && TQT_VERSION >= 0x030300 @@ -89,6 +90,7 @@ private slots: void desktopResized(); void clearRoot(); void saveImages(); + void slotCrossFadeTimeout(); void slotCmBackgroundChanged(bool); private: @@ -131,6 +133,15 @@ private: KPixmapServer *m_pPixmapServer; unsigned long m_xrootpmap; + + /*CrossFade vars*/ + TQTimer * m_crossTimer; + double mAlpha; + TQPixmap mNextScreen; + TQPixmap * mOldScreen; + int fadeDesk; + TQTime mBenchmark; + bool crossInit; }; -#endif // __BGManager_h_Included__ +#endif // __BGMANAGER_H__ |