Relacs
0.9.8
|
#include <macroeditor.h>
Public Types | |
enum | CommandType { UNKNOWN, FILTER, DETECTOR, CONTROL, MESSAGE, BROWSE, SHELL, SWITCH, START_SESSION, STOP_SESSION, SHUTDOWN, REPRO, MACRO } |
Public Slots | |
void | macroParameterAdded (const std::string &name) |
void | macroParameterRemoved (const std::string &name) |
void | updateTreeDescription () |
Public Member Functions | |
MacroCommandInfo () | |
virtual | ~MacroCommandInfo () |
void | createGUI (MacroEditor *) override |
void | setActivated (bool state) |
void | setType (CommandType type) |
bool | activated () const |
CommandType | type () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::FILTER, MacroCommandFilterDetector * > ::type | command () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::DETECTOR, MacroCommandFilterDetector * > ::type | command () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::CONTROL, MacroCommandControl * >::type | command () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::MESSAGE, MacroCommandMessage * >::type | command () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::BROWSE, MacroCommandBrowse * >::type | command () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::SHELL, MacroCommandShell * >::type | command () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::SWITCH, MacroCommandSwitch * >::type | command () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::START_SESSION, MacroCommandStartsession * > ::type | command () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::STOP_SESSION, MacroCommandStopsession * > ::type | command () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::SHUTDOWN, MacroCommandShutdown * >::type | command () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::REPRO, MacroCommandReproMacro * > ::type | command () const |
template<CommandType TYPE> | |
std::enable_if< TYPE==CommandType::MACRO, MacroCommandReproMacro * > ::type | command () 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 |
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 |
Container class for a macro command
Contains all available macro commands and manages selection and callbacks for them
|
strong |
MacroCommandInfo | ( | ) |
References relacs::MacroGUI::COMMANDTYPE_LIST, and MacroCommandInfo::REPRO.
|
virtual |
|
overridevirtual |
Implements GUIElement< MacroEditor >.
References MacroCommandInfo::activated(), MacroEditor::addDetailView(), GUIElement< T >::createGUI(), DetailElement< T >::detailView(), DetailElement< MacroEditor >::DetailView, MacroCommandInfo::DETECTOR, MacroEditor::detectors(), MacroCommandInfo::FILTER, MacroEditor::filters(), GUIElement< MacroEditor >::GuiCreated, MacroCommandInfo::MACRO, MacroEditor::macros(), GUIElement< MacroEditor >::owner(), GUIElement< MacroEditor >::Owner, MacroCommandInfo::REPRO, MacroEditor::repros(), MacroCommandReproMacro::setAvailable(), TreeElement< MacroEditor >::TreeItem, and MacroCommandInfo::updateTreeDescription().
Referenced by MacroInfo::addCommand().
void setActivated | ( | bool | state | ) |
References GUIElement< MacroEditor >::GuiCreated.
void setType | ( | CommandType | type | ) |
|
inline |
Referenced by MacroCommandInfo::createGUI().
|
inline |
Referenced by MacroCommandInfo::setType().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
slot |
References MacroCommandInfo::MACRO, and MacroCommandInfo::REPRO.
|
slot |
References MacroCommandInfo::MACRO, and MacroCommandInfo::REPRO.
|
slot |
References MacroCommandFilterDetector::active(), MacroCommandFilterDetector::all(), MacroCommandInfo::BROWSE, MacroCommandShell::command(), MacroCommandInfo::DETECTOR, MacroCommandInfo::FILTER, GUIElement< MacroEditor >::GuiCreated, MacroCommandInfo::MACRO, MacroCommandInfo::MESSAGE, MacroCommandInfo::REPRO, MacroCommandInfo::SHELL, MacroCommandInfo::SWITCH, MacroCommandMessage::text(), MacroCommandMessage::title(), and TreeElement< MacroEditor >::TreeItem.
Referenced by MacroCommandInfo::createGUI(), MacroCommandShell::createGUI(), MacroCommandBrowse::createGUI(), MacroCommandSwitch::createGUI(), MacroCommandMessage::createGUI(), MacroCommandFilterDetector::createGUI(), MacroCommandFilterDetector::setActive(), MacroCommandReproMacro::setActive(), MacroCommandFilterDetector::setAll(), MacroCommandFilterDetector::setAvailable(), MacroCommandShell::setCommand(), MacroCommandBrowse::setPath(), MacroCommandSwitch::setPath(), MacroCommandMessage::setText(), MacroCommandMessage::setTitle(), and MacroCommandInfo::setType().