Planeshift
pawseedit.h
Go to the documentation of this file.
1 /*
2  * Author: Andrew Robberts
3  *
4  * Copyright (C) 2004 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 PAWS_EEDIT_HEADER
21 #define PAWS_EEDIT_HEADER
22 
23 #include "paws/pawswidget.h"
24 
25 struct iView;
26 
27 class pawsEditTextBox;
28 class pawsButton;
29 class pawsGenericView;
30 
35 class pawsEEdit : public pawsWidget
36 {
37 public:
38  pawsEEdit();
39  ~pawsEEdit();
40 
44  iView *GetView();
45 
49  const char * GetMapFile() const;
50 
55  bool LoadMap(const char * mapFile);
56 
57  // implemented virtual functions from pawsWidgets
58  bool PostSetup();
59  bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget* widget);
60 
61 private:
62 
63  // widget refs
64  pawsGenericView * preview;
65 
66  pawsButton * showPosition;
67 };
68 
70 
73 #endif
This widget is used to view a mesh in it's own seperate world.
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
iView * GetView()
Returns the CS viewport of the preview window.
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
bool LoadMap(const char *mapFile)
Loads the given map.
CREATE_PAWS_FACTORY(pawsEEdit)
bool PostSetup()
This is called after the widget and all of it's children have been created.
An edit box widget/.
Definition: pawstextbox.h:409
const char * GetMapFile() const
Returns the file path of the loaded map.
A simple button widget.
Definition: pawsbutton.h:43