Stellarium 0.11.4
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

noGui/StelNoGui.hpp

00001 /*
00002  * Stellarium
00003  * Copyright (C) 2009 Fabien Chereau
00004  * 
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  * 
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
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_
Generated on Sat Aug 25 22:13:30 2012 for Stellarium by  doxygen 1.6.3