StelModule.hpp   StelModule.hpp 
skipping to change at line 55 skipping to change at line 55
//! skyCultureChanged(const QString&) //! skyCultureChanged(const QString&)
//! 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.
Q_ENUMS(StelModuleSelectAction)
Q_ENUMS(StelModuleActionName)
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.
skipping to change at line 111 skipping to change at line 113
//! Handle pinch gesture events. //! Handle pinch gesture events.
//! @param scale the value of the pinch gesture. //! @param scale the value of the pinch gesture.
//! @param started define whether the pinch has just started. //! @param started define whether the pinch has just started.
//! @return true if the event was intercepted. //! @return true if the event was intercepted.
virtual bool handlePinch(qreal scale, bool started) {Q_UNUSED(scale) ; Q_UNUSED(started); return false;} virtual bool handlePinch(qreal scale, bool started) {Q_UNUSED(scale) ; Q_UNUSED(started); return false;}
//! Enum used when selecting objects to define whether to add to, re place, or remove from the existing selection list. //! Enum used when selecting objects to define whether to add to, re place, or remove from the existing selection list.
enum StelModuleSelectAction enum StelModuleSelectAction
{ {
AddToSelection, //!< Add the StelObject to the current l ist of selected ones. AddToSelection, //!< Add the StelObject to the curre nt list of selected ones.
ReplaceSelection, //!< Set the StelObject as the new l ist of selected ones. ReplaceSelection, //!< Set the StelObject as the new l ist of selected ones.
RemoveFromSelection //!< Subtract the StelObject from the cu rrent list of selected ones. RemoveFromSelection //!< Subtract the StelObject from th e current list of selected ones.
}; };
#if QT_VERSION >= 0x050500
Q_ENUM(StelModuleSelectAction)
#endif
//! Define the possible action for which an order is defined //! Define the possible action for which an order is defined
enum StelModuleActionName enum StelModuleActionName
{ {
ActionDraw, //!< Action associated to the draw( ) method ActionDraw, //!< Action associated to the draw( ) method
ActionUpdate, //!< Action associated to the updat e() method ActionUpdate, //!< Action associated to the updat e() method
ActionHandleMouseClicks, //!< Action associated to the handl eMouseClicks() method ActionHandleMouseClicks, //!< Action associated to the handl eMouseClicks() method
ActionHandleMouseMoves, //!< Action associated to the handl eMouseMoves() method ActionHandleMouseMoves, //!< Action associated to the handl eMouseMoves() method
ActionHandleKeys //!< Action associated to the handl eKeys() method ActionHandleKeys //!< Action associated to the handl eKeys() method
}; };
#if QT_VERSION >= 0x050500
Q_ENUM(StelModuleActionName)
#endif
//! Return the value defining the order of call for the given action //! Return the value defining the order of call for the given action
//! For example if stars.callOrder[ActionDraw] == 10 and constellati on.callOrder[ActionDraw] == 11, //! For example if stars.callOrder[ActionDraw] == 10 and constellati on.callOrder[ActionDraw] == 11,
//! the stars module will be drawn before the constellations //! the stars module will be drawn before the constellations
//! @param actionName the name of the action for which we want the c all order //! @param actionName the name of the action for which we want the c all order
//! @return the value defining the order. The closer to 0 the earlie r the module's action will be called //! @return the value defining the order. The closer to 0 the earlie r the module's action will be called
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.
 End of changes. 5 change blocks. 
4 lines changed or deleted 10 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/