Relacs
0.9.8
|
#include <macroeditor.h>
Classes | |
struct | MetaData |
Public Types | |
enum | InputType { DIRECT, REFERENCE, SEQUENCE_SINGLE, SEQUENCE_LIST } |
enum | SequenceMode { UP, DOWN, ALTERNATE_IN_UP, ALTERNATE_IN_DOWN, ALTERNATE_OUT_UP, ALTERNATE_OUT_DOWN, RANDOM, PSEUDO_RANDOM } |
Public Slots | |
void | setMinimum (int min) |
void | setMaximum (int max) |
void | setStep (int step) |
void | setResolution (int resolution) |
Public Member Functions | |
void | setName (const std::string &name) |
void | setType (InputType type) |
void | setValue (const std::string &value) |
void | setUnit (const std::string &unit) |
void | setAvailableReferences (const std::vector< std::string > &refs) |
void | setReference (const std::string &ref) |
void | setList (const std::string &list) |
void | setMode (SequenceMode mode) |
void | createGUI (MacroCommandReproMacro *) |
QTreeWidgetItem * | listItem () const |
void | updatedReferences (const std::string &name, bool added) |
const std::string & | name () const |
InputType | type () const |
const std::string & | value () const |
const std::string & | unit () const |
const std::string & | reference () const |
int | min () const |
int | max () const |
int | step () const |
int | resolution () const |
const std::string & | list () const |
SequenceMode | mode () const |
Public Member Functions inherited from DetailElement< MacroCommandReproMacro > | |
QWidget * | detailView () const |
Public Member Functions inherited from GUIElement< MacroCommandReproMacro > | |
virtual | ~GUIElement () |
MacroCommandReproMacro * | owner () const |
Additional Inherited Members | |
Protected Attributes inherited from DetailElement< MacroCommandReproMacro > | |
QWidget * | DetailView |
Protected Attributes inherited from GUIElement< MacroCommandReproMacro > | |
bool | GuiCreated |
MacroCommandReproMacro * | Owner |
Represents a parameter for the Macro or Repro command
May be one of the following types:
|
strong |
|
strong |
void setName | ( | const std::string & | name | ) |
void setType | ( | InputType | type | ) |
void setValue | ( | const std::string & | value | ) |
void setUnit | ( | const std::string & | unit | ) |
void setAvailableReferences | ( | const std::vector< std::string > & | refs | ) |
void setReference | ( | const std::string & | ref | ) |
|
slot |
References GUIElement< MacroCommandReproMacro >::GuiCreated, and MacroCommandParameter::value().
Referenced by MacroCommandParameter::createGUI().
|
slot |
References GUIElement< MacroCommandReproMacro >::GuiCreated, and MacroCommandParameter::value().
Referenced by MacroCommandParameter::createGUI().
|
slot |
References GUIElement< MacroCommandReproMacro >::GuiCreated, and MacroCommandParameter::value().
Referenced by MacroCommandParameter::createGUI().
|
slot |
References GUIElement< MacroCommandReproMacro >::GuiCreated, and MacroCommandParameter::value().
Referenced by MacroCommandParameter::createGUI().
void setList | ( | const std::string & | list | ) |
void setMode | ( | SequenceMode | mode | ) |
|
virtual |
Implements GUIElement< MacroCommandReproMacro >.
References DetailElement< MacroCommandReproMacro >::DetailView, MacroCommandParameter::DIRECT, GUIElement< MacroCommandReproMacro >::GuiCreated, relacs::max(), MacroCommandParameter::REFERENCE, MacroCommandParameter::Reference, MacroCommandParameter::SEQUENCE_LIST, MacroCommandParameter::SEQUENCE_SINGLE, MacroCommandParameter::setMaximum(), MacroCommandParameter::setMinimum(), MacroCommandParameter::setResolution(), and MacroCommandParameter::setStep().
Referenced by MacroCommandReproMacro::addParameter(), and MacroCommandReproMacro::createGUI().
|
inline |
void updatedReferences | ( | const std::string & | name, |
bool | added | ||
) |
|
inline |
|
inline |
Referenced by MacroFileWriter::formatValue(), and MacroCommandParameter::setType().
|
inline |
|
inline |
Referenced by MacroFileWriter::formatValue().
|
inline |
References MacroCommandParameter::Reference.
Referenced by MacroFileWriter::formatValue().
|
inline |
Referenced by MacroFileWriter::formatValue().
|
inline |
Referenced by MacroFileWriter::formatValue().
|
inline |
Referenced by MacroFileWriter::formatValue().
|
inline |
Referenced by MacroFileWriter::formatValue().
|
inline |
Referenced by MacroFileWriter::formatValue(), and MacroCommandParameter::setList().
|
inline |
Referenced by MacroFileWriter::formatValue(), and MacroCommandParameter::setMode().
std::string Value |
std::vector<std::string> AvailableReferences |
std::string Reference |
int Min = 0 |
int Max = 100 |
int Step = 1 |
int Resolution = 1 |
SequenceMode Mode = SequenceMode::UP |
std::string List |
QLineEdit* Value |
QLineEdit* Unit |
QComboBox* References |
QSpinBox* Min |
QSpinBox* Max |
QSpinBox* Step |
QSpinBox* Resolution |
QComboBox* Mode |
QLineEdit* List |