author | tille <tille> | 2002-04-23 11:16:45 (UTC) |
---|---|---|
committer | tille <tille> | 2002-04-23 11:16:45 (UTC) |
commit | a3205d9bf5570af8441ed81cd6d9eeadf22319c9 (patch) (side-by-side diff) | |
tree | e2403e5dcc46906570cb070b852ee83d9a8af0b8 /noncore/unsupported/oipkg/mainwindow.h | |
parent | 7e8db7f310d7a43326337a7960e59d9e313b8534 (diff) | |
download | opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.zip opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.gz opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.bz2 |
... mostly rewritten.
Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/mainwindow.h | 62 |
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 |