StelGuiBase.hpp   StelGuiBase.hpp 
skipping to change at line 52 skipping to change at line 52
//! Get a pointer on the info panel used to display selected object info //! Get a pointer on the info panel used to display selected object info
virtual void setInfoTextFilters(const StelObject::InfoStringGroup& a flags) =0; virtual void setInfoTextFilters(const StelObject::InfoStringGroup& a flags) =0;
virtual const StelObject::InfoStringGroup& getInfoTextFilters() cons t =0; virtual const StelObject::InfoStringGroup& getInfoTextFilters() cons t =0;
//! 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 the layout is automatically re arranged. //! When the progress bar is deleted the layout is automatically re arranged.
//! @return a pointer to the progress bar. //! @return a pointer to the progress bar.
virtual class QProgressBar* addProgressBar() =0; virtual class QProgressBar* addProgressBar() =0;
//! Add a new action managed by the GUI. This method should be used
to add new shortcuts to the program
//! @param actionName qt object name. Used as a reference for later
uses
//! @param text the text to display when hovering, or in the help wi
ndow
//! @param shortCut the qt shortcut to use
//! @param helpGroup hint on how to group the text in the help windo
w
//! @param checkable whether the action should be checkable
//! @param autoRepeat whether the action should be autorepeated
//! @param global whether the action should be global (affect in dia
logs)
virtual QAction* addGuiActions(const QString& actionName, const QStr
ing& text, const QString& shortCut, const QString& helpGroup, bool checkabl
e=true, bool autoRepeat=false, bool global=false);
//! Get a pointer on an action managed by the GUI
//! @param actionName qt object name for this action
//! @return a pointer on the QAction object or NULL if don't exist
virtual QAction* getGuiActions(const QString& actionName);
virtual void forceRefreshGui() {;} virtual void forceRefreshGui() {;}
//! Show whether the GUI is visible. //! Show whether the GUI is visible.
//! @param b when true, GUI will be shown, else it will be hidden. //! @param b when true, GUI will be shown, else it will be hidden.
virtual void setVisible(bool b) =0; virtual void setVisible(bool b) =0;
//! Get the current visible status of the GUI. //! Get the current visible status of the GUI.
virtual bool getVisible() const =0; virtual bool getVisible() const =0;
//! Show wether the Gui is currently used. //! Show wether the Gui is currently used.
//! This can then be used to optimize the rendering to increase reac tivity. //! This can then be used to optimize the rendering to increase reac tivity.
virtual bool isCurrentlyUsed() const =0; virtual bool isCurrentlyUsed() const =0;
skipping to change at line 96 skipping to change at line 81
//! Define the interface to implement when creating a GUI plugin. //! Define the interface to implement when creating a GUI plugin.
//! The interface is used by the <a href="http://doc.trolltech.com/4.5/qplu ginloader.html">QPluginLoader</a> to load Stellarium plugins dynamically. //! The interface is used by the <a href="http://doc.trolltech.com/4.5/qplu ginloader.html">QPluginLoader</a> to load Stellarium plugins dynamically.
class StelGuiPluginInterface class StelGuiPluginInterface
{ {
public: public:
virtual ~StelGuiPluginInterface() {} virtual ~StelGuiPluginInterface() {}
//! Get the instance of StelGuiBase implmenting the GUI. //! Get the instance of StelGuiBase implmenting the GUI.
virtual class StelGuiBase* getStelGuiBase() const = 0; virtual class StelGuiBase* getStelGuiBase() const = 0;
}; };
Q_DECLARE_INTERFACE(StelGuiPluginInterface, "stellarium.StelGuiPluginInterf ace/1.0"); Q_DECLARE_INTERFACE(StelGuiPluginInterface, "stellarium.StelGuiPluginInterf ace/1.0")
#endif // _STELGUIBASE_HPP_ #endif // _STELGUIBASE_HPP_
 End of changes. 2 change blocks. 
23 lines changed or deleted 1 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/