[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Sep 18 07:34:01 UTC 2004
CVS commit by okellogg:
moveSelectedBy(): New.
M +6 -1 umlview.cpp 1.175
M +8 -0 umlview.h 1.62
--- kdesdk/umbrello/umbrello/umlview.h #1.61:1.62
@@ -443,4 +443,12 @@ public:
/**
+ * Move all the selected widgets by a relative X and Y offset.
+ *
+ * @param dX The distance to move horizontally.
+ * @param dY The distance to move vertically.
+ */
+ void moveSelectedBy(int dX, int dY);
+
+ /**
* Return the amount of widgets selected.
*
--- kdesdk/umbrello/umbrello/umlview.cpp #1.174:1.175
@@ -934,5 +934,10 @@ void UMLView::moveSelected(UMLWidget * w
}
}
-////////////////////////////////////////////////////////////////////////////////////////////////////
+
+void UMLView::moveSelectedBy(int dX, int dY) {
+ for (UMLWidget *w = m_SelectedList.first(); w; w = m_SelectedList.next())
+ w->moveBy(dX, dY);
+}
+
void UMLView::selectionUseFillColor(bool useFC) {
UMLWidget * temp = 0;
More information about the umbrello-devel
mailing list