Gui::Dialog::ParameterText Class Reference

The ParameterText class allows interaction with "text" parameter leaves. More...

#include <DlgParameterImp.h>

Public Member Functions

void appendToGroup ()
 Append this item as leaf to the parameter group. More...
 
void changeValue ()
 Opens an input dialog to change the value. More...
 
 ParameterText (QTreeWidget *parent, QString label1, const char *value, const Base::Reference< ParameterGrp > &hcGrp)
 Constructor. More...
 
void removeFromGroup ()
 Remove the leaf from the parameter group. More...
 
 ~ParameterText ()
 
- Public Member Functions inherited from Gui::Dialog::ParameterValueItem
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

void replace (const QString &oldName, const QString &newName)
 Replaces the name of the leaf from oldName to newName. More...
 
virtual void replace (const QString &oldName, const QString &newName)=0
 Replaces the name of the leaf from oldName to newName. More...
 

Detailed Description

The ParameterText class allows interaction with "text" parameter leaves.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ ParameterText()

ParameterText::ParameterText ( QTreeWidget parent,
QString  label1,
const char *  value,
const Base::Reference< ParameterGrp > &  hcGrp 
)

Constructor.

References Gui::BitmapFactory().

◆ ~ParameterText()

ParameterText::~ParameterText ( )

Member Function Documentation

◆ appendToGroup()

void ParameterText::appendToGroup ( )
virtual

Append this item as leaf to the parameter group.

Implements Gui::Dialog::ParameterValueItem.

◆ changeValue()

void ParameterText::changeValue ( )
virtual

Opens an input dialog to change the value.

Implements Gui::Dialog::ParameterValueItem.

References draftfunctions.svgtext::getText().

◆ removeFromGroup()

void ParameterText::removeFromGroup ( )
virtual

Remove the leaf from the parameter group.

Implements Gui::Dialog::ParameterValueItem.

◆ replace()

void ParameterText::replace ( const QString &  oldName,
const QString &  newName 
)
protectedvirtual

Replaces the name of the leaf from oldName to newName.

Implements Gui::Dialog::ParameterValueItem.


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