[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Thu Sep 30 22:34:11 UTC 2004


CVS commit by okellogg: 

{set,get}IgnoreSnapToGrid: New.


  M +8 -0      umlwidget.cpp   1.103
  M +10 -0     umlwidget.h   1.40


--- kdesdk/umbrello/umbrello/umlwidget.cpp  #1.102:1.103
@@ -930,4 +930,12 @@ bool UMLWidget::widgetHasUMLObject(Uml::
 }
 
+void UMLWidget::setIgnoreSnapToGrid(bool to) {
+        m_bIgnoreSnapToGrid = to;
+}
+
+bool UMLWidget::getIgnoreSnapToGrid() const {
+        return m_bIgnoreSnapToGrid;
+}
+
 void UMLWidget::setSize(int width,int height) {
         // snap to the next larger size that is a multiple of the grid

--- kdesdk/umbrello/umbrello/umlwidget.h  #1.39:1.40
@@ -314,4 +314,14 @@ public:
 
         /**
+         * Set m_bIgnoreSnapToGrid.
+         */
+        void setIgnoreSnapToGrid(bool to);
+
+        /**
+         * Return the value of m_bIgnoreSnapToGrid.
+         */
+        bool getIgnoreSnapToGrid() const;
+
+        /**
          * Move the widget by an X and Y offseti relative to
          * the current position.






More information about the umbrello-devel mailing list