Planeshift
eeditloadeffecttoolbox.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_LOAD_EFFECT_TOOLBOX_HEADER
21
#define EEDIT_LOAD_EFFECT_TOOLBOX_HEADER
22
23
#include "
eedittoolbox.h
"
24
#include "
paws/pawswidget.h
"
25
26
class
pawsButton
;
27
class
pawsListBox
;
28
class
psEffectManager
;
29
36
class
EEditLoadEffectToolbox
:
public
EEditToolbox
,
public
pawsWidget
,
public
scfImplementation0
<EEditLoadEffectToolbox>
37
{
38
public
:
39
EEditLoadEffectToolbox
();
40
virtual
~EEditLoadEffectToolbox
();
41
45
void
FillList
(
psEffectManager
* effectManager);
46
50
void
SelectEffect
(
const
csString & effectName);
51
52
// inheritted from EEditToolbox
53
virtual
void
Update
(
unsigned
int
elapsed);
54
virtual
size_t
GetType
()
const
;
55
virtual
const
char
*
GetName
()
const
;
56
57
// inheritted from pawsWidget
58
virtual
bool
PostSetup
();
59
virtual
bool
OnButtonPressed
(
int
mouseButton,
int
keyModifier,
pawsWidget
* widget);
60
virtual
void
OnListAction
(
pawsListBox
* selected,
int
status);
61
62
private
:
63
// used by pawsListBox to sort the listbox
64
static
int
SortTextBox(
pawsWidget
* widgetA,
pawsWidget
* widgetB);
65
66
pawsListBox
* effectList;
67
pawsButton
* openEffectButton;
68
pawsButton
* refreshButton;
69
};
70
71
CREATE_PAWS_FACTORY
(
EEditLoadEffectToolbox
);
72
75
#endif
EEditLoadEffectToolbox::~EEditLoadEffectToolbox
virtual ~EEditLoadEffectToolbox()
pawsWidget
The main base widget that all other widgets should inherit from.
Definition:
pawswidget.h:116
EEditLoadEffectToolbox::OnListAction
virtual void OnListAction(pawsListBox *selected, int status)
Called whenever an item in a child list box is selected.
scfImplementation0
eedittoolbox.h
EEditLoadEffectToolbox::EEditLoadEffectToolbox
EEditLoadEffectToolbox()
EEditLoadEffectToolbox
This allows you to load an effect.
Definition:
eeditloadeffecttoolbox.h:36
EEditLoadEffectToolbox::FillList
void FillList(psEffectManager *effectManager)
Fills the load effect list with the names of the effects.
EEditLoadEffectToolbox::OnButtonPressed
virtual bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
EEditLoadEffectToolbox::PostSetup
virtual bool PostSetup()
This is called after the widget and all of it's children have been created.
pawsListBox
A simple list box widget.
Definition:
pawslistbox.h:202
EEditLoadEffectToolbox::GetType
virtual size_t GetType() const
Gets the toolbox type.
pawswidget.h
EEditLoadEffectToolbox::Update
virtual void Update(unsigned int elapsed)
Updates the toobox.
CREATE_PAWS_FACTORY
CREATE_PAWS_FACTORY(EEditLoadEffectToolbox)
EEditLoadEffectToolbox::SelectEffect
void SelectEffect(const csString &effectName)
Selects the given effect and highlights it in the list.
psEffectManager
Definition:
pseffectmanager.h:88
EEditToolbox
A base class for all eedit toolbox windows.
Definition:
eedittoolbox.h:26
pawsButton
A simple button widget.
Definition:
pawsbutton.h:43
EEditLoadEffectToolbox::GetName
virtual const char * GetName() const
Gets the name of the toolbox.
eedit
eeditloadeffecttoolbox.h
Generated on Sat Jun 19 2021 05:00:30 for Planeshift by
1.8.11