inputDialog.hpp
Go to the documentation of this file.
1 
12 #ifndef QTCTRL_INPUT_DIALOG
13 #define QTCTRL_INPUT_DIALOG
14 
15 #include <QDialog>
16 #include <QVBoxLayout>
17 #include <QLabel>
18 #include <QDialogButtonBox>
19 #include <model/state.hpp>
20 
27 class OkCancelDialog : public QDialog {
28  QVBoxLayout layout;
29  QLabel text;
30  QDialogButtonBox buttons_layout;
31  int index;
32 
33 public:
40  OkCancelDialog(QWidget* parent, const char* title, const char* msg);
41 
58  static bool getDoubleArray(QWidget* parent, const char* title,
59  const char* msg, const int nb_lines,
60  const int nb_col, const char* nameVal[],
61  const bool isGreek[], double val[]);
62 
72  static bool getOrPtConfig(QWidget* parent,
73  const char* title, const char* msg,
74  iSeeML::rob::OrPtConfig &q);
75 
85  static bool getState(QWidget* parent, const char* title,
86  const char* msg, State &state);
87 
88 protected:
92  void insertWidget(QWidget& widget) {
93  layout.insertWidget(index, &widget);
94  index++;
95  }
96 
97 }; // end of class OkCancelDialog
98 
99 #endif // QTCTRL_INPUT_DIALOG
This class defines a sub-class of dialog windows which lower part is a horizontal button panel with o...
Definition: inputDialog.hpp:27
State class, i.e. configuration and velocities.
QLabel text
The upper label.
Definition: inputDialog.hpp:29
OkCancelDialog(QWidget *parent, const char *title, const char *msg)
The dialog is build with a given parent and title.
Definition: inputDialog.cpp:26
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.
Definition: inputDialog.cpp:66
void insertWidget(QWidget &widget)
Inserts the given widget (containing the inputs) in the dialog, between message and buttons...
Definition: inputDialog.hpp:92
This class defines a state, i.e. a configuration and its (translation and rotation) velocities...
Definition: state.hpp:22
QDialogButtonBox buttons_layout
The button layout.
Definition: inputDialog.hpp:30
static bool getOrPtConfig(QWidget *parent, const char *title, const char *msg, iSeeML::rob::OrPtConfig &q)
Asks in a dialog for an oriented point.
QVBoxLayout layout
The main layout (vertic.)
Definition: inputDialog.hpp:28
int index
The index of additional widgets.
Definition: inputDialog.hpp:31
static bool getState(QWidget *parent, const char *title, const char *msg, State &state)
Asks in a dialog for a state.


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