25 #include "StelModule.hpp" 26 #include "StelObject.hpp" 27 #include "StelGuiBase.hpp" 28 #include "StelStyle.hpp" 30 #include <QGraphicsTextItem> 32 class QGraphicsSceneMouseEvent;
46 #ifdef ENABLE_SCRIPT_CONSOLE 69 virtual void init(QGraphicsWidget* topLevelGraphicsWidget);
72 StelStyle getStelStyle()
const {
return currentStelStyle;}
104 #ifdef ENABLE_SCRIPT_CONSOLE 115 virtual bool getAstroCalcVisible();
120 virtual const StelObject::InfoStringGroup& getInfoTextFilters()
const;
135 void setFlagShowDecimalDegrees(
bool b);
155 #ifndef DISABLE_SCRIPTING 158 void increaseScriptSpeed();
159 void decreaseScriptSpeed();
160 void setRealScriptSpeed();
170 void visibleChanged(
bool b);
171 void autoHideHorizontalButtonBarChanged(
bool b);
172 void autoHideVerticalButtonBarChanged(
bool b);
176 #ifndef DISABLE_SCRIPTING 177 void scriptStarted();
178 void scriptStopped();
180 void setStelStyle(
const QString& section);
184 void copySelectedObjectInfo(
void);
188 StelAction* getAction(
const QString& actionName);
190 QGraphicsWidget* topLevelGraphicsWidget;
208 #ifdef ENABLE_SCRIPT_CONSOLE 214 bool flagShowFlipButtons;
218 bool flagShowNebulaBackgroundButton;
221 bool flagShowToastSurveyButton;
224 bool flagShowBookmarksButton;
229 QSizeF savedProgressBarSize;
234 #ifndef DISABLE_SCRIPTING 236 QStringList scriptSaveSpeedbuttons;
242 #include "StelGuiBase.hpp" 243 #include <QProgressBar> 250 virtual void init(QGraphicsWidget* topLevelGraphicsWidget,
class StelAppGraphicsWidget* stelAppGraphicsWidget) {;}
251 virtual void updateI18n() {;}
252 virtual void setStelStyle(
const QString& section) {;}
253 virtual void setInfoTextFilters(
const StelObject::InfoStringGroup& aflags) {dummyInfoTextFilter=aflags;}
254 virtual const StelObject::InfoStringGroup& getInfoTextFilters()
const {
return dummyInfoTextFilter;}
255 virtual QProgressBar* addProgressBar() {
return new QProgressBar;}
256 virtual QAction* addGuiActions(
const QString& actionName,
const QString& text,
const QString& shortCut,
const QString& helpGroup,
bool checkable=
true,
bool autoRepeat=
false) {
return NULL;}
259 virtual bool getVisible()
const {
return visible;}
262 StelObject::InfoStringGroup dummyInfoTextFilter;
268 #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.
void setFlagShowToastSurveyButton(bool b)
Define whether the button toggling TOAST survey should be visible.
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.
Wrapper around an argumentless QObject slot or a bool Q_PROPERTY with WRITE method, allowing the slot to be called/property to be toggled using this action object.
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 getFlagShowBookmarksButton() const
Get whether the button toggling bookmarks is visible.
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.
void setFlagShowBookmarksButton(bool b)
Define whether the button toggling bookmarks should be visible.
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.
bool getFlagShowToastSurveyButton() const
Get whether the button toggling TOAST survey is visible.