Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CRadioButton.h
Go to the documentation of this file.
1 /* Copyright (C) 2009 Wildfire Games.
2  * This file is part of 0 A.D.
3  *
4  * 0 A.D. is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * 0 A.D. is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 /*
19 GUI Object - Radio Button
20 
21 --Overview--
22 
23  GUI Object representing a radio button
24 
25 --More info--
26 
27  Check GUI.h
28 
29 */
30 
31 #ifndef INCLUDED_CRADIOBUTTON
32 #define INCLUDED_CRADIOBUTTON
33 
34 //--------------------------------------------------------
35 // Includes / Compiler directives
36 //--------------------------------------------------------
37 #include "GUI.h"
38 #include "CCheckBox.h"
39 
40 /**
41  * Just like a check box, but it'll nullify its siblings (of the same kind),
42  * and it won't switch itself.
43  *
44  * @see CCheckBox
45  */
46 class CRadioButton : public CCheckBox
47 {
49 
50 public:
51  /**
52  * @see IGUIObject#HandleMessage()
53  */
54  virtual void HandleMessage(SGUIMessage &Message);
55 };
56 
57 #endif
Just like a check box, but it&#39;ll nullify its siblings (of the same kind), and it won&#39;t switch itself...
Definition: CRadioButton.h:46
CheckBox.
Definition: CCheckBox.h:58
Message send to IGUIObject::HandleMessage() in order to give life to Objects manually with a derived ...
Definition: GUIbase.h:106
virtual void HandleMessage(SGUIMessage &Message)
#define GUI_OBJECT(obj)
Definition: GUIbase.h:62