Planeshift

pawsgmaction.h

Go to the documentation of this file.
00001 /*
00002 * pawsgmaction.h
00003 *
00004 * Copyright (C) 2005 Atomic Blue ([email protected], http://www.atomicblue.org)
00005 *
00006 * Credits : 
00007 *            Michael Cummings <[email protected]>
00008 *
00009 * This program is free software; you can redistribute it and/or
00010 * modify it under the terms of the GNU General Public License
00011 * as published by the Free Software Foundation (version 2
00012 * of the License).
00013 * This program is distributed in the hope that it will be useful,
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016 * GNU General Public License for more details.
00017 * You should have received a copy of the GNU General Public License
00018 * along with this program; if not, write to the Free Software
00019 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00020 *
00021 * Creation Date: 1/20/2005
00022 * Description : client window for editing clickable map object actions
00023 *
00024 */
00025 #ifndef PAWS_GMACTION_HEADER
00026 #define PAWS_GMACTION_HEADER
00027 
00028 #include "paws/pawswidget.h"
00029 
00030 class pawsTextBox;
00031 class pawsEditTextBox;
00032 class pawsMultilineEditTextBox;
00033 class pawsComboBox;
00034 class pawsYesNoBox;
00035 class pawsCheckBox;
00036 
00037 
00038 class pawsGMActionWindow : public pawsWidget
00039 {
00040 public:
00041     pawsCheckBox*                   chkActive;
00042     pawsGMActionWindow();
00043     virtual ~pawsGMActionWindow();
00044 
00045     bool PostSetup();
00046     void Show();
00047 
00048     void LoadAction( const char *xml );
00049     void LoadAction( csRef<iDocumentNode> topNode );
00050 
00051     bool OnButtonPressed    ( int button, int keyModifier, pawsWidget* widget );
00052     bool OnChange            ( pawsWidget * widget );
00053 
00054 private:
00055     pawsEditTextBox*                txtID;
00056     pawsEditTextBox*                txtName;
00057     pawsEditTextBox*                txtSector;
00058     pawsEditTextBox*                txtMesh;
00059     pawsCheckBox*                   chkFullMesh;
00060     pawsComboBox*                   dummy;
00061     pawsEditTextBox*                txtdummy;
00062     pawsEditTextBox*                txtPolygon;
00063     pawsEditTextBox*                txtPosX;
00064     pawsEditTextBox*                txtPosY;
00065     pawsEditTextBox*                txtPosZ;
00066     pawsEditTextBox*                txtRadius;
00067     pawsEditTextBox*                txtInstance;
00068     pawsEditTextBox*                txtMasterID;
00069     pawsComboBox*                   cboTriggerType;
00070     pawsComboBox*                   cboResponseType;
00071     pawsMultilineEditTextBox*       txtResponse;
00072 
00073     pawsYesNoBox*                    confirm;
00074 
00075     bool                            isDirty;
00076     csString                        id, name, masterid,
00077                                     sectorName, meshName, polygon,
00078                                     X, Y, Z, pos_instance, radius,
00079                                     triggertype, responsetype, response;
00080 
00081 };
00082 
00083 
00084 CREATE_PAWS_FACTORY( pawsGMActionWindow );
00085 #endif