summaryrefslogtreecommitdiffstats
path: root/client/myrootpixmap.h
diff options
context:
space:
mode:
authorrjb330 <122177540+rjb330@users.noreply.github.com>2024-11-11 18:53:29 -0800
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-11-14 21:29:52 +0900
commitf9c27dfd6552b843184533ff8a22ae09b63c785a (patch)
treed077c1b16a01b02e15fef496903207417433d2ba /client/myrootpixmap.h
parentc96f427bb13715c7f04d4d4adee002d080c43cd3 (diff)
downloadtwin-style-dekorator-f9c27dfd.tar.gz
twin-style-dekorator-f9c27dfd.zip
Add pseudotransparency for DeKorator themes with transparent pixmaps
Signed-off-by: rjb330 <122177540+rjb330@users.noreply.github.com> (cherry picked from commit ae5e4d76b139f8bf5d235ab7ed8f4857f20ea512)
Diffstat (limited to 'client/myrootpixmap.h')
-rw-r--r--client/myrootpixmap.h116
1 files changed, 116 insertions, 0 deletions
diff --git a/client/myrootpixmap.h b/client/myrootpixmap.h
new file mode 100644
index 0000000..9c8d649
--- /dev/null
+++ b/client/myrootpixmap.h
@@ -0,0 +1,116 @@
+/*
+ *
+ * $Id: krootpixmap.h,v 1.15 2003/05/19 08:02:48 coolo Exp $
+ * This file is part of the KDE project, module kdesktop.
+ * Copyright (C) 1999,2000 Geert Jansen <jansen@kde.org>
+ *
+ * You can Freely distribute this program under the GNU Library General
+ * Public License. See the file "COPYING.LIB" for the exact licensing terms.
+ */
+
+/* Modified by Sascha Hlusiak */
+/* Further modified 11/18/2014 by Timothy Pearson <kb9vqf@pearsoncomputing.net> */
+
+#ifndef __KRootPixmap_h_Included__
+#define __KRootPixmap_h_Included__
+
+#include <tqobject.h>
+#include <tqwidget.h>
+#include <tqcolor.h>
+
+#ifndef TQ_WS_TQWS //FIXME
+
+class TQRect;
+class TQTimer;
+class TDESharedPixmap;
+class KMyRootPixmapData;
+
+class DesktopWallpaperWatcher : public TQWidget
+{
+ TQ_OBJECT
+
+ public:
+ DesktopWallpaperWatcher();
+ ~DesktopWallpaperWatcher();
+
+ bool x11Event( XEvent * ev );
+
+ signals:
+ void currentDesktopChanged( int desktop);
+
+ private:
+ int m_old_current_desktop;
+};
+
+class KMyRootPixmap: public TQObject
+{
+ TQ_OBJECT
+
+public:
+ KMyRootPixmap( TQWidget *target=NULL, const char *name=0 );
+
+ KMyRootPixmap( TQWidget *target, TQObject *parent, const char *name=0 );
+
+ virtual ~KMyRootPixmap();
+
+ bool isAvailable();
+
+ bool isActive() const { return m_bActive; }
+
+ int currentDesktop() const;
+
+// bool customPainting() const { return m_bCustomPaint; }
+
+#ifndef KDE_NO_COMPAT
+
+ bool checkAvailable(bool) { return isAvailable(); }
+#endif
+
+public slots:
+ virtual void start();
+
+ virtual void stop();
+
+// void setFadeEffect(double strength, const TQColor &color);
+
+ void repaint( bool force );
+
+ void repaint();
+
+// void setCustomPainting( bool enable ) { m_bCustomPaint = enable; }
+
+ void enableExports();
+
+ static TQString pixmapName(int desk);
+
+signals:
+ void backgroundUpdated( const TQImage *pm );
+
+protected:
+// virtual bool eventFilter(TQObject *, TQEvent *);
+
+ virtual void updateBackground( TDESharedPixmap * );
+
+private slots:
+// void slotBackgroundChanged(int);
+ void slotDone(bool);
+ void desktopChanged(int desktop);
+
+private:
+ bool m_bActive, m_bInit/*, m_bCustomPaint*/;
+ int m_Desk;
+
+// double m_Fade;
+// TQColor m_FadeColor;
+
+ TQRect m_Rect;
+// TQWidget *m_pWidget;
+// TQTimer *m_pTimer;
+ TDESharedPixmap *m_pPixmap;
+ KMyRootPixmapData *d;
+
+ void init();
+};
+
+#endif // ! TQ_WS_TQWS
+#endif // __KRootPixmap_h_Included__