Gui::Dialog::DlgInputDialogImp Class Reference

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>

Inheritance diagram for Gui::Dialog::DlgInputDialogImp:
Gui::Dialog::Ui_DlgInputDialog

List of all members.

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'.
QComboBox * getComboBox () const
QDoubleSpinBox * getFloatSpinBox () const
QLineEdit * getLineEdit () const
QSpinBox * getSpinBox () const
Gui::UIntSpinBoxgetUIntBox () const
void setType (Type t)
Type type () const
 ~DlgInputDialogImp ()
 Destroys the object and frees any allocated resources.

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.

Author:
Werner Mayer

Definition at line 39 of file DlgInputDialogImp.h.


Member Enumeration Documentation

Enumerator:
LineEdit 
SpinBox 
UIntBox 
FloatSpinBox 
ComboBox 

Definition at line 44 of file DlgInputDialogImp.h.


Constructor & Destructor Documentation

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.

Definition at line 41 of file DlgInputDialogImp.cpp.

References Gui::Dialog::Ui_DlgInputDialog::buttonCancel, Gui::Dialog::Ui_DlgInputDialog::buttonOk, draftlibs::fcgeo::connect(), Gui::Dialog::Ui_DlgInputDialog::label, Gui::Dialog::Ui_DlgInputDialog::lineEdit, setType(), Gui::Dialog::Ui_DlgInputDialog::setupUi(), textChanged(), and tryAccept().

DlgInputDialogImp::~DlgInputDialogImp (  ) 

Destroys the object and frees any allocated resources.

Definition at line 63 of file DlgInputDialogImp.cpp.


Member Function Documentation

QComboBox * DlgInputDialogImp::getComboBox (  )  const

Definition at line 149 of file DlgInputDialogImp.cpp.

References Gui::Dialog::Ui_DlgInputDialog::comboBox.

QDoubleSpinBox * DlgInputDialogImp::getFloatSpinBox (  )  const
QLineEdit * DlgInputDialogImp::getLineEdit (  )  const

Definition at line 144 of file DlgInputDialogImp.cpp.

References Gui::Dialog::Ui_DlgInputDialog::lineEdit.

QSpinBox * DlgInputDialogImp::getSpinBox (  )  const

Definition at line 129 of file DlgInputDialogImp.cpp.

References Gui::Dialog::Ui_DlgInputDialog::spinBox.

Gui::UIntSpinBox * DlgInputDialogImp::getUIntBox (  )  const
void DlgInputDialogImp::setType ( DlgInputDialogImp::Type  t  ) 
void DlgInputDialogImp::textChanged ( const QString &  s  )  [protected, slot]
void DlgInputDialogImp::tryAccept (  )  [protected, slot]

Definition at line 84 of file DlgInputDialogImp.cpp.

References Gui::Dialog::Ui_DlgInputDialog::lineEdit.

Referenced by DlgInputDialogImp().

DlgInputDialogImp::Type DlgInputDialogImp::type (  )  const

Definition at line 124 of file DlgInputDialogImp.cpp.

References inputtype.

Referenced by textChanged().


Member Data Documentation

Definition at line 63 of file DlgInputDialogImp.h.

Referenced by setType(), and type().


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

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