umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Types | Public Slots | Signals | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
WorkToolBar Class Reference

The toolbar that is different for each type of diagram. More...

#include <worktoolbar.h>

Inheritance diagram for WorkToolBar:
Collaboration diagram for WorkToolBar:

Public Types

enum  ToolBar_Buttons {
  tbb_Undefined = -1 , tbb_Arrow , tbb_Generalization , tbb_Aggregation ,
  tbb_Dependency , tbb_Association , tbb_Containment , tbb_Coll_Mesg_Sync ,
  tbb_Coll_Mesg_Async , tbb_Seq_Message_Creation , tbb_Seq_Message_Destroy , tbb_Seq_Message_Synchronous ,
  tbb_Seq_Message_Asynchronous , tbb_Seq_Message_Found , tbb_Seq_Message_Lost , tbb_Seq_Combined_Fragment ,
  tbb_Seq_Precondition , tbb_Composition , tbb_Relationship , tbb_UniAssociation ,
  tbb_State_Transition , tbb_Activity_Transition , tbb_Send_Signal , tbb_Accept_Signal ,
  tbb_Accept_Time_Event , tbb_Anchor , tbb_Note , tbb_Box ,
  tbb_Text , tbb_Actor , tbb_UseCase , tbb_Class ,
  tbb_Interface , tbb_Interface_Provider , tbb_Interface_Requirement , tbb_Datatype ,
  tbb_Enum , tbb_Entity , tbb_Package , tbb_Component ,
  tbb_Node , tbb_Artifact , tbb_Object , tbb_Initial_State ,
  tbb_State , tbb_Region , tbb_End_State , tbb_Initial_Activity ,
  tbb_Activity , tbb_End_Activity , tbb_Final_Activity , tbb_Pin ,
  tbb_Port , tbb_Branch , tbb_Fork , tbb_DeepHistory ,
  tbb_ShallowHistory , tbb_StateFork , tbb_StateJoin , tbb_Junction ,
  tbb_Choice , tbb_Andline , tbb_Exception , tbb_Object_Node ,
  tbb_PrePostCondition , tbb_Category , tbb_Category2Parent , tbb_Child2Category ,
  tbb_Instance , tbb_SubSystem
}
 

Public Slots

void slotCheckToolBar (Uml::DiagramType::Enum dt)
 
void buttonChanged (int b)
 
void slotResetToolBar ()
 
void slotArrow ()
 
void slotGeneralization ()
 
void slotAggregation ()
 
void slotDependency ()
 
void slotAssociation ()
 
void slotContainment ()
 
void slotColl_Mesg_Sync ()
 
void slotColl_Mesg_Async ()
 
void slotSeq_Message_Creation ()
 
void slotSeq_Message_Destroy ()
 
void slotSeq_Message_Synchronous ()
 
void slotSeq_Message_Asynchronous ()
 
void slotSeq_Message_Found ()
 
void slotSeq_Message_Lost ()
 
void slotSeq_Combined_Fragment ()
 
void slotSeq_Precondition ()
 
void slotComposition ()
 
void slotRelationship ()
 
void slotUniAssociation ()
 
void slotState_Transition ()
 
void slotActivity_Transition ()
 
void slotAnchor ()
 
void slotNote ()
 
void slotBox ()
 
void slotText ()
 
void slotActor ()
 
void slotUseCase ()
 
void slotClass ()
 
void slotInterface ()
 
void slotInterfaceProvider ()
 
void slotInterfaceRequired ()
 
void slotDatatype ()
 
void slotEnum ()
 
void slotEntity ()
 
void slotPackage ()
 
void slotComponent ()
 
void slotNode ()
 
void slotArtifact ()
 
void slotObject ()
 
void slotRegion ()
 
void slotInitial_State ()
 
void slotState ()
 
void slotEnd_State ()
 
void slotInitial_Activity ()
 
void slotActivity ()
 
void slotEnd_Activity ()
 
void slotFinal_Activity ()
 
void slotBranch ()
 
void slotSend_Signal ()
 
void slotAccept_Signal ()
 
void slotAccept_Time_Event ()
 
void slotFork ()
 
void slotDeepHistory ()
 
void slotShallowHistory ()
 
void slotStateJoin ()
 
void slotStateFork ()
 
void slotJunction ()
 
void slotChoice ()
 
void slotAndline ()
 
void slotException ()
 
void slotPrePostCondition ()
 
void slotPin ()
 
void slotPort ()
 
void slotObject_Node ()
 
void slotCategory ()
 
void slotCategory2Parent ()
 
void slotChild2Category ()
 
void slotInstance ()
 
void slotSubsystem ()
 

Signals

void sigButtonChanged (int)
 

Public Member Functions

 WorkToolBar (QMainWindow *parentWindow)
 
 ~WorkToolBar ()
 
