/*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * copyright (C) 2004-2006 * * Umbrello UML Modeller Authors * ***************************************************************************/ // own header #include "toolbarstatepool.h" ToolBarStatePool::~ToolBarStatePool() { } void ToolBarStatePool::setButton(const WorkToolBar::ToolBar_Buttons &button) { if (button != m_ToolBarButton) { m_ToolBarButton = button; init(); // Go back to the initial state. } } ToolBarStatePool::ToolBarStatePool(UMLView *umlView): ToolBarState(umlView) { m_ToolBarButton = WorkToolBar::tbb_Arrow; } #include "toolbarstatepool.moc"