summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagelistitem.h
authortille <tille>2002-04-23 11:16:45 (UTC)
committer tille <tille>2002-04-23 11:16:45 (UTC)
commita3205d9bf5570af8441ed81cd6d9eeadf22319c9 (patch) (unidiff)
treee2403e5dcc46906570cb070b852ee83d9a8af0b8 /noncore/unsupported/oipkg/packagelistitem.h
parent7e8db7f310d7a43326337a7960e59d9e313b8534 (diff)
downloadopie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.zip
opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.gz
opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.bz2
... mostly rewritten.
Diffstat (limited to 'noncore/unsupported/oipkg/packagelistitem.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistitem.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/packagelistitem.h b/noncore/unsupported/oipkg/packagelistitem.h
new file mode 100644
index 0000000..6983e58
--- a/dev/null
+++ b/noncore/unsupported/oipkg/packagelistitem.h
@@ -0,0 +1,31 @@
1#ifndef PK_LISTITEM_H
2#define PK_LISTITEM_H
3
4#include "package.h"
5
6#include <qstring.h>
7#include <qlistview.h>
8#include <qpainter.h>
9#include <qpixmap.h>
10#include <qdict.h>
11
12class PackageListItem
13: public QCheckListItem
14{
15public:
16 PackageListItem(QListView*, Package* );
17 void paintCell( QPainter*, const QColorGroup&, int, int, int );
18 void paintFocus( QPainter*, const QColorGroup&, const QRect& );
19 QPixmap statePixmap() const;
20 QString key( int, bool ) const;
21 Package* getPackage() { return package; } ;
22 QString getName() { return package->name(); } ;
23 bool isInstalled(){ return package->installed(); };
24 virtual void setOn ( bool );
25
26private:
27 Package *package;
28};
29
30
31#endif