diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:38 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:38 -0600 |
commit | d6331f1b56eb6dca7a1950658b2932f208015da0 (patch) | |
tree | f99bf8d1571f93304bdb4a46fb199a1bde60e6ee /umbrello/umbrello/autolayout/autolayoutdlg.cpp | |
parent | e738fee8847c1f606df7b338a589cc8c0539a521 (diff) | |
download | tdesdk-d6331f1b56eb6dca7a1950658b2932f208015da0.tar.gz tdesdk-d6331f1b56eb6dca7a1950658b2932f208015da0.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'umbrello/umbrello/autolayout/autolayoutdlg.cpp')
-rw-r--r-- | umbrello/umbrello/autolayout/autolayoutdlg.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/umbrello/umbrello/autolayout/autolayoutdlg.cpp b/umbrello/umbrello/autolayout/autolayoutdlg.cpp index e47911e6..894dddbc 100644 --- a/umbrello/umbrello/autolayout/autolayoutdlg.cpp +++ b/umbrello/umbrello/autolayout/autolayoutdlg.cpp @@ -12,7 +12,7 @@ #include "autolayoutdlg.h" #include "../associationwidget.h" #include "../umlwidget.h" -#include "autotqlayout.h" +#include "autolayout.h" #include "newautolayoutdialog.h" #include <tqcheckbox.h> #include <tqspinbox.h> @@ -84,7 +84,7 @@ void AutolayoutDlg::slotSetClusterizeHierarchies(bool b) void AutolayoutDlg::slotSetShapeSeparation(int i) { - tqshapeSeparation=i; + shapeSeparation=i; } void AutolayoutDlg::slotReloadSettings() @@ -99,10 +99,10 @@ void AutolayoutDlg::slotSaveSettings() } -void AutolayoutDlg::slotDoAutotqlayout() +void AutolayoutDlg::slotDoAutolayout() { - Autotqlayout::Autolayouter* a=getAutolayouter();; + Autolayout::Autolayouter* a=getAutolayouter();; a->setAssociationAsEdges( associationAsEdges); a->setAssociationWeight( associationWeight ); @@ -115,8 +115,8 @@ void AutolayoutDlg::slotDoAutotqlayout() a->setGeneralizationWeight( generalizationWeight); a->setNoteConnectionWeight( 1); a->setNoteConnectionsAsEdges(true); - a->setShapeSeparation( tqshapeSeparation); - a->autotqlayout( view); + a->setShapeSeparation( shapeSeparation); + a->autolayout( view); delete a; a=0; accept(); @@ -134,7 +134,7 @@ void AutolayoutDlg::readConfig( KConfig * conf) generalizationCB->setChecked((bool)(conf->readBoolEntry( "genralizationAsEdges",true))); generalizationEdgessSL->setValue((int)(conf->readNumEntry( "generalizationWeight",1))); associationEdgesSL->setValue((int)(conf->readNumEntry( "associationWeight",0))); - tqshapeSeparationSB->setValue((int)(conf->readNumEntry( "tqshapeSeparation",0))); + shapeSeparationSB->setValue((int)(conf->readNumEntry( "shapeSeparation",0))); algorithmCOB->setCurrentItem((int)(conf->readNumEntry( "algorithm",0))); } @@ -151,7 +151,7 @@ void AutolayoutDlg::writeConfig( KConfig * conf) conf->writeEntry("generalizationWeight",generalizationEdgessSL->value()); conf->writeEntry("associationWeight",associationEdgesSL->value()); - conf->writeEntry("tqshapeSeparation",tqshapeSeparationSB->value()); + conf->writeEntry("shapeSeparation",shapeSeparationSB->value()); //conf->writeEntry("al @@ -165,18 +165,18 @@ void AutolayoutDlg::slotSelectAlgorithm( const TQString& _algname) } -Autotqlayout::Autolayouter * AutolayoutDlg::getAutolayouter( ) +Autolayout::Autolayouter * AutolayoutDlg::getAutolayouter( ) { const TQString text = algorithmCOB->currentText(); - kDebug() << "Autotqlayout Algorithm " << algname << " found " << text << endl; + kDebug() << "Autolayout Algorithm " << algname << " found " << text << endl; if (text == "dot") - return new Autotqlayout::DotAutolayouter(); + return new Autolayout::DotAutolayouter(); if (text == "circo") - return new Autotqlayout::CircoAutolayouter(); + return new Autolayout::CircoAutolayouter(); if (text == "neato") - return new Autotqlayout::NeatoAutolayouter(); - kError() << "Autotqlayout Algorithm not found" << endl; - return new Autotqlayout::DotAutolayouter(); + return new Autolayout::NeatoAutolayouter(); + kError() << "Autolayout Algorithm not found" << endl; + return new Autolayout::DotAutolayouter(); } |