This class defines a sub-class of dialog windows which lower part is a horizontal button panel with only two possibilities, to accept or to cancel.
More...
#include <inputDialog.hpp>
|
| OkCancelDialog (QWidget *parent, const char *title, const char *msg) |
| The dialog is build with a given parent and title. More...
|
|
|
static bool | getDoubleArray (QWidget *parent, const char *title, const char *msg, const int nb_lines, const int nb_col, const char *nameVal[], const bool isGreek[], double val[]) |
| Asks in a dialog for a set of doubles, and returns it. More...
|
|
static bool | getOrPtConfig (QWidget *parent, const char *title, const char *msg, iSeeML::rob::OrPtConfig &q) |
| Asks in a dialog for an oriented point. More...
|
|
static bool | getState (QWidget *parent, const char *title, const char *msg, State &state) |
| Asks in a dialog for a state. More...
|
|
|
void | insertWidget (QWidget &widget) |
| Inserts the given widget (containing the inputs) in the dialog, between message and buttons. More...
|
|
This class defines a sub-class of dialog windows which lower part is a horizontal button panel with only two possibilities, to accept or to cancel.
- Version
- 0.3.2
Definition at line 27 of file inputDialog.hpp.
OkCancelDialog::OkCancelDialog |
( |
QWidget * |
parent, |
|
|
const char * |
title, |
|
|
const char * |
msg |
|
) |
| |
The dialog is build with a given parent and title.
- Parameters
-
parent | the parent widget of the dialog, |
title | the title of the dialog, |
msg | the message displayed on the top. |
Definition at line 26 of file inputDialog.cpp.
bool OkCancelDialog::getDoubleArray |
( |
QWidget * |
parent, |
|
|
const char * |
title, |
|
|
const char * |
msg, |
|
|
const int |
nb_lines, |
|
|
const int |
nb_col, |
|
|
const char * |
nameVal[], |
|
|
const bool |
isGreek[], |
|
|
double |
val[] |
|
) |
| |
|
static |
Asks in a dialog for a set of doubles, and returns it.
- Parameters
-
parent | the parent widget of the dialog, |
title | the dialog title, |
msg | the dialog message, |
nb_lines | the number of lines in the dialog, |
nb_col | the number of columns in the dialog, |
nameVal | the array of names displayed, |
isGreek | the array telling whether names are in Greek, |
val | the array of doubles to get from the user. |
- Precondition
- the arrays need to have at least nb_lines x nb_col elements, or a segmentation violation may arrise.
- Returns
- True if the array was changed, false otherwise.
- Since
- 0.3.1
Definition at line 66 of file inputDialog.cpp.
bool OkCancelDialog::getOrPtConfig |
( |
QWidget * |
parent, |
|
|
const char * |
title, |
|
|
const char * |
msg, |
|
|
iSeeML::rob::OrPtConfig & |
q |
|
) |
| |
|
static |
Asks in a dialog for an oriented point.
- Parameters
-
parent | the parent widget of the dialog, |
title | the dialog title, |
msg | the dialog message, |
q | the oriented point to be set. |
- Returns
- True if the array was changed, false otherwise.
- Since
- 0.3.1
Definition at line 103 of file inputDialog.cpp.
bool OkCancelDialog::getState |
( |
QWidget * |
parent, |
|
|
const char * |
title, |
|
|
const char * |
msg, |
|
|
State & |
state |
|
) |
| |
|
static |
Asks in a dialog for a state.
- Parameters
-
parent | the parent widget of the dialog, |
title | the dialog title, |
msg | the dialog message, |
state | the state to be set. |
- Returns
- True if the array was changed, false otherwise.
- Since
- 0.3.2
Definition at line 132 of file inputDialog.cpp.
void OkCancelDialog::insertWidget |
( |
QWidget & |
widget | ) |
|
|
inlineprotected |
Inserts the given widget (containing the inputs) in the dialog, between message and buttons.
- Parameters
-
widget | the widget containing the inputs. |
Definition at line 92 of file inputDialog.hpp.
QDialogButtonBox OkCancelDialog::buttons_layout |
|
private |
int OkCancelDialog::index |
|
private |
QVBoxLayout OkCancelDialog::layout |
|
private |
QLabel OkCancelDialog::text |
|
private |
The documentation for this class was generated from the following files: