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;
27 class pawsEditTextBox;
28 
29 
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:
61 
62 };
63 
65 
66 
67 #endif
pawsMultiLineTextBox * textBox
Definition: pawscraft.h:59
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
void Format()
Format method for the output text.
bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.
void HandleMessage(MsgEntry *me)
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
An edit box widget/.
Definition: pawstextbox.h:409
bool OnSelected(pawsWidget *widget)
Called whenever a widget is selected.
virtual void Draw()
Draw.
Window Widget that displays information about the mind item to be used in crafting.
Definition: pawscraft.h:38
pawsEditTextBox * filterEditTextBox
Definition: pawscraft.h:60
CREATE_PAWS_FACTORY(pawsCraftWindow)
csString craftText
Definition: pawscraft.h:45
csString filter
Definition: pawscraft.h:46
virtual void Show()
Makes widget visible and brings it to the front.