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
35
class
EEditToolboxManager
36
{
37
public
:
38
EEditToolboxManager
();
39
~EEditToolboxManager
();
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
:
88
EEditToolbox
* toolboxes[
EEditToolbox::T_COUNT
];
89
91
const
char
* widgetFiles[
EEditToolbox::T_COUNT
];
92
94
const
char
* widgetNames[
EEditToolbox::T_COUNT
];
95
};
96
99
#endif
100
EEditToolbox::T_COUNT
Definition:
eedittoolbox.h:43
EEditToolboxManager::UpdateAll
void UpdateAll(unsigned int elapsed)
Updates all the toolboxes in the list.
pawsWidget
The main base widget that all other widgets should inherit from.
Definition:
pawswidget.h:116
EEditToolboxManager::GetToolboxWidget
pawsWidget * GetToolboxWidget(size_t type) const
Grabs the toolbox widget of the given toolbox type.
EEditToolboxManager::~EEditToolboxManager
~EEditToolboxManager()
eedittoolbox.h
PawsManager
Main PlaneShift Window manager.
Definition:
pawsmanager.h:82
EEditToolboxManager::LoadWidgets
bool LoadWidgets(PawsManager *paws)
Loads all the toolbox widgets.
EEditToolboxManager::GetToolboxCount
size_t GetToolboxCount() const
Counts the number of toolboxes in the list.
EEditToolboxManager
A class that manages a group of toolbox windows.
Definition:
eedittoolboxmanager.h:35
EEditToolbox
A base class for all eedit toolbox windows.
Definition:
eedittoolbox.h:26
EEditToolboxManager::EEditToolboxManager
EEditToolboxManager()
EEditToolboxManager::GetToolbox
EEditToolbox * GetToolbox(size_t type) const
Grabs a toolbox of the given type.
EEditToolboxManager::RegisterFactories
bool RegisterFactories() const
Registers all the factories needed by the toolboxes.
eedit
eedittoolboxmanager.h
Generated on Sat Jun 19 2021 05:00:30 for Planeshift by
1.8.11