StelGui.hpp   StelGui.hpp 
skipping to change at line 17 skipping to change at line 17
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _STELGUI_HPP_ #ifndef _STELGUI_HPP_
#define _STELGUI_HPP_ #define _STELGUI_HPP_
#include "StelModule.hpp" #include "StelModule.hpp"
#include "StelObject.hpp" #include "StelObject.hpp"
#include "LocationDialog.hpp" #include "LocationDialog.hpp"
#include "ViewDialog.hpp" #include "ViewDialog.hpp"
#include "HelpDialog.hpp" #include "HelpDialog.hpp"
skipping to change at line 76 skipping to change at line 76
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods specific to the StelGui class // Methods specific to the StelGui class
//! Load a Qt style sheet to define the widgets style //! Load a Qt style sheet to define the widgets style
void loadStyle(const QString& fileName); void loadStyle(const QString& fileName);
//! Add a new progress bar in the lower right corner of the screen. //! Add a new progress bar in the lower right corner of the screen.
//! When the progress bar is deleted with removeProgressBar() the la yout is automatically rearranged. //! When the progress bar is deleted with removeProgressBar() the la yout is automatically rearranged.
//! @return a pointer to the progress bar //! @return a pointer to the progress bar
class QProgressBar* addProgressBar(); class QProgressBar* addProgressBar();
//! Get the button bar at the bottom of the screen //! Get the button bar at the bottom of the screensetDateTime
BottomStelBar* getButtonBar(); BottomStelBar* getButtonBar() const;
//! Get the button bar of the left of the screen //! Get the button bar of the left of the screen
class LeftStelBar* getWindowsButtonBar(); class LeftStelBar* getWindowsButtonBar() const;
//! Get the SkyGui instance (useful for adding other interface eleme
nts).
//! It will return a valid object only if called after init().
class SkyGui* getSkyGui() const;
//! Get whether the buttons toggling image flip are visible //! Get whether the buttons toggling image flip are visible
bool getFlagShowFlipButtons() {return flagShowFlipButtons;} bool getFlagShowFlipButtons() const;
//! Get whether the button toggling nebulae background is visible //! Get whether the button toggling nebulae background is visible
bool getFlagShowNebulaBackgroundButton() {return flagShowNebulaBackg roundButton;} bool getFlagShowNebulaBackgroundButton() const;
//! returns true if the gui has complted init process. //! returns true if the gui has complted init process.
bool initComplete(void) {return initDone;} bool initComplete(void) const;
#ifdef ENABLE_SCRIPT_CONSOLE #ifdef ENABLE_SCRIPT_CONSOLE
ScriptConsole* getScriptConsole() {return &scriptConsole;} ScriptConsole* getScriptConsole() {return &scriptConsole;}
#endif #endif
//! Used to force a refreshing of the GUI elements such as the butto n bars. //! Used to force a refreshing of the GUI elements such as the butto n bars.
virtual void forceRefreshGui(); virtual void forceRefreshGui();
virtual void setVisible(bool b); virtual void setVisible(bool b);
virtual bool getVisible() const; virtual bool getVisible() const;
virtual bool isCurrentlyUsed() const; virtual bool isCurrentlyUsed() const;
virtual void setInfoTextFilters(const StelObject::InfoStringGroup& a flags); virtual void setInfoTextFilters(const StelObject::InfoStringGroup& a flags);
virtual const StelObject::InfoStringGroup& getInfoTextFilters() cons t; virtual const StelObject::InfoStringGroup& getInfoTextFilters() cons t;
virtual QAction* addGuiActions(const QString& actionName, const QStr virtual QAction* addGuiActions(const QString& actionName,
ing& text, const QString& shortCut, const QString& helpGroup, bool checkabl const QSt
e=true, bool autoRepeat=false); ring& text,
const QSt
ring& shortCut,
const QSt
ring& helpGroup,
bool chec
kable=true,
bool auto
Repeat=false);
public slots: public slots:
//! Define whether the buttons toggling image flip should be visible //! Define whether the buttons toggling image flip should be visible
void setFlagShowFlipButtons(bool b); void setFlagShowFlipButtons(bool b);
//! Define whether the button toggling nebulae background should be visible //! Define whether the button toggling nebulae background should be visible
void setFlagShowNebulaBackgroundButton(bool b); void setFlagShowNebulaBackgroundButton(bool b);
//! Get the auto-hide status of the horizontal toolbar. //! Get the auto-hide status of the horizontal toolbar.
bool getAutoHideHorizontalButtonBar() const; bool getAutoHideHorizontalButtonBar() const;
skipping to change at line 134 skipping to change at line 143
//! Get the auto-hide status of the vertical toolbar. //! Get the auto-hide status of the vertical toolbar.
bool getAutoHideVerticalButtonBar() const; bool getAutoHideVerticalButtonBar() const;
//! Set the auto-hide status of the vertical toolbar. //! Set the auto-hide status of the vertical toolbar.
//! When set to true, the vertical toolbar will auto-hide itself, on ly //! When set to true, the vertical toolbar will auto-hide itself, on ly
//! making an appearance when the mouse is nearby. When false, it w ill //! making an appearance when the mouse is nearby. When false, it w ill
//! remain on screen. //! remain on screen.
//! @param b to hide or not to hide //! @param b to hide or not to hide
void setAutoHideVerticalButtonBar(bool b); void setAutoHideVerticalButtonBar(bool b);
#ifndef DISABLE_SCRIPTING
//! change keys when a script is running / not running //! change keys when a script is running / not running
void setScriptKeys(bool b); void setScriptKeys(bool b);
void increaseScriptSpeed(); void increaseScriptSpeed();
void decreaseScriptSpeed(); void decreaseScriptSpeed();
void setRealScriptSpeed(); void setRealScriptSpeed();
#endif
//! Hide or show the GUI. Public so it can be called from scripts. //! Hide or show the GUI. Public so it can be called from scripts.
void setGuiVisible(bool); void setGuiVisible(bool);
private slots: private slots:
void reloadStyle(); void reloadStyle();
#ifndef DISABLE_SCRIPTING
void scriptStarted(); void scriptStarted();
void scriptStopped(); void scriptStopped();
#endif
//! Load color scheme from the given ini file and section name //! Load color scheme from the given ini file and section name
void setStelStyle(const QString& section); void setStelStyle(const QString& section);
void quit(); void quit();
void updateI18n(); void updateI18n();
//! Process changes from the ConstellationMgr
void artDisplayedUpdated(const bool displayed);
void boundariesDisplayedUpdated(const bool displayed);
void linesDisplayedUpdated(const bool displayed);
void namesDisplayedUpdated(const bool displayed);
//! Process changes from the GridLinesMgr
void azimuthalGridDisplayedUpdated(const bool displayed);
void equatorGridDisplayedUpdated(const bool displayed);
void equatorJ2000GridDisplayedUpdated(const bool displayed);
void galacticGridDisplayedUpdated(const bool displayed);
void equatorLineDisplayedUpdated(const bool displayed);
void eclipticLineDisplayedUpdated(const bool displayed);
void meridianLineDisplayedUpdated(const bool displayed);
void horizonLineDisplayedUpdated(const bool displayed);
void galacticPlaneLineDisplayedUpdated(const bool displayed);
//! Process changes from the LandscapeMgr
void atmosphereDisplayedUpdated(const bool displayed);
void cardinalsPointsDisplayedUpdated(const bool displayed);
void fogDisplayedUpdated(const bool displayed);
void landscapeDisplayedUpdated(const bool displayed);
void copySelectedObjectInfo(void);
private: private:
QGraphicsWidget* topLevelGraphicsWidget; QGraphicsWidget* topLevelGraphicsWidget;
class SkyGui* skyGui; class SkyGui* skyGui;
StelButton* buttonTimeRewind; StelButton* buttonTimeRewind;
StelButton* buttonTimeRealTimeSpeed; StelButton* buttonTimeRealTimeSpeed;
StelButton* buttonTimeCurrent; StelButton* buttonTimeCurrent;
StelButton* buttonTimeForward; StelButton* buttonTimeForward;
skipping to change at line 188 skipping to change at line 222
bool flagShowNebulaBackgroundButton; bool flagShowNebulaBackgroundButton;
StelButton* btShowNebulaeBackground; StelButton* btShowNebulaeBackground;
bool initDone; bool initDone;
bool guiHidden; bool guiHidden;
QSizeF savedProgressBarSize; QSizeF savedProgressBarSize;
// Currently used StelStyle // Currently used StelStyle
StelStyle currentStelStyle; StelStyle currentStelStyle;
// This method is used by init() to initialize the ConstellationMgr
instance.
void initConstellationMgr();
// This method is used by init() to initialize the GridLineMgr insta
nce.
void initGrindLineMgr();
// This method is used by init() to initialize the LandscapeMgr inst
ance.
void initLandscapeMgr();
}; };
//! Allow to load the GUI as a static plugin //! Allow to load the GUI as a static plugin
class StelStandardGuiPluginInterface : public QObject, public StelGuiPlugin Interface class StelStandardGuiPluginInterface : public QObject, public StelGuiPlugin Interface
{ {
Q_OBJECT Q_OBJECT
Q_INTERFACES(StelGuiPluginInterface) Q_INTERFACES(StelGuiPluginInterface)
public: public:
virtual class StelGuiBase* getStelGuiBase() const; virtual class StelGuiBase* getStelGuiBase() const;
}; };
 End of changes. 13 change blocks. 
10 lines changed or deleted 60 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/