Planeshift
pawsconfigentityinter.h
Go to the documentation of this file.
1 /*
2  * pawsconfigentityinter.h - Author: Ondrej Hurt
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 PAWS_CONFIG_ENTITY_INTER_HEADER
21 #define PAWS_CONFIG_ENTITY_INTER_HEADER
22 
23 // CS INCLUDES
24 #include <csutil/array.h>
25 
26 // PAWS INCLUDES
27 #include "paws/pawswidget.h"
28 #include "gui/psmainwidget.h"
29 #include "pawsconfigwindow.h"
30 
31 class pawsComboBox;
32 class psEntityType;
33 
39 {
40 public:
42 
43  //from pawsWidget:
44  virtual bool PostSetup();
45  virtual void OnListAction( pawsListBox* selected, int status );
46 
47  // from pawsConfigSectionWindow:
48  virtual bool Initialize();
49  virtual bool LoadConfig();
50  virtual bool SaveConfig();
51  virtual void SetDefault();
52 
53 protected:
55 };
56 
57 
59 
60 
61 #endif
62 
CREATE_PAWS_FACTORY(pawsConfigEntityInteraction)
virtual void OnListAction(pawsListBox *selected, int status)
Called whenever an item in a child list box is selected.
class pawsConfigEntityInteraction is option screen for configuration of player&#39;s interaction with ent...
A simple list box widget.
Definition: pawslistbox.h:202
virtual bool LoadConfig()
sets content of dialog according to current configuration
A basic combo box widget.
Definition: pawscombo.h:53
virtual void SetDefault()
sets content of dialog according to default configuration
virtual bool SaveConfig()
remembers settings in-game and saves them permanently to a file also
virtual bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.