toolbarstatepool.cpp
00001 /*************************************************************************** 00002 * * 00003 * This program is free software; you can redistribute it and/or modify * 00004 * it under the terms of the GNU General Public License as published by * 00005 * the Free Software Foundation; either version 2 of the License, or * 00006 * (at your option) any later version. * 00007 * * 00008 * copyright (C) 2004-2006 * 00009 * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> * 00010 ***************************************************************************/ 00011 00012 // own header 00013 #include "toolbarstatepool.h" 00014 00015 ToolBarStatePool::~ToolBarStatePool() { 00016 } 00017 00018 void ToolBarStatePool::setButton(const WorkToolBar::ToolBar_Buttons &button) { 00019 if (button != m_ToolBarButton) { 00020 m_ToolBarButton = button; 00021 00022 init(); // Go back to the initial state. 00023 } 00024 } 00025 00026 ToolBarStatePool::ToolBarStatePool(UMLView *umlView): ToolBarState(umlView) { 00027 m_ToolBarButton = WorkToolBar::tbb_Arrow; 00028 } 00029 00030 #include "toolbarstatepool.moc"
