|
Canorus
0.0
|
#include <pluginaction.h>

Signals | |
| void | triggered (QAction *, bool) |
| Connected to triggered(), calls plugin->callAction() More... | |
Public Member Functions | |
| CAPluginAction (CAPlugin *plugin, QString name, QString lang, QString function, QList< QString > args, QString filename) | |
| CAPlugin * | plugin () |
| QString | name () |
| QString | lang () |
| QString | function () |
| const QList< QString > & | args () |
| QString | filename () |
| QString | onAction () |
| QString | exportFilter (QString lang) |
| QString | localExportFilter () |
| QString | importFilter (QString lang) |
| QString | localImportFilter () |
| QString | localeText (QString lang) |
| QString | localText () |
| bool | refresh () |
| void | setPlugin (CAPlugin *plugin) |
| void | setName (QString name) |
| void | setLang (QString lang) |
| void | setFunction (QString function) |
| void | addArgument (QString arg) |
| bool | removeArgument (QString arg) |
| void | setFilename (QString filename) |
| void | setOnAction (QString onAction) |
| void | setExportFilter (QString lang, QString value) |
| void | setExportFilters (QHash< QString, QString > f) |
| void | setImportFilter (QString lang, QString value) |
| void | setImportFilters (QHash< QString, QString > f) |
| void | setLocaleText (QString lang, QString value) |
| void | setTexts (QHash< QString, QString > t) |
| void | setRefresh (bool refresh) |
Private Slots | |
| void | triggeredSlot (bool) |
| Should the UI be rebuilt when calling the action. More... | |
Private Attributes | |
| CAPlugin * | _plugin |
| QString | _name |
| Pointer to the plugin which this action belongs to. More... | |
| QString | _lang |
| Action name. More... | |
| QString | _function |
| Scripting language. More... | |
| QList< QString > | _args |
| Function name. More... | |
| QString | _filename |
| Function arguments. More... | |
| QString | _onAction |
| Filename which has the function. More... | |
| QHash< QString, QString > | _exportFilter |
| Canorus internal action which this action reacts on. More... | |
| QHash< QString, QString > | _importFilter |
| Text written in export dialog's filter. More... | |
| QHash< QString, QString > | _text |
| Text written in import dialog's filter. More... | |
| bool | _refresh |
| Text written on a menu item or the toolbar button. More... | |
Copyright (c) 2007-2009, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.
Copyright (c) 2007-2009, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.
CAPluginAction class represents each <action> stanza found in Canorus Plugin descriptor XML file. Every action has its unique name, scripting language, function, its arguments and filename. Other attributes are Canorus internal action which it reacts on, export filter, menu/toolbar text.
| CAPluginAction::CAPluginAction | ( | CAPlugin * | plugin, |
| QString | name, | ||
| QString | lang, | ||
| QString | function, | ||
| QList< QString > | args, | ||
| QString | filename | ||
| ) |
Default constructor.
References _args, _filename, _function, _lang, _name, _plugin, args(), filename(), lang(), name(), plugin(), triggered(), and triggeredSlot().

|
inline |
References _args.
|
inline |
|
inline |
References _exportFilter, and lang().
Referenced by localExportFilter(), and localImportFilter().


|
inline |
References _filename.
Referenced by CAPluginAction(), and setFilename().

|
inline |
References _function.
|
inline |
References _importFilter, and lang().
Referenced by localImportFilter().


|
inline |
References _lang.
Referenced by CAPluginAction(), exportFilter(), importFilter(), localeText(), setExportFilter(), setImportFilter(), setLang(), and setLocaleText().

|
inline |
Referenced by localText().


|
inline |
|
inline |
References _importFilter, exportFilter(), importFilter(), and name().

|
inline |
References _text, localeText(), and name().
Referenced by setLocaleText(), and setTexts().


|
inline |
References _name.
Referenced by CAPluginAction(), localExportFilter(), localImportFilter(), localText(), and setName().

|
inline |
|
inline |
References _plugin.
Referenced by CAPluginAction(), and setPlugin().

|
inline |
|
inline |
References _args.
|
inline |
|
inline |
References _exportFilter.
|
inline |
|
inline |
References _function.
|
inline |
|
inline |
References _importFilter.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
signal |
Connected to triggered(), calls plugin->callAction()
Referenced by CAPluginAction().

|
privateslot |
Should the UI be rebuilt when calling the action.
This method and the class itself exists mainly because you can't connect signal actionMyAction_triggered() and others than connecting them with slots. And to do that, you need a Q_OBJECT class with pre-set function slots. This function is a pretty elegant solution to connect plugin's reactions to internal Canorus GUI signals.
References _plugin, and CAPlugin::callAction().
Referenced by CAPluginAction().


|
private |
Function name.
Referenced by addArgument(), args(), CAPluginAction(), and removeArgument().
|
private |
Canorus internal action which this action reacts on.
Referenced by exportFilter(), localExportFilter(), setExportFilter(), and setExportFilters().
|
private |
Function arguments.
Referenced by CAPluginAction(), filename(), and setFilename().
|
private |
Scripting language.
Referenced by CAPluginAction(), function(), and setFunction().
|
private |
Text written in export dialog's filter.
Referenced by importFilter(), localImportFilter(), setImportFilter(), and setImportFilters().
|
private |
Action name.
Referenced by CAPluginAction(), lang(), and setLang().
|
private |
Pointer to the plugin which this action belongs to.
Referenced by CAPluginAction(), name(), and setName().
|
private |
Filename which has the function.
Referenced by onAction(), and setOnAction().
|
private |
Referenced by CAPluginAction(), plugin(), setPlugin(), and triggeredSlot().
|
private |
Text written on a menu item or the toolbar button.
Referenced by refresh(), and setRefresh().
|
private |
Text written in import dialog's filter.
Referenced by localeText(), localText(), setLocaleText(), and setTexts().