Planeshift
pawsgmgui.h
Go to the documentation of this file.
1 /*
2 * pawsgmgui.h - Author: Andrew Robberts
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_GMGUI_WINDOW
21 #define PAWS_GMGUI_WINDOW
22 // PS INCLUDES
23 #include "paws/pawswidget.h"
24 #include "paws/pawsbutton.h"
25 #include "paws/pawstextbox.h"
26 #include "paws/pawscheckbox.h"
27 #include "paws/pawslistbox.h"
29 #include "net/cmdbase.h"
30 #include "chatwindow.h"
31 #include "psclientchar.h"
32 
38 {
39  bool isVisible;
40  bool isInvincible;
41  bool isViewAllObjects;
42  bool isNeverTired;
43  bool isQuestTester;
44  bool isInfiniteMana;
45  bool isFiniteInv;
46  bool isSafeFall;
47  bool isInstantCast;
48  bool isGiveKillExp;
49  bool isAttackable;
50  bool isBuddyHide;
51 
52 public:
54 
55  virtual ~pawsGmGUIWindow();
56 
58  void HandleMessage( MsgEntry* message );
59 
61  const char* HandleCommand(const char* cmd);
62 
63  virtual bool PostSetup();
64  virtual void Show();
65  virtual void OnListAction( pawsListBox* widget, int status );
66 
67  void HideWidget(const char* name);
68  void ShowWidget(const char* name);
69 
71  bool OnButtonReleased(int mouseButton, int keyModifier, pawsWidget* reporter);
72 
73  const char* GetSelectedName();
74  const char* GetSelectedSector();
75  int GetSelectedGender();
76 
77  void QueryServer();
78 
79  void OnStringEntered(const char *name,int param,const char *value);
80 
85  int GetCurrentTab();
86 
87 protected:
90 
91  csRef<iVFS> vfs;
92 
93  void SetSecurity();
94 
95  void QueryActionLocations();
96 
97  void FillPlayerList(psGMGuiMessage& msg);
99 
102 
104 
105  // Widgets in the Attributes tab
118 
119  csString cmdToExectute;
120  csString actionXML;
121 };
123 #endif
int GetCurrentTab()
Returns the currently selected tab in this window.
pawsCheckBox * cbInstantCast
Definition: pawsgmgui.h:114
csString actionXML
Definition: pawsgmgui.h:120
pawsCheckBox * cbAttackable
Definition: pawsgmgui.h:116
pawsListBox * playerList
Definition: pawsgmgui.h:100
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
pawsCheckBox * cbInfiniteMana
Definition: pawsgmgui.h:113
virtual bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.
pawsCheckBox * cbNeverTired
Definition: pawsgmgui.h:109
pawsChatWindow * chatWindow
Definition: pawsgmgui.h:88
csString cmdToExectute
Definition: pawsgmgui.h:119
const char * GetSelectedName()
pawsTextBox * playerCount
Definition: pawsgmgui.h:103
virtual ~pawsGmGUIWindow()
const char * GetSelectedSector()
A combination widget that has a check box and a text label.
Definition: pawscheckbox.h:48
pawsListBox * actionList
Definition: pawsgmgui.h:101
void HandleMessage(MsgEntry *message)
Handles petition server messages.
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...
void ShowWidget(const char *name)
csString name
The name of this widget.
Definition: pawswidget.h:217
void FillPlayerList(psGMGuiMessage &msg)
Main Chat window for PlaneShift.
Definition: chatwindow.h:133
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
virtual void Show()
Makes widget visible and brings it to the front.
void QueryActionLocations()
A simple list box widget.
Definition: pawslistbox.h:202
pawsCheckBox * cbBuddyHide
Definition: pawsgmgui.h:117
pawsCheckBox * cbViewAll
Definition: pawsgmgui.h:108
Messages that are sent to the GM GUI windowManager.
Definition: messages.h:1070
pawsCheckBox * cbInfiniteInventory
Definition: pawsgmgui.h:111
This interface defines the callback used by pawsStringPromptWindow to notify another window of a supp...
Window to set special flags on GM char, like invincible, invisible, etc...
Definition: pawsgmgui.h:37
Messages that are sent to/from the ActionManager.
Definition: messages.h:1464
pawsCheckBox * cbQuestTester
Definition: pawsgmgui.h:112
pawsCheckBox * cbNoFallDamage
Definition: pawsgmgui.h:110
pawsCheckBox * cbGiveKillExp
Definition: pawsgmgui.h:115
const char * HandleCommand(const char *cmd)
Handles commands.
CREATE_PAWS_FACTORY(pawsGmGUIWindow)
csRef< iVFS > vfs
Definition: pawsgmgui.h:91
pawsCheckBox * cbInvincible
Definition: pawsgmgui.h:106
void HideWidget(const char *name)
virtual void OnListAction(pawsListBox *widget, int status)
Called whenever an item in a child list box is selected.
bool OnButtonReleased(int mouseButton, int keyModifier, pawsWidget *reporter)
Handle button clicks.
A basic text box widget.
Definition: pawstextbox.h:42
pawsCheckBox * cbInvisible
Definition: pawsgmgui.h:107
int GetSelectedGender()
CmdHandler * cmdsource
Definition: pawsgmgui.h:89
void FillActionList(psMapActionMessage &msg)