Gui::Dialog::ParameterValueItem Class Reference

The ParameterValueItem class represents items that are added to the ParameterValue listview. More...

#include <DlgParameterImp.h>

Inheritance diagram for Gui::Dialog::ParameterValueItem:
Gui::Dialog::ParameterBool Gui::Dialog::ParameterFloat Gui::Dialog::ParameterInt Gui::Dialog::ParameterText Gui::Dialog::ParameterUInt

List of all members.

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

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

Definition at line 215 of file DlgParameterImp.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

virtual void Gui::Dialog::ParameterValueItem::appendToGroup (  )  [pure virtual]
virtual void Gui::Dialog::ParameterValueItem::changeValue (  )  [pure virtual]
virtual void Gui::Dialog::ParameterValueItem::removeFromGroup (  )  [pure virtual]
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().


Member Data Documentation


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

Generated on Wed Nov 23 19:02:07 2011 for FreeCAD by  doxygen 1.6.1