source: src-qt4/life-preserver/lp-gui/LPMain.h @ ec61e8e

releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since ec61e8e was ec61e8e, checked in by Ken Moore <ken@…>, 11 months ago

Make sure that the life-preserver GUI saves which view mode the UI is in for the next time it gets started.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1#ifndef _LP_MAIN_H
2#define _LP_MAIN_H
3
4#include <QMainWindow>
5#include <QComboBox>
6#include <QToolButton>
7#include <QLabel>
8#include <QString>
9#include <QStringList>
10#include <QRadioButton>
11#include <QWidgetAction>
12#include <QFileSystemModel>
13#include <QInputDialog>
14#include <QDateTime>
15#include <QTimer>
16#include <QFileDialog>
17#include <QFileSystemWatcher>
18#include <QSettings>
19
20#include "LPBackend.h"
21#include "LPContainers.h"
22#include "LPGUtils.h"
23#include "LPWizard.h"
24#include "LPConfig.h"
25
26namespace Ui{
27        class LPMain;
28};
29
30class LPMain : public QMainWindow{
31        Q_OBJECT
32public:
33        LPMain(QWidget *parent = 0);
34        ~LPMain();
35
36public slots:
37        void slotSingleInstance();
38
39private:
40        Ui::LPMain *ui;
41        QRadioButton *viewBasic, *viewAdvanced;
42        QFileSystemModel *fsModel;
43        bool poolSelected;
44        LPDataset POOLDATA;
45        QMessageBox *waitBox;
46        QFileSystemWatcher *watcher;
47        QTimer *timer;
48        QSettings *settings;
49
50        void showErrorDialog(QString title, QString message, QString errors);
51        void showWaitBox(QString message);
52        void hideWaitBox();
53
54private slots:
55        void updatePoolList();  //re-load available pools
56        void viewChanged();
57        void updateTabs();      //load current pool info and update tabs
58        void updateDataset();  //restore dataset changed
59        void updateSnapshot(); //selected snapshot changed
60        void nextSnapshot();
61        void prevSnapshot();
62        void setFileVisibility();
63        void restoreFiles();
64        void openConfigGUI();
65        void autoRefresh();
66        // -- Menu Actions --
67        //File Menu
68        void menuAddPool(QAction*);
69        void menuRemovePool(QAction*);
70        void menuSaveSSHKey();
71        void menuCloseWindow();
72        //Classic Backups
73        void menuCompressHomeDir(QAction*);
74        void menuExtractHomeDir();
75        //Disk Menu
76        void menuAddDisk();
77        void menuRemoveDisk(QAction*);
78        void menuOfflineDisk(QAction*);
79        void menuOnlineDisk(QAction*);
80        void menuStartScrub();
81        void menuStopScrub();
82        //Snapshots Menu
83        void menuNewSnapshot();
84        void menuRemoveSnapshot(QAction*);
85
86protected:
87       
88};
89
90#endif
Note: See TracBrowser for help on using the repository browser.