00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _STELNOGUI_HPP_
00021 #define _STELNOGUI_HPP_
00022
00023 #include "StelGuiBase.hpp"
00024
00027 class StelNoGui : public StelGuiBase
00028 {
00029 public:
00030 StelNoGui() {;}
00031 ~StelNoGui() {;}
00032 virtual void init(QGraphicsWidget* topLevelGraphicsWidget, class StelAppGraphicsWidget* stelAppGraphicsWidget) {;}
00033 virtual void updateI18n() {;}
00034 virtual void setStelStyle(const QString& section) {;}
00035 virtual void setInfoTextFilters(const StelObject::InfoStringGroup& aflags) {dummyInfoTextFilter=aflags;}
00036 virtual const StelObject::InfoStringGroup& getInfoTextFilters() const {return dummyInfoTextFilter;}
00037 virtual class QProgressBar* addProgressBar();
00038 virtual QAction* addGuiActions(const QString& actionName, const QString& text, const QString& shortCut, const QString& helpGroup, bool checkable=true, bool autoRepeat=false) {return NULL;}
00039 virtual QAction* getGuiActions(const QString& actionName) {return NULL;}
00040 virtual void forceRefreshGui() {;}
00041 virtual void setVisible(bool b) {visible=b;}
00042 virtual bool getVisible() const {return visible;}
00043 virtual bool isCurrentlyUsed() const {return false;}
00044 private:
00045 StelObject::InfoStringGroup dummyInfoTextFilter;
00046 bool visible;
00047 };
00048
00050 class StelNoGuiPluginInterface : public QObject, public StelGuiPluginInterface
00051 {
00052 Q_OBJECT
00053 Q_INTERFACES(StelGuiPluginInterface)
00054 public:
00055 virtual class StelGuiBase* getStelGuiBase() const;
00056 };
00057
00058
00059
00060 #endif // _STELNOGUI_HPP_