StelGuiBase.hpp   StelGuiBase.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 _STELGUIBASE_HPP_ #ifndef _STELGUIBASE_HPP_
#define _STELGUIBASE_HPP_ #define _STELGUIBASE_HPP_
#include "StelObject.hpp" #include "StelObject.hpp"
#include <QtPlugin>
class QGraphicsWidget; class QGraphicsWidget;
class QAction; class QAction;
//! @class StelGuiBase //! @class StelGuiBase
//! Abstract class defining the base interface for all GUIs. //! Abstract class defining the base interface for all GUIs.
class StelGuiBase class StelGuiBase
{ {
public: public:
StelGuiBase(); StelGuiBase();
virtual ~StelGuiBase() {;} virtual ~StelGuiBase() {;}
skipping to change at line 59 skipping to change at line 57
//! 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;
}; };
//! @class StelGuiPluginInterface
//! 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.
class StelGuiPluginInterface
{
public:
virtual ~StelGuiPluginInterface() {}
//! Get the instance of StelGuiBase implmenting the GUI.
virtual class StelGuiBase* getStelGuiBase() const = 0;
};
Q_DECLARE_INTERFACE(StelGuiPluginInterface, "stellarium.StelGuiPluginInterf
ace/1.0")
#endif // _STELGUIBASE_HPP_ #endif // _STELGUIBASE_HPP_
 End of changes. 2 change blocks. 
17 lines changed or deleted 0 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/