Planeshift
pawsconfigchatfont.h
Go to the documentation of this file.
1 /*
2  * pawsconfigchatfont.h - Author: Joe Lyon
3  *
4  * Copyright (C) 2014 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_CHATFONTHEADER
21 #define PAWS_CONFIG_CHATFONTHEADER
22 
23 
24 // PAWS INCLUDES
25 #include "paws/pawswidget.h"
26 #include "paws/pawscombo.h"
27 #include "pawsconfigwindow.h"
28 #include "util/psxmlparser.h"
29 
30 
31 /*
32  * class pawsConfigChatFont is options screen for configuration of Chat window font
33  */
35 {
36 public:
38 
39  //from pawsWidget:
40  virtual bool PostSetup();
41  virtual bool OnScroll(int,pawsScrollBar*);
42  virtual bool OnButtonPressed(int, int, pawsWidget*);
43  virtual void OnListAction(pawsListBox* selected, int status);
44 
45  // from pawsConfigSectionWindow:
46  virtual bool Initialize();
47  virtual bool LoadConfig();
48  virtual bool SaveConfig();
49  virtual void SetDefault();
50 
51  void PickText( const char * fontName, int size );
52 
53 
54 protected:
55 
57 
61 
62  bool loaded;
63 
64 };
65 
66 
68 
69 
70 #endif
71 
virtual bool OnScroll(int, pawsScrollBar *)
Called whenever a window is scrolled.
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
csString fontName
Name of currently selected font.
Definition: pawswidget.h:305
virtual bool OnButtonPressed(int, int, pawsWidget *)
Called whenever a button is pressed.
pawsScrollBar * textSpacing
virtual bool PostSetup()
This is called after the widget and all of it's children have been created.
virtual bool SaveConfig()
remembers settings in-game and saves them permanently to a file also
Main Chat window for PlaneShift.
Definition: chatwindow.h:133
void PickText(const char *fontName, int size)
virtual bool LoadConfig()
sets content of dialog according to current configuration
virtual void OnListAction(pawsListBox *selected, int status)
Called whenever an item in a child list box is selected.
pawsChatWindow * ChatWindow
virtual void SetDefault()
sets content of dialog according to default configuration
pawsComboBox * textFont
A simple list box widget.
Definition: pawslistbox.h:202
A simple scroll bar widget.
Definition: pawscrollbar.h:64
CREATE_PAWS_FACTORY(pawsConfigChatFont)
virtual bool Initialize()
A basic combo box widget.
Definition: pawscombo.h:53
pawsScrollBar * textSize