Relacs Core Library
0.9.8
|
#include <macroeditor.h>
Public Types | |
enum | Keyword { STARTUP, SHUTDOWN, STARTSESSION, STOPSESSION, FALLBACK, NOKEY, NOBUTTON, NOMENU, KEEP, OVERWRITE } |
Public Slots | |
void | macroParameterChanged (const std::string &oldName, const std::string &newName) |
Signals | |
void | macroParameterAdded (const std::string &name) |
void | macroParameterRemoved (const std::string &name) |
void | macroNameChanged (const std::string &newName, const std::string &oldName) |
Public Member Functions | |
virtual | ~MacroInfo () |
void | setName (const std::string &name) |
void | setKeyword (Keyword keyword) |
void | removeKeyword (Keyword keyword) |
void | addParameter (MacroParameter *param) |
void | removeParameter (MacroParameter *param) |
void | addCommand (MacroCommandInfo *command) |
void | removeCommand (MacroCommandInfo *command) |
void | removeCommand (QTreeWidgetItem *item) |
void | createGUI (MacroEditor *parent) override |
const std::string & | name () const |
const std::set< Keyword > & | keywords () const |
const std::vector < MacroCommandInfo * > & | commands () const |
const std::vector < MacroParameter * > & | parameter () const |
Public Member Functions inherited from TreeElement< MacroEditor > | |
QTreeWidgetItem * | treeItem () const |
Public Member Functions inherited from GUIElement< MacroEditor > | |
virtual | ~GUIElement () |
MacroEditor * | owner () const |
Public Member Functions inherited from DetailElement< MacroEditor > | |
QWidget * | detailView () const |
Protected Member Functions | |
std::vector< MacroCommandInfo * > & | commands () |
Friends | |
class | ::relacs::MacroEditor |
Additional Inherited Members | |
Protected Attributes inherited from TreeElement< MacroEditor > | |
QTreeWidgetItem * | TreeItem |
Protected Attributes inherited from GUIElement< MacroEditor > | |
bool | GuiCreated |
MacroEditor * | Owner |
Protected Attributes inherited from DetailElement< MacroEditor > | |
QWidget * | DetailView |
Represents a single Macro
Contains parameters, commands and manages flags
|
strong |
|
virtual |
void setName | ( | const std::string & | name | ) |
void setKeyword | ( | Keyword | keyword | ) |
References GUIElement< MacroEditor >::GuiCreated, and relacs::MacroGUI::KEYWORD_LIST.
void removeKeyword | ( | Keyword | keyword | ) |
References GUIElement< MacroEditor >::GuiCreated, and relacs::MacroGUI::KEYWORD_LIST.
void addParameter | ( | MacroParameter * | param | ) |
void removeParameter | ( | MacroParameter * | param | ) |
void addCommand | ( | MacroCommandInfo * | command | ) |
void removeCommand | ( | MacroCommandInfo * | command | ) |
References GUIElement< MacroEditor >::GuiCreated, TreeElement< T >::treeItem(), and TreeElement< MacroEditor >::treeItem().
Referenced by MacroInfo::removeCommand().
void removeCommand | ( | QTreeWidgetItem * | item | ) |
References MacroInfo::removeCommand().
|
overridevirtual |
Implements GUIElement< MacroEditor >.
References MacroEditor::addDetailView(), MacroInfo::addParameter(), DetailElement< MacroEditor >::DetailView, GUIElement< MacroEditor >::GuiCreated, relacs::MacroGUI::KEYWORD_LIST, MacroInfo::macroNameChanged(), MacroInfo::macroParameterAdded(), MacroInfo::macroParameterChanged(), MacroInfo::macroParameterRemoved(), GUIElement< MacroEditor >::owner(), GUIElement< MacroEditor >::Owner, MacroInfo::removeParameter(), MacroInfo::STARTUP, and TreeElement< MacroEditor >::TreeItem.
Referenced by MacroFile::addMacro().
|
inline |
Referenced by MacroInfo::setName().
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
signal |
Referenced by MacroInfo::addParameter(), MacroInfo::createGUI(), and MacroInfo::macroParameterChanged().
|
signal |
Referenced by MacroInfo::createGUI(), MacroInfo::macroParameterChanged(), and MacroInfo::removeParameter().
|
signal |
Referenced by MacroInfo::createGUI(), and MacroInfo::setName().
|
slot |
References MacroInfo::macroParameterAdded(), and MacroInfo::macroParameterRemoved().
Referenced by MacroInfo::createGUI().
|
friend |