StelGui.hpp   StelGui.hpp 
skipping to change at line 31 skipping to change at line 31
#define _STELGUI_HPP_ #define _STELGUI_HPP_
#include "StelModule.hpp" #include "StelModule.hpp"
#include "StelObject.hpp" #include "StelObject.hpp"
#include "StelGuiBase.hpp" #include "StelGuiBase.hpp"
#include "StelStyle.hpp" #include "StelStyle.hpp"
#include <QGraphicsTextItem> #include <QGraphicsTextItem>
class QGraphicsSceneMouseEvent; class QGraphicsSceneMouseEvent;
class QAction;
class QTimeLine; class QTimeLine;
class StelButton; class StelButton;
class BottomStelBar; class BottomStelBar;
class InfoPanel; class InfoPanel;
class ConfigurationDialog; class ConfigurationDialog;
class DateTimeDialog; class DateTimeDialog;
class HelpDialog; class HelpDialog;
class LocationDialog; class LocationDialog;
class SearchDialog; class SearchDialog;
class ViewDialog; class ViewDialog;
class ShortcutsDialog; class ShortcutsDialog;
#ifdef ENABLE_SCRIPT_CONSOLE #ifdef ENABLE_SCRIPT_CONSOLE
class ScriptConsole; class ScriptConsole;
#endif #endif
//! @class StelGui //! @class StelGui
//! Main class for the GUI based on QGraphicView. //! Main class for the GUI based on QGraphicView.
//! It manages the various qt configuration windows, the buttons bars, the list of QAction/shortcuts. //! It manages the various qt configuration windows, the buttons bars, the list of shortcuts.
class StelGui : public QObject, public StelGuiBase class StelGui : public QObject, public StelGuiBase
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(bool visible READ getVisible WRITE setVisible)
Q_PROPERTY(bool autoHideHorizontalButtonBar READ getAutoHideHorizont
alButtonBar WRITE setAutoHideHorizontalButtonBar)
Q_PROPERTY(bool autoHideVerticalButtonBar READ getAutoHideVerticalBu
ttonBar WRITE setAutoHideVerticalButtonBar)
public: public:
friend class ViewDialog; friend class ViewDialog;
StelGui(); StelGui();
virtual ~StelGui(); virtual ~StelGui();
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// Methods defined in the StelModule class // Methods defined in the StelModule class
//! Initialize the StelGui object. //! Initialize the StelGui object.
virtual void init(QGraphicsWidget* topLevelGraphicsWidget, StelAppGr aphicsWidget* stelAppGraphicsWidget); virtual void init(QGraphicsWidget* topLevelGraphicsWidget);
void update(); void update();
StelStyle getStelStyle() const {return currentStelStyle;} StelStyle getStelStyle() const {return currentStelStyle;}
//////////////////////////////////////////////////////////////////// /////// //////////////////////////////////////////////////////////////////// ///////
// 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.
//! When the progress bar is deleted with removeProgressBar() the la
yout is automatically rearranged.
//! @return a pointer to the progress bar
class QProgressBar* addProgressBar();
//! Get the button bar at the bottom of the screensetDateTime //! Get the button bar at the bottom of the screensetDateTime
BottomStelBar* getButtonBar() const; 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() const; class LeftStelBar* getWindowsButtonBar() const;
//! Get the SkyGui instance (useful for adding other interface eleme nts). //! Get the SkyGui instance (useful for adding other interface eleme nts).
//! It will return a valid object only if called after init(). //! It will return a valid object only if called after init().
class SkyGui* getSkyGui() const; class SkyGui* getSkyGui() const;
skipping to change at line 112 skipping to change at line 110
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* getGuiAction(const QString& actionName);
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;
//! Set the auto-hide status of the horizontal toolbar. //! Set the auto-hide status of the horizontal toolbar.
skipping to change at line 163 skipping to change at line 159
private slots: private slots:
void reloadStyle(); void reloadStyle();
#ifndef DISABLE_SCRIPTING #ifndef DISABLE_SCRIPTING
void scriptStarted(); void scriptStarted();
void scriptStopped(); void scriptStopped();
#endif #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 eclipticJ2000GridDisplayedUpdated(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); void copySelectedObjectInfo(void);
private: private:
//! convenience method to find an action in the StelActionMgr.
StelAction* getAction(const QString& actionName);
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;
StelButton* buttonGotoSelectedObject; StelButton* buttonGotoSelectedObject;
skipping to change at line 217 skipping to change at line 195
#endif #endif
bool flagShowFlipButtons; bool flagShowFlipButtons;
StelButton* flipVert; StelButton* flipVert;
StelButton* flipHoriz; StelButton* flipHoriz;
bool flagShowNebulaBackgroundButton; bool flagShowNebulaBackgroundButton;
StelButton* btShowNebulaeBackground; StelButton* btShowNebulaeBackground;
bool initDone; bool initDone;
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_PLUGIN_METADATA(IID "stellarium.StelGuiPluginInterface/1.0")
Q_INTERFACES(StelGuiPluginInterface)
public: public:
virtual class StelGuiBase* getStelGuiBase() const; virtual class StelGuiBase* getStelGuiBase() const;
}; };
#endif // _STELGUI_HPP_ #endif // _STELGUI_HPP_
 End of changes. 11 change blocks. 
47 lines changed or deleted 14 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/