umbrello API Documentation

ListPopupMenu Class Reference

A popup menu that depending on what type it is set to will display a different menu. Displays a popup menu. More...

#include <listpopupmenu.h>

List of all members.

Public Types

enum  Menu_Type {
  mt_Model, mt_Logical_View, mt_UseCase_View, mt_Component_View,
  mt_Deployment_View, mt_EntityRelationship_Model, mt_UseCase_Diagram, mt_Sequence_Diagram,
  mt_Class_Diagram, mt_Collaboration_Diagram, mt_State_Diagram, mt_Activity_Diagram,
  mt_Component_Diagram, mt_Deployment_Diagram, mt_EntityRelationship_Diagram, mt_On_UseCase_Diagram,
  mt_On_Sequence_Diagram, mt_On_Class_Diagram, mt_On_Collaboration_Diagram, mt_On_State_Diagram,
  mt_On_Activity_Diagram, mt_On_Component_Diagram, mt_On_Deployment_Diagram, mt_On_EntityRelationship_Diagram,
  mt_Logical_Folder, mt_UseCase_Folder, mt_Component_Folder, mt_Deployment_Folder,
  mt_EntityRelationship_Folder, mt_Class, mt_Package, mt_Subsystem,
  mt_Component, mt_Node, mt_Artifact, mt_Interface,
  mt_Enum, mt_Entity, mt_Datatype, mt_Actor,
  mt_UseCase, mt_Attribute, mt_EntityAttribute, mt_EnumLiteral,
  mt_Object, mt_Initial_State, mt_End_State, mt_State,
  mt_Activity, mt_Initial_Activity, mt_End_Activity, mt_Operation,
  mt_Template, mt_New_Parameter, mt_New_Operation, mt_New_Attribute,
  mt_New_Template, mt_New_EnumLiteral, mt_New_EntityAttribute, mt_Parameter_Selected,
  mt_Operation_Selected, mt_Attribute_Selected, mt_Template_Selected, mt_EnumLiteral_Selected,
  mt_EntityAttribute_Selected, mt_Association_Selected, mt_Show_Attributes, mt_Show_Attributes_Selection,
  mt_Show_Operations, mt_Show_Operations_Selection, mt_Show_Packages, mt_Show_Packages_Selection,
  mt_Show_Stereotypes, mt_Show_Stereotypes_Selection, mt_Visibility, mt_Visibility_Selection,
  mt_DrawAsCircle, mt_DrawAsCircle_Selection, mt_ChangeToClass, mt_ChangeToClass_Selection,
  mt_ChangeToInterface, mt_ChangeToInterface_Selection, mt_Rename_Object, mt_Select_Operation,
  mt_Anchor, mt_Properties, mt_Rename, mt_Delete,
  mt_Export_Image, mt_Import_Classes, mt_Sequence_Number, mt_Cut,
  mt_Copy, mt_Paste, mt_Clear, mt_Redo,
  mt_Undo, mt_Link_Docs, mt_Show_Operation_Signature, mt_Show_Operation_Signature_Selection,
  mt_Show_Attribute_Signature, mt_Show_Attribute_Signature_Selection, mt_Message_Text, mt_Collaboration_Message,
  mt_FloatText, mt_MultiA, mt_MultiB, mt_Name,
  mt_FullAssociation, mt_RoleNameA, mt_RoleNameB, mt_Delete_Selection,
  mt_Reset_Label_Positions, mt_Line_Color, mt_Line_Color_Selection, mt_Fill_Color,
  mt_Fill_Color_Selection, mt_Use_Fill_Color, mt_Default_Properties, mt_Rename_MultiA,
  mt_Rename_MultiB, mt_Rename_Name, mt_Rename_RoleAName, mt_Rename_RoleBName,
  mt_Change_Font, mt_Change_Font_Selection, mt_SnapToGrid, mt_ShowSnapGrid,
  mt_Activity_Selected, mt_New_Activity, mt_Up, mt_Down,
  mt_Branch, mt_Flip, mt_Expand_All, mt_Collapse_All,
  mt_Refactoring, mt_ViewCode, mt_Clone, mt_Show_Public_Only,
  mt_Show_Public_Only_Selection, mt_Externalize_Folder, mt_Internalize_Folder, mt_Undefined = - 1
}
 This type hosts all possible menu types. More...

Public Member Functions

 ListPopupMenu (QWidget *parent, Menu_Type type=mt_Undefined, UMLView *view=0)
 Constructs the popup menu for a diagram.
 ListPopupMenu (QWidget *parent, Uml::ListView_Type type)
 Constructs the popup menu for a list view item.
 ListPopupMenu (QWidget *parent, UMLWidget *object, bool multi=false, bool unique=false)
 Constructs the popup menu for a canvas widget.
 ~ListPopupMenu ()
 Standard deconstructor.

Static Public Member Functions

static Uml::Object_Type convert_MT_OT (Menu_Type mt)
 Utility: Convert a Menu_Type value to an Object_Type value.
static Uml::Diagram_Type convert_MT_DT (Menu_Type mt)
 Utility: Convert a Menu_Type value to a Diagram_Type value.


Detailed Description

A popup menu that depending on what type it is set to will display a different menu. Displays a popup menu.

Author:
Paul Hensgen <phensgen@techie.com> Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 31 of file listpopupmenu.h.


Member Enumeration Documentation

enum ListPopupMenu::Menu_Type
 

This type hosts all possible menu types.

Definition at line 35 of file listpopupmenu.h.


Constructor & Destructor Documentation

ListPopupMenu::ListPopupMenu QWidget *  parent,
Menu_Type  type = mt_Undefined,
UMLView view = 0
[explicit]
 

Constructs the popup menu for a diagram.

Parameters:
parent The parent to ListPopupMenu.
type The type of menu to display.

Definition at line 40 of file listpopupmenu.cpp.

ListPopupMenu::ListPopupMenu QWidget *  parent,
Uml::ListView_Type  type
 

Constructs the popup menu for a list view item.

Parameters:
parent The parent to ListPopupMenu.
type The type of menu to display.

Definition at line 47 of file listpopupmenu.cpp.

ListPopupMenu::ListPopupMenu QWidget *  parent,
UMLWidget object,
bool  multi = false,
bool  unique = false
 

Constructs the popup menu for a canvas widget.

Parameters:
parent The parent to ListPopupMenu.
object The UMLWidget to represent a menu for.
multi True if multiple items are selected.
unique True if multiple selected items all have the same type (e.g. Class, Interface)

Definition at line 208 of file listpopupmenu.cpp.

References UMLClassifier::attributes(), UMLObject::getAbstract(), ClassifierWidget::getClassifier(), ClassifierWidget::getDrawAsCircle(), ForkJoinWidget::getDrawVertical(), and UMLView::getType().

ListPopupMenu::~ListPopupMenu  ) 
 

Standard deconstructor.

Definition at line 452 of file listpopupmenu.cpp.


Member Function Documentation

Uml::Object_Type ListPopupMenu::convert_MT_OT Menu_Type  mt  )  [static]
 

Utility: Convert a Menu_Type value to an Object_Type value.

Definition at line 790 of file listpopupmenu.cpp.

Referenced by ClassifierWidget::slotMenuSelection().

Uml::Diagram_Type ListPopupMenu::convert_MT_DT Menu_Type  mt  )  [static]
 

Utility: Convert a Menu_Type value to a Diagram_Type value.

Definition at line 753 of file listpopupmenu.cpp.

Referenced by UMLListView::popupMenuSel().


The documentation for this class was generated from the following files:
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:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003