Eneboo - Documentación para desarrolladores
|
#include <actioninterface.h>
Tipos públicos | |
enum | Location { Toolbar, Menu } |
Métodos públicos | |
virtual QAction * | create (const QString &name, QObject *parent=0)=0 |
virtual QString | group (const QString &name) const =0 |
virtual bool | location (const QString &name, Location l) const =0 |
virtual void | connectTo (QUnknownInterface *appInterface)=0 |
To add actions to the Qt Designer menubars and toolbars, implement this interface. You have to implement the create(), group() and connectTo() functions.
You also have to implement the function featureList() (
virtual void ActionInterface::connectTo | ( | QUnknownInterface * | appInterface | ) | [pure virtual] |
virtual QAction* ActionInterface::create | ( | const QString & | name, |
QObject * | parent = 0 |
||
) | [pure virtual] |
This functions is called to create the action with the name name. parent should be used as parent of the action.
In the implementation return the QAction object for the action name.
In the implementation of the interface return the name of the group of the action name.
In the implementation of the interface return whether the action name should appear in the location l