Planeshift
pawsquitinfobox.h
Go to the documentation of this file.
1 /*
2  * pawsquitinfobox.h - Author: Christian Svensson
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  */
20 #ifndef PAWS_QUIT_INFO_WINDOW
21 #define PAWS_QUIT_INFO_WINDOW
22 
23 #include <iutil/virtclk.h>
24 #include <csutil/csstring.h>
25 #include "paws/pawswidget.h"
26 #include "paws/pawsokbox.h"
27 
33 {
34 public:
36 
37  bool PostSetup();
38  bool OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget );
39 
40  void SetBox(csString newText);
41 
42  void MoveToCenter();
43 
44  void Show();
45 
46 private:
47  csString text;
48  pawsMultiLineTextBox* textBox;
49  pawsWidget* okButton;
50 
51 };
52 
54 
55 #endif
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
void Show()
Makes widget visible and brings it to the front.
Shown when the player clicks on quit icon.
bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.
void SetBox(csString newText)
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
CREATE_PAWS_FACTORY(pawsQuitInfoBox)