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

core/StelGuiBase.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., 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 
00060     virtual QAction* addGuiActions(const QString& actionName, const QString& text, const QString& shortCut, const QString& helpGroup, bool checkable=true, bool autoRepeat=false, bool global=false);
00061 
00065     virtual QAction* getGuiActions(const QString& actionName);
00066 
00067     virtual void forceRefreshGui() {;}
00068 
00071     virtual void setVisible(bool b) =0;
00073     virtual bool getVisible() const =0;
00076     virtual bool isCurrentlyUsed() const =0;
00077 
00078 
00079 protected:
00080     class StelAppGraphicsWidget* stelAppGraphicsWidget;
00082     void updateI18n();
00083     
00084 };
00085 
00089 class StelGuiPluginInterface
00090 {
00091 public:
00092     virtual ~StelGuiPluginInterface() {}
00093 
00095     virtual class StelGuiBase* getStelGuiBase() const = 0;
00096 };
00097 Q_DECLARE_INTERFACE(StelGuiPluginInterface, "stellarium.StelGuiPluginInterface/1.0");
00098 
00099 
00100 #endif // _STELGUIBASE_HPP_
Generated on Sat Aug 25 22:13:29 2012 for Stellarium by  doxygen 1.6.3