Stellarium 0.15.2
StelGuiBase.hpp
1 /*
2  * Stellarium
3  * Copyright (C) 2009 Fabien Chereau
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18  */
19 
20 #ifndef _STELGUIBASE_HPP_
21 #define _STELGUIBASE_HPP_
22 
23 #include "StelObject.hpp"
24 
25 class QGraphicsWidget;
26 class QAction;
27 
31 {
32 public:
33  StelGuiBase();
34  virtual ~StelGuiBase() {;}
35 
36  virtual void init(QGraphicsWidget *atopLevelGraphicsWidget);
37 
39  virtual void setStelStyle(const QString& section) =0;
40 
42  virtual void setInfoTextFilters(const StelObject::InfoStringGroup& aflags) =0;
43  virtual const StelObject::InfoStringGroup& getInfoTextFilters() const =0;
44 
45  virtual void forceRefreshGui() {;}
46 
49  virtual void setVisible(bool b) =0;
51  virtual bool getVisible() const =0;
54  virtual bool isCurrentlyUsed() const =0;
55 };
56 
57 #endif // _STELGUIBASE_HPP_
virtual bool getVisible() const =0
Get the current visible status of the GUI.
virtual void setVisible(bool b)=0
Show whether the GUI is visible.
Abstract class defining the base interface for all GUIs.
Definition: StelGuiBase.hpp:30
virtual bool isCurrentlyUsed() const =0
Show wether the Gui is currently used.
virtual void setInfoTextFilters(const StelObject::InfoStringGroup &aflags)=0
Get a pointer on the info panel used to display selected object info.
virtual void setStelStyle(const QString &section)=0
Load color scheme matchin the section name.