WorkToolBar Class Reference
This is the toolbar that is displayed on the right-hand side of the program window. The toolbar that is different for each type of diagram. More...
#include <worktoolbar.h>
Public Types | |
| enum | ToolBar_Buttons { tbb_Undefined = -1, tbb_Arrow, tbb_Generalization, tbb_Aggregation, tbb_Dependency, tbb_Association, tbb_Containment, tbb_Coll_Message, tbb_Seq_Message_Synchronous, tbb_Seq_Message_Asynchronous, tbb_Composition, tbb_Relationship, tbb_UniAssociation, tbb_State_Transition, tbb_Activity_Transition, tbb_Anchor, tbb_Note, tbb_Box, tbb_Text, tbb_Actor, tbb_UseCase, tbb_Class, tbb_Interface, tbb_Datatype, tbb_Enum, tbb_Entity, tbb_Package, tbb_Component, tbb_Node, tbb_Artifact, tbb_Object, tbb_Initial_State, tbb_State, tbb_End_State, tbb_Initial_Activity, tbb_Activity, tbb_End_Activity, tbb_Branch, tbb_Fork, tbb_DeepHistory, tbb_ShallowHistory, tbb_Join, tbb_StateFork, tbb_Junction, tbb_Choice, tbb_Andline } |
| Enumeration of all available toolbar buttons. More... | |
Public Slots | |
| void | slotCheckToolBar (Uml::Diagram_Type dt) |
| void | buttonChanged (int b) |
| void | slotResetToolBar () |
Signals | |
| void | sigButtonChanged (int) |
Public Member Functions | |
| WorkToolBar (QMainWindow *parentWindow, const char *name) | |
| Creates a work tool bar. | |
| ~WorkToolBar () | |
| Standard deconstructor. | |
| void | setOldTool () |
| Sets the current tool to the previously used Tool. | |
| void | setDefaultTool () |
| Sets the current tool to the default tool. | |
Detailed Description
This is the toolbar that is displayed on the right-hand side of the program window. The toolbar that is different for each type of diagram.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 <phensgen@techie.com> Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 42 of file worktoolbar.h.
Member Enumeration Documentation
|
|
Enumeration of all available toolbar buttons.
Definition at line 74 of file worktoolbar.h. |
Constructor & Destructor Documentation
|
||||||||||||
|
Creates a work tool bar.
Definition at line 29 of file worktoolbar.cpp. |
|
|
Standard deconstructor.
Definition at line 50 of file worktoolbar.cpp. |
Member Function Documentation
|
|
Sets the current tool to the previously used Tool. This is just as if the user had pressed the button for the other tool. Definition at line 221 of file worktoolbar.cpp. |
|
|
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. Definition at line 227 of file worktoolbar.cpp. Referenced by ToolBarState::changeTool(). |
The documentation for this class was generated from the following files:
