summaryrefslogtreecommitdiffstats
path: root/kdesktop/bgmanager.h
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2014-06-18 12:56:04 +0900
committerMichele Calgaro <[email protected]>2014-06-18 12:56:04 +0900
commitdb19d360b6f2abc0796a3789e3b428de68ad120d (patch)
tree174e37c9c40b7ce56334210372861ca2798d1336 /kdesktop/bgmanager.h
parente96ee72ff00de1de77dd4a50fca83cea15d5b549 (diff)
downloadtdebase-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.h17
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__