summaryrefslogtreecommitdiff
path: root/noncore/settings/appearance2/decolistitem.h
authorsandman <sandman>2002-09-20 01:42:10 (UTC)
committer sandman <sandman>2002-09-20 01:42:10 (UTC)
commitb1f3d33cb0b3f203f153074a8812d5988c3031b2 (patch) (side-by-side diff)
tree1734ac2808dab8f0982b23a2a9101486fcdcfee5 /noncore/settings/appearance2/decolistitem.h
parent9204c61f669fb265f6c5f14bfd6ca363a2929e40 (diff)
downloadopie-b1f3d33cb0b3f203f153074a8812d5988c3031b2.zip
opie-b1f3d33cb0b3f203f153074a8812d5988c3031b2.tar.gz
opie-b1f3d33cb0b3f203f153074a8812d5988c3031b2.tar.bz2
New experimental appearance settings
Diffstat (limited to 'noncore/settings/appearance2/decolistitem.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/appearance2/decolistitem.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/noncore/settings/appearance2/decolistitem.h b/noncore/settings/appearance2/decolistitem.h
new file mode 100644
index 0000000..dfdce47
--- a/dev/null
+++ b/noncore/settings/appearance2/decolistitem.h
@@ -0,0 +1,79 @@
+#ifndef DECOLISTITEM_H
+#define DECOLISTITEM_H
+
+#include <qpe/windowdecorationinterface.h>
+#include <qlistbox.h>
+
+class DecoListItem : public QListBoxText {
+public:
+ DecoListItem ( const QString &t ) : QListBoxText ( t )
+ {
+ m_lib = 0;
+ m_window_if = 0;
+// m_settings_if = 0;
+ }
+
+ DecoListItem ( QLibrary *lib, WindowDecorationInterface *iface ) : QListBoxText ( iface-> name ( ))
+ {
+ m_lib = lib;
+ m_window_if = iface;
+
+// iface-> queryInterface ( IID_WindowDecoration, (QUnknownInterface **) &m_settings_if );
+ }
+
+ virtual ~DecoListItem ( )
+ {
+// if ( m_settings_if )
+// m_settings_if-> release ( );
+ if ( m_window_if )
+ m_window_if-> release ( );
+ delete m_lib;
+ }
+
+ bool hasSettings ( ) const
+ {
+// return ( m_settings_if );
+ return false;
+ }
+
+ QWidget *settings ( QWidget * /*parent*/ )
+ {
+// return m_settings_if ? m_settings_if-> create ( parent ) : 0;
+ return 0;
+ }
+
+ bool setSettings ( bool /*accepted*/ )
+ {
+// if ( !m_settings_if )
+// return false;
+
+// if ( accepted )
+// return m_settings_if-> accept ( );
+// else {
+// m_settings_if-> reject ( );
+// return false;
+// }
+ return false;
+ }
+
+ QString key ( )
+ {
+ if ( m_window_if )
+ return QString ( m_window_if-> name ( ));
+ else
+ return text ( );
+ }
+
+ WindowDecorationInterface *interface ( )
+ {
+ return m_window_if;
+ }
+
+private:
+ QLibrary *m_lib;
+ WindowDecorationInterface *m_window_if;
+// WindowDecorationSettingsInterface *m_settings_if;
+
+};
+
+#endif \ No newline at end of file