Relacs  0.9.8
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Friends | List of all members
MacroInfo Class Reference

#include <macroeditor.h>

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

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

Detailed Description

Represents a single Macro

Contains parameters, commands and manages flags

Member Enumeration Documentation

enum Keyword
strong
Enumerator
STARTUP 
SHUTDOWN 
STARTSESSION 
STOPSESSION 
FALLBACK 
NOKEY 
NOBUTTON 
NOMENU 
KEEP 
OVERWRITE 

Constructor & Destructor Documentation

~MacroInfo ( )
virtual

Member Function Documentation

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)
overridevirtual
const std::string& name ( void  ) const
inline

Referenced by MacroInfo::setName().

const std::set<Keyword>& keywords ( ) const
inline
const std::vector<MacroCommandInfo*>& commands ( ) const
inline
const std::vector<MacroParameter*>& parameter ( ) const
inline
std::vector<MacroCommandInfo*>& commands ( )
inlineprotected
void macroParameterAdded ( const std::string &  name)
signal
void macroParameterRemoved ( const std::string &  name)
signal
void macroNameChanged ( const std::string &  newName,
const std::string &  oldName 
)
signal
void macroParameterChanged ( const std::string &  oldName,
const std::string &  newName 
)
slot

Friends And Related Function Documentation

friend class ::relacs::MacroEditor
friend

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