Stellarium 0.12.3
StelNoGui.hpp
1 /*
2  * Stellarium
3  * Copyright (C) 2009 Fabien Chereau
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18  */
19 
20 #ifndef _STELNOGUI_HPP_
21 #define _STELNOGUI_HPP_
22 
23 #include "StelGuiBase.hpp"
24 
27 class StelNoGui : public StelGuiBase
28 {
29 public:
30  StelNoGui() {;}
31  ~StelNoGui() {;}
32  virtual void init(QGraphicsWidget* topLevelGraphicsWidget, class StelAppGraphicsWidget* stelAppGraphicsWidget) {;}
33  virtual void updateI18n() {;}
34  virtual void setStelStyle(const QString& section) {;}
35  virtual void setInfoTextFilters(const StelObject::InfoStringGroup& aflags) {dummyInfoTextFilter=aflags;}
36  virtual const StelObject::InfoStringGroup& getInfoTextFilters() const {return dummyInfoTextFilter;}
37  virtual class QProgressBar* addProgressBar();
38  virtual QAction* addGuiActions(const QString& actionName, const QString& text, const QString& shortCut, const QString& helpGroup, bool checkable=true, bool autoRepeat=false) {return NULL;}
39  virtual QAction* getGuiActions(const QString& actionName) {return NULL;}
40  virtual void forceRefreshGui() {;}
41  virtual void setVisible(bool b) {visible=b;}
42  virtual bool getVisible() const {return visible;}
43  virtual bool isCurrentlyUsed() const {return false;}
44 private:
45  StelObject::InfoStringGroup dummyInfoTextFilter;
46  bool visible;
47 };
48 
50 class StelNoGuiPluginInterface : public QObject, public StelGuiPluginInterface
51 {
52  Q_OBJECT;
53  Q_INTERFACES(StelGuiPluginInterface);
54 public:
55  virtual class StelGuiBase* getStelGuiBase() const;
56 };
57 
58 
59 
60 #endif // _STELNOGUI_HPP_