The ParameterValue class displays all leaves of a parameter group. More...
#include <DlgParameterImp.h>
Public Member Functions | |
Base::Reference< ParameterGrp > | currentGroup () const |
Returns the current parameter group that is displayed. More... | |
ParameterValue (QWidget *parent=nullptr) | |
void | setCurrentGroup (const Base::Reference< ParameterGrp > &_hcGrp) |
Sets the current parameter group that is displayed. More... | |
virtual | ~ParameterValue () |
Protected Slots | |
bool | edit (const QModelIndex &index, EditTrigger trigger, QEvent *event) |
Defines that the first column is editable. More... | |
void | onChangeSelectedItem () |
void | onChangeSelectedItem (QTreeWidgetItem *, int) |
Changes the value of the leaf of the selected item. More... | |
void | onCreateBoolItem () |
Creates and appends a new "boolean" leaf. More... | |
void | onCreateFloatItem () |
Creates and appends a new "float" leaf. More... | |
void | onCreateIntItem () |
Creates and appends a new "integer" leaf. More... | |
void | onCreateTextItem () |
Creates and appends a new "text" leaf. More... | |
void | onCreateUIntItem () |
Creates and appends a new "unsigned integer" leaf. More... | |
void | onDeleteSelectedItem () |
Remove the underlying leaf from the parameter group. More... | |
void | onRenameSelectedItem () |
Changes the name of the leaf of the selected item. More... | |
Protected Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) |
Shows the context menu. More... | |
void | keyPressEvent (QKeyEvent *event) |
Invokes onDeleteSelectedItem() if the "Del" key was pressed. More... | |
void | resizeEvent (QResizeEvent *) |
The ParameterValue class displays all leaves of a parameter group.
A leaf is represented by the ParameterValueItem class.
ParameterValue::ParameterValue | ( | QWidget * | parent = nullptr | ) |
|
virtual |
|
protected |
Shows the context menu.
Base::Reference< ParameterGrp > ParameterValue::currentGroup | ( | ) | const |
Returns the current parameter group that is displayed.
|
protectedslot |
Defines that the first column is editable.
Referenced by PathScripts.PathToolLibraryEditor.CommandToolLibraryEdit::Activated(), and onCreateUIntItem().
|
protected |
Invokes onDeleteSelectedItem() if the "Del" key was pressed.
References onDeleteSelectedItem().
|
protectedslot |
References onChangeSelectedItem().
Referenced by onChangeSelectedItem(), and ParameterValue().
|
protectedslot |
Changes the value of the leaf of the selected item.
|
protectedslot |
Creates and appends a new "boolean" leaf.
References Gui::Dialog::ParameterValueItem::appendToGroup(), draftfunctions.svgtext::getText(), and Gui::validateInput().
Referenced by ParameterValue().
|
protectedslot |
Creates and appends a new "float" leaf.
References Gui::Dialog::ParameterValueItem::appendToGroup(), draftfunctions.svgtext::getText(), and Gui::validateInput().
Referenced by ParameterValue().
|
protectedslot |
Creates and appends a new "integer" leaf.
References Gui::Dialog::ParameterValueItem::appendToGroup(), draftfunctions.svgtext::getText(), and Gui::validateInput().
Referenced by ParameterValue().
|
protectedslot |
Creates and appends a new "text" leaf.
References Gui::Dialog::ParameterValueItem::appendToGroup(), draftfunctions.svgtext::getText(), and Gui::validateInput().
Referenced by ParameterValue().
|
protectedslot |
Creates and appends a new "unsigned integer" leaf.
References Gui::Dialog::ParameterValueItem::appendToGroup(), edit(), draftfunctions.svgtext::getText(), Gui::Dialog::DlgInputDialogImp::getUIntBox(), Gui::Dialog::DlgInputDialogImp::UIntBox, and Gui::validateInput().
Referenced by ParameterValue().
|
protectedslot |
Remove the underlying leaf from the parameter group.
The selected item is also removed and destroyed.
Referenced by keyPressEvent(), and ParameterValue().
|
protectedslot |
Changes the name of the leaf of the selected item.
Referenced by ParameterValue().
|
protected |
void ParameterValue::setCurrentGroup | ( | const Base::Reference< ParameterGrp > & | _hcGrp | ) |
Sets the current parameter group that is displayed.