[Uml-devel] kdesdk/umbrello/umbrello

Sebastian Stein seb.kde at hpfsc.de
Fri Sep 12 06:02:57 UTC 2003


CVS commit by sstein: 

You can now change the display/show settings of multiple selected classes or interfaces:

- added some mt_Show_XX defines for the multi selection actions
- added an unique parameter to the constructor handling multiple selections; this parameter shows, if only items of the same type (class, interface) are selected


  M +16 -3     listpopupmenu.h   1.20


--- kdesdk/umbrello/umbrello/listpopupmenu.h  #1.19:1.20
@@ -86,7 +86,15 @@ public:
             mt_Association_Selected,          //ASSOCSEL
             mt_Show_Attributes,               //SHOWATTS
+            mt_Show_Attributes_Selection,     //SHOWATTS, multiple items
             mt_Show_Operations,               //SHOWOPS
+            mt_Show_Operations_Selection,     //SHOWOPS, multiple items
+            mt_Show_Packages,                 //SHOWPACKAGE
+            mt_Show_Packages_Selection,       //SHOWPACKAGE, multiple items
+            mt_Show_Stereotypes,              //SHOWSTEREOTYPE
+            mt_Show_Stereotypes_Selection,    //SHOWSTEREOTYPE, multiple items
             mt_Scope,                         //SCOPE
-            mt_DrawAsCircle,
+            mt_Scope_Selection,               //SCOPE, multiple items
+            mt_DrawAsCircle,                  //DRAWASCIRCLE
+            mt_DrawAsCircle_Selection,        //DRAWASCIRCLE, multiple items
             mt_Rename_Object,                 //ROBJECT
             mt_Select_Operation,              //SOPERATION
@@ -107,6 +115,7 @@ public:
             mt_Delete_Message,                //DELETEMESSAGE
             mt_Show_Operation_Signature,      //SHOWOPSIG
-
+            mt_Show_Operation_Signature_Selection, //SHOWOPSIG, multiple items
             mt_Show_Attribute_Signature,      //SHOWATTSIG
+            mt_Show_Attribute_Signature_Selection, //SHOWATTSIG, multiple items
             mt_Message_Text,                  //MESSAGET
             mt_Collaboration_Message,         //COLLMESSAGE
@@ -172,6 +181,10 @@ public:
          *      @param  parent          The parent to ListPopupMenu.
          *      @param  object          The UMLWidget to represent a menu for.
+         *      @param  multi                   True, if multiple items are selected.
+         *      @param  unique          True, if multiple selected items all have the same
+         *                                                              type (e.g. Class, Interface)
          */
-        ListPopupMenu(QWidget * parent, UMLWidget * object, bool multi = false);
+        ListPopupMenu(QWidget * parent, UMLWidget * object, bool multi = false,
+                                                                                                                                                        bool unique = false);
 
         /**






More information about the umbrello-devel mailing list