Planeshift
pawsitemdescriptionwindow.h
Go to the documentation of this file.
1
/*
2
* pawsitemdesciptionwindow.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_ITEM_DESCRIPTION_WINDOW_HEADER
21
#define PAWS_ITEM_DESCRIPTION_WINDOW_HEADER
22
23
#include "
paws/pawswidget.h
"
24
25
class
pawsTextBox
;
26
class
pawsMultiLineTextBox
;
27
30
class
pawsItemDescriptionWindow
:
public
pawsWidget
,
public
psClientNetSubscriber
31
{
32
public
:
33
pawsItemDescriptionWindow
();
34
virtual
~pawsItemDescriptionWindow
();
35
36
bool
PostSetup
();
37
38
void
HandleMessage
(
MsgEntry
* message );
39
bool
OnButtonPressed
(
int
mouseButton,
int
keyModifier,
pawsWidget
* widget );
40
41
void
ShowItemDescription
(csString &desc, csString &itemName, csString &icon);
42
void
ShowItemDescription
(csString &desc, csString &itemName, csString &icon,
int
count);
43
44
private
:
45
pawsTextBox
* name;
46
pawsMultiLineTextBox
* description;
47
pawsWidget
* pic;
48
};
49
50
CREATE_PAWS_FACTORY
(
pawsItemDescriptionWindow
);
51
52
53
#endif
54
55
pawsWidget
The main base widget that all other widgets should inherit from.
Definition:
pawswidget.h:116
MsgEntry
The structure of 1 queue entry (pointer to a message)
Definition:
message.h:143
pawsMultiLineTextBox
Definition:
pawstextbox.h:613
pawsItemDescriptionWindow::OnButtonPressed
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
pawswidget.h
pawsItemDescriptionWindow::PostSetup
bool PostSetup()
This is called after the widget and all of it's children have been created.
CREATE_PAWS_FACTORY
CREATE_PAWS_FACTORY(pawsItemDescriptionWindow)
pawsItemDescriptionWindow
A window that shows the description of an item.
Definition:
pawsitemdescriptionwindow.h:30
pawsItemDescriptionWindow::~pawsItemDescriptionWindow
virtual ~pawsItemDescriptionWindow()
pawsItemDescriptionWindow::HandleMessage
void HandleMessage(MsgEntry *message)
pawsItemDescriptionWindow::pawsItemDescriptionWindow
pawsItemDescriptionWindow()
pawsItemDescriptionWindow::ShowItemDescription
void ShowItemDescription(csString &desc, csString &itemName, csString &icon)
psClientNetSubscriber
Definition:
cmdbase.h:67
pawsTextBox
A basic text box widget.
Definition:
pawstextbox.h:42
client
gui
pawsitemdescriptionwindow.h
Generated on Sat Jun 19 2021 05:00:22 for Planeshift by
1.8.11