summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/listviewpwm.h
Unidiff
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 @@
1/***************************************************************************
2 * *
3 * copyright (C) 2004 by Michael Buesch *
4 * email: mbuesch@freenet.de *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License version 2 *
8 * as published by the Free Software Foundation. *
9 * *
10 ***************************************************************************/
11
12/***************************************************************************
13 * copyright (C) 2004 by Ulf Schenk
14 * This file is originaly based on version 1.0.1 of pwmanager
15 * and was modified to run on embedded devices that run microkde
16 *
17 * $Id$
18 **************************************************************************/
19
20#ifndef __LISTVIEW_H
21#define __LISTVIEW_H
22
23#include <klistview.h>
24
25/** PwManager implementation of the list view.
26 * Derived from KListView.
27 */
28class ListViewPwM : public KListView
29{
30 Q_OBJECT
31public:
32 ListViewPwM(QWidget *parent = 0, const char *name = 0);
33
34signals:
35 void layoutChanged();
36
37protected:
38 virtual bool event(QEvent *e);
39};
40
41class ListViewItemPwM : public QCheckListItem
42{
43public:
44 ListViewItemPwM(QListView *parent);
45
46protected:
47 void paintCell(QPainter *p, const QColorGroup &cg,
48 int column, int width, int align);
49
50protected:
51 /** pixmap to display for an item with state "on" */
52 static QPixmap *onPix;
53 /** pixmap to display for an item with state "off" */
54 static QPixmap *offPix;
55};
56
57#endif