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. | |
| virtual void | changeValue ()=0 |
| Opens an input dialog to change the value. | |
| ParameterValueItem (QTreeWidget *parent, const Base::Reference< ParameterGrp > &hcGrp) | |
| Constructor. | |
| virtual void | removeFromGroup ()=0 |
| Remove the leaf from the parameter group. | |
| virtual void | setData (int column, int role, const QVariant &value) |
| If the name of the item has changed replace() is invoked. | |
| 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. | |
Protected Attributes | |
| Base::Reference< ParameterGrp > | _hcGrp |
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.
Definition at line 215 of file DlgParameterImp.h.
| ParameterValueItem::ParameterValueItem | ( | QTreeWidget * | parent, | |
| const Base::Reference< ParameterGrp > & | hcGrp | |||
| ) |
Constructor.
Definition at line 849 of file DlgParameterImp.cpp.
| ParameterValueItem::~ParameterValueItem | ( | ) | [virtual] |
Definition at line 855 of file DlgParameterImp.cpp.
| virtual void Gui::Dialog::ParameterValueItem::appendToGroup | ( | ) | [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().
| virtual void Gui::Dialog::ParameterValueItem::changeValue | ( | ) | [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.
| virtual void Gui::Dialog::ParameterValueItem::removeFromGroup | ( | ) | [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.
| virtual void Gui::Dialog::ParameterValueItem::replace | ( | const QString & | oldName, | |
| const QString & | newName | |||
| ) | [protected, pure 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().
| void ParameterValueItem::setData | ( | int | column, | |
| int | role, | |||
| const QVariant & | value | |||
| ) | [virtual] |
If the name of the item has changed replace() is invoked.
Definition at line 859 of file DlgParameterImp.cpp.
References replace(), and Gui::validateInput().
Definition at line 236 of file DlgParameterImp.h.
Referenced by Gui::Dialog::ParameterBool::appendToGroup(), Gui::Dialog::ParameterFloat::appendToGroup(), Gui::Dialog::ParameterUInt::appendToGroup(), Gui::Dialog::ParameterInt::appendToGroup(), Gui::Dialog::ParameterText::appendToGroup(), Gui::Dialog::ParameterBool::changeValue(), Gui::Dialog::ParameterFloat::changeValue(), Gui::Dialog::ParameterUInt::changeValue(), Gui::Dialog::ParameterInt::changeValue(), Gui::Dialog::ParameterText::changeValue(), Gui::Dialog::ParameterBool::removeFromGroup(), Gui::Dialog::ParameterFloat::removeFromGroup(), Gui::Dialog::ParameterUInt::removeFromGroup(), Gui::Dialog::ParameterInt::removeFromGroup(), Gui::Dialog::ParameterText::removeFromGroup(), Gui::Dialog::ParameterBool::replace(), Gui::Dialog::ParameterFloat::replace(), Gui::Dialog::ParameterUInt::replace(), Gui::Dialog::ParameterInt::replace(), and Gui::Dialog::ParameterText::replace().
1.6.1