Planeshift
pawsmainwidget.h
Go to the documentation of this file.
1 /*
2  * pawsmainwidget.h - Author: Andrew Craig
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 // pawsmainwidget.h: interface for the pawsMainWidget class.
20 //
22 
23 #ifndef PAWS_MAIN_WIDGET_HEADER
24 #define PAWS_MAIN_WIDGET_HEADER
25 
26 #include <iengine/camera.h>
27 
28 #include "pawswidget.h"
29 #include "psmousebinds.h"
30 
39 {
40  csKeyEventData key;
41  csString widgetName;
42  csString action;
43 };
44 
45 
48 class pawsMainWidget : public pawsWidget
49 {
50 public:
52  virtual ~pawsMainWidget();
53 
54  virtual bool OnKeyDown(utf32_char keyCode, utf32_char key, int modifiers);
55 
56  virtual bool OnMouseDown(int button, int modifiers, int x, int y);
57  virtual bool OnMouseUp(int button, int modifiers, int x, int y);
58  virtual bool OnDoubleClick(int button, int modifiers, int x, int y);
59 
60  virtual void ApplyWindowSettingsOnChildren(pawsWidget* caller, int alphaMin, int alphaMax, float fadeSpeed, bool fade, bool scaleFont);
61 
62 protected:
63  bool LoadGUIKeys(const char* fileName);
64 
65  //iCamera* guiCamera;
66  csPDelArray<pawsScriptKey> keys;
67 };
68 
71 #endif
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
csString action
A paws script key.
csKeyEventData key
The main or desktop widget.
csString widgetName
csPDelArray< pawsScriptKey > keys