Gui::Dialog::ParameterValueItem Class Referenceabstract

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...
 

Detailed Description

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.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ ParameterValueItem()

ParameterValueItem::ParameterValueItem ( QTreeWidget parent,
const Base::Reference< ParameterGrp > &  hcGrp 
)

Constructor.

◆ ~ParameterValueItem()

ParameterValueItem::~ParameterValueItem ( )
virtual

Member Function Documentation

◆ appendToGroup()

◆ changeValue()

virtual void Gui::Dialog::ParameterValueItem::changeValue ( )
pure virtual

◆ removeFromGroup()

virtual void Gui::Dialog::ParameterValueItem::removeFromGroup ( )
pure virtual

◆ replace()

virtual void Gui::Dialog::ParameterValueItem::replace ( const QString &  oldName,
const QString &  newName 
)
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().

◆ setData()

void ParameterValueItem::setData ( int  column,
int  role,
const QVariant &  value 
)
virtual

The documentation for this class was generated from the following files: