summaryrefslogtreecommitdiffstats
path: root/umbrello/umbrello/autolayout/autolayoutdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'umbrello/umbrello/autolayout/autolayoutdlg.cpp')
-rw-r--r--umbrello/umbrello/autolayout/autolayoutdlg.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/umbrello/umbrello/autolayout/autolayoutdlg.cpp b/umbrello/umbrello/autolayout/autolayoutdlg.cpp
index 61bf16b6..7df110fb 100644
--- a/umbrello/umbrello/autolayout/autolayoutdlg.cpp
+++ b/umbrello/umbrello/autolayout/autolayoutdlg.cpp
@@ -9,18 +9,18 @@
* *
***************************************************************************/
-#include "autotqlayoutdlg.h"
+#include "autolayoutdlg.h"
#include "../associationwidget.h"
#include "../umlwidget.h"
#include "autotqlayout.h"
-#include "newautotqlayoutdialog.h"
+#include "newautolayoutdialog.h"
#include <tqcheckbox.h>
#include <tqspinbox.h>
#include <tqslider.h>
#include <kdebug.h>
-AutotqlayoutDlg::AutotqlayoutDlg(KConfig* c,UMLView* v,TQWidget *tqparent, const char *name)
+AutolayoutDlg::AutolayoutDlg(KConfig* c,UMLView* v,TQWidget *tqparent, const char *name)
:MyDialog1(tqparent, name)
{
view=v;
@@ -28,81 +28,81 @@ AutotqlayoutDlg::AutotqlayoutDlg(KConfig* c,UMLView* v,TQWidget *tqparent, const
config=c;
}
-void AutotqlayoutDlg::slotSetAssociationWeight(int i)
+void AutolayoutDlg::slotSetAssociationWeight(int i)
{
associationWeight=i;
}
-void AutotqlayoutDlg::slotSetDependenciesWeight(int i)
+void AutolayoutDlg::slotSetDependenciesWeight(int i)
{
dependenciesWeight=i;
}
-void AutotqlayoutDlg::slotSetGeneralizationWeight(int i)
+void AutolayoutDlg::slotSetGeneralizationWeight(int i)
{
generalizationWeight=i;
}
-void AutotqlayoutDlg::slotSetGenralizationAsEdges(bool b)
+void AutolayoutDlg::slotSetGenralizationAsEdges(bool b)
{
genralizationAsEdges=b;
}
-void AutotqlayoutDlg::slotSetDependenciesAsEdges(bool b)
+void AutolayoutDlg::slotSetDependenciesAsEdges(bool b)
{
dependenciesAsEdges=b;
}
-void AutotqlayoutDlg::slotSetAssociationAsEdges(bool b)
+void AutolayoutDlg::slotSetAssociationAsEdges(bool b)
{
associationAsEdges=b;
}
-void AutotqlayoutDlg::slotSetCompressShapes(bool b)
+void AutolayoutDlg::slotSetCompressShapes(bool b)
{
compressShapes=b;
}
-void AutotqlayoutDlg::slotSetCenterDiagram(bool b)
+void AutolayoutDlg::slotSetCenterDiagram(bool b)
{
centerDiagram=b;
}
-void AutotqlayoutDlg::slotSetClusterizeHierarchies(bool b)
+void AutolayoutDlg::slotSetClusterizeHierarchies(bool b)
{
clusterizeHierarchies=b;
}
-void AutotqlayoutDlg::slotSetShapeSeparation(int i)
+void AutolayoutDlg::slotSetShapeSeparation(int i)
{
tqshapeSeparation=i;
}
-void AutotqlayoutDlg::slotReloadSettings()
+void AutolayoutDlg::slotReloadSettings()
{
readConfig(config);
}
-void AutotqlayoutDlg::slotSaveSettings()
+void AutolayoutDlg::slotSaveSettings()
{
writeConfig(config);
}
-void AutotqlayoutDlg::slotDoAutotqlayout()
+void AutolayoutDlg::slotDoAutotqlayout()
{
- Autotqlayout::Autotqlayouter* a=getAutotqlayouter();;
+ Autotqlayout::Autolayouter* a=getAutolayouter();;
a->setAssociationAsEdges( associationAsEdges);
a->setAssociationWeight( associationWeight );
@@ -122,9 +122,9 @@ void AutotqlayoutDlg::slotDoAutotqlayout()
accept();
}
-void AutotqlayoutDlg::readConfig( KConfig * conf)
+void AutolayoutDlg::readConfig( KConfig * conf)
{
- conf->setGroup("AutotqlayoutDlg");
+ conf->setGroup("AutolayoutDlg");
associationEdgesCB->setChecked((bool)(conf->readBoolEntry( "associationAsEdges",false)));
centerDiagramCB->setChecked((bool)(conf->readBoolEntry( "centerDiagram",true)));
dependenciesEdgesCB->setChecked((bool)(conf->readBoolEntry( "dependenciesAsEdges",false)));
@@ -138,10 +138,10 @@ void AutotqlayoutDlg::readConfig( KConfig * conf)
algorithmCOB->setCurrentItem((int)(conf->readNumEntry( "algorithm",0)));
}
-void AutotqlayoutDlg::writeConfig( KConfig * conf)
+void AutolayoutDlg::writeConfig( KConfig * conf)
{
// conf=kapp->config();
- conf->setGroup("AutotqlayoutDlg");
+ conf->setGroup("AutolayoutDlg");
conf->writeEntry( "associationAsEdges",associationEdgesCB->isChecked());
conf->writeEntry( "centerDiagram", centerDiagramCB->isChecked());
conf->writeEntry("dependenciesAsEdges",dependenciesEdgesCB->isChecked());
@@ -159,26 +159,26 @@ void AutotqlayoutDlg::writeConfig( KConfig * conf)
}
-void AutotqlayoutDlg::slotSelectAlgorithm( const TQString& _algname)
+void AutolayoutDlg::slotSelectAlgorithm( const TQString& _algname)
{
algname=_algname;
}
-Autotqlayout::Autotqlayouter * AutotqlayoutDlg::getAutotqlayouter( )
+Autotqlayout::Autolayouter * AutolayoutDlg::getAutolayouter( )
{
const TQString text = algorithmCOB->currentText();
kDebug() << "Autotqlayout Algorithm " << algname << " found " << text << endl;
if (text == "dot")
- return new Autotqlayout::DotAutotqlayouter();
+ return new Autotqlayout::DotAutolayouter();
if (text == "circo")
- return new Autotqlayout::CircoAutotqlayouter();
+ return new Autotqlayout::CircoAutolayouter();
if (text == "neato")
- return new Autotqlayout::NeatoAutotqlayouter();
+ return new Autotqlayout::NeatoAutolayouter();
kError() << "Autotqlayout Algorithm not found" << endl;
- return new Autotqlayout::DotAutotqlayouter();
+ return new Autotqlayout::DotAutolayouter();
}
-#include "autotqlayoutdlg.moc"
+#include "autolayoutdlg.moc"