The DlgInputDialogImp dialog class does basically the same as Qt's QInputDialog unless that it provides no static function but the application programmer must create an instance and prepare it. More...
#include <DlgInputDialogImp.h>
Public Types | |
enum Type { LineEdit, SpinBox, UIntBox, FloatSpinBox, ComboBox } | |
Public Member Functions | |
DlgInputDialogImp (const QString &label, QWidget *parent=0, bool modal=true, Type=LineEdit) | |
Constructs a Gui::Dialog::DlgInputDialogImp as a child of 'parent', with the name 'name' and widget flags set to 'f'. More... | |
QComboBox * getComboBox () const | |
QDoubleSpinBox * getFloatSpinBox () const | |
QLineEdit * getLineEdit () const | |
QSpinBox * getSpinBox () const | |
Gui::UIntSpinBox * getUIntBox () const | |
void setType (Type t) | |
Type type () const | |
~DlgInputDialogImp () | |
Destroys the object and frees any allocated resources. More... | |
Protected Slots | |
void textChanged (const QString &s) | |
void tryAccept () | |
Protected Attributes | |
Type inputtype | |
Detailed Description
The DlgInputDialogImp dialog class does basically the same as Qt's QInputDialog unless that it provides no static function but the application programmer must create an instance and prepare it.
This requires a little more work but increases the flexibility.
Member Enumeration Documentation
◆ Type
Constructor & Destructor Documentation
◆ DlgInputDialogImp()
DlgInputDialogImp::DlgInputDialogImp | ( | const QString & | labelTxt, |
QWidget * | parent = 0 , |
||
bool | modal = true , |
||
Type | type = LineEdit |
||
) |
Constructs a Gui::Dialog::DlgInputDialogImp as a child of 'parent', with the name 'name' and widget flags set to 'f'.
The dialog will by default be modeless, unless you set 'modal' to true to construct a modal dialog.
References setType(), textChanged(), and tryAccept().
◆ ~DlgInputDialogImp()
DlgInputDialogImp::~DlgInputDialogImp | ( | ) |
Destroys the object and frees any allocated resources.
Member Function Documentation
◆ getComboBox()
QComboBox * DlgInputDialogImp::getComboBox | ( | ) | const |
◆ getFloatSpinBox()
QDoubleSpinBox * DlgInputDialogImp::getFloatSpinBox | ( | ) | const |
◆ getLineEdit()
QLineEdit * DlgInputDialogImp::getLineEdit | ( | ) | const |
◆ getSpinBox()
QSpinBox * DlgInputDialogImp::getSpinBox | ( | ) | const |
◆ getUIntBox()
Gui::UIntSpinBox * DlgInputDialogImp::getUIntBox | ( | ) | const |
◆ setType()
void DlgInputDialogImp::setType | ( | DlgInputDialogImp::Type | t | ) |
References ComboBox, FloatSpinBox, inputtype, LineEdit, SpinBox, and UIntBox.
Referenced by DlgInputDialogImp().
◆ textChanged
|
protectedslot |
References LineEdit, and type().
Referenced by DlgInputDialogImp().
◆ tryAccept
|
protectedslot |
Referenced by DlgInputDialogImp().
◆ type()
DlgInputDialogImp::Type DlgInputDialogImp::type | ( | ) | const |
References inputtype.
Referenced by textChanged().
Member Data Documentation
◆ inputtype
The documentation for this class was generated from the following files:
- src/Gui/DlgInputDialogImp.h
- src/Gui/DlgInputDialogImp.cpp