25 #include "StelModule.hpp"
26 #include "StelObject.hpp"
27 #include "StelGuiBase.hpp"
28 #include "StelStyle.hpp"
30 #include <QGraphicsTextItem>
32 class QGraphicsSceneMouseEvent;
44 #ifdef ENABLE_SCRIPT_CONSOLE
67 virtual void init(QGraphicsWidget* topLevelGraphicsWidget);
70 StelStyle getStelStyle()
const {
return currentStelStyle;}
96 #ifdef ENABLE_SCRIPT_CONSOLE
110 virtual const StelObject::InfoStringGroup& getInfoTextFilters()
const;
119 void setFlagShowDecimalDegrees(
bool b);
139 #ifndef DISABLE_SCRIPTING
142 void increaseScriptSpeed();
143 void decreaseScriptSpeed();
144 void setRealScriptSpeed();
155 #ifndef DISABLE_SCRIPTING
156 void scriptStarted();
157 void scriptStopped();
159 void setStelStyle(
const QString& section);
163 void copySelectedObjectInfo(
void);
167 StelAction* getAction(
const QString& actionName);
169 QGraphicsWidget* topLevelGraphicsWidget;
187 #ifdef ENABLE_SCRIPT_CONSOLE
191 bool flagShowFlipButtons;
195 bool flagShowNebulaBackgroundButton;
200 QSizeF savedProgressBarSize;
208 #include "StelGuiBase.hpp"
209 #include <QProgressBar>
216 virtual void init(QGraphicsWidget* topLevelGraphicsWidget,
class StelAppGraphicsWidget* stelAppGraphicsWidget) {;}
217 virtual void updateI18n() {;}
218 virtual void setStelStyle(
const QString& section) {;}
219 virtual void setInfoTextFilters(
const StelObject::InfoStringGroup& aflags) {dummyInfoTextFilter=aflags;}
220 virtual const StelObject::InfoStringGroup& getInfoTextFilters()
const {
return dummyInfoTextFilter;}
221 virtual QProgressBar* addProgressBar() {
return new QProgressBar;}
222 virtual QAction* addGuiActions(
const QString& actionName,
const QString& text,
const QString& shortCut,
const QString& helpGroup,
bool checkable=
true,
bool autoRepeat=
false) {
return NULL;}
225 virtual bool getVisible()
const {
return visible;}
228 StelObject::InfoStringGroup dummyInfoTextFilter;
234 #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.