Planeshift
eedittoolboxmanager.h
Go to the documentation of this file.
1 /*
2  * Author: Andrew Robberts
3  *
4  * Copyright (C) 2003 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 #ifndef EEDIT_TOOLBOX_MANAGER_HEADER
21 #define EEDIT_TOOLBOX_MANAGER_HEADER
22 
23 #include "eedittoolbox.h"
24 
25 class PawsManager;
26 class pawsWidget;
27 
36 {
37 public:
40 
46  void UpdateAll(unsigned int elapsed);
47 
54  bool LoadWidgets(PawsManager * paws);
55 
61  bool RegisterFactories() const;
62 
68  size_t GetToolboxCount() const;
69 
76  EEditToolbox * GetToolbox(size_t type) const;
77 
84  pawsWidget * GetToolboxWidget(size_t type) const;
85 
86 private:
89 
91  const char * widgetFiles[EEditToolbox::T_COUNT];
92 
94  const char * widgetNames[EEditToolbox::T_COUNT];
95 };
96 
99 #endif
100 
void UpdateAll(unsigned int elapsed)
Updates all the toolboxes in the list.
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
pawsWidget * GetToolboxWidget(size_t type) const
Grabs the toolbox widget of the given toolbox type.
Main PlaneShift Window manager.
Definition: pawsmanager.h:82
bool LoadWidgets(PawsManager *paws)
Loads all the toolbox widgets.
size_t GetToolboxCount() const
Counts the number of toolboxes in the list.
A class that manages a group of toolbox windows.
A base class for all eedit toolbox windows.
Definition: eedittoolbox.h:26
EEditToolbox * GetToolbox(size_t type) const
Grabs a toolbox of the given type.
bool RegisterFactories() const
Registers all the factories needed by the toolboxes.