Q4Wine  2.0
Q4Wine is a Qt GUI for Wine.
mainwindow.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2008-2016 by Alexey S. Malakhov <brezerk@gmail.com> *
3  * *
4  * This program is free software: you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation, either version 3 of the License, or *
7  * (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License *
15  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
16  * *
17  ***************************************************************************/
18 
19 #pragma once
20 
21 #include <QApplication>
22 #include <QDesktopWidget>
23 #include <QWidget>
24 #include <QMainWindow>
25 #include <QSettings>
26 #include <QAction>
27 #include <QMenu>
28 #include <QMenuBar>
29 #include <QStatusBar>
30 #include <QToolBar>
31 #include <QVBoxLayout>
32 #include <QTabBar>
33 #include <QSplitter>
34 #include <QTreeWidget>
35 #include <QListWidget>
36 
37 #include <memory>
38 
43 
44 namespace Ui {
45 class MainWindow;
46 }
47 
48 class MainWindow : public QMainWindow
49 {
50  Q_OBJECT
51 
52  public:
53  explicit MainWindow(QWidget *parent = 0);
54  ~MainWindow();
55 
56  private:
57  void createActions();
58  void createStatusBar();
59  void createWidgets();
60  void readSettings();
61  QWidget* populateTabDesktop();
62  void writeSettings();
71  const QIcon getIcon(QString name) const;
72 };
Definition: mainwindow.hpp:44
Definition: mainwindow.hpp:23