Tulip  4.2.0
Better Visualization Through Research
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Groups Pages
CoordEditor.h
1 /*
2  *
3  * This file is part of Tulip (www.tulip-software.org)
4  *
5  * Authors: David Auber and the Tulip development Team
6  * from LaBRI, University of Bordeaux 1 and Inria Bordeaux - Sud Ouest
7  *
8  * Tulip is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation, either version 3
11  * of the License, or (at your option) any later version.
12  *
13  * Tulip is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU General Public License for more details.
17  *
18  */
19 ///@cond DOXYGEN_HIDDEN
20 
21 
22 #ifndef COORDEDITOR_H
23 #define COORDEDITOR_H
24 
25 #include <QtGui/QDialog>
26 #include <tulip/Coord.h>
27 #include <tulip/tulipconf.h>
28 
29 namespace Ui {
30 class CoordEditor;
31 }
32 
33 namespace tlp {
34 /**
35 * @brief Simple Coord edition widget.
36 **/
37 class TLP_QT_SCOPE CoordEditor : public QDialog {
38  Q_OBJECT
39  Q_PROPERTY(Coord coord READ coord WRITE setCoord NOTIFY coordChanged)
40 
41  Ui::CoordEditor *ui;
42 public:
43  explicit CoordEditor(QWidget *parent = 0);
44  ~CoordEditor();
45 
46  tlp::Coord coord() const;
47 
48 public slots:
49  void setCoord(const tlp::Coord& s);
50 
51 signals:
52  void coordChanged(tlp::Coord coord);
53 
54 private slots:
55  void coordUpdated();
56 
57 };
58 }
59 
60 #endif // COORDEDITOR_H
61 ///@endcond