Planeshift
pawscraft.h
Go to the documentation of this file.
1
/*
2
* pawscraft.h - Author: Andrew Craig <acraig@planeshift.it>
3
*
4
* Copyright (C) 2003-2005 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
#ifndef PAWS_CRAFT_WINDOW_HEADER
20
#define PAWS_CRAFT_WINDOW_HEADER
21
22
#include "
paws/pawswidget.h
"
23
#include "
net/cmdbase.h
"
24
25
class
pawsSimpleTree
;
26
class
pawsMultiLineTextBox
;
27
class
pawsEditTextBox
;
28
29
38
class
pawsCraftWindow
:
public
pawsWidget
,
public
psClientNetSubscriber
39
{
40
public
:
41
bool
PostSetup
();
42
virtual
void
Show
();
43
void
HandleMessage
(
MsgEntry
* me );
44
bool
OnSelected
(
pawsWidget
* widget);
45
csString
craftText
;
// contains the complete set of available carfting recipes
46
csString
filter
;
// contains the currently used filter for the crafting recipes
51
virtual
void
Draw
();
56
void
Format
();
57
58
protected
:
59
pawsMultiLineTextBox
*
textBox
;
60
pawsEditTextBox
*
filterEditTextBox
;
61
62
};
63
64
CREATE_PAWS_FACTORY
(
pawsCraftWindow
);
65
66
67
#endif
pawsCraftWindow::textBox
pawsMultiLineTextBox * textBox
Definition:
pawscraft.h:59
pawsWidget
The main base widget that all other widgets should inherit from.
Definition:
pawswidget.h:116
pawsSimpleTree
Definition:
pawstree.h:542
pawsCraftWindow::Format
void Format()
Format method for the output text.
pawsCraftWindow::PostSetup
bool PostSetup()
This is called after the widget and all of it's children have been created.
pawsCraftWindow::HandleMessage
void HandleMessage(MsgEntry *me)
MsgEntry
The structure of 1 queue entry (pointer to a message)
Definition:
message.h:143
pawsMultiLineTextBox
Definition:
pawstextbox.h:613
cmdbase.h
pawsEditTextBox
An edit box widget/.
Definition:
pawstextbox.h:409
pawsCraftWindow::OnSelected
bool OnSelected(pawsWidget *widget)
Called whenever a widget is selected.
pawsCraftWindow::Draw
virtual void Draw()
Draw.
pawsCraftWindow
Window Widget that displays information about the mind item to be used in crafting.
Definition:
pawscraft.h:38
pawsCraftWindow::filterEditTextBox
pawsEditTextBox * filterEditTextBox
Definition:
pawscraft.h:60
CREATE_PAWS_FACTORY
CREATE_PAWS_FACTORY(pawsCraftWindow)
pawswidget.h
pawsCraftWindow::craftText
csString craftText
Definition:
pawscraft.h:45
pawsCraftWindow::filter
csString filter
Definition:
pawscraft.h:46
psClientNetSubscriber
Definition:
cmdbase.h:67
pawsCraftWindow::Show
virtual void Show()
Makes widget visible and brings it to the front.
client
gui
pawscraft.h
Generated on Sat Jun 19 2021 05:00:22 for Planeshift by
1.8.11