Relacs  0.9.8
Public Types | Public Slots | Public Member Functions | List of all members
MacroCommandInfo Class Reference

#include <macroeditor.h>

Inheritance diagram for MacroCommandInfo:
Inheritance graph
[legend]
Collaboration diagram for MacroCommandInfo:
Collaboration graph
[legend]

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 ()
 
MacroEditorowner () 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
 
MacroEditorOwner
 
- Protected Attributes inherited from DetailElement< MacroEditor >
QWidget * DetailView
 

Detailed Description

Container class for a macro command

Contains all available macro commands and manages selection and callbacks for them

Member Enumeration Documentation

enum CommandType
strong
Enumerator
UNKNOWN 
FILTER 
DETECTOR 
CONTROL 
MESSAGE 
BROWSE 
SHELL 
SWITCH 
START_SESSION 
STOP_SESSION 
SHUTDOWN 
REPRO 
MACRO 

Constructor & Destructor Documentation

~MacroCommandInfo ( )
virtual

Member Function Documentation

void createGUI ( MacroEditor owner)
overridevirtual
void setActivated ( bool  state)
void setType ( CommandType  type)
bool activated ( ) const
inline
CommandType type ( void  ) const
inline
std::enable_if<TYPE == CommandType::FILTER , MacroCommandFilterDetector *>::type command ( ) const
inline
std::enable_if<TYPE == CommandType::DETECTOR , MacroCommandFilterDetector *>::type command ( ) const
inline
std::enable_if<TYPE == CommandType::CONTROL , MacroCommandControl *>::type command ( ) const
inline
std::enable_if<TYPE == CommandType::MESSAGE , MacroCommandMessage *>::type command ( ) const
inline
std::enable_if<TYPE == CommandType::BROWSE , MacroCommandBrowse *>::type command ( ) const
inline
std::enable_if<TYPE == CommandType::SHELL , MacroCommandShell *>::type command ( ) const
inline
std::enable_if<TYPE == CommandType::SWITCH , MacroCommandSwitch *>::type command ( ) const
inline
std::enable_if<TYPE == CommandType::START_SESSION , MacroCommandStartsession *>::type command ( ) const
inline
std::enable_if<TYPE == CommandType::STOP_SESSION , MacroCommandStopsession *>::type command ( ) const
inline
std::enable_if<TYPE == CommandType::SHUTDOWN , MacroCommandShutdown *>::type command ( ) const
inline
std::enable_if<TYPE == CommandType::REPRO , MacroCommandReproMacro *>::type command ( ) const
inline
std::enable_if<TYPE == CommandType::MACRO , MacroCommandReproMacro *>::type command ( ) const
inline
void macroParameterAdded ( const std::string &  name)
slot
void macroParameterRemoved ( const std::string &  name)
slot
void updateTreeDescription ( )
slot

The documentation for this class was generated from the following files: