summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/mainwindow.h
Side-by-side diff
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 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <qmainwindow.h>
+#include <qaction.h>
+#include <qpopupmenu.h>
+
+#include "packagelist.h"
+#include "pmipkg.h"
+#include "pksettings.h"
+#include "pkdesc.h"
+
+#include "pkwindow.h"
+
+class MainWindow : public QMainWindow
+{
+ Q_OBJECT
+
+
+public:
+ MainWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
+ ~MainWindow();
+
+
+protected:
+ PackageWindow *table;
+
+
+protected slots:
+ void runIpkg();
+ void newList();
+ void updateList();
+ void filterList();
+ void displayList();
+ void subSectionChanged();
+ void sectionChanged();
+ void showSettings();
+ void showSettingsSrv();
+ void showSettingsDst();
+
+public slots:
+ void showDetails();
+ void toggleActivePackage();
+ void setCurrent( QListViewItem* );
+
+private:
+ void makeMenu();
+ void setSections();
+ void setSubSections();
+
+ PmIpkg* ipkg;
+ PackageManagerSettings *settings;
+ PackageDetails* details;
+ PackageList packageList;
+ Package *activePackage;
+ QAction *runAction;
+ QAction *detailsAction;
+ QAction *updateAction;
+ QPopupMenu *contextMenu;
+};
+
+#endif