• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.12
  • kdesdk
  • umbrello
  • umbrello
toolbarstatepool.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2004-2013 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 // own header
12 #include "toolbarstatepool.h"
13 
17 ToolBarStatePool::~ToolBarStatePool()
18 {
19 }
20 
28 void ToolBarStatePool::setButton(const WorkToolBar::ToolBar_Buttons &button)
29 {
30  if (button != m_ToolBarButton) {
31  m_ToolBarButton = button;
32 
33  init(); // Go back to the initial state.
34  }
35 }
36 
42 WorkToolBar::ToolBar_Buttons ToolBarStatePool::getButton() const
43 {
44  return m_ToolBarButton;
45 }
46 
54 ToolBarStatePool::ToolBarStatePool(UMLScene *umlScene)
55  : ToolBarState(umlScene)
56 {
57  m_ToolBarButton = WorkToolBar::tbb_Arrow;
58 }
59 
60 #include "toolbarstatepool.moc"
ToolBarStatePool::setButton
void setButton(const WorkToolBar::ToolBar_Buttons &button)
Sets the current button and inits the tool.
Definition: toolbarstatepool.cpp:28
WorkToolBar::tbb_Arrow
Definition: worktoolbar.h:57
WorkToolBar::ToolBar_Buttons
ToolBar_Buttons
Enumeration of all available toolbar buttons.
Definition: worktoolbar.h:55
ToolBarStatePool::~ToolBarStatePool
virtual ~ToolBarStatePool()
Destroys this ToolBarStatePool.
Definition: toolbarstatepool.cpp:17
ToolBarStatePool::getButton
WorkToolBar::ToolBar_Buttons getButton() const
Returns the current button.
Definition: toolbarstatepool.cpp:42
toolbarstatepool.h
ToolBarState::init
virtual void init()
Goes back to the initial state.
Definition: toolbarstate.cpp:41
ToolBarStatePool::ToolBarStatePool
ToolBarStatePool(UMLScene *umlScene)
Creates a new ToolBarStatePool.
Definition: toolbarstatepool.cpp:54
ToolBarState
Base class for toolbar states.
Definition: toolbarstate.h:69
UMLScene
UMLScene instances represent diagrams.
Definition: umlscene.h:70
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:06:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal