[Uml-devel] KDE/kdesdk/umbrello/umbrello
Ralf Habacker
ralf.habacker at gmail.com
Thu Aug 23 04:09:25 UTC 2012
SVN commit 1312460 by habacker:
Moved UMLScene related basic types before UMLScene class definition.
M +69 -69 umlscene.h
--- trunk/KDE/kdesdk/umbrello/umbrello/umlscene.h #1312459:1312460
@@ -53,7 +53,6 @@
class QPrinter;
class QShowEvent;
class UMLScene;
-class UMLSceneMouseEvent;
/// uml related types - makes it easier to switch to QGraphicsScene types
// base types
@@ -63,15 +62,84 @@
typedef QLine UMLSceneLine;
typedef int UMLSceneValue;
+class UMLScenePolygon : public QPolygon
+{
+public:
+ UMLScenePolygon() {}
+};
+
// event types
typedef QKeyEvent UMLSceneKeyEvent;
typedef QHoverEvent UMLSceneHoverEvent;
typedef QContextMenuEvent UMLSceneContextMenuEvent;
//typedef QDragDropEvent UMLSceneDragDropEvent;
+/**
+ * Qt3 migration wrapper for QMouseEvent.
+ */
+class UMLSceneMouseEvent : public QMouseEvent
+{
+public:
+ UMLSceneMouseEvent(Type type, const QPoint & position, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)
+ : QMouseEvent(type, position, button, buttons, modifiers)
+ {
+ }
+
+ UMLScenePoint scenePos() {
+ return pos();
+ }
+};
+
typedef Q3CanvasItem UMLSceneItem;
typedef Q3CanvasItemList UMLSceneItemList;
+
+class UMLSceneLineItem : public Q3CanvasLine
+{
+public:
+ UMLSceneLineItem()
+ : Q3CanvasLine(0)
+ {
+ }
+};
+
+class UMLSceneRectItem : public Q3CanvasRectangle
+{
+public:
+ UMLSceneRectItem()
+ : Q3CanvasRectangle(0)
+ {
+ }
+
+ UMLSceneRectItem(int x, int y, int w, int h)
+ : Q3CanvasRectangle(x, y, w, h, 0)
+ {
+ }
+};
+
+class UMLScenePolygonItem : public Q3CanvasPolygon
+{
+public:
+ UMLScenePolygonItem()
+ : Q3CanvasPolygon(0)
+ {
+ }
+};
+
+class UMLSceneEllipseItem : public Q3CanvasEllipse
+{
+public:
+ UMLSceneEllipseItem()
+ : Q3CanvasEllipse(0)
+ {
+ }
+
+ UMLSceneEllipseItem(int width, int height)
+ : Q3CanvasEllipse(width, height, 0)
+ {
+ }
+};
+
/**
* UMLScene instances represent diagrams.
* The UMLScene class inherits from Q3Canvas and
@@ -447,72 +515,4 @@
QDebug operator<<(QDebug dbg, UMLScene *item);
-class UMLScenePolygon : public QPolygon
-{
-public:
- UMLScenePolygon() {}
-};
-
-/**
- * Qt3 migration wrapper for QMouseEvent.
- */
-class UMLSceneMouseEvent : public QMouseEvent
-{
-public:
- UMLSceneMouseEvent(Type type, const QPoint & position, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)
- : QMouseEvent(type, position, button, buttons, modifiers)
- {
- }
-
- UMLScenePoint scenePos() {
- return pos();
- }
-};
-
-class UMLSceneLineItem : public Q3CanvasLine
-{
-public:
- UMLSceneLineItem()
- : Q3CanvasLine(0)
- {
- }
-};
-
-class UMLSceneRectItem : public Q3CanvasRectangle
-{
-public:
- UMLSceneRectItem()
- : Q3CanvasRectangle(0)
- {
- }
-
- UMLSceneRectItem(int x, int y, int w, int h)
- : Q3CanvasRectangle(x, y, w, h, 0)
- {
- }
-};
-
-class UMLScenePolygonItem : public Q3CanvasPolygon
-{
-public:
- UMLScenePolygonItem()
- : Q3CanvasPolygon(0)
- {
- }
-};
-
-class UMLSceneEllipseItem : public Q3CanvasEllipse
-{
-public:
- UMLSceneEllipseItem()
- : Q3CanvasEllipse(0)
- {
- }
-
- UMLSceneEllipseItem(int width, int height)
- : Q3CanvasEllipse(width, height, 0)
- {
- }
-};
-
#endif
More information about the umbrello-devel
mailing list