Planeshift
pawsmodswindow.h
Go to the documentation of this file.
1 /*
2  * Author: Ralph Campbell
3  *
4  * Copyright (C) 2014 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_MODS_WINDOW_HEADER
20 #define PAWS_MODS_WINDOW_HEADER
21 
22 #include "paws/pawswidget.h"
23 #include "net/cmdbase.h"
24 
25 class pawsListBox;
26 class pawsGMSpawnWindow;
27 
34 {
35 public:
37  virtual ~pawsModsWindow();
38 
39  bool PostSetup();
40 
41  void HandleMessage(MsgEntry* me);
42 
43  void OnListAction(pawsListBox* widget, int status);
44 
45  void Show();
46 
47 private:
49  int selectedRow[psGMSpawnMods::ITEM_NUM_TYPES];
50  csArray<psGMSpawnMods::ItemModifier> mods;
51 
52  pawsGMSpawnWindow* spawnw;
53 };
54 
56 
57 #endif
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
The Mods window shows 3 lists of item modifiers when creating items from the pawsGMSpawnWindow.
The structure of 1 queue entry (pointer to a message)
Definition: message.h:143
bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.
A simple list box widget.
Definition: pawslistbox.h:202
void HandleMessage(MsgEntry *me)
void OnListAction(pawsListBox *widget, int status)
Called whenever an item in a child list box is selected.
Window which allows GM to spawn items in game, shows full tree of items on the left and 3d preview of...
Definition: pawsgmspawn.h:41
CREATE_PAWS_FACTORY(pawsModsWindow)
void Show()
Makes widget visible and brings it to the front.
virtual ~pawsModsWindow()