![]() |
Stellarium 0.11.2 | ||
| Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure |
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., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. 00018 */ 00019 00020 #ifndef _STELGUIBASE_HPP_ 00021 #define _STELGUIBASE_HPP_ 00022 00023 #include "StelObject.hpp" 00024 00025 #include <QtPlugin> 00026 00027 class QGraphicsWidget; 00028 class QAction; 00029 00032 class StelGuiBase 00033 { 00034 public: 00035 StelGuiBase(); 00036 virtual ~StelGuiBase() {;} 00037 00038 virtual void init(QGraphicsWidget* topLevelGraphicsWidget, class StelAppGraphicsWidget* stelAppGraphicsWidget); 00039 00041 virtual void setStelStyle(const QString& section) =0; 00042 00044 virtual void setInfoTextFilters(const StelObject::InfoStringGroup& aflags) =0; 00045 virtual const StelObject::InfoStringGroup& getInfoTextFilters() const =0; 00046 00050 virtual class QProgressBar* addProgressBar() =0; 00051 00059 virtual QAction* addGuiActions(const QString& actionName, const QString& text, const QString& shortCut, const QString& helpGroup, bool checkable=true, bool autoRepeat=false); 00060 00064 virtual QAction* getGuiActions(const QString& actionName); 00065 00066 virtual void forceRefreshGui() {;} 00067 00070 virtual void setVisible(bool b) =0; 00072 virtual bool getVisible() const =0; 00075 virtual bool isCurrentlyUsed() const =0; 00076 00077 00078 protected: 00079 class StelAppGraphicsWidget* stelAppGraphicsWidget; 00081 void updateI18n(); 00082 00083 }; 00084 00088 class StelGuiPluginInterface 00089 { 00090 public: 00091 virtual ~StelGuiPluginInterface() {} 00092 00094 virtual class StelGuiBase* getStelGuiBase() const = 0; 00095 }; 00096 Q_DECLARE_INTERFACE(StelGuiPluginInterface, "stellarium.StelGuiPluginInterface/1.0"); 00097 00098 00099 #endif // _STELGUIBASE_HPP_
1.7.4