src/MainWindow/MainWindow.h

Go to the documentation of this file.
00001 #ifndef MAINWINDOW_H_
00002 #define MAINWINDOW_H_
00003 #include <QtGui>
00004 #include "../../build/ui_MainWindow.h"
00005 #include "../PreferencesDialog/PreferencesDialog.h"
00006 #include "../AboutDialog/AboutDialog.h"
00007 #include "../Settings/settings.h"
00008 
00009 class CMainWindow : public QMainWindow, private Ui::MainWindow {
00010         Q_OBJECT
00011         public:
00012                 CMainWindow();
00013                 ~CMainWindow();
00014                 void loadSettings();
00015 
00016                 CSettings *configuration;
00017         protected:
00018                 void closeEvent( QCloseEvent *event );
00019         private:
00020                 void parseMountPoints();
00021                 void startupSettings();
00022                 void createActions();
00023                 void createTrayIcon();
00024 
00025                 typedef struct {
00026                         QString filesystem;
00027                         QString size;
00028                         QString available;
00029                         QString used;
00030                         QString usedPercent;
00031                         QString mountPoint;
00032                 } SHardDrive;
00033 
00034                 QList<SHardDrive*> disk;
00035                 QList<QProgressBar*> hddProgressBar;
00036                 QList<QLabel*> hddInfoLabel;
00037                 CPreferences *preferences;
00038                 CAboutDialog *about;
00039                 QProcess *readMountPoints;
00040                 QAction *restoreAction;
00041                 QAction *quitAction;
00042                 QSystemTrayIcon *trayIcon;
00043                 QMenu *trayIconMenu;
00044 
00045         private slots:
00046                 void showPreferences();
00047                 void showAbout();
00048 };
00049 
00050 #endif /*MAINWINDOW_H_*/

Generated on Fri Feb 29 10:20:46 2008 for QConfigControl by  doxygen 1.5.4