~ben-kietzman/ubuntu/quantal/mountmanager/fix-for-598070

« back to all changes in this revision

Viewing changes to sources/gui/mainwindow.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabrice Coutadeur
  • Date: 2008-08-20 10:22:14 UTC
  • Revision ID: james.westby@ubuntu.com-20080820102214-fv93myu0ncb1503r
Tags: upstream-0.2.4
ImportĀ upstreamĀ versionĀ 0.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//MountManager - the program for easy mounting of storage devices in Linux
 
2
//Copyright (C) 2007-2008 Tikhonov Sergey
 
3
//
 
4
//This file is part of MountManager Gui
 
5
//
 
6
//This program is free software; you can redistribute it and/or
 
7
//modify it under the terms of the GNU General Public License
 
8
//as published by the Free Software Foundation; either version 2
 
9
//of the License, or (at your option) any later version.
 
10
//
 
11
//This program is distributed in the hope that it will be useful,
 
12
//but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
//GNU General Public License for more details.
 
15
//
 
16
//You should have received a copy of the GNU General Public License
 
17
//along with this program; if not, write to the Free Software
 
18
//Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
19
#ifndef MAINWINDOW_H
 
20
#define MAINWINDOW_H
 
21
 
 
22
#include <QtGui/QMainWindow>
 
23
 
 
24
class QMenu;
 
25
class QAction;
 
26
class QStatusBar;
 
27
class DiskCore;
 
28
class CentralWidget;
 
29
class QCloseEvent;
 
30
class Manual;
 
31
class AboutProgramDialog;
 
32
class UsbManager;
 
33
class PopupWindow;
 
34
class QCheckBox;
 
35
class RestorationSystem;
 
36
class Menu;
 
37
class TrayIcon;
 
38
class PluginsManager;
 
39
 
 
40
class MainWindow : public QMainWindow
 
41
{
 
42
        Q_OBJECT
 
43
        private slots:
 
44
                void quit();
 
45
                void saveConfig();
 
46
                void apply();
 
47
                void hideOrShow();
 
48
                void showTrayMessage(const QString& title,const QString& message);
 
49
                void enablePlugin(int pluginIndex);
 
50
                void disablePlugin(int pluginIndex);
 
51
 
 
52
                void reportBug();
 
53
                void sendLetterToDeveloper();
 
54
                void goToHomepage();
 
55
        signals:
 
56
                void started();
 
57
        private:
 
58
                DiskCore *core;
 
59
                CentralWidget *centralWidget;
 
60
                Manual *manual;
 
61
                AboutProgramDialog *aboutProgramDialog;
 
62
                UsbManager *usbManager;
 
63
                RestorationSystem *restorationSystem;
 
64
                PluginsManager *pluginsManager;
 
65
 
 
66
                TrayIcon *trayIcon;
 
67
                Menu *trayMenu;
 
68
                
 
69
                QDialog *applyDialog;
 
70
                QCheckBox *dontShowApplyDialog;
 
71
 
 
72
                PopupWindow *popupWindow;
 
73
                
 
74
                QMenu *partitionMenu;
 
75
                QAction *quitAction;
 
76
                QAction *saveConfigFileAction;
 
77
                QAction *applyAction;
 
78
                
 
79
                QMenu *toolsMenu;
 
80
                QAction *pluginsManagerAction;
 
81
                QAction *usbManagerAction;
 
82
                QAction *restorationSystemAction;
 
83
//              QAction *wizardAction;
 
84
 
 
85
                QMenu *helpMenu;
 
86
                QAction *documentationAction;
 
87
                QAction *aboutProgramAction;
 
88
                QMenu *linksMenu;
 
89
                QAction *reportBugAction;
 
90
                QAction *developerAction;
 
91
                QAction *homePageAction;
 
92
 
 
93
                QMenu *pluginsMenu;
 
94
 
 
95
                QStatusBar *statBar;
 
96
 
 
97
                void saveSettings();
 
98
                void loadSettings();
 
99
                void loadPlugins();
 
100
        public:
 
101
                MainWindow();
 
102
                ~MainWindow();
 
103
        protected:
 
104
                void closeEvent(QCloseEvent *);
 
105
};
 
106
 
 
107
#endif