Planeshift
pawsgroupwindow.h
Go to the documentation of this file.
1 /*
2  * pawsgroupwindow.h - Author: Andrew Craig
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 
20 #ifndef PAWS_GROUP_WINDOW_HEADER
21 #define PAWS_GROUP_WINDOW_HEADER
22 
23 #include "pscelclient.h"
24 #include "paws/pawswidget.h"
26 #include "net/cmdhandler.h"
27 #include "gui/pawscontrolwindow.h"
28 #include "gui/chatwindow.h"
29 
30 class pawsTextBox;
31 class pawsMessageTextBox;
32 class pawsListBox;
33 
38 {
39 public:
40 
42  virtual ~pawsGroupWindow();
43 
44  void HandleMessage( MsgEntry* message );
45  bool PostSetup();
46  void OnStringEntered(const char *name,int param,const char *value);
47 
48  bool OnMenuAction(pawsWidget *widget, const pawsMenuAction & action);
49 
50  // Set the stats of a group member.
51  void SetStats( GEMClientActor * actor );
52 
53 private:
54  pawsListBox* memberList;
55 
56  void Draw();
57  void HandleGroup( csString& string );
58  void HandleMembers( csString& string );
59 
60  pawsChatWindow* chatWindow;
61 };
62 
63 //--------------------------------------------------------------------------
65 
66 
67 #endif
68 
69 
This is a window that is controlled by a button on the control bar.
This is a player or another 'alive' entity on the client.
Definition: pscelclient.h:554
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's children have been created.
When pawsMenu is created, target of notification messages (OnMenuAction) must be set by SetNotify() m...
Definition: pawsmenu.h:96
csString name
The name of this widget.
Definition: pawswidget.h:217
Main Chat window for PlaneShift.
Definition: chatwindow.h:133
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
void SetStats(GEMClientActor *actor)
void OnStringEntered(const char *name, int param, const char *value)
When the pawsStringPromptWindow is created, a ptr to a class which implements this function is provid...
bool OnMenuAction(pawsWidget *widget, const pawsMenuAction &action)
Called whenever a menu action occurs.
void HandleMessage(MsgEntry *message)
virtual ~pawsGroupWindow()
CREATE_PAWS_FACTORY(pawsGroupWindow)
A simple list box widget.
Definition: pawslistbox.h:202
This window shows the current members that are in your group.
This is a special type of text box that is used for messages.
Definition: pawstextbox.h:285
This interface defines the callback used by pawsStringPromptWindow to notify another window of a supp...
A basic text box widget.
Definition: pawstextbox.h:42