Planeshift
pawssmallinventory.h
Go to the documentation of this file.
1 /*
2  * smallinventory.h - Author: Andrew Craig
3  *
4  * Copyright (C) 2004 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_SMALL_INVENTORY_WINDOW
21 #define PAWS_SMALL_INVENTORY_WINDOW
22 
23 #include "net/cmdbase.h"
24 #include "paws/pawsmanager.h"
25 #include "paws/pawswidget.h"
26 #include "rpgrules/psmoney.h"
27 #include "gui/pawscontrolwindow.h"
28 
29 class pawsSlot;
30 class pawsMoney;
31 
38 {
39 public:
41 
42 
43  virtual bool PostSetup();
44  virtual void Show();
45 private:
46  csArray<pawsSlot*> bulkSlots;
47  void UpdateMoney( const char* moneyName, const char* imageName, int value );
48 
49  pawsMoney * money;
50 
51  bool OnMouseDown( int button, int keyModifier, int x, int y );
52  bool OnButtonPressed( int mouseButton, int keyModifer, pawsWidget* widget );
53 
54 };
55 
57 
58 #endif
59 
virtual void Show()
Makes widget visible and brings it to the front.
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
A slot which may contain one item, with icon, and stack count.
Definition: pawsslot.h:22
pawsMoney is widget that holds four items slots - for each coin.
Definition: pawsmoney.h:36
virtual bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.
A small version of the inventory window.
CREATE_PAWS_FACTORY(pawsSmallInventoryWindow)