void setOldTool ()
 
void setDefaultTool ()
 
void setupActions ()
 

Private Types

typedef QMap< Uml::DiagramType::Enum, ToolBar_ButtonsOldToolMap
 
typedef QMap< ToolBar_Buttons, QCursor > CursorMap
 
typedef QMap< ToolBar_Buttons, KAction * > ActionsMap
 

Private Member Functions

void loadPixmaps ()
 
QCursor currentCursor ()
 
QCursor defaultCursor ()
 
QAction * insertHotBtn (ToolBar_Buttons tbb)
 
void insertBasicAssociations ()
 

Private Attributes

ToolBar_Buttons m_CurrentButtonID
 
OldToolMap m_map
 
Uml::DiagramType::Enum m_Type
 
CursorMap m_cursors
 
ActionsMap m_actions
 

Detailed Description

The toolbar that is different for each type of diagram.

This is the toolbar that is displayed on the right-hand side of the program window. For each type of diagram it will change to suit that document.

To add a new tool button do the following:

Author
Paul Hensgen phens.nosp@m.gen@.nosp@m.techi.nosp@m.e.co.nosp@m.m Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org

Member Typedef Documentation

◆ ActionsMap

typedef QMap<ToolBar_Buttons, KAction*> WorkToolBar::ActionsMap
private

◆ CursorMap

typedef QMap<ToolBar_Buttons, QCursor> WorkToolBar::CursorMap
private

◆ OldToolMap

Member Enumeration Documentation

◆ ToolBar_Buttons

Enumeration of all available toolbar buttons.

Enumerator
tbb_Undefined 
tbb_Arrow 
tbb_Generalization 
tbb_Aggregation 
tbb_Dependency 
tbb_Association 
tbb_Containment 
tbb_Coll_Mesg_Sync 
tbb_Coll_Mesg_Async 
tbb_Seq_Message_Creation 
tbb_Seq_Message_Destroy 
tbb_Seq_Message_Synchronous 
tbb_Seq_Message_Asynchronous 
tbb_Seq_Message_Found 
tbb_Seq_Message_Lost 
tbb_Seq_Combined_Fragment 
tbb_Seq_Precondition 
tbb_Composition 
tbb_Relationship 
tbb_UniAssociation 
tbb_State_Transition 
tbb_Activity_Transition 
tbb_Send_Signal 
tbb_Accept_Signal 
tbb_Accept_Time_Event 
tbb_Anchor 
tbb_Note 
tbb_Box 
tbb_Text 
tbb_Actor 
tbb_UseCase 
tbb_Class 
tbb_Interface 
tbb_Interface_Provider 
tbb_Interface_Requirement 
tbb_Datatype 
tbb_Enum 
tbb_Entity 
tbb_Package 
tbb_Component 
tbb_Node 
tbb_Artifact 
tbb_Object 
tbb_Initial_State 
tbb_State 
tbb_Region 
tbb_End_State 
tbb_Initial_Activity 
tbb_Activity 
tbb_End_Activity 
tbb_Final_Activity 
tbb_Pin 
tbb_Port 
tbb_Branch 
tbb_Fork 
tbb_DeepHistory 
tbb_ShallowHistory 
tbb_StateFork 
tbb_StateJoin 
tbb_Junction 
tbb_Choice 
tbb_Andline 
tbb_Exception 
tbb_Object_Node 
tbb_PrePostCondition 
tbb_Category 
tbb_Category2Parent 
tbb_Child2Category 
tbb_Instance 
tbb_SubSystem 

Constructor & Destructor Documentation

◆ WorkToolBar()

WorkToolBar::WorkToolBar ( QMainWindow *  parentWindow)
explicit

Creates a work tool bar.

Parameters
parentWindowThe parent of the toolbar.
Here is the call graph for this function:

◆ ~WorkToolBar()

WorkToolBar::~WorkToolBar ( )

Standard destructor.

Member Function Documentation

◆ buttonChanged

void WorkToolBar::buttonChanged ( int  b)
slot
Here is the call graph for this function:

◆ currentCursor()

QCursor WorkToolBar::currentCursor ( )
private

Returns the current cursor depending on m_CurrentButtonID

◆ defaultCursor()

QCursor WorkToolBar::defaultCursor ( )
private

Returns the default cursor

◆ insertBasicAssociations()

void WorkToolBar::insertBasicAssociations ( )
private

Inserts most associations, just reduces some string duplication (nice to translators)

Here is the call graph for this function:

◆ insertHotBtn()

QAction * WorkToolBar::insertHotBtn ( ToolBar_Buttons  tbb)
private

Inserts the button corresponding to the tbb value given and activates the toggle.

◆ loadPixmaps()

