87
88
//! Add a new progress bar in the lower right corner of the screen.
88
89
//! When the progress bar is deleted with removeProgressBar() the layout is automatically rearranged.
89
90
//! @return a pointer to the progress bar
90
class QProgressBar* addProgessBar();
91
class QProgressBar* addProgressBar();
92
93
//! Add a new action managed by the GUI. This method should be used to add new shortcuts to the program
93
94
//! @param actionName qt object name. Used as a reference for later uses
107
108
//! Get the button bar at the bottom of the screen
108
109
BottomStelBar* getButtonBar() {return buttonBar;}
111
//! Get the button bar of the left of the screen
112
class LeftStelBar* getWindowsButtonBar() {return winBar;}
110
114
//! Transform the pixmap so that it look red for night vision mode
111
115
static QPixmap makeRed(const QPixmap& p);
113
bool getFlagShowFlipButtons(void) {return flagShowFlipButtons;}
117
//! Get whether the buttons toggling image flip are visible
118
bool getFlagShowFlipButtons() {return flagShowFlipButtons;}
120
//! Get whether the button toggling nebulae background is visible
121
bool getFlagShowNebulaBackgroundButton() {return flagShowNebulaBackgroundButton;}
123
//! returns true if the gui has complted init process.
124
bool initComplete(void) {return initDone;}
126
DownloadPopup* getDownloadPopup() {return &downloadPopup;}
129
//! Define whether the buttons toggling image flip should be visible
116
130
void setFlagShowFlipButtons(bool b);
132
//! Define whether the button toggling nebulae background should be visible
133
void setFlagShowNebulaBackgroundButton(bool b);
135
//! Get the auto-hide status of the horizontal toolbar.
136
bool getAutoHideHorizontalButtonBar() const {return autoHideHorizontalButtonBar;}
137
//! Set the auto-hide status of the horizontal toolbar.
138
//! When set to true, the horizontal toolbar will auto-hide itself, only
139
//! making an appearance when the mouse is nearby. When false, it will
140
//! remain on screen.
141
//! @param b to hide or not to hide
142
void setAutoHideHorizontalButtonBar(bool b) {autoHideHorizontalButtonBar=b;}
144
//! Get the auto-hide status of the vertical toolbar.
145
bool getAutoHideVerticalButtonBar() const {return autoHideVerticalButtonBar;}
146
//! Set the auto-hide status of the vertical toolbar.
147
//! When set to true, the vertical toolbar will auto-hide itself, only
148
//! making an appearance when the mouse is nearby. When false, it will
149
//! remain on screen.
150
//! @param b to hide or not to hide
151
void setAutoHideVerticalButtonBar(bool b) {autoHideVerticalButtonBar=b;}
153
//! show or hide the toolbars
154
//! @param b when true, toolbars will be shown, else they will be hidden.
155
void setHideGui(bool b);
156
//! get the current visible status of the toolbars
159
void quitStellarium();
119
162
//! Update the position of the button bars in the main window
120
163
void updateBarsPos();
121
164
void reloadStyle();
122
void quitStellarium();
124
bool getAutoHideHorizontalButtonBar() const {return autoHideHorizontalButtonBar;}
125
void setAutoHideHorizontalButtonBar(bool b) {autoHideHorizontalButtonBar=b;}
127
bool getAutoHideVerticalButtonBar() const {return autoHideVerticalButtonBar;}
128
void setAutoHideVerticalButtonBar(bool b) {autoHideVerticalButtonBar=b;}
165
void cancelDownloadAndQuit();
130
168
//! Called each time a GUI action is triggered
131
169
void guiActionTriggered(bool b=false);
134
void retranslateUi(QWidget *Form);
136
173
class LeftStelBar* winBar;
137
174
BottomStelBar* buttonBar;