Planeshift
pawschardescription.h
Go to the documentation of this file.
1
/*
2
* * pawschardescription.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
20
#ifndef PAWS_CHAR_DESCRIPTION_WINDOW_HEADER
21
#define PAWS_CHAR_DESCRIPTION_WINDOW_HEADER
22
23
#include "
paws/pawswidget.h
"
24
#include "
paws/pawstextbox.h
"
25
29
class
pawsCharDescription
:
public
pawsWidget
,
public
psClientNetSubscriber
30
{
31
public
:
32
pawsCharDescription
();
33
virtual
~pawsCharDescription
();
34
bool
OnButtonPressed
(
int
mouseButton,
int
keyModifier,
pawsWidget
* widget );
35
36
bool
PostSetup
();
38
void
SetDescriptionType
(
DESCTYPE
type) { editingtype = type; }
39
void
RequestDetails
();
40
41
void
Show
();
42
43
void
HandleMessage
(
MsgEntry
* me );
44
45
private
:
46
pawsMultilineEditTextBox
*description;
47
pawsMultiLineTextBox
*creationinfo;
48
DESCTYPE
editingtype;
49
};
50
51
CREATE_PAWS_FACTORY
(
pawsCharDescription
);
52
53
54
#endif
55
pawsCharDescription::Show
void Show()
Makes widget visible and brings it to the front.
pawsWidget
The main base widget that all other widgets should inherit from.
Definition:
pawswidget.h:116
CREATE_PAWS_FACTORY
CREATE_PAWS_FACTORY(pawsCharDescription)
DESCTYPE
DESCTYPE
Definition:
messages.h:4162
MsgEntry
The structure of 1 queue entry (pointer to a message)
Definition:
message.h:143
pawsMultiLineTextBox
Definition:
pawstextbox.h:613
pawsCharDescription
Pop up window, called by pawsdetailwindow to edit IC, OOC, Creation descriptions for the current char...
Definition:
pawschardescription.h:29
pawsCharDescription::HandleMessage
void HandleMessage(MsgEntry *me)
pawsCharDescription::pawsCharDescription
pawsCharDescription()
pawswidget.h
pawsCharDescription::RequestDetails
void RequestDetails()
pawsCharDescription::PostSetup
bool PostSetup()
This is called after the widget and all of it's children have been created.
pawsCharDescription::SetDescriptionType
void SetDescriptionType(DESCTYPE type)
used to change the description to be edited
Definition:
pawschardescription.h:38
pawstextbox.h
pawsMultilineEditTextBox
Definition:
pawstextbox.h:740
pawsCharDescription::OnButtonPressed
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
pawsCharDescription::~pawsCharDescription
virtual ~pawsCharDescription()
psClientNetSubscriber
Definition:
cmdbase.h:67
client
gui
pawschardescription.h
Generated on Sat Jun 19 2021 05:00:22 for Planeshift by
1.8.11