Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | List of all members
OkCancelDialog Class Reference

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>

Inheritance diagram for OkCancelDialog:
Inheritance graph
[legend]

Public Member Functions

 OkCancelDialog (QWidget *parent, const char *title, const char *msg)
 The dialog is build with a given parent and title. More...
 

Static Public Member Functions

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...
 

Protected Member Functions

void insertWidget (QWidget &widget)
 Inserts the given widget (containing the inputs) in the dialog, between message and buttons. More...
 

Private Attributes

QDialogButtonBox buttons_layout
 The button layout. More...
 
int index
 The index of additional widgets. More...
 
QVBoxLayout layout
 The main layout (vertic.) More...
 
QLabel text
 The upper label. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

OkCancelDialog::OkCancelDialog ( QWidget *  parent,
const char *  title,
const char *  msg 
)

The dialog is build with a given parent and title.

Parameters
parentthe parent widget of the dialog,
titlethe title of the dialog,
msgthe message displayed on the top.

Definition at line 26 of file inputDialog.cpp.

Member Function Documentation

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
parentthe parent widget of the dialog,
titlethe dialog title,
msgthe dialog message,
nb_linesthe number of lines in the dialog,
nb_colthe number of columns in the dialog,
nameValthe array of names displayed,
isGreekthe array telling whether names are in Greek,
valthe 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
parentthe parent widget of the dialog,
titlethe dialog title,
msgthe dialog message,
qthe 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
parentthe parent widget of the dialog,
titlethe dialog title,
msgthe dialog message,
statethe 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
widgetthe widget containing the inputs.

Definition at line 92 of file inputDialog.hpp.

Member Data Documentation

QDialogButtonBox OkCancelDialog::buttons_layout
private

The button layout.

Definition at line 30 of file inputDialog.hpp.

int OkCancelDialog::index
private

The index of additional widgets.

Definition at line 31 of file inputDialog.hpp.

QVBoxLayout OkCancelDialog::layout
private

The main layout (vertic.)

Definition at line 28 of file inputDialog.hpp.

QLabel OkCancelDialog::text
private

The upper label.

Definition at line 29 of file inputDialog.hpp.


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


qt_ctrl
Author(s): Alexis Scheuer
autogenerated on Wed Dec 16 2020 15:51:32