Commit 16d63af7 authored by Ben Boeckel's avatar Ben Boeckel

plugin templates: use override

parent f85d60db
......@@ -46,15 +46,15 @@ class @ARG_CLASS_NAME@Implementation : public QObject, public pqActionGroupInter
Q_INTERFACES(pqActionGroupInterface)
public:
@ARG_CLASS_NAME@Implementation(QObject* p);
~@ARG_CLASS_NAME@Implementation();
~@ARG_CLASS_NAME@Implementation() override;
/// the identifier for this action group
/// return "ToolBar/MyTools to put them in a toolbar called MyTools
/// return "MenuBar/MyMenu to put the actions under MyMenu
virtual QString groupName();
QString groupName() override;
/// the instance of the QActionGroup that defines the actions
virtual QActionGroup* actionGroup();
QActionGroup* actionGroup() override;
protected:
QActionGroup* ActionGroup;
};
......
......@@ -43,14 +43,14 @@ class @ARG_CLASS_NAME@Implementation : public QObject, public pqAutoStartInterfa
Q_INTERFACES(pqAutoStartInterface)
public:
@ARG_CLASS_NAME@Implementation(QObject* p=0);
virtual ~@ARG_CLASS_NAME@Implementation();
~@ARG_CLASS_NAME@Implementation() override;
/// Called once after the ParaView starts. If ParaView is already running when
/// the plugin is loaded, this method will be called when the plugin is loaded.
virtual void startup();
void startup() override;
/// Called once before the program shuts down.
virtual void shutdown();
void shutdown() override;
protected:
@ARG_CLASS_NAME@ *UserImplementation;
};
......
......@@ -45,8 +45,8 @@ class @PANEL_NAME@Implementation : public QObject, public pqDisplayPanelInterfac
Q_INTERFACES(pqDisplayPanelInterface)
public:
@PANEL_NAME@Implementation(QObject* p);
virtual pqDisplayPanel* createPanel(pqRepresentation* display, QWidget* p);
virtual bool canCreatePanel(pqRepresentation* display) const;
pqDisplayPanel* createPanel(pqRepresentation* display, QWidget* p) override;
bool canCreatePanel(pqRepresentation* display) const override;
};
#endif
......
......@@ -45,8 +45,8 @@ class @ARG_CLASS_NAME@Implementation : public QObject, public pqDockWindowInterf
Q_INTERFACES(pqDockWindowInterface)
public:
@ARG_CLASS_NAME@Implementation(QObject* p);
virtual QString dockArea() const;
virtual QDockWidget* dockWindow(QWidget* p);
QString dockArea() const override;
QDockWidget* dockWindow(QWidget* p) override;
protected:
QDockWidget *MyDock;
......
......@@ -43,26 +43,26 @@ class @name@Implementation : public QObject, public pqPropertyWidgetInterface
Q_INTERFACES(pqPropertyWidgetInterface)
public:
@name@Implementation(QObject* parent);
virtual ~@name@Implementation();
~@name@Implementation() override;
/// Given a proxy and its property, create a widget for the same, of possible.
/// For unsupported/unknown proxies/properties, implementations should simply
/// return NULL without raising any errors (or messages).
virtual pqPropertyWidget* createWidgetForProperty(vtkSMProxy *proxy,
vtkSMProperty *property);
pqPropertyWidget* createWidgetForProperty(vtkSMProxy *proxy,
vtkSMProperty *property) override;
/// Given a proxy and its property group, create a widget for the same, of possible.
/// For unsupported/unknown proxies/property-groups, implementations should simply
/// return NULL without raising any errors (or messages).
virtual pqPropertyWidget* createWidgetForPropertyGroup(vtkSMProxy *proxy,
vtkSMPropertyGroup *group);
pqPropertyWidget* createWidgetForPropertyGroup(vtkSMProxy *proxy,
vtkSMPropertyGroup *group) override;
/// Given the type of the decorator and the pqPropertyWidget that needs to be
/// decorated, create the pqPropertyWidgetDecorator instance, if possible.
/// For unsupported/unknown, implementations should simply return NULL without
/// raising any errors (or messages).
virtual pqPropertyWidgetDecorator* createWidgetDecorator(
const QString& type, vtkPVXMLElement* config, pqPropertyWidget* widget);
pqPropertyWidgetDecorator* createWidgetDecorator(
const QString& type, vtkPVXMLElement* config, pqPropertyWidget* widget) override;
private:
Q_DISABLE_COPY(@name@Implementation)
......
......@@ -14,7 +14,7 @@ class @ARG_TYPE@ServerManagerModelImplementation : public QObject,
Q_INTERFACES(pqServerManagerModelInterface);
public:
@ARG_TYPE@ServerManagerModelImplementation(QObject* parentObject=NULL);
virtual ~@ARG_TYPE@ServerManagerModelImplementation();
~@ARG_TYPE@ServerManagerModelImplementation() override;
/// Creates a pqProxy subclass for the vtkSMProxy given the details for its
/// registration with the proxy manager.
......@@ -22,8 +22,8 @@ public:
/// \arg \c regName - registration name for the proxy.
/// \arg \c proxy - vtkSMProxy instance to create the pqProxy for.
/// \arg \c server - pqServer instance on which the proxy is present.
virtual pqProxy* createPQProxy(const QString& regGroup,
const QString& regName, vtkSMProxy* proxy, pqServer* server) const;
pqProxy* createPQProxy(const QString& regGroup,
const QString& regName, vtkSMProxy* proxy, pqServer* server) const override;
private:
Q_DISABLE_COPY(@ARG_TYPE@ServerManagerModelImplementation)
......
......@@ -46,15 +46,15 @@ class @ARG_CLASS_NAME@Implementation : public QObject, public pqViewFrameActionG
Q_INTERFACES(pqViewFrameActionGroupInterface)
public:
@ARG_CLASS_NAME@Implementation(QObject* p);
~@ARG_CLASS_NAME@Implementation();
~@ARG_CLASS_NAME@Implementation() override;
/// Add/remove plugin's actions to/from the frame
/// depending on the view type. Returns true if it did.
virtual bool connect(pqMultiViewFrame*, pqView*);
virtual bool disconnect(pqMultiViewFrame*, pqView*);
bool connect(pqMultiViewFrame*, pqView*) override;
bool disconnect(pqMultiViewFrame*, pqView*) override;
/// the instance of the QActionGroup that defines the actions
virtual pqViewFrameActionGroup* actionGroup();
pqViewFrameActionGroup* actionGroup() override;
protected:
pqViewFrameActionGroup* ActionGroup;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment