Public Types | |
enum | ElementType { NONE, STATIC, PATH, INPUT_BOX, CHECK_BOX, LINE_EDIT, COMBO_BOX, COMBO_OPTION, IMAGES, DIR_BUTTON, END } |
enum | SliceCount { ALL_BUT_ONE = -2, ALL_SLICES = -1, NO_SLICES = 0, SINGLE_SLICE = 1, DOUBLE_SLICE = 2 } |
Public Member Functions | |
ToolFlagElement (ToolFlag *parent, ToolFlagElement *guiParent) | |
ToolFlagElement (ToolFlag *parent, const QString &staticText) | |
ToolFlagElement * | Clone (ToolFlag *flag, ToolFlagElement *lastComboBox) |
void | AppendArg (QStringList *args, VolumeIndex *slice, VolumeIndex *nextStack, const QString &fileName, bool first, Tool *tool, QHash< QString, QStringList > &outputFiles) |
void | Initialize (int &row, ProcessSettings *settings, const QHash< QString, QStringList > &possibleFiles) |
void | InitializeInputBox (int &row, ProcessSettings *settings, const QStringList &possibleFiles, bool isDefault) |
void | InitializeCheckBox (int &row, ProcessSettings *settings) |
void | InitializeComboBox (int &row, ProcessSettings *settings) |
void | InitializeComboOption () |
void | InitializeLineEdit (int &row, ProcessSettings *settings) |
void | InitializeDirButton (int &row, ProcessSettings *settings) |
void | DetachFromGui (ProcessSettings *settings) |
void | UpdateEnabledStatus () |
void | AddInputFilesToComboBox (const QStringList &inputFiles) |
void | LoadFromXml (QXmlStreamReader &xml) |
void | SaveToXml (QXmlStreamWriter &xml) |
bool | AppendElement (QStringList *args, VolumeIndex *index, const QString &fileNameOverride, Tool *tool, QHash< QString, QStringList > &outputFiles) |
int | GetStartEndIndices (bool &ok, int &sliceIdx, const QList< VolumeIndex * > &slices) |
void | ConnectCheckboxSignal (ToolFlag *flag, const QString &type) |
void | ConnectInputBoxSignal (ToolFlag *flag, const QString &type) |
void | DisableGuiObject () |
Static Public Member Functions | |
static ToolFlagElement * | CreateFromXml (ToolFlag *parent, ToolFlagElement *guiParent, QXmlStreamReader &xml) |
static bool | ControlGreaterThan (int lhs, int rhs) |
Friends | |
ToolFlag * | ToolFlag::Clone () |
int | ToolFlag::GetMaxControlCount () |
void ToolFlagElement::LoadFromXml | ( | QXmlStreamReader & | xml ) |
Reads the ToolFlagElement from xml. Used in connection with ToolFlag. ToolFlagElement consists of the different types of flags that can be used. Some require user input, others do not.
All flags support the following flags.