StelGui.hpp   StelGui.hpp 
skipping to change at line 48 skipping to change at line 48
class QGraphicsTextItem; class QGraphicsTextItem;
class QTimeLine; class QTimeLine;
class StelButton; class StelButton;
class BottomStelBar; class BottomStelBar;
//! The informations about the currently selected object //! The informations about the currently selected object
class InfoPanel : public QGraphicsTextItem class InfoPanel : public QGraphicsTextItem
{ {
public: public:
InfoPanel(QGraphicsItem* parent); InfoPanel(QGraphicsItem* parent);
void setInfoTextFilters(const StelObject::InfoStringGroup& flags) {i nfoTextFilters=flags;} void setInfoTextFilters(const StelObject::InfoStringGroup& aflags) { infoTextFilters=aflags;}
const StelObject::InfoStringGroup& getInfoTextFilters(void) const {r eturn infoTextFilters;} const StelObject::InfoStringGroup& getInfoTextFilters(void) const {r eturn infoTextFilters;}
void setTextFromObjects(const QList<StelObjectP>&); void setTextFromObjects(const QList<StelObjectP>&);
private: private:
StelObject::InfoStringGroup infoTextFilters; StelObject::InfoStringGroup infoTextFilters;
}; };
//! @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 QAction/shortcuts.
class StelGui : public StelModule class StelGui : public StelModule
skipping to change at line 111 skipping to change at line 111
QAction* addGuiActions(const QString& actionName, const QString& tex t, const QString& shortCut, const QString& helpGroup, bool checkable=true, bool autoRepeat=false, const QString& persistenceName=QString()); QAction* addGuiActions(const QString& actionName, const QString& tex t, const QString& shortCut, const QString& helpGroup, bool checkable=true, bool autoRepeat=false, const QString& persistenceName=QString());
//! Get a pointer on an action managed by the GUI //! Get a pointer on an action managed by the GUI
//! @param actionName qt object name for this action //! @param actionName qt object name for this action
//! @return a pointer on the QAction object or NULL if don't exist //! @return a pointer on the QAction object or NULL if don't exist
QAction* getGuiActions(const QString& actionName); QAction* getGuiActions(const QString& actionName);
//! Get the button bar at the bottom of the screen //! Get the button bar at the bottom of the screen
BottomStelBar* getButtonBar() {return buttonBar;} BottomStelBar* getButtonBar() {return buttonBar;}
//! Get the button bar of the left of the screen
class LeftStelBar* getWindowsButtonBar() {return winBar;}
//! Transform the pixmap so that it look red for night vision mode //! Transform the pixmap so that it look red for night vision mode
static QPixmap makeRed(const QPixmap& p); static QPixmap makeRed(const QPixmap& p);
//! Get whether the buttons toggling image flip are visible //! Get whether the buttons toggling image flip are visible
bool getFlagShowFlipButtons() {return flagShowFlipButtons;} bool getFlagShowFlipButtons() {return flagShowFlipButtons;}
//! 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() {return flagShowNebulaBackg roundButton;}
//! returns true if the gui has complted init process. //! returns true if the gui has complted init process.
skipping to change at line 155 skipping to change at line 158
//! 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) {autoHideVerticalButtonBar =b;} void setAutoHideVerticalButtonBar(bool b) {autoHideVerticalButtonBar =b;}
//! show or hide the toolbars //! show or hide the toolbars
//! @param b when true, toolbars will be shown, else they will be hi dden. //! @param b when true, toolbars will be shown, else they will be hi dden.
void setHideGui(bool b); void setHideGui(bool b);
//! get the current visible status of the toolbars //! get the current visible status of the toolbars
bool getHideGui(); bool getHideGui();
//! toggle the status of the toolbars
void toggleHideGui(void) {setHideGui(!getHideGui());}
void quitStellarium(); void quitStellarium();
private slots: private slots:
//! Update the position of the button bars in the main window //! Update the position of the button bars in the main window
void updateBarsPos(); void updateBarsPos();
void reloadStyle(); void reloadStyle();
void cancelDownloadAndQuit(); void cancelDownloadAndQuit();
void dontQuit(); void dontQuit();
//! Called each time a GUI action is triggered //! Called each time a GUI action is triggered
void guiActionTriggered(bool b=false); void guiActionTriggered(bool b=false);
private: private:
void retranslateUi(QWidget *Form);
class LeftStelBar* winBar; class LeftStelBar* winBar;
BottomStelBar* buttonBar; BottomStelBar* buttonBar;
InfoPanel* infoPanel; InfoPanel* infoPanel;
class StelBarsPath* buttonBarPath; class StelBarsPath* buttonBarPath;
QTimeLine* animLeftBarTimeLine; QTimeLine* animLeftBarTimeLine;
QTimeLine* animBottomBarTimeLine; QTimeLine* animBottomBarTimeLine;
StelButton* buttonTimeRewind; StelButton* buttonTimeRewind;
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 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/