StelGui.hpp   StelGui.hpp 
skipping to change at line 25 skipping to change at line 25
* 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., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * 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 "ViewDialog.hpp"
#include "HelpDialog.hpp"
#include "DateTimeDialog.hpp"
#include "SearchDialog.hpp"
#include "ConfigurationDialog.hpp"
#ifdef ENABLE_SCRIPT_CONSOLE
#include "ScriptConsole.hpp"
#endif
#include "StelGuiBase.hpp" #include "StelGuiBase.hpp"
#include "StelStyle.hpp" #include "StelStyle.hpp"
#include <QGraphicsTextItem> #include <QGraphicsTextItem>
class QGraphicsSceneMouseEvent; class QGraphicsSceneMouseEvent;
class QAction; class QAction;
class QTimeLine; class QTimeLine;
class StelButton; class StelButton;
class BottomStelBar; class BottomStelBar;
class InfoPanel; class InfoPanel;
class ConfigurationDialog;
class DateTimeDialog;
class HelpDialog;
class LocationDialog;
class SearchDialog;
class ViewDialog;
#ifdef ENABLE_SCRIPT_CONSOLE
class ScriptConsole;
#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 QAction/shortcuts.
class StelGui : public QObject, public StelGuiBase class StelGui : public QObject, public StelGuiBase
{ {
Q_OBJECT Q_OBJECT
public: public:
friend class ViewDialog; friend class ViewDialog;
skipping to change at line 96 skipping to change at line 96
//! Get whether the buttons toggling image flip are visible //! Get whether the buttons toggling image flip are visible
bool getFlagShowFlipButtons() const; bool getFlagShowFlipButtons() const;
//! Get whether the button toggling nebulae background is visible //! Get whether the button toggling nebulae background is visible
bool getFlagShowNebulaBackgroundButton() const; bool getFlagShowNebulaBackgroundButton() const;
//! returns true if the gui has complted init process. //! returns true if the gui has complted init process.
bool initComplete(void) const; 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;
skipping to change at line 150 skipping to change at line 150
//! 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 #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();
void stopScript();
void pauseScript();
void resumeScript();
#endif #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 #ifndef DISABLE_SCRIPTING
void scriptStarted(); void scriptStarted();
void scriptStopped(); void scriptStopped();
skipping to change at line 200 skipping to change at line 203
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;
LocationDialog locationDialog; LocationDialog* locationDialog;
HelpDialog helpDialog; HelpDialog* helpDialog;
DateTimeDialog dateTimeDialog; DateTimeDialog* dateTimeDialog;
SearchDialog searchDialog; SearchDialog* searchDialog;
ViewDialog viewDialog; ViewDialog* viewDialog;
ConfigurationDialog* configurationDialog; ConfigurationDialog* configurationDialog;
#ifdef ENABLE_SCRIPT_CONSOLE #ifdef ENABLE_SCRIPT_CONSOLE
ScriptConsole scriptConsole; ScriptConsole* scriptConsole;
#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;
 End of changes. 6 change blocks. 
16 lines changed or deleted 19 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/