Planeshift
pawsdetailwindow.h
Go to the documentation of this file.
1 /*
2  * pawsdetailwindow.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  */
19 // pawsdetailwindow.h: interface for the pawsDetailWindow class.
20 //
22 
23 #ifndef PAWS_DETAIL_WINDOW_HEADER
24 #define PAWS_DETAIL_WINDOW_HEADER
25 
26 #include "paws/pawswidget.h"
27 
28 class pawsTextBox;
30 class GEMClientObject;
31 
37 {
38 public:
39 
41  virtual ~pawsDetailWindow();
42 
43  bool OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget );
44  void UpdateTabsVisibility(bool Skills, bool CharCreation, bool OOCDescription);
45  bool SelectTab( pawsWidget* widget );
46 
47  bool PostSetup();
48  bool FillInfo();
49 
50  void HandleMessage( MsgEntry* me );
51  void RequestDetails();
52 private:
53  pawsMultiLineTextBox *intro;
54  pawsMultiLineTextBox *description;
55 
56  pawsButton *editButton;
57 
58  csArray<csString> skills;
59  csString storedescription;
60  csString storedoocdescription;
61  csString storedcreationinfo;
62  bool details_editable;
63  GEMClientObject* target;
64  pawsButton* lastTab;
65 
66 };
67 
69 
70 
71 #endif
72 
73 
CREATE_PAWS_FACTORY(pawsDetailWindow)
Window to view character details like IC, OOC, Char descriptions.
void HandleMessage(MsgEntry *me)
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.
bool SelectTab(pawsWidget *widget)
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
void UpdateTabsVisibility(bool Skills, bool CharCreation, bool OOCDescription)
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
An object that the client knows about.
Definition: pscelclient.h:373
A simple button widget.
Definition: pawsbutton.h:43
virtual ~pawsDetailWindow()
A basic text box widget.
Definition: pawstextbox.h:42