25 #include "StelModule.hpp"
26 #include "StelObject.hpp"
27 #include "StelGuiBase.hpp"
28 #include "StelStyle.hpp"
30 #include <QGraphicsTextItem>
32 class QGraphicsSceneMouseEvent;
45 #ifdef ENABLE_SCRIPT_CONSOLE
68 virtual void init(QGraphicsWidget* topLevelGraphicsWidget);
71 StelStyle getStelStyle()
const {
return currentStelStyle;}
97 #ifdef ENABLE_SCRIPT_CONSOLE
111 virtual const StelObject::InfoStringGroup& getInfoTextFilters()
const;
120 void setFlagShowDecimalDegrees(
bool b);
140 #ifndef DISABLE_SCRIPTING
143 void increaseScriptSpeed();
144 void decreaseScriptSpeed();
145 void setRealScriptSpeed();
156 #ifndef DISABLE_SCRIPTING
157 void scriptStarted();
158 void scriptStopped();
160 void setStelStyle(
const QString& section);
164 void copySelectedObjectInfo(
void);
168 StelAction* getAction(
const QString& actionName);
170 QGraphicsWidget* topLevelGraphicsWidget;
188 #ifdef ENABLE_SCRIPT_CONSOLE
193 bool flagShowFlipButtons;
197 bool flagShowNebulaBackgroundButton;
202 QSizeF savedProgressBarSize;
207 #ifndef DISABLE_SCRIPTING
209 QStringList scriptSaveSpeedbuttons;
215 #include "StelGuiBase.hpp"
216 #include <QProgressBar>
223 virtual void init(QGraphicsWidget* topLevelGraphicsWidget,
class StelAppGraphicsWidget* stelAppGraphicsWidget) {;}
224 virtual void updateI18n() {;}
225 virtual void setStelStyle(
const QString& section) {;}
226 virtual void setInfoTextFilters(
const StelObject::InfoStringGroup& aflags) {dummyInfoTextFilter=aflags;}
227 virtual const StelObject::InfoStringGroup& getInfoTextFilters()
const {
return dummyInfoTextFilter;}
228 virtual QProgressBar* addProgressBar() {
return new QProgressBar;}
229 virtual QAction* addGuiActions(
const QString& actionName,
const QString& text,
const QString& shortCut,
const QString& helpGroup,
bool checkable=
true,
bool autoRepeat=
false) {
return NULL;}
232 virtual bool getVisible()
const {
return visible;}
235 StelObject::InfoStringGroup dummyInfoTextFilter;
241 #endif // _STELGUI_HPP_
void setFlagShowFlipButtons(bool b)
Define whether the buttons toggling image flip should be visible.
void setGuiVisible(bool)
Hide or show the GUI. Public so it can be called from scripts.
virtual void setInfoTextFilters(const StelObject::InfoStringGroup &aflags)
Get a pointer on the info panel used to display selected object info.
virtual bool isCurrentlyUsed() const
Show wether the Gui is currently used.
void setFlagShowNebulaBackgroundButton(bool b)
Define whether the button toggling nebulae background should be visible.
bool getFlagShowNebulaBackgroundButton() const
Get whether the button toggling nebulae background is visible.
bool getAutoHideHorizontalButtonBar() const
Get the auto-hide status of the horizontal toolbar.
void setAutoHideHorizontalButtonBar(bool b)
Set the auto-hide status of the horizontal toolbar.
class SkyGui * getSkyGui() const
Get the SkyGui instance (useful for adding other interface elements).
virtual void setVisible(bool b)
Show whether the GUI is visible.
virtual void forceRefreshGui()
Used to force a refreshing of the GUI elements such as the button bars.
void setScriptKeys(bool b)
change keys when a script is running / not running
Abstract class defining the base interface for all GUIs.
virtual bool getVisible() const
Get the current visible status of the GUI.
bool getAutoHideVerticalButtonBar() const
Get the auto-hide status of the vertical toolbar.
The informations about the currently selected object.
The class managing the layout for button bars, selected object info and loading bars.
BottomStelBar * getButtonBar() const
Get the button bar at the bottom of the screen.
bool getFlagShowFlipButtons() const
Get whether the buttons toggling image flip are visible.
bool initComplete(void) const
returns true if the gui has completed init process.
void setAutoHideVerticalButtonBar(bool b)
Set the auto-hide status of the vertical toolbar.
virtual void init(QGraphicsWidget *topLevelGraphicsWidget)
Initialize the StelGui object.
Holds the information related to a color style for GUI and modules of Stellarium. ...
Main class for the GUI based on QGraphicView.
The sky object search dialog.
void loadStyle(const QString &fileName)
Load a Qt style sheet to define the widgets style.
class LeftStelBar * getWindowsButtonBar() const
Get the button bar of the left of the screen.