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=nullptr, 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 |
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.
DlgInputDialogImp::DlgInputDialogImp | ( | const QString & | labelTxt, |
QWidget * | parent = nullptr , |
||
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 draftgeoutils.intersections::connect(), setType(), textChanged(), and tryAccept().
DlgInputDialogImp::~DlgInputDialogImp | ( | ) |
Destroys the object and frees any allocated resources.
QComboBox * DlgInputDialogImp::getComboBox | ( | ) | const |
QDoubleSpinBox * DlgInputDialogImp::getFloatSpinBox | ( | ) | const |
QLineEdit * DlgInputDialogImp::getLineEdit | ( | ) | const |
QSpinBox * DlgInputDialogImp::getSpinBox | ( | ) | const |
Gui::UIntSpinBox * DlgInputDialogImp::getUIntBox | ( | ) | const |
void DlgInputDialogImp::setType | ( | DlgInputDialogImp::Type | t | ) |
References ComboBox, FloatSpinBox, inputtype, LineEdit, SpinBox, and UIntBox.
Referenced by DlgInputDialogImp().
|
protectedslot |
References LineEdit, and type().
Referenced by DlgInputDialogImp().
|
protectedslot |
Referenced by DlgInputDialogImp().
DlgInputDialogImp::Type DlgInputDialogImp::type | ( | ) | const |
References inputtype.
Referenced by ArchProfile.ProfileTaskPanel::accept(), ArchProfile.ProfileTaskPanel::retranslateUi(), and textChanged().