Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Application.h
Go to the documentation of this file.
1 /* Copyright (c) 2014-2016 "Omnidome" by cr8tr
2  * Dome Mapping Projection Software (http://omnido.me).
3  * Omnidome was created by Michael Winkelmann aka Wilston Oreo (@WilstonOreo)
4  *
5  * This file is part of Omnidome.
6  *
7  * Omnidome is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Affero General Public License for more details.
16  * You should have received a copy of the GNU Affero General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #include <QObject>
21 #include <QApplication>
22 #include <QSettings>
23 
24 namespace omni {
25  namespace ui {
26  /// Omnidome Application
27  class Application : public QApplication {
28  Q_OBJECT
29  public:
30  /// Construct with command arguments and load plugins
31  Application(int& ac,
32  char **av);
33  ~Application();
34 
35  /// Set custom stylesheet file
36  void setStyleSheetFile(QString _file);
37 
38  /// Return string to style sheet file
39  QString styleSheetFile() const;
40 
41  /// Application settings to be saved
42  static QSettings& settings();
43 
44  private:
45  bool eventFilter(QObject *object,
46  QEvent *event);
47 
48  void loadPlugins();
49 
50  QString styleSheetFile_;
51  static QSettings settings_;
52  };
53  }
54 }
Application(int &ac, char **av)
Construct with command arguments and load plugins.
Definition: Application.cpp:31
~Application()
Definition: Application.cpp:59
static QSettings settings_
Definition: Application.h:51
QString styleSheetFile_
Definition: Application.h:50
static QSettings & settings()
Application settings to be saved.
Definition: Application.cpp:75
void loadPlugins()
Definition: Application.cpp:79
QString styleSheetFile() const
Return string to style sheet file.
Definition: Application.cpp:71
bool eventFilter(QObject *object, QEvent *event)
Definition: Application.cpp:87
Omnidome Application.
Definition: Application.h:27
void setStyleSheetFile(QString _file)
Set custom stylesheet file.
Definition: Application.cpp:61