[Uml-devel] kdesdk/umbrello/umbrello
Sebastian Stein
seb.kde at hpfsc.de
Sat Jul 10 06:31:03 UTC 2004
CVS commit by sstein:
add tools for alignment of several objects (wish 67058)
A aligntoolbar.cpp 1.1 [no copyright GPL (v2+)]
A aligntoolbar.h 1.1 [no copyright GPL (v2+)]
M +1 -0 Makefile.am 1.48
M +7 -0 uml.cpp 1.103
M +2 -0 uml.h 1.34
--- kdesdk/umbrello/umbrello/Makefile.am #1.47:1.48
@@ -5,4 +5,5 @@
actor.cpp \
actorwidget.cpp \
+aligntoolbar.cpp \
artifact.cpp \
artifactwidget.cpp \
--- kdesdk/umbrello/umbrello/uml.cpp #1.102:1.103
@@ -10,4 +10,5 @@
#include "uml.h"
+#include "aligntoolbar.h"
#include "infowidget.h"
#include "classimport.h"
@@ -364,4 +365,8 @@ void UMLApp::initView() {
addToolBar(toolsbar, Qt::DockTop, false);
+ m_alignToolBar = new AlignToolBar(this, "");
+ m_alignToolBar->setLabel(i18n("Alignment Toolbar"));
+ addToolBar(m_alignToolBar, Qt::DockTop, false);
+
m_mainDock = createDockWidget("maindock", 0L, 0L, "main dock");
viewStack = new QWidgetStack(m_mainDock, "viewstack");
@@ -418,4 +423,5 @@ void UMLApp::saveOptions() {
toolBar("mainToolBar")->saveSettings(config, "toolbar");
toolsbar->saveSettings(config, "workbar");
+ m_alignToolBar->saveSettings(config, "aligntoolbar");
fileOpenRecent->saveEntries(config,"Recent Files");
config->setGroup( "General Options" );
@@ -508,4 +514,5 @@ void UMLApp::readOptions() {
//do config for work toolbar
toolsbar->applySettings(config, "workbar");
+ m_alignToolBar->applySettings(config, "aligntoolbar");
fileOpenRecent->loadEntries(config,"Recent Files");
config->setGroup("General Options");
--- kdesdk/umbrello/umbrello/uml.h #1.33:1.34
@@ -26,4 +26,5 @@
// forward declaration of the UML classes
+class AlignToolBar;
class CodeDocument;
class CodeGenerator;
@@ -817,4 +818,5 @@ private:
QTimer* m_clipTimer;
QTimer* m_copyTimer;
+ AlignToolBar* m_alignToolBar;
KStatusBarLabel* m_statusLabel;
More information about the umbrello-devel
mailing list