[Uml-devel] kdesdk/umbrello/umbrello

Sebastian Stein seb.kde at hpfsc.de
Sun Jul 11 07:02:01 UTC 2004


CVS commit by sstein: 

Add a message box if alignment is not possible. This box can be turned of.


  M +3 -0      aligntoolbar.cpp   1.2


--- kdesdk/umbrello/umbrello/aligntoolbar.cpp  #1.1:1.2
@@ -16,4 +16,5 @@
 
 #include <klocale.h>
+#include <kmessagebox.h>
 #include <kstandarddirs.h>
 
@@ -244,4 +245,6 @@ void AlignToolBar::slotButtonChanged(int
                         widget->updateWidget();
                 }
+        } else {
+                KMessageBox::messageBox(0, KMessageBox::Information, i18n("For alignment you have to select at least 2 objects like classes or actors. You can not align associations."), i18n("Information"), i18n("&Ok"), QString(""), "showAlignInformation");
         } // if (widgetList.count() > 1)
 






More information about the umbrello-devel mailing list