void WorkToolBar::loadPixmaps ( )
private

Loads toolbar icon and mouse cursor images from disk

◆ setDefaultTool()

void WorkToolBar::setDefaultTool ( )

Sets the current tool to the default tool. (select tool) Calling this function is as if the user had pressed the "arrow" button on the toolbar.

◆ setOldTool()

void WorkToolBar::setOldTool ( )

Sets the current tool to the previously used Tool. This is just as if the user had pressed the button for the other tool.

◆ setupActions()

void WorkToolBar::setupActions ( )

Setup actions after reading shortcuts from settings

◆ sigButtonChanged

void WorkToolBar::sigButtonChanged ( int  _t1)
signal

◆ slotAccept_Signal

void WorkToolBar::slotAccept_Signal ( )
slot
Here is the call graph for this function:

◆ slotAccept_Time_Event

void WorkToolBar::slotAccept_Time_Event ( )
slot
Here is the call graph for this function:

◆ slotActivity

void WorkToolBar::slotActivity ( )
slot
Here is the call graph for this function:

◆ slotActivity_Transition

void WorkToolBar::slotActivity_Transition ( )
slot
Here is the call graph for this function:

◆ slotActor

void WorkToolBar::slotActor ( )
slot
Here is the call graph for this function:

◆ slotAggregation

void WorkToolBar::slotAggregation ( )
slot
Here is the call graph for this function:

◆ slotAnchor

void WorkToolBar::slotAnchor ( )
slot
Here is the call graph for this function:

◆ slotAndline

void WorkToolBar::slotAndline ( )
slot
Here is the call graph for this function:

◆ slotArrow

void WorkToolBar::slotArrow ( )
slot

These slots are triggered by the buttons. They call buttonChanged with the button id

Here is the call graph for this function:

◆ slotArtifact

void WorkToolBar::slotArtifact ( )
slot
Here is the call graph for this function:

◆ slotAssociation

void WorkToolBar::slotAssociation ( )
slot
Here is the call graph for this function:

◆ slotBox

void WorkToolBar::slotBox ( )
slot
Here is the call graph for this function:

◆ slotBranch

void WorkToolBar::slotBranch ( )
slot
Here is the call graph for this function:

◆ slotCategory

void WorkToolBar::slotCategory ( )
slot
Here is the call graph for this function:

◆ slotCategory2Parent

void WorkToolBar::slotCategory2Parent ( )
slot
Here is the call graph for this function:

◆ slotCheckToolBar

void WorkToolBar::slotCheckToolBar ( Uml::DiagramType::Enum  dt)
slot
Here is the call graph for this function:

◆ slotChild2Category

void WorkToolBar::slotChild2Category ( )
slot
Here is the call graph for this function:

◆ slotChoice

void WorkToolBar::slotChoice ( )
slot
Here is the call graph for this function:

◆ slotClass

void WorkToolBar::slotClass ( )
slot
Here is the call graph for this function:

◆ slotColl_Mesg_Async

void WorkToolBar::slotColl_Mesg_Async ( )
slot
Here is the call graph for this function:

◆ slotColl_Mesg_Sync

void WorkToolBar::slotColl_Mesg_Sync ( )
slot
Here is the call graph for this function:

◆ slotComponent

void WorkToolBar::slotComponent ( )
slot
Here is the call graph for this function:

◆ slotComposition

void WorkToolBar::slotComposition ( )
slot
Here is the call graph for this function:

◆ slotContainment

void WorkToolBar::slotContainment ( )
slot
Here is the call graph for this function:

◆ slotDatatype

void WorkToolBar::slotDatatype ( )
slot
Here is the call graph for this function:

◆ slotDeepHistory

void WorkToolBar::slotDeepHistory ( )
slot
Here is the call graph for this function:

◆ slotDependency

void WorkToolBar::slotDependency ( )
slot
Here is the call graph for this function:

◆ slotEnd_Activity

void WorkToolBar::slotEnd_Activity ( )
slot
Here is the call graph for this function:

◆ slotEnd_State

void WorkToolBar::slotEnd_State ( )
slot
Here is the call graph for this function:

◆ slotEntity

void WorkToolBar::slotEntity ( )
slot
Here is the call graph for this function:

◆ slotEnum

void WorkToolBar::slotEnum ( )
slot
Here is the call graph for this function:

◆ slotException

void WorkToolBar::slotException ( )
slot
Here is the call graph for this function:

◆ slotFinal_Activity

void WorkToolBar::slotFinal_Activity ( )
slot
Here is the call graph for this function:

◆ slotFork

void WorkToolBar::slotFork ( )
slot
Here is the call graph for this function:

◆ slotGeneralization

void WorkToolBar::slotGeneralization ( )
slot
Here is the call graph for this function:

