X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fplugins%2FPluginInterface.h;h=427c3304feeb3b98b8b2ea348e0768c31bf14163;hb=4fda70ff265b1a5a1f37597f57253272a2b22fbf;hp=019dc9a0de223c4f264e3dac2c30b706dab7c097;hpb=2acb66424c20ea4ddd481b37e4b4dcee3acde632;p=qtrapids diff --git a/src/plugins/PluginInterface.h b/src/plugins/PluginInterface.h index 019dc9a..427c330 100644 --- a/src/plugins/PluginInterface.h +++ b/src/plugins/PluginInterface.h @@ -40,20 +40,20 @@ class PluginHostInterface { public: - /// @brief Sets the plugin GUI element to host application - /// @note It is up to the host application to decide how to manage - /// and show the actual widget. - virtual bool setGui(PluginInterface* from, QWidget* widget) = 0; - - /// @brief Adds additional plugin wigdets to the host application. - /// This functio can be called by the plugin recursively, i.e. when GUI events occur - /// The host application must handle placing the additional widgets. - /// @todo Could we implement this using in a more manageable way, e.g. signal-slot? - virtual void addPluginWidget(PluginInterface* from, QWidget* widget) = 0; - virtual void addToolbar(PluginInterface* from, QWidget* widget) = 0; - virtual void addToolItem(PluginInterface* from, QWidget* widget) = 0; - virtual void addMenu(PluginInterface* from, QWidget* widget) = 0; - virtual void addMenuItem(PluginInterface* from, QWidget* widget) = 0; + /// @brief Sets the plugin GUI element to host application + /// @note It is up to the host application to decide how to manage + /// and show the actual widget. + virtual bool setGui(PluginInterface* from, QWidget* widget) = 0; + + /// @brief Adds additional plugin wigdets to the host application. + /// This functio can be called by the plugin recursively, i.e. when GUI events occur + /// The host application must handle placing the additional widgets. + /// @todo Could we implement this using in a more manageable way, e.g. signal-slot? + virtual void addPluginWidget(PluginInterface* from, QWidget* widget) = 0; + virtual void addToolbar(PluginInterface* from, QWidget* widget) = 0; + virtual void addToolItem(PluginInterface* from, QWidget* widget) = 0; + virtual void addMenu(PluginInterface* from, QWidget* widget) = 0; + virtual void addMenuItem(PluginInterface* from, QWidget* widget) = 0; }; ======= >>>>>>> .r31 @@ -70,21 +70,21 @@ public: { public: - >>>>>>> .r31 - /// @brief Sets the plugin GUI element to host application - /// @note It is up to the host application to decide how to manage - /// and show the actual widget. - virtual bool setGui(QWidget* widget) = 0; - - /// @brief Adds additional plugin wigdets to the host application. - /// This functio can be called by the plugin recursively, i.e. when GUI events occur - /// The host application must handle placing the additional widgets. - /// @todo Could we implement this using in a more manageable way, e.g. signal-slot? - virtual void addPluginWidget(QWidget* widget) = 0; - virtual void addToolbar() = 0; - virtual void addToolItem() = 0; - virtual void addMenu() = 0; - virtual void addMenuItem() = 0; + >>>>>>> .r31 + /// @brief Sets the plugin GUI element to host application + /// @note It is up to the host application to decide how to manage + /// and show the actual widget. + virtual bool setGui(QWidget* widget) = 0; + + /// @brief Adds additional plugin wigdets to the host application. + /// This functio can be called by the plugin recursively, i.e. when GUI events occur + /// The host application must handle placing the additional widgets. + /// @todo Could we implement this using in a more manageable way, e.g. signal-slot? + virtual void addPluginWidget(QWidget* widget) = 0; + virtual void addToolbar() = 0; + virtual void addToolItem() = 0; + virtual void addMenu() = 0; + virtual void addMenuItem() = 0; }; @@ -96,9 +96,9 @@ public: class PluginInterface : public QObject { public: - /// @brief Initializes the plugin instance. - virtual void initialize(PluginHostInterface* host) = 0; - virtual QWidget* getGui() = 0; + /// @brief Initializes the plugin instance. + virtual void initialize(PluginHostInterface* host) = 0; + virtual QWidget* getGui() = 0; }; } //namespace qtrapids