[Uml-devel] branches/work/isi-umbrello/umbrello/umbrello

Kevin Ottens ervin at kde.org
Fri Mar 2 15:38:08 UTC 2007


Le vendredi 2 mars 2007, Thomas Gallinari a écrit :
> SVN commit 638586 by gallinari:
>
> We can now add as many dash lines as we want for a parallel or alternative
> combined fragment, by a right click on it and selecting 'Add Interaction
> Operand'.
>
>
>  M  +76 -38    combinedfragmentwidget.cpp
>  M  +12 -2     combinedfragmentwidget.h
>  M  +6 -0      listpopupmenu.cpp
>  M  +2 -0      listpopupmenu.h
> [...]
> +void CombinedFragmentWidget::slotMenuSelection(int sel) {
> +    UMLWidget::slotMenuSelection(sel);
> +    switch (sel) {
> +        // for alternative or parallel combined fragments
> +        case ListPopupMenu::mt_AddInteractionOperand:
> +            kDebug()<<"yeeeeeeeeeeeeeeeeeeeeeeeeeeees
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n";

Hum... Avoid keeping this. ;-)

> [...]
> --- branches/work/isi-umbrello/umbrello/umbrello/combinedfragmentwidget.h
> #638585:638586 @@ -12,6 +12,7 @@
>  #ifndef COMBINEDFRAGMENTWIDGET_H
>  #define COMBINEDFRAGMENTWIDGET_H
>
> +#include <list>
>  #include "umlwidget.h"
>  #include "worktoolbar.h"
>  #include "floatingdashlinewidget.h"
> @@ -20,6 +21,8 @@
>  #define COMBINED_FRAGMENT_WIDTH 100
>  #define COMBINED_FRAGMENT_HEIGHT 50
>
> +using namespace std;
> +

Please don't use the STL here. Use QList instead, it's safer.

Regards.
-- 
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/umbrello-devel/attachments/20070302/dd19634f/attachment.sig>


More information about the umbrello-devel mailing list