Planeshift
eeditrendertoolbox.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_RENDER_TOOLBOX_HEADER
21 #define EEDIT_RENDER_TOOLBOX_HEADER
22 
23 #include "eedittoolbox.h"
24 #include "paws/pawswidget.h"
26 #include "effects/pseffect.h"
27 #include "iengine/engine.h"
28 
29 class pawsButton;
30 
37 class EEditRenderToolbox : public EEditToolbox, public pawsWidget, public scfImplementation0<EEditRenderToolbox>
38 {
39 public:
41  virtual ~EEditRenderToolbox();
42 
43  // inheritted from EEditToolbox
44  virtual void Update(unsigned int elapsed);
45  virtual size_t GetType() const;
46  virtual const char * GetName() const;
47 
48  // inheritted from pawsWidget
49  virtual bool PostSetup();
50  virtual bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget* widget);
51  virtual void OnListAction(pawsListBox* selected, int status);
52 
54  void LoadEffect(psEffectManager* mgr, const char* effectName);
55  void FillAnchor(const char* anchorName);
56  void FillObj(const char* objName);
57  void SetEngine(iEngine* e) { engine = e; }
58 
59 private:
60  pawsButton * renderButton;
61  pawsButton * loadButton;
62  pawsButton * pauseButton;
63  pawsButton * cancelButton;
64  pawsListBox * list;
65  pawsListBox * list2;
66 
67  psEffectManager* effectManager;
68  csRef<iEngine> engine;
69  csString effectName;
70 };
71 
73 
76 #endif
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
virtual bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.
virtual const char * GetName() const
Gets the name of the toolbox.
void LoadEffect(psEffectManager *mgr, const char *effectName)
The effect class.
Definition: pseffect.h:51
virtual ~EEditRenderToolbox()
CREATE_PAWS_FACTORY(EEditRenderToolbox)
void FillObj(const char *objName)
void FillAnchor(const char *anchorName)
void SetEngine(iEngine *e)
A simple list box widget.
Definition: pawslistbox.h:202
virtual void OnListAction(pawsListBox *selected, int status)
Called whenever an item in a child list box is selected.
virtual void Update(unsigned int elapsed)
Updates the toobox.
A base class for all eedit toolbox windows.
Definition: eedittoolbox.h:26
psEffect * GetCurrentEffect()
A simple button widget.
Definition: pawsbutton.h:43
This handles the effect render toolbox.
virtual size_t GetType() const
Gets the toolbox type.
virtual bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.