Planeshift
pawsconfigchatlogs.h
Go to the documentation of this file.
1 /*
2  * pawsConfigChatLogs.h - Author: Stefano Angeleri
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_CHAT_LOGS_HEADER
21 #define PAWS_CONFIG_CHAT_LOGS_HEADER
22 
23 // PAWS INCLUDES
24 #include "paws/pawswidget.h"
25 #include "pawsconfigwindow.h"
26 #include "chatwindow.h"
27 
28 
29 class pawsCheckBox;
30 
35 {
36 public:
38  void drawFrame();
39 
40  virtual bool PostSetup();
41 
42  virtual bool Initialize();
43  virtual bool LoadConfig();
44  virtual bool SaveConfig();
45  virtual void SetDefault();
46 
47  virtual void OnListAction( pawsListBox* selected, int status );
48 
50  virtual bool OnButtonPressed(int /*button*/, int /*keyModifier*/, pawsWidget* /*widget*/)
51  {
52  dirty = true;
53  return true;
54  }
55 
56 private:
57  pawsCheckBox *enabled;
58  pawsListBox *chatTypes;
59  pawsEditTextBox *fileName;
60  pawsEditTextBox *bracket;
61  bool logStatus[CHAT_END];
62  csString logFile[CHAT_END];
63  csString logBracket[CHAT_END];
64  int currentType;
65 
66 
67 };
68 
70 
71 #endif //PAWS_CONFIG_CHAT_LOGS_HEADER
virtual void OnListAction(pawsListBox *selected, int status)
virtual bool LoadConfig()
configuration screen for chat logs
pawsConfigChatLogs()
Constructor.
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
virtual bool SaveConfig()
A combination widget that has a check box and a text label.
Definition: pawscheckbox.h:48
virtual bool OnButtonPressed(int, int, pawsWidget *)
An edit box widget/.
Definition: pawstextbox.h:409
virtual void SetDefault()
A simple list box widget.
Definition: pawslistbox.h:202
CREATE_PAWS_FACTORY(pawsConfigChatLogs)
virtual bool Initialize()
virtual bool PostSetup()