root/middleware-offline/trunk/_src/eidmw/eidgui/FreeSelectionDialog.h @ 271

Revision 271, 0.7 KB (checked in by vsilva, 6 years ago)

First official release

Line 
1#include <QtGui>
2#include <QDialog>
3#include "ui_FreeSelectionDialog.h"
4
5class FreeSelectionDialog : public QDialog
6{
7        Q_OBJECT
8
9        private slots:
10
11//      void on_text_edit_x_editingFinished();
12//      void on_text_edit_y_editingFinished();
13        void on_pushButton_reset_clicked();
14        void on_pushButton_ok_clicked();
15
16        public:
17                FreeSelectionDialog (QWidget *parent, bool landscape_mode);
18                void setPosition(QPointF new_pos);
19                //This is intended to be called after the dialog is closed
20                void getValues(double *x, double *y);
21
22        private:
23                void resetRectanglePos();
24                void drawBackgroundGrid(QGraphicsScene *);
25                double convertX();
26                double convertY();
27
28                Ui_FreeSelectionDialog ui;
29                QGraphicsScene * my_scene;
30                bool m_landscape_mode;
31
32                double rx, ry;
33
34};
Note: See TracBrowser for help on using the browser.