From a3205d9bf5570af8441ed81cd6d9eeadf22319c9 Mon Sep 17 00:00:00 2001 From: tille Date: Tue, 23 Apr 2002 11:16:45 +0000 Subject: ... mostly rewritten. --- (limited to 'noncore/unsupported/oipkg/mainwindow.h') 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 +#include +#include + +#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 -- cgit v0.9.0.2