umbrello API Documentation

autolayoutdlg.h

00001 /***************************************************************************
00002  *  copyright (C) 2005                                                     *
00003  *  Umbrello UML Modeller Authors <uml-devel @uml.sf.net>                  *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef AUTOLAYOUTDLG_H
00013 #define AUTOLAYOUTDLG_H
00014 
00015 #include "newautolayoutdialog.h"
00016 #include "../umlview.h"
00017 #include <qobject.h>
00018 #include <kconfig.h>
00019 #include "autolayout.h"
00020 
00021 class AutolayoutDlg : public MyDialog1
00022 {
00023     Q_OBJECT
00024   public:
00025     AutolayoutDlg(KConfig* c,UMLView* v, QWidget *parent = 0, const char *name = 0);
00026   public slots:
00027     virtual void slotSetAssociationWeight(int i);
00028     virtual void slotSetDependenciesWeight(int i);
00029     virtual void slotSetGeneralizationWeight(int i);
00030     virtual void slotSetGenralizationAsEdges(bool b);
00031     virtual void slotSetDependenciesAsEdges(bool b);
00032     virtual void slotSetAssociationAsEdges(bool b);
00033     virtual void slotSetCompressShapes(bool b);
00034     virtual void slotSetCenterDiagram(bool b);
00035     virtual void slotSetClusterizeHierarchies(bool b);
00036     virtual void slotSetShapeSeparation(int i);
00037     virtual void slotReloadSettings();
00038     virtual void slotSaveSettings();
00039     virtual void slotDoAutolayout();
00040     void readConfig(KConfig*);
00041     void writeConfig(KConfig*);
00042     virtual void slotSelectAlgorithm(const QString&);
00043 
00044 
00045   private:
00046     UMLView *view;
00047     int associationWeight;
00048     int dependenciesWeight;
00049     int generalizationWeight;
00050     bool genralizationAsEdges;
00051     bool dependenciesAsEdges;
00052     bool associationAsEdges;
00053     bool compressShapes;
00054     bool centerDiagram;
00055     bool clusterizeHierarchies;
00056     int shapeSeparation;
00057     KConfig* config;
00058     QString algname;
00059     Autolayout::Autolayouter* getAutolayouter();
00060 
00061 };
00062 
00063 #endif
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:54 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003