The ParameterValueItem class represents items that are added to the ParameterValue listview. More...
#include <DlgParameterImp.h>
Public Member Functions | |
virtual void | appendToGroup ()=0 |
Append this item as leaf to the parameter group. More... | |
virtual void | changeValue ()=0 |
Opens an input dialog to change the value. More... | |
ParameterValueItem (QTreeWidget *parent, const Base::Reference< ParameterGrp > &hcGrp) | |
Constructor. More... | |
virtual void | removeFromGroup ()=0 |
Remove the leaf from the parameter group. More... | |
virtual void | setData (int column, int role, const QVariant &value) |
If the name of the item has changed replace() is invoked. More... | |
virtual | ~ParameterValueItem () |
Protected Member Functions | |
virtual void | replace (const QString &oldName, const QString &newName)=0 |
Replaces the name of the leaf from oldName to newName. More... | |
The ParameterValueItem class represents items that are added to the ParameterValue listview.
Each item represents a leaf in a parameter group and allows interaction with this leaf, such as modifying its name, its value or even remove it from the parameter group.
ParameterValueItem::ParameterValueItem | ( | QTreeWidget * | parent, |
const Base::Reference< ParameterGrp > & | hcGrp | ||
) |
Constructor.
|
virtual |
|
pure virtual |
Append this item as leaf to the parameter group.
Implemented in Gui::Dialog::ParameterText, Gui::Dialog::ParameterInt, Gui::Dialog::ParameterUInt, Gui::Dialog::ParameterFloat, and Gui::Dialog::ParameterBool.
Referenced by Gui::Dialog::ParameterValue::onCreateBoolItem(), Gui::Dialog::ParameterValue::onCreateFloatItem(), Gui::Dialog::ParameterValue::onCreateIntItem(), Gui::Dialog::ParameterValue::onCreateTextItem(), and Gui::Dialog::ParameterValue::onCreateUIntItem().
|
pure virtual |
Opens an input dialog to change the value.
Implemented in Gui::Dialog::ParameterText, Gui::Dialog::ParameterInt, Gui::Dialog::ParameterUInt, Gui::Dialog::ParameterFloat, and Gui::Dialog::ParameterBool.
|
pure virtual |
Remove the leaf from the parameter group.
Implemented in Gui::Dialog::ParameterText, Gui::Dialog::ParameterInt, Gui::Dialog::ParameterUInt, Gui::Dialog::ParameterFloat, and Gui::Dialog::ParameterBool.
|
protectedpure virtual |
Replaces the name of the leaf from oldName to newName.
Implemented in Gui::Dialog::ParameterText, Gui::Dialog::ParameterInt, Gui::Dialog::ParameterUInt, Gui::Dialog::ParameterFloat, and Gui::Dialog::ParameterBool.
Referenced by setData().
If the name of the item has changed replace() is invoked.
References replace(), and Gui::validateInput().
Referenced by package_list.PackageListItemModel::update_item_icon(), and package_list.PackageListItemModel::update_item_status().