umbrello API Documentation

toolbarstatefactory.h

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 #ifndef TOOLBARSTATEFACTORY_H
00013 #define TOOLBARSTATEFACTORY_H
00014 
00015 #include "toolbarstate.h"
00016 
00017 #include "worktoolbar.h"
00018 
00019 #define NR_OF_TOOLBAR_STATES 4
00020 
00021 class UMLView;
00022 
00023 
00033 class ToolBarStateFactory
00034 {
00035 public:
00036     // constructor.
00037     ToolBarStateFactory(UMLView* umlView);
00038 
00039     // Destructor
00040     virtual ~ToolBarStateFactory();
00041 
00042     ToolBarState* getState(const WorkToolBar::ToolBar_Buttons &toolbarButton);
00043 
00044 protected:
00045     int getKey(const WorkToolBar::ToolBar_Buttons &toolbarButton) const;
00046 
00047 protected:
00048     ToolBarState* states[NR_OF_TOOLBAR_STATES];
00049 
00050     UMLView* m_pUMLView;
00051 };
00052 
00053 #endif //TOOLBARSTATEFACTORY_H
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:00 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003