Stellarium 0.12.4
Main Page
Namespaces
Classes
Coding Style
Scripting
Plugins
Renderer
File Structure
File List
File Members
core
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
#include <QtPlugin>
26
27
class
QGraphicsWidget;
28
class
QAction;
29
32
class
StelGuiBase
33
{
34
public
:
35
StelGuiBase
();
36
virtual
~
StelGuiBase
() {;}
37
38
virtual
void
init(QGraphicsWidget* topLevelGraphicsWidget,
class
StelAppGraphicsWidget
* stelAppGraphicsWidget);
39
41
virtual
void
setStelStyle
(
const
QString& section) =0;
42
44
virtual
void
setInfoTextFilters
(
const
StelObject::InfoStringGroup& aflags) =0;
45
virtual
const
StelObject::InfoStringGroup& getInfoTextFilters()
const
=0;
46
50
virtual
class
QProgressBar*
addProgressBar
() =0;
51
52
virtual
void
forceRefreshGui() {;}
53
56
virtual
void
setVisible
(
bool
b) =0;
58
virtual
bool
getVisible
()
const
=0;
61
virtual
bool
isCurrentlyUsed
()
const
=0;
62
63
64
protected
:
65
class
StelAppGraphicsWidget
* stelAppGraphicsWidget;
67
void
updateI18n
();
68
69
};
70
74
class
StelGuiPluginInterface
75
{
76
public
:
77
virtual
~
StelGuiPluginInterface
() {}
78
80
virtual
class
StelGuiBase
*
getStelGuiBase
()
const
= 0;
81
};
82
Q_DECLARE_INTERFACE(
StelGuiPluginInterface
,
"stellarium.StelGuiPluginInterface/1.0"
)
83
84
85
#endif // _STELGUIBASE_HPP_
Generated on Wed Sep 25 2013 22:30:30 for Stellarium by
1.8.3.1