Diffstat (limited to 'noncore/unsupported/oipkg/packagelistview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelistview.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/noncore/unsupported/oipkg/packagelistview.h b/noncore/unsupported/oipkg/packagelistview.h index 3c09ba8..17dcb95 100644 --- a/noncore/unsupported/oipkg/packagelistview.h +++ b/noncore/unsupported/oipkg/packagelistview.h | |||
@@ -1,54 +1,55 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * * | 2 | * * |
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | 9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> |
10 | 10 | ||
11 | #ifndef PACKAGELISTVIEW_H | 11 | #ifndef PACKAGELISTVIEW_H |
12 | #define PACKAGELISTVIEW_H | 12 | #define PACKAGELISTVIEW_H |
13 | 13 | ||
14 | #include <qlistview.h> | 14 | #include <qlistview.h> |
15 | #include <qaction.h> | 15 | #include <qaction.h> |
16 | #include <qdict.h> | 16 | #include <qdict.h> |
17 | #include <qstring.h> | 17 | #include <qstring.h> |
18 | #include <qtimer.h> | 18 | #include <qtimer.h> |
19 | #include <qwidget.h> | 19 | #include <qwidget.h> |
20 | #include <qpopupmenu.h> | 20 | #include <qpopupmenu.h> |
21 | #include "listviewitemoipkg.h" | ||
21 | #include "packagelist.h" | 22 | #include "packagelist.h" |
22 | #include "debug.h" | 23 | #include "debug.h" |
23 | 24 | ||
24 | class PackageListItem; | 25 | class PackageListItem; |
25 | class Package; | 26 | class OipkgPackage; |
26 | class PackageManagerSettings; | 27 | class PackageManagerSettings; |
28 | //class ListViewItemOipkg; | ||
27 | 29 | ||
28 | class PackageListView : public QListView | 30 | class PackageListView : public QListView |
29 | { | 31 | { |
30 | Q_OBJECT | 32 | Q_OBJECT |
31 | 33 | ||
32 | public: | 34 | public: |
33 | PackageListView(QWidget*, const char*, PackageManagerSettings*); | 35 | PackageListView(QWidget*, const char*, PackageManagerSettings*); |
34 | void addList( QString, PackageList* ); | 36 | void addList( QString, PackageList* ); |
35 | //~PackageListView(); | 37 | //~PackageListView(); |
36 | QTimer *popupTimer; | 38 | QTimer *popupTimer; |
37 | private: | 39 | private: |
38 | QDict<PackageList> PackageLists; | 40 | QDict<PackageList> PackageLists; |
39 | QDict<QCheckListItem> rootItems; | 41 | QDict<ListViewItemOipkg> rootItems; |
40 | PackageManagerSettings *settings; | 42 | PackageManagerSettings *settings; |
41 | Package *activePackage; | 43 | // OipkgPackage *activePackage; |
42 | PackageListItem *activePackageListItem; | 44 | // PackageListItem *activePackageListItem; |
45 | ListViewItemOipkg *activeItem; | ||
43 | QPopupMenu *popupMenu; | 46 | QPopupMenu *popupMenu; |
44 | QPopupMenu *destsMenu; | 47 | QPopupMenu *destsMenu; |
45 | public slots: | 48 | public slots: |
46 | void showPopup(); | 49 | void showPopup(); |
47 | void changePackageDest( int ); | ||
48 | void setCurrent( QListViewItem* ); | 50 | void setCurrent( QListViewItem* ); |
49 | void stopTimer( QListViewItem* ); | 51 | void stopTimer( QListViewItem* ); |
50 | void toggleProcess(); | ||
51 | void display(); | 52 | void display(); |
52 | }; | 53 | }; |
53 | 54 | ||
54 | #endif | 55 | #endif |