summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/listviewpwm.h
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/listviewpwm.h') (more/less context) (show whitespace changes)
-rw-r--r--pwmanager/pwmanager/listviewpwm.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/listviewpwm.h b/pwmanager/pwmanager/listviewpwm.h
new file mode 100644
index 0000000..e6471c6
--- a/dev/null
+++ b/pwmanager/pwmanager/listviewpwm.h
@@ -0,0 +1,57 @@
+/***************************************************************************
+ * *
+ * copyright (C) 2004 by Michael Buesch *
+ * email: mbuesch@freenet.de *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License version 2 *
+ * as published by the Free Software Foundation. *
+ * *
+ ***************************************************************************/
+
+/***************************************************************************
+ * copyright (C) 2004 by Ulf Schenk
+ * This file is originaly based on version 1.0.1 of pwmanager
+ * and was modified to run on embedded devices that run microkde
+ *
+ * $Id$
+ **************************************************************************/
+
+#ifndef __LISTVIEW_H
+#define __LISTVIEW_H
+
+#include <klistview.h>
+
+/** PwManager implementation of the list view.
+ * Derived from KListView.
+ */
+class ListViewPwM : public KListView
+{
+ Q_OBJECT
+public:
+ ListViewPwM(QWidget *parent = 0, const char *name = 0);
+
+signals:
+ void layoutChanged();
+
+protected:
+ virtual bool event(QEvent *e);
+};
+
+class ListViewItemPwM : public QCheckListItem
+{
+public:
+ ListViewItemPwM(QListView *parent);
+
+protected:
+ void paintCell(QPainter *p, const QColorGroup &cg,
+ int column, int width, int align);
+
+protected:
+ /** pixmap to display for an item with state "on" */
+ static QPixmap *onPix;
+ /** pixmap to display for an item with state "off" */
+ static QPixmap *offPix;
+};
+
+#endif