umbrello API Documentation

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>

List of all members.

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:

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

enum WorkToolBar::ToolBar_Buttons
 

Enumeration of all available toolbar buttons.

Definition at line 74 of file worktoolbar.h.


Constructor & Destructor Documentation

WorkToolBar::WorkToolBar QMainWindow *  parentWindow,
const char *  name
 

Creates a work tool bar.

Parameters:
parentWindow The parent of the toolbar.

Definition at line 29 of file worktoolbar.cpp.

WorkToolBar::~WorkToolBar  ) 
 

Standard deconstructor.

Definition at line 50 of file worktoolbar.cpp.


Member Function Documentation

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.

Definition at line 221 of file worktoolbar.cpp.

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.

Definition at line 227 of file worktoolbar.cpp.

Referenced by ToolBarState::changeTool().


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:08 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003