◆ slotInitial_Activity

void WorkToolBar::slotInitial_Activity ( )
slot
Here is the call graph for this function:

◆ slotInitial_State

void WorkToolBar::slotInitial_State ( )
slot
Here is the call graph for this function:

◆ slotInstance

void WorkToolBar::slotInstance ( )
slot
Here is the call graph for this function:

◆ slotInterface

void WorkToolBar::slotInterface ( )
slot
Here is the call graph for this function:

◆ slotInterfaceProvider

void WorkToolBar::slotInterfaceProvider ( )
slot
Here is the call graph for this function:

◆ slotInterfaceRequired

void WorkToolBar::slotInterfaceRequired ( )
slot
Here is the call graph for this function:

◆ slotJunction

void WorkToolBar::slotJunction ( )
slot
Here is the call graph for this function:

◆ slotNode

void WorkToolBar::slotNode ( )
slot
Here is the call graph for this function:

◆ slotNote

void WorkToolBar::slotNote ( )
slot
Here is the call graph for this function:

◆ slotObject

void WorkToolBar::slotObject ( )
slot
Here is the call graph for this function:

◆ slotObject_Node

void WorkToolBar::slotObject_Node ( )
slot
Here is the call graph for this function:

◆ slotPackage

void WorkToolBar::slotPackage ( )
slot
Here is the call graph for this function:

◆ slotPin

void WorkToolBar::slotPin ( )
slot
Here is the call graph for this function:

◆ slotPort

void WorkToolBar::slotPort ( )
slot
Here is the call graph for this function:

◆ slotPrePostCondition

void WorkToolBar::slotPrePostCondition ( )
slot
Here is the call graph for this function:

◆ slotRegion

void WorkToolBar::slotRegion ( )
slot
Here is the call graph for this function:

◆ slotRelationship

void WorkToolBar::slotRelationship ( )
slot
Here is the call graph for this function:

◆ slotResetToolBar

void WorkToolBar::slotResetToolBar ( )
slot
Here is the call graph for this function:

◆ slotSend_Signal

void WorkToolBar::slotSend_Signal ( )
slot
Here is the call graph for this function:

◆ slotSeq_Combined_Fragment

void WorkToolBar::slotSeq_Combined_Fragment ( )
slot
Here is the call graph for this function:

◆ slotSeq_Message_Asynchronous

void WorkToolBar::slotSeq_Message_Asynchronous ( )
slot
Here is the call graph for this function:

◆ slotSeq_Message_Creation

void WorkToolBar::slotSeq_Message_Creation ( )
slot
Here is the call graph for this function:

◆ slotSeq_Message_Destroy

void WorkToolBar::slotSeq_Message_Destroy ( )
slot
Here is the call graph for this function:

◆ slotSeq_Message_Found

void WorkToolBar::slotSeq_Message_Found ( )
slot
Here is the call graph for this function:

◆ slotSeq_Message_Lost

void WorkToolBar::slotSeq_Message_Lost ( )
slot
Here is the call graph for this function:

◆ slotSeq_Message_Synchronous

void WorkToolBar::slotSeq_Message_Synchronous ( )
slot
Here is the call graph for this function:

◆ slotSeq_Precondition

void WorkToolBar::slotSeq_Precondition ( )
slot
Here is the call graph for this function:

◆ slotShallowHistory

void WorkToolBar::slotShallowHistory ( )
slot
Here is the call graph for this function:

◆ slotState

void WorkToolBar::slotState ( )
slot
Here is the call graph for this function:

◆ slotState_Transition

void WorkToolBar::slotState_Transition ( )
slot
Here is the call graph for this function:

◆ slotStateFork

void WorkToolBar::slotStateFork ( )
slot
Here is the call graph for this function:

◆ slotStateJoin

void WorkToolBar::slotStateJoin ( )
slot
Here is the call graph for this function:

◆ slotSubsystem

void WorkToolBar::slotSubsystem ( )
slot
Here is the call graph for this function:

◆ slotText

void WorkToolBar::slotText ( )
slot
Here is the call graph for this function:

◆ slotUniAssociation

void WorkToolBar::slotUniAssociation ( )
slot
Here is the call graph for this function:

◆ slotUseCase

void WorkToolBar::slotUseCase ( )
slot
Here is the call graph for this function:

Member Data Documentation

◆ m_actions

ActionsMap WorkToolBar::m_actions
private

◆ m_CurrentButtonID

ToolBar_Buttons WorkToolBar::m_CurrentButtonID
private

◆ m_cursors

CursorMap WorkToolBar::m_cursors
private

◆ m_map

OldToolMap WorkToolBar::m_map
private

◆ m_Type

Uml::DiagramType::Enum WorkToolBar::m_Type
private

The documentation for this class was generated from the following files: