[Uml-devel] branches/work/soc-umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat May 26 14:22:42 UTC 2012
SVN commit 1296738 by okellogg:
update class doc, reduce cosmetic differences to trunk
M +8 -0 umlview.cpp
M +8 -6 umlview.h
--- branches/work/soc-umbrello/umbrello/umlview.cpp #1296737:1296738
@@ -56,6 +56,14 @@
}
/**
+ * Returns the zoom of the diagram.
+ */
+int UMLView::zoom() const
+{
+ return m_nZoom;
+}
+
+/**
* Sets the zoom of the diagram.
*/
void UMLView::setZoom(int zoom)
--- branches/work/soc-umbrello/umbrello/umlview.h #1296737:1296738
@@ -21,10 +21,8 @@
/**
* UMLView instances represent diagrams.
- * The UMLApp instance manages a QWidgetStack of UMLView instances.
- * The visible diagram is at the top of stack.
- * The UMLView class inherits from QCanvasView and it owns the
- * objects displayed on its related QCanvas (see m_WidgetList.)
+ * The UMLApp instance manages the UMLView instances.
+ * The UMLView class inherits from QGraphicsView.
*
* @author Paul Hensgen <phensgen at techie.com>
* Bugs and comments to uml-devel at lists.sf.net or http://bugs.kde.org
@@ -38,7 +36,7 @@
UMLScene* umlScene() const;
- int zoom() const { return m_nZoom; }
+ int zoom() const ;
void setZoom(int zoom);
int currentZoom();
@@ -60,8 +58,12 @@
QPointF m_currentCenterPoint; ///< holds the current centerpoint for the view, used for panning and zooming
QPoint m_lastPanPoint; ///< from panning the view
- int m_nZoom; ///< zoom level in percent, default 100
+ /**
+ * The zoom level in percent, default 100
+ */
+ int m_nZoom;
+
};
#endif // UMLVIEW_H
More information about the umbrello-devel
mailing list