umbrello 25.04.1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
The toolbar that is different for each type of diagram. More...
#include <worktoolbar.h>
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_Buttons > | OldToolMap |
typedef QMap< ToolBar_Buttons, QCursor > | CursorMap |
typedef QMap< ToolBar_Buttons, QAction * > | 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 |
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:
|
private |
|
private |
|
private |
Enumeration of all available toolbar buttons.
|
explicit |
Creates a work tool bar.
parentWindow | The parent of the toolbar. |
WorkToolBar::~WorkToolBar | ( | ) |
Standard destructor.
|
slot |
|
private |
Returns the current cursor depending on m_CurrentButtonID
|
private |
Returns the default cursor
|
private |
Inserts most associations, just reduces some string duplication (nice to translators)
|
private |
Inserts the button corresponding to the tbb value given and activates the toggle.
|
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
|
signal |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
These slots are triggered by the buttons. They call buttonChanged with the button id
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
private |
|
private |
|
private |
|
private |
|
private |