Planeshift
pawsgmaction.h
Go to the documentation of this file.
1 /*
2 * pawsgmaction.h
3 *
4 * Copyright (C) 2005 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5 *
6 * Credits :
7 * Michael Cummings <cummings.michael@gmail.com>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation (version 2
12 * of the License).
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 *
21 * Creation Date: 1/20/2005
22 * Description : client window for editing clickable map object actions
23 *
24 */
25 #ifndef PAWS_GMACTION_HEADER
26 #define PAWS_GMACTION_HEADER
27 
28 #include "paws/pawswidget.h"
29 
30 class pawsTextBox;
31 class pawsEditTextBox;
33 class pawsComboBox;
34 class pawsYesNoBox;
35 class pawsCheckBox;
36 
42 {
43 public:
46  virtual ~pawsGMActionWindow();
47 
48  bool PostSetup();
49  void Show();
50 
51  void LoadAction( const char *xml );
52  void LoadAction( csRef<iDocumentNode> topNode );
53 
54  bool OnButtonPressed ( int button, int keyModifier, pawsWidget* widget );
55  bool OnChange ( pawsWidget * widget );
56 
57 private:
58  pawsEditTextBox* txtID;
59  pawsEditTextBox* txtName;
60  pawsEditTextBox* txtSector;
61  pawsEditTextBox* txtMesh;
62  pawsCheckBox* chkFullMesh;
63  pawsComboBox* dummy;
64  pawsEditTextBox* txtdummy;
65  pawsEditTextBox* txtPolygon;
66  pawsEditTextBox* txtPosX;
67  pawsEditTextBox* txtPosY;
68  pawsEditTextBox* txtPosZ;
69  pawsEditTextBox* txtRadius;
70  pawsEditTextBox* txtInstance;
71  pawsEditTextBox* txtMasterID;
72  pawsComboBox* cboTriggerType;
73  pawsComboBox* cboResponseType;
74  pawsMultilineEditTextBox* txtResponse;
75 
76  pawsYesNoBox* confirm;
77 
78  bool isDirty;
79  csString id, name, masterid,
80  sectorName, meshName, polygon,
81  X, Y, Z, pos_instance, radius,
82  triggertype, responsetype, response;
83 
84 };
85 
86 
88 #endif
void LoadAction(const char *xml)
pawsCheckBox * chkActive
Definition: pawsgmaction.h:44
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.
A combination widget that has a check box and a text label.
Definition: pawscheckbox.h:48
CREATE_PAWS_FACTORY(pawsGMActionWindow)
An edit box widget/.
Definition: pawstextbox.h:409
bool OnButtonPressed(int button, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
bool OnChange(pawsWidget *widget)
Called whenever a widget is selected.
This is a yes/no box used to do confirms.
Definition: pawsyesnobox.h:41
A basic combo box widget.
Definition: pawscombo.h:53
void Show()
Makes widget visible and brings it to the front.
Window for GMs to create and edit new actionlocations, including mesh, position, script triggered...
Definition: pawsgmaction.h:41
A basic text box widget.
Definition: pawstextbox.h:42
virtual ~pawsGMActionWindow()