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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, 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 updateI18n();
00042 
00044     virtual void setStelStyle(const QString& section) =0;
00045 
00047     virtual void setInfoTextFilters(const StelObject::InfoStringGroup& aflags) =0;
00048     virtual const StelObject::InfoStringGroup& getInfoTextFilters() const =0;
00049 
00053     virtual class QProgressBar* addProgressBar() =0;
00054 
00062     virtual QAction* addGuiActions(const QString& actionName, const QString& text, const QString& shortCut, const QString& helpGroup, bool checkable=true, bool autoRepeat=false);
00063 
00067     virtual QAction* getGuiActions(const QString& actionName);
00068 
00069     virtual void forceRefreshGui() {;}
00070 
00073     virtual void setVisible(bool b) =0;
00075     virtual bool getVisible() const =0;
00078     virtual bool isCurrentlyUsed() const =0;
00079 
00080 
00081 protected:
00082     class StelAppGraphicsWidget* stelAppGraphicsWidget;
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_

Generated on Wed Jun 2 13:11:13 2010 for Stellarium by  doxygen 1.5.5