Relacs  0.9.8
Classes | Variables
relacs::MacroGUI Namespace Reference

Classes

class  GUIElement
 
class  TreeElement
 
class  DetailElement
 
class  MacroParameter
 
class  MacroCommandInfo
 
class  MacroCommandShell
 
class  MacroCommandBrowse
 
class  MacroCommandStartsession
 
class  MacroCommandStopsession
 
class  MacroCommandShutdown
 
class  MacroCommandControl
 
class  MacroCommandSwitch
 
class  MacroCommandMessage
 
class  MacroCommandFilterDetector
 
class  MacroCommandParameter
 
class  MacroCommandReproMacro
 
class  MacroInfo
 
class  MacroFile
 

Variables

std::map
< MacroCommandParameter::SequenceMode,
SequenceTypeInfo > 
SEQUENCE_INFO
 
static const std::map
< MacroInfo::Keyword,
KeywordInfo > 
KEYWORD_LIST
 
static const std::set
< MacroInfo::Keyword
INVERTED_KEYWORDS
 
static const std::map
< MacroCommandInfo::CommandType,
CommandTypeInfo > 
COMMANDTYPE_LIST
 

Variable Documentation

std::map<MacroCommandParameter::SequenceMode, SequenceTypeInfo> SEQUENCE_INFO
Initial value:
= {
MAP_TYPE(MacroCommandParameter::SequenceMode::UP, "up")
MAP_TYPE(MacroCommandParameter::SequenceMode::DOWN, "down")
{ MacroCommandParameter::SequenceMode::ALTERNATE_IN_UP , { MacroCommandParameter::SequenceMode::ALTERNATE_IN_UP , "alternateinup" , { "alternateinup" , "alternate", "alternatein" } } },
{ MacroCommandParameter::SequenceMode::ALTERNATE_IN_DOWN , { MacroCommandParameter::SequenceMode::ALTERNATE_IN_DOWN , "alternateindown" , { "alternateindown" , "alternatedown" } } },
{ MacroCommandParameter::SequenceMode::ALTERNATE_OUT_UP , { MacroCommandParameter::SequenceMode::ALTERNATE_OUT_UP , "alternateoutup" , { "alternateoutup" , "alternateout" } } },
MAP_TYPE(MacroCommandParameter::SequenceMode::ALTERNATE_OUT_DOWN, "alternateoutdown")
MAP_TYPE(MacroCommandParameter::SequenceMode::RANDOM, "random")
MAP_TYPE(MacroCommandParameter::SequenceMode::PSEUDO_RANDOM, "pseudorandom")
}
#define MAP_TYPE(TYPE, NAME,...)
Definition: macroeditor.cc:610

Referenced by MacroFileWriter::formatValue().

const std::map<MacroInfo::Keyword, KeywordInfo> KEYWORD_LIST
static
Initial value:
= {
{ MacroInfo::Keyword::STARTUP , { MacroInfo::Keyword::STARTUP , "Execute on" , "startup" , "startup" , "test" , false } },
{ MacroInfo::Keyword::SHUTDOWN , { MacroInfo::Keyword::SHUTDOWN , "Execute on" , "shutdown" , "shutdown" , "" , false } },
{ MacroInfo::Keyword::STARTSESSION , { MacroInfo::Keyword::STARTSESSION , "Execute on" , "startsession" , "startsession" , "" , false } },
{ MacroInfo::Keyword::STOPSESSION , { MacroInfo::Keyword::STOPSESSION , "Execute on" , "stopsession" , "stopsession" , "" , false } },
{ MacroInfo::Keyword::FALLBACK , { MacroInfo::Keyword::FALLBACK , "Execute on" , "fallback" , "fallback" , "" , false } },
{ MacroInfo::Keyword::NOKEY , { MacroInfo::Keyword::NOKEY , "Assign" , "hot-key" , "nokey" , "" , true } },
{ MacroInfo::Keyword::NOBUTTON , { MacroInfo::Keyword::NOBUTTON , "Assign" , "macro button" , "nobutton" , "" , true } },
{ MacroInfo::Keyword::NOMENU , { MacroInfo::Keyword::NOMENU , "Assign" , "menu entry" , "nomenu" , "" , true } },
{ MacroInfo::Keyword::KEEP , { MacroInfo::Keyword::KEEP , "Misc" , "keep" , "keep" , "" , false } },
{ MacroInfo::Keyword::OVERWRITE , { MacroInfo::Keyword::OVERWRITE , "Misc" , "overwrite" , "overwrite" , "" , false } },
}

Referenced by MacroInfo::createGUI(), MacroInfo::removeKeyword(), and MacroInfo::setKeyword().

const std::set<MacroInfo::Keyword> INVERTED_KEYWORDS
static
Initial value:
= {
MacroInfo::Keyword::NOKEY, MacroInfo::Keyword::NOBUTTON, MacroInfo::Keyword::NOMENU }
const std::map<MacroCommandInfo::CommandType, CommandTypeInfo> COMMANDTYPE_LIST
static
Initial value:
= {
{ MacroCommandInfo::CommandType::REPRO , { MacroCommandInfo::CommandType::REPRO , "repro" , [] { return new MacroCommandReproMacro (); } } },
{ MacroCommandInfo::CommandType::MACRO , { MacroCommandInfo::CommandType::MACRO , "macro" , [] { return new MacroCommandReproMacro (); } } },
{ MacroCommandInfo::CommandType::CONTROL , { MacroCommandInfo::CommandType::CONTROL , "control" , [] { return new MacroCommandControl (); } } },
{ MacroCommandInfo::CommandType::FILTER , { MacroCommandInfo::CommandType::FILTER , "filter" , [] { return new MacroCommandFilterDetector (); } } },
{ MacroCommandInfo::CommandType::DETECTOR , { MacroCommandInfo::CommandType::DETECTOR , "detector" , [] { return new MacroCommandFilterDetector (); } } },
{ MacroCommandInfo::CommandType::SWITCH , { MacroCommandInfo::CommandType::SWITCH , "switch" , [] { return new MacroCommandSwitch (); } } },
{ MacroCommandInfo::CommandType::START_SESSION , { MacroCommandInfo::CommandType::START_SESSION , "startsession" , [] { return new MacroCommandStartsession (); } } },
{ MacroCommandInfo::CommandType::STOP_SESSION , { MacroCommandInfo::CommandType::STOP_SESSION , "stopsession" , [] { return new MacroCommandStopsession (); } } },
{ MacroCommandInfo::CommandType::SHUTDOWN , { MacroCommandInfo::CommandType::SHUTDOWN , "shutdown" , [] { return new MacroCommandShutdown (); } } },
{ MacroCommandInfo::CommandType::MESSAGE , { MacroCommandInfo::CommandType::MESSAGE , "message" , [] { return new MacroCommandMessage (); } } },
{ MacroCommandInfo::CommandType::BROWSE , { MacroCommandInfo::CommandType::BROWSE , "browse" , [] { return new MacroCommandBrowse (); } } },
{ MacroCommandInfo::CommandType::SHELL , { MacroCommandInfo::CommandType::SHELL , "shell" , [] { return new MacroCommandShell (); } } },
}

Referenced by MacroCommandInfo::MacroCommandInfo(), and MacroCommandInfo::setType().