21 #include <qpushbutton.h>
25 #include <qgroupbox.h>
28 #include <QGridLayout>
30 #include <QHBoxLayout>
31 #include <QVBoxLayout>
38 #define TR(id) OLocalizator::getString("TYSetCameraCoordinates", (id))
44 setWindowTitle(
TR(
"id_caption"));
45 setFixedSize(220, 150);
47 QGridLayout* pLayout =
new QGridLayout();
48 pLayout->setContentsMargins(10, 10, 10, 10);
51 QLabel* pLabelMainText =
new QLabel(
this);
52 pLabelMainText->setText(
TR(
"id_maintext"));
53 pLayout->addWidget(pLabelMainText, 0, 0, 1, 2);
55 QLabel* pLabelCoordX =
new QLabel(
this);
56 pLabelCoordX->setText(
TR(
"id_coordX"));
57 pLayout->addWidget(pLabelCoordX, 1, 0);
65 QLabel* pLabelCoordY =
new QLabel(
this);
66 pLabelCoordY->setText(
TR(
"id_coordY"));
67 pLayout->addWidget(pLabelCoordY, 2, 0);
75 QLabel* pLabelCoordZ =
new QLabel(
this);
76 pLabelCoordZ->setText(
TR(
"id_coordZ"));
77 pLayout->addWidget(pLabelCoordZ, 3, 0);
85 QPushButton* pOKButton =
new QPushButton(
TR(
"id_oktext"),
this);
86 QObject::connect(pOKButton, &QPushButton::clicked,
this, &TYSetCameraCoordinates::accept);
87 pLayout->addWidget(pOKButton, 4, 0);
89 QPushButton* pCancelButton =
new QPushButton(
TR(
"id_canceltext"),
this);
90 QObject::connect(pCancelButton, &QPushButton::clicked,
this, &TYSetCameraCoordinates::reject);
91 pLayout->addWidget(pCancelButton, 4, 1);
outil IHM pour une entrée utilisateur (fichier header)
Classe generique pour une fenetre de modeleur (fichier header)
Repositionnement de la camera en fonction de coordonnees specifiees (fichier header)
Classe generique pour une fenetre de modeleur.
TYSetCameraCoordinates(TYModelerFrame *pModeler)
TYLineEdit * _pXCoordLineEdit
TYLineEdit * _pYCoordLineEdit
~TYSetCameraCoordinates()
void setZCoord(int zCoord)
void setYCoord(int yCoord)
TYLineEdit * _pZCoordLineEdit
void setXCoord(int xCoord)