summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/mainwindow.h
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.h b/noncore/unsupported/oipkg/mainwindow.h
new file mode 100644
index 0000000..77604fd
--- a/dev/null
+++ b/noncore/unsupported/oipkg/mainwindow.h
@@ -0,0 +1,62 @@
1#ifndef MAINWINDOW_H
2#define MAINWINDOW_H
3
4#include <qmainwindow.h>
5#include <qaction.h>
6#include <qpopupmenu.h>
7
8#include "packagelist.h"
9#include "pmipkg.h"
10#include "pksettings.h"
11#include "pkdesc.h"
12
13#include "pkwindow.h"
14
15class MainWindow : public QMainWindow
16{
17 Q_OBJECT
18
19
20public:
21 MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
22 ~MainWindow();
23
24
25protected:
26 PackageWindow *table;
27
28
29protected slots:
30 void runIpkg();
31 void newList();
32 void updateList();
33 void filterList();
34 void displayList();
35 void subSectionChanged();
36 void sectionChanged();
37 void showSettings();
38 void showSettingsSrv();
39 void showSettingsDst();
40
41public slots:
42 void showDetails();
43 void toggleActivePackage();
44 void setCurrent( QListViewItem* );
45
46private:
47 void makeMenu();
48 void setSections();
49 void setSubSections();
50
51 PmIpkg* ipkg;
52 PackageManagerSettings *settings;
53 PackageDetails* details;
54 PackageList packageList;
55 Package *activePackage;
56 QAction *runAction;
57 QAction *detailsAction;
58 QAction *updateAction;
59 QPopupMenu *contextMenu;
60};
61
62#endif