[Uml-devel] branches/work/soc-umbrello/umbrello
Ralf Habacker
ralf.habacker at gmail.com
Sun Apr 1 09:31:22 UTC 2012
SVN commit 1287808 by habacker:
Used UMLScenePoint type to reduce differences to trunk.
M +1 -1 umlscene.cpp
M +11 -11 umlscene.h
M +1 -0 widgets/objectwidget.cpp
--- branches/work/soc-umbrello/umbrello/umlscene.cpp #1287807:1287808
@@ -1189,7 +1189,7 @@
/**
* Returns whether to use the fill/background color
*/
-bool UMLScene::getUseFillColor() const
+bool UMLScene::useFillColor() const
{
return m_Options.uiState.useFillColor;
}
--- branches/work/soc-umbrello/umbrello/umlscene.h #1287807:1287808
@@ -109,8 +109,8 @@
Uml::IDType getID() const;
void setID(Uml::IDType id);
- QPointF pos() const;
- void setPos(const QPointF &pos);
+ UMLScenePoint pos() const;
+ void setPos(const UMLScenePoint &pos);
void setBrush(const QColor &color);
const QColor& brush() const;
@@ -143,7 +143,7 @@
bool isSnapGridVisible() const;
void setSnapGridVisible(bool bShow);
- bool getUseFillColor() const;
+ bool useFillColor() const;
void setUseFillColor(bool ufc);
QFont getFont() const;
@@ -185,7 +185,7 @@
void clearSelected();
- void moveSelectedBy(qreal dX, qreal dY);
+ void moveSelectedBy(UMLSceneValue dX, UMLSceneValue dY);
int getSelectCount(bool filterText = false) const;
@@ -241,8 +241,8 @@
void updateDocumentation(bool clear);
- void getDiagram(const QRectF &rect, QPixmap & diagram);
- void getDiagram(const QRectF &area, QPainter & painter);
+ void getDiagram(const UMLSceneRect &rect, QPixmap & diagram);
+ void getDiagram(const UMLSceneRect &area, QPainter & painter);
void copyAsImage(QPixmap*& pix);
@@ -254,7 +254,7 @@
bool addWidget(UMLWidget * pWidget , bool isPasteOperation = false);
- QPointF getPastePoint();
+ UMLScenePoint getPastePoint();
void resetPastePoint();
void setStartedCut();
@@ -295,14 +295,14 @@
void addObject(UMLObject *object);
- void selectWidgets(qreal px, qreal py, qreal qx, qreal qy);
+ void selectWidgets(UMLSceneValue px, UMLSceneValue py, UMLSceneValue qx, UMLSceneValue qy);
- ObjectWidget * onWidgetLine(const QPointF &point) const;
- ObjectWidget * onWidgetDestructionBox(const QPointF &point) const;
+ ObjectWidget * onWidgetLine(const UMLScenePoint &point) const;
+ ObjectWidget * onWidgetDestructionBox(const UMLScenePoint &point) const;
UMLWidget* getFirstMultiSelectedWidget() const;
- UMLWidget* widgetAt(const QPointF& p);
+ UMLWidget* widgetAt(const UMLScenePoint& p);
void setupNewWidget(UMLWidget *w);
--- branches/work/soc-umbrello/umbrello/widgets/objectwidget.cpp #1287807:1287808
@@ -306,6 +306,7 @@
objectElement.setAttribute( "multipleinstance", m_multipleInstance );
objectElement.setAttribute( "localid", ID2STR(m_localID) );
objectElement.setAttribute( "decon", m_showDestruction );
+ // FIXME: trunk sets "instancename" too
qElement.appendChild( objectElement );
}
More information about the umbrello-devel
mailing list