Planeshift
pawsconfigmarriage.h
Go to the documentation of this file.
1 /*
2  * pawsconfigmarriage.h
3  *
4  * Copyright (C) 2010 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_MARRIAGE_HEADER
21 #define PAWS_CONFIG_MARRIAGE_HEADER
22 
23 // CS INCLUDES
24 #include <csutil/array.h>
25 #include <iutil/document.h>
26 
27 // PAWS INCLUDES
28 #include "paws/pawswidget.h"
29 #include "pawsconfigwindow.h"
30 #include "util/psxmlparser.h"
31 
32 
34 
40 {
41 public:
42  //from pawsWidget:
47  virtual bool PostSetup();
48 
54  virtual bool OnChange(pawsWidget * widget);
55 
56  // from pawsConfigSectionWindow:
61  virtual bool Initialize();
62 
67  virtual bool LoadConfig();
68 
73  virtual bool SaveConfig();
74 
78  virtual void SetDefault();
79 
80 protected:
82 };
83 
85 
86 #endif
87 
pawsRadioButtonGroup * confirmRadioGroup
virtual bool SaveConfig()
Saves the settings to engine and file.
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
virtual void SetDefault()
Sets the confirmation to allow marriage proposals rather than ignoring all.
CREATE_PAWS_FACTORY(pawsConfigMarriage)
virtual bool LoadConfig()
Sets radio groups settings according to user settings.
virtual bool Initialize()
Loads XML layout from configmarriage.xml.
Currently only used to provide an option to always deny marriage invites.
virtual bool PostSetup()
Assign confirmRadioGroup appropriately.
virtual bool OnChange(pawsWidget *widget)
Called whenever a child widget changes.
This is a set of radio buttons and is used to control them.
Definition: pawsradio.h:131