StelGui.hpp   StelGui.hpp 
skipping to change at line 23 skipping to change at line 23
* 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., 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_
#ifndef NO_GUI
#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 QTimeLine; class QTimeLine;
class StelButton; class StelButton;
skipping to change at line 91 skipping to change at line 93
//! 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;
//! 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;
bool getFlagShowDecimalDegrees() const;
//! returns true if the gui has completed init process. //! returns true if the gui has completed 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();
skipping to change at line 200 skipping to change at line 200
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 flagShowDecimalDegrees;
QSizeF savedProgressBarSize; QSizeF savedProgressBarSize;
// Currently used StelStyle // Currently used StelStyle
StelStyle currentStelStyle; StelStyle currentStelStyle;
}; };
//! Allow to load the GUI as a static plugin #else // NO_GUI
class StelStandardGuiPluginInterface : public QObject, public StelGuiPlugin
Interface #include "StelGuiBase.hpp"
#include <QProgressBar>
class StelGui : public StelGuiBase
{ {
Q_OBJECT
Q_PLUGIN_METADATA(IID "stellarium.StelGuiPluginInterface/1.0")
Q_INTERFACES(StelGuiPluginInterface)
public: public:
virtual class StelGuiBase* getStelGuiBase() const; StelGui() {;}
~StelGui() {;}
virtual void init(QGraphicsWidget* topLevelGraphicsWidget, class Ste
lAppGraphicsWidget* stelAppGraphicsWidget) {;}
virtual void updateI18n() {;}
virtual void setStelStyle(const QString& section) {;}
virtual void setInfoTextFilters(const StelObject::InfoStringGroup& a
flags) {dummyInfoTextFilter=aflags;}
virtual const StelObject::InfoStringGroup& getInfoTextFilters() cons
t {return dummyInfoTextFilter;}
virtual QProgressBar* addProgressBar() {return new QProgressBar;}
virtual QAction* addGuiActions(const QString& actionName, const QStr
ing& text, const QString& shortCut, const QString& helpGroup, bool checkabl
e=true, bool autoRepeat=false) {return NULL;}
virtual void forceRefreshGui() {;}
virtual void setVisible(bool b) {visible=b;}
virtual bool getVisible() const {return visible;}
virtual bool isCurrentlyUsed() const {return false;}
private:
StelObject::InfoStringGroup dummyInfoTextFilter;
bool visible;
}; };
#endif
#endif // _STELGUI_HPP_ #endif // _STELGUI_HPP_
 End of changes. 7 change blocks. 
11 lines changed or deleted 31 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/