diff options
Diffstat (limited to 'umbrello/umbrello/autolayout/autolayouteradapter.cpp')
-rw-r--r-- | umbrello/umbrello/autolayout/autolayouteradapter.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/umbrello/umbrello/autolayout/autolayouteradapter.cpp b/umbrello/umbrello/autolayout/autolayouteradapter.cpp index 30f3fad7..0673fde1 100644 --- a/umbrello/umbrello/autolayout/autolayouteradapter.cpp +++ b/umbrello/umbrello/autolayout/autolayouteradapter.cpp @@ -12,18 +12,18 @@ #include "autolayouteradapter.h" -namespace Autotqlayout +namespace Autolayout { AutolayouterAdapter::AutolayouterAdapter() - : Autotqlayout::Autolayouter() + : Autolayout::Autolayouter() {} AutolayouterAdapter::~AutolayouterAdapter() {}} -void Autotqlayout::AutolayouterAdapter::addRelationship( AssociationWidget * a ) +void Autolayout::AutolayouterAdapter::addRelationship( AssociationWidget * a ) { int weight; switch (a->getAssocType()) @@ -71,60 +71,60 @@ void Autotqlayout::AutolayouterAdapter::addRelationship( AssociationWidget * a ) getGraph()->addEdge(a->getWidgetID(Uml::A).c_str(),a->getWidgetID(Uml::B).c_str(),weight); } -void Autotqlayout::AutolayouterAdapter::setAssociationWeight( int i ) +void Autolayout::AutolayouterAdapter::setAssociationWeight( int i ) { associationWeight=i; } -void Autotqlayout::AutolayouterAdapter::setDependenciesWeight( int i ) +void Autolayout::AutolayouterAdapter::setDependenciesWeight( int i ) { dependenciesWeight=i; } -void Autotqlayout::AutolayouterAdapter::setGeneralizationWeight( int i ) +void Autolayout::AutolayouterAdapter::setGeneralizationWeight( int i ) { generalizationWeight=i; } -void Autotqlayout::AutolayouterAdapter::setGeneralizationAsEdges( bool b ) +void Autolayout::AutolayouterAdapter::setGeneralizationAsEdges( bool b ) { genralizationAsEdges=b; } -void Autotqlayout::AutolayouterAdapter::setDependenciesAsEdges( bool b ) +void Autolayout::AutolayouterAdapter::setDependenciesAsEdges( bool b ) { dependenciesAsEdges=b; } -void Autotqlayout::AutolayouterAdapter::setAssociationAsEdges( bool b ) +void Autolayout::AutolayouterAdapter::setAssociationAsEdges( bool b ) { associationAsEdges=b; } -void Autotqlayout::AutolayouterAdapter::setCompressShapes( bool b ) +void Autolayout::AutolayouterAdapter::setCompressShapes( bool b ) { compressShapes=b; } -void Autotqlayout::AutolayouterAdapter::setCenterDiagram( bool b ) +void Autolayout::AutolayouterAdapter::setCenterDiagram( bool b ) { centerDiagram=b; } -void Autotqlayout::AutolayouterAdapter::setClusterizeHierarchies( bool b ) +void Autolayout::AutolayouterAdapter::setClusterizeHierarchies( bool b ) { clusterizeHierarchies=b; } -void Autotqlayout::AutolayouterAdapter::setShapeSeparation( int i ) +void Autolayout::AutolayouterAdapter::setShapeSeparation( int i ) { shapeSeparation=i; } -Autotqlayout::Graph * Autotqlayout::AutolayouterAdapter::setGraph( UMLView * view ) +Autolayout::Graph * Autolayout::AutolayouterAdapter::setGraph( UMLView * view ) { if (! view) return 0; - Autotqlayout::Graph * g=getGraph(); + Autolayout::Graph * g=getGraph(); if (g&&g->empty()) { UMLWidgetList list = view->getWidgetList(); @@ -151,7 +151,7 @@ Autotqlayout::Graph * Autotqlayout::AutolayouterAdapter::setGraph( UMLView * vi return g; } -void Autotqlayout::AutolayouterAdapter::updateView( UMLView* view ) +void Autolayout::AutolayouterAdapter::updateView( UMLView* view ) { if (! view) return ; UMLWidgetList list = view->getWidgetList(); @@ -175,17 +175,17 @@ UMLWidgetList list = view->getWidgetList(); } } -Autotqlayout::Canvas * Autotqlayout::AutolayouterAdapter::setCanvas( UMLView* view ) +Autolayout::Canvas * Autolayout::AutolayouterAdapter::setCanvas( UMLView* view ) { - return canvas=new Autotqlayout::SimpleCanvas(view->getCanvasWidth(),view->getCanvasHeight()); + return canvas=new Autolayout::SimpleCanvas(view->getCanvasWidth(),view->getCanvasHeight()); } -void Autotqlayout::AutolayouterAdapter::setNoteConnectionWeight( int i ) +void Autolayout::AutolayouterAdapter::setNoteConnectionWeight( int i ) { noteConnectionWeight=i; } -void Autotqlayout::AutolayouterAdapter::setNoteConnectionsAsEdges( bool b ) +void Autolayout::AutolayouterAdapter::setNoteConnectionsAsEdges( bool b ) { noteConnectionAsEdges=b; } |