open_iA  2019.12
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Public Member Functions | List of all members
dlg_commoninput Class Reference

Dialog asking the user for some given parameters. More...

#include <dlg_commoninput.h>

Inheritance diagram for dlg_commoninput:
Collaboration diagram for dlg_commoninput:

Public Member Functions

 dlg_commoninput (QWidget *parent, QString const &title, QStringList const &labels, QList< QVariant > const &values, QString const &descr=QString())
 Create dialog with the given parameters. More...
 
int exec () override
 
int getCheckValue (int index) const
 
int getComboBoxIndex (int index) const
 
QString getComboBoxValue (int index) const
 
double getDblValue (int index) const
 
int getIntValue (int index) const
 
QString getText (int index) const
 
void setSourceMdi (MdiChild *child, MainWindow *mainWnd)
 
void showROI ()
 
QVector< QWidget * > widgetList ()
 

Detailed Description

Dialog asking the user for some given parameters.

Constructor & Destructor Documentation

◆ 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
parentthe parent widget
titlethe dialog title
labelsthe list of parameter labels; each name needs to have a prefix signifying the type of control used to ask for it: $ ... QCheckBox . ... Filter parameters (special) - line edit

... 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 < ... 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
    valuesstarting values for all parameters.
    descran optional description text, displayed on top of the dialog

Member Function Documentation

◆ 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()

void dlg_commoninput::setSourceMdi ( MdiChild child,
MainWindow mainWnd 
)

◆ showROI()

void dlg_commoninput::showROI ( )

◆ widgetList()

QVector< QWidget * > dlg_commoninput::widgetList ( )

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