StelModule.hpp   StelModule.hpp 
skipping to change at line 56 skipping to change at line 56
//! Update sky culture, i.e. load data if necessary and translate them t o current sky language if needed. //! Update sky culture, i.e. load data if necessary and translate them t o current sky language if needed.
//! colorSchemeChanged(const QString&) //! colorSchemeChanged(const QString&)
//! Load the given color style //! Load the given color style
class StelModule : public QObject class StelModule : public QObject
{ {
Q_OBJECT Q_OBJECT
// Do not add Q_OBJECT here!! // Do not add Q_OBJECT here!!
// This make this class compiled by the Qt moc compiler and for some unknown reasons makes it impossible to dynamically // This make this class compiled by the Qt moc compiler and for some unknown reasons makes it impossible to dynamically
// load plugins on windows. // load plugins on windows.
public: public:
StelModule() {;} StelModule();
virtual ~StelModule() {;} virtual ~StelModule() {;}
//! Initialize itself. //! Initialize itself.
//! If the initialization takes significant time, the progress shoul d be displayed on the loading bar. //! If the initialization takes significant time, the progress shoul d be displayed on the loading bar.
virtual void init() = 0; virtual void init() = 0;
//! Called before the module will be delete, and before the openGL c ontext is suppressed. //! Called before the module will be delete, and before the openGL c ontext is suppressed.
//! Deinitialize all openGL texture in this method. //! Deinitialize all openGL texture in this method.
virtual void deinit() {;} virtual void deinit() {;}
skipping to change at line 141 skipping to change at line 141
virtual double getCallOrder(StelModuleActionName actionName) const { Q_UNUSED(actionName); return 0;} virtual double getCallOrder(StelModuleActionName actionName) const { Q_UNUSED(actionName); return 0;}
//! Detect or show the configuration GUI elements for the module. T his is to be used with //! Detect or show the configuration GUI elements for the module. T his is to be used with
//! plugins to display a configuration dialog from the plugin list w indow. //! plugins to display a configuration dialog from the plugin list w indow.
//! @param show if true, make the configuration GUI visible. If fal se, hide the config GUI if there is one. //! @param show if true, make the configuration GUI visible. If fal se, hide the config GUI if there is one.
//! @return true if the module has a configuration GUI, else false. //! @return true if the module has a configuration GUI, else false.
virtual bool configureGui(bool show=true) {Q_UNUSED(show); return fa lse;} virtual bool configureGui(bool show=true) {Q_UNUSED(show); return fa lse;}
protected: protected:
//! convenience methods to add an action to the StelActionMgr object //! convenience methods to add an action (call to slot) to the StelA
. ctionMgr object.
//! @param id unique identifier. Should be called actionMy_Action. (
i.e., start with "action" and then "Capitalize_Underscore" style.)
//! @param groupId string to be used in the Help menu. The action wi
ll be listed in this group.
//! @param text short translatable description what the action does.
//! @param target recipient of the call
//! @param slot name of slot in target recipient
//! @param shortcut default shortcut. Can be reconfigured.
//! @param altShortcut default alternative shortcut. Can be reconfig
ured.
class StelAction* addAction(const QString& id, const QString& groupI d, const QString& text, class StelAction* addAction(const QString& id, const QString& groupI d, const QString& text,
QObject* target, const char* slot, QObject* target, const char* slot,
const QString& shortcut="", const QStrin g& altShortcut=""); const QString& shortcut="", const QStrin g& altShortcut="");
//! convenience methods to add an action to the StelActionMgr object //! convenience methods to add an action (call to own slot) to the S
. telActionMgr object.
//! @param id unique identifier. Should be called actionMy_Action. (
i.e., start with "action" and then "Capitalize_Underscore" style.)
//! @param groupId string to be used in the Help menu. The action wi
ll be listed in this group.
//! @param text short translatable description what the action does.
//! @param slot name of slot in target recipient
//! @param shortcut default shortcut. Can be reconfigured.
//! @param altShortcut default alternative shortcut. Can be reconfig
ured.
class StelAction* addAction(const QString& id, const QString& groupI d, const QString& text, class StelAction* addAction(const QString& id, const QString& groupI d, const QString& text,
const char* slot, const char* slot,
const QString& shortcut="", const QStrin g& altShortcut="") { const QString& shortcut="", const QStrin g& altShortcut="") {
return addAction(id, groupId, text, this, slot, shortcut, al tShortcut); return addAction(id, groupId, text, this, slot, shortcut, al tShortcut);
} }
}; };
Q_DECLARE_METATYPE(StelModule::StelModuleSelectAction) Q_DECLARE_METATYPE(StelModule::StelModuleSelectAction)
#endif // _STELMODULE_HPP_ #endif // _STELMODULE_HPP_
 End of changes. 3 change blocks. 
5 lines changed or deleted 24 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/