The toolbar that is different for each type of diagram.
More...
#include <worktoolbar.h>
|
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
} |
|
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:
- create a button pixmap (symbol)
- create a cursor pixmap
- add an element to the ToolBar_Buttons enum
- adjust function loadPixmaps
- adjust function slotCheckToolBar
- 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
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 |
|
WorkToolBar::WorkToolBar |
( |
QMainWindow * |
parentWindow | ) |
|
|
explicit |
Creates a work tool bar.
- Parameters
-
parentWindow | The parent of the toolbar. |
WorkToolBar::~WorkToolBar |
( |
| ) |
|
void WorkToolBar::buttonChanged |
( |
int |
b | ) |
|
|
slot |
QCursor WorkToolBar::currentCursor |
( |
| ) |
|
|
private |
Returns the current cursor depending on m_CurrentButtonID
QCursor WorkToolBar::defaultCursor |
( |
| ) |
|
|
private |
Returns the default cursor
void WorkToolBar::insertBasicAssociations |
( |
| ) |
|
|
private |
Inserts most associations, just reduces some string duplication (nice to translators)
Inserts the button corresponding to the tbb value given and activates the toggle.
void WorkToolBar::loadPixmaps |
( |
| ) |
|
|
private |
Loads toolbar icon and mouse cursor images from disk
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.
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.
void WorkToolBar::setupActions |
( |
| ) |
|
Setup actions after reading shortcuts from settings
void WorkToolBar::sigButtonChanged |
( |
int |
_t1 | ) |
|
|
signal |
void WorkToolBar::slotAccept_Signal |
( |
| ) |
|
|
slot |
void WorkToolBar::slotAccept_Time_Event |
( |
| ) |
|
|
slot |
void WorkToolBar::slotActivity |
( |
| ) |
|
|
slot |
void WorkToolBar::slotActivity_Transition |
( |
| ) |
|
|
slot |
void WorkToolBar::slotActor |
( |
| ) |
|
|
slot |
void WorkToolBar::slotAggregation |
( |
| ) |
|
|
slot |
void WorkToolBar::slotAnchor |
( |
| ) |
|
|
slot |
void WorkToolBar::slotAndline |
( |
| ) |
|
|
slot |
void WorkToolBar::slotArrow |
( |
| ) |
|
|
slot |
These slots are triggered by the buttons. They call buttonChanged with the button id
void WorkToolBar::slotArtifact |
( |
| ) |
|
|
slot |
void WorkToolBar::slotAssociation |
( |
| ) |
|
|
slot |
void WorkToolBar::slotBox |
( |
| ) |
|
|
slot |
void WorkToolBar::slotBranch |
( |
| ) |
|
|
slot |
void WorkToolBar::slotCategory |
( |
| ) |
|
|
slot |
void WorkToolBar::slotCategory2Parent |
( |
| ) |
|
|
slot |
void WorkToolBar::slotChild2Category |
( |
| ) |
|
|
slot |
void WorkToolBar::slotChoice |
( |
| ) |
|
|
slot |
void WorkToolBar::slotClass |
( |
| ) |
|
|
slot |
void WorkToolBar::slotColl_Mesg_Async |
( |
| ) |
|
|
slot |
void WorkToolBar::slotColl_Mesg_Sync |
( |
| ) |
|
|
slot |
void WorkToolBar::slotComponent |
( |
| ) |
|
|
slot |
void WorkToolBar::slotComposition |
( |
| ) |
|
|
slot |
void WorkToolBar::slotContainment |
( |
| ) |
|
|
slot |
void WorkToolBar::slotDatatype |
( |
| ) |
|
|
slot |
void WorkToolBar::slotDeepHistory |
( |
| ) |
|
|
slot |
void WorkToolBar::slotDependency |
( |
| ) |
|
|
slot |
void WorkToolBar::slotEnd_Activity |
( |
| ) |
|
|
slot |
void WorkToolBar::slotEnd_State |
( |
| ) |
|
|
slot |
void WorkToolBar::slotEntity |
( |
| ) |
|
|
slot |
void WorkToolBar::slotEnum |
( |
| ) |
|
|
slot |
void WorkToolBar::slotException |
( |
| ) |
|
|
slot |
void WorkToolBar::slotFinal_Activity |
( |
| ) |
|
|
slot |
void WorkToolBar::slotFork |
( |
| ) |
|
|
slot |
void WorkToolBar::slotGeneralization |
( |
| ) |
|
|
slot |
void WorkToolBar::slotInitial_Activity |
( |
| ) |
|
|
slot |
void WorkToolBar::slotInitial_State |
( |
| ) |
|
|
slot |
void WorkToolBar::slotInstance |
( |
| ) |
|
|
slot |
void WorkToolBar::slotInterface |
( |
| ) |
|
|
slot |
void WorkToolBar::slotInterfaceProvider |
( |
| ) |
|
|
slot |
void WorkToolBar::slotInterfaceRequired |
( |
| ) |
|
|
slot |
void WorkToolBar::slotJunction |
( |
| ) |
|
|
slot |
void WorkToolBar::slotNode |
( |
| ) |
|
|
slot |
void WorkToolBar::slotNote |
( |
| ) |
|
|
slot |
void WorkToolBar::slotObject |
( |
| ) |
|
|
slot |
void WorkToolBar::slotObject_Node |
( |
| ) |
|
|
slot |
void WorkToolBar::slotPackage |
( |
| ) |
|
|
slot |
void WorkToolBar::slotPin |
( |
| ) |
|
|
slot |
void WorkToolBar::slotPort |
( |
| ) |
|
|
slot |
void WorkToolBar::slotPrePostCondition |
( |
| ) |
|
|
slot |
void WorkToolBar::slotRegion |
( |
| ) |
|
|
slot |
void WorkToolBar::slotRelationship |
( |
| ) |
|
|
slot |
void WorkToolBar::slotResetToolBar |
( |
| ) |
|
|
slot |
void WorkToolBar::slotSend_Signal |
( |
| ) |
|
|
slot |
void WorkToolBar::slotSeq_Combined_Fragment |
( |
| ) |
|
|
slot |
void WorkToolBar::slotSeq_Message_Asynchronous |
( |
| ) |
|
|
slot |
void WorkToolBar::slotSeq_Message_Creation |
( |
| ) |
|
|
slot |
void WorkToolBar::slotSeq_Message_Destroy |
( |
| ) |
|
|
slot |
void WorkToolBar::slotSeq_Message_Found |
( |
| ) |
|
|
slot |
void WorkToolBar::slotSeq_Message_Lost |
( |
| ) |
|
|
slot |
void WorkToolBar::slotSeq_Message_Synchronous |
( |
| ) |
|
|
slot |
void WorkToolBar::slotSeq_Precondition |
( |
| ) |
|
|
slot |
void WorkToolBar::slotShallowHistory |
( |
| ) |
|
|
slot |
void WorkToolBar::slotState |
( |
| ) |
|
|
slot |
void WorkToolBar::slotState_Transition |
( |
| ) |
|
|
slot |
void WorkToolBar::slotStateFork |
( |
| ) |
|
|
slot |
void WorkToolBar::slotStateJoin |
( |
| ) |
|
|
slot |
void WorkToolBar::slotSubsystem |
( |
| ) |
|
|
slot |
void WorkToolBar::slotText |
( |
| ) |
|
|
slot |
void WorkToolBar::slotUniAssociation |
( |
| ) |
|
|
slot |
void WorkToolBar::slotUseCase |
( |
| ) |
|
|
slot |
The documentation for this class was generated from the following files: