Dialog asking the user for some given parameters.
More...
#include <dlg_commoninput.h>
Dialog asking the user for some given parameters.
◆ dlg_commoninput()
| dlg_commoninput::dlg_commoninput |
( |
QWidget * |
parent, |
|
|
QString const & |
title, |
|
|
QStringList const & |
labels, |
|
|
QList< QVariant > const & |
values, |
|
|
QString const & |
descr = QString() |
|
) |
| |
Create dialog with the given parameters.
- Parameters
-
| parent | the parent widget |
| title | the dialog title |
| labels | the list of parameter labels; each name needs to have a prefix signifying the type of control used to ask for it:
- $ ... QCheckBox
- # ... a line edit
- + ... a combo box (in values, give a QStringList with all options, prefix the one that should be selected with a '!')
- * ... a SpinBox, asking for an (integer) number between 0 and 65536
- ^ ... a double SpinBox asking for a floating point number between -999999, 999999
- = ... a PlainTextEdit (allowing to enter multiple lines of text)
- & ... Filter type (special) - PushButton, which on click enables user to select a filter name
- . ... Filter parameters (special); preferably, use right after & - Control: line edit
- < ... file chooser (single file name for opening)
- { ... file chooser (multiple file names for opening)
- > ... file chooser (single file name for saving)
- ; ... folder chooser (single existing folder name)
|
e.g. "*Name" gives you an (integer) spinbox with label "Name"
- Parameters
-
| values | starting values for all parameters. |
| descr | an optional description text, displayed on top of the dialog |
◆ exec()
| int dlg_commoninput::exec |
( |
| ) |
|
|
override |
◆ getCheckValue()
| int dlg_commoninput::getCheckValue |
( |
int |
index | ) |
const |
◆ getComboBoxIndex()
| int dlg_commoninput::getComboBoxIndex |
( |
int |
index | ) |
const |
◆ getComboBoxValue()
| QString dlg_commoninput::getComboBoxValue |
( |
int |
index | ) |
const |
◆ getDblValue()
| double dlg_commoninput::getDblValue |
( |
int |
index | ) |
const |
◆ getIntValue()
| int dlg_commoninput::getIntValue |
( |
int |
index | ) |
const |
◆ getText()
| QString dlg_commoninput::getText |
( |
int |
index | ) |
const |
◆ setSourceMdi()
◆ showROI()
| void dlg_commoninput::showROI |
( |
| ) |
|
◆ widgetList()
| QVector< QWidget * > dlg_commoninput::widgetList |
( |
| ) |
|
The documentation for this class was generated from the following files: