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

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since 6a2483b was 6a2483b, checked in by Ken Moore <ken@…>, 9 months ago

Remove the old life-preserver from the src-qt4/life-preserver dir, and replace it with src-qt4/life-preserver/lp-tray and src-qt4/life-preserver/lp-gui.

  • Property mode set to 100644
File size: 1.7 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
18#include "LPBackend.h"
19#include "LPContainers.h"
20#include "LPGUtils.h"
21#include "LPWizard.h"
22#include "LPConfig.h"
23
24namespace Ui{
25        class LPMain;
26};
27
28class LPMain : public QMainWindow{
29        Q_OBJECT
30public:
31        LPMain(QWidget *parent = 0);
32        ~LPMain();
33
34public slots:
35        void slotSingleInstance();
36
37private:
38        Ui::LPMain *ui;
39        QRadioButton *viewBasic, *viewAdvanced;
40        QFileSystemModel *fsModel;
41        bool poolSelected;
42        LPDataset POOLDATA;
43        QMessageBox *waitBox;
44
45        void showErrorDialog(QString title, QString message, QString errors);
46        void showWaitBox(QString message);
47        void hideWaitBox();
48
49private slots:
50        void updatePoolList();  //re-load available pools
51        void viewChanged();
52        void updateTabs();      //load current pool info and update tabs
53        void updateDataset();  //restore dataset changed
54        void updateSnapshot(); //selected snapshot changed
55        void nextSnapshot();
56        void prevSnapshot();
57        void setFileVisibility();
58        void restoreFiles();
59        void openConfigGUI();
60        // -- Menu Actions --
61        //File Menu
62        void menuAddPool(QAction*);
63        void menuRemovePool(QAction*);
64        void menuSaveSSHKey();
65        void menuCloseWindow();
66        //Classic Backups
67        void menuCompressHomeDir(QAction*);
68        void menuExtractHomeDir();
69        //Disk Menu
70        void menuAddDisk();
71        void menuRemoveDisk(QAction*);
72        void menuOfflineDisk(QAction*);
73        void menuOnlineDisk(QAction*);
74        void menuStartScrub();
75        void menuStopScrub();
76        //Snapshots Menu
77        void menuNewSnapshot();
78        void menuRemoveSnapshot(QAction*);
79
80protected:
81       
82};
83
84#endif
Note: See TracBrowser for help on using the repository browser.