Planeshift
pemenu.h
Go to the documentation of this file.
1 /*
2 * peMenu.h
3 *
4 * Copyright (C) 2005 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5 *
6 * Credits :
7 * Michael Cummings <cummings.michael@gmail.com>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation (version 2
12 * of the License).
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 *
21 * Creation Date: 1/20/2005
22 * Description : menu widget for pawseditor
23 *
24 */
25 
26 #ifndef PAWS_EDITOR_MENU_HEADER
27 #define PAWS_EDITOR_MENU_HEADER
28 
29 #include "paws/pawswidget.h"
31 
32 struct iView;
33 struct iVFS;
34 
35 class pawsEditTextBox;
36 class pawsComboBox;
37 class pawsButton;
38 class pawsGenericView;
39 
40 class peMenu : public pawsWidget
41 {
42 public:
43  // implemented virtual functions from pawsWidgets
44  bool PostSetup();
45  bool OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget );
46 
47 private:
48 
52  class OnFileSelected : public iOnFileSelectedAction
53  {
54  private:
55  peMenu *parent;
56  int buttonID;
57 
58  public:
65  OnFileSelected( peMenu *Parent, int button ) { parent = Parent; buttonID = button; }
66 
70  virtual ~OnFileSelected( ) { }
71 
77  virtual void Execute(const csString & text);
78 
79  };
80 
81 };
82 
84 
85 #endif
This widget is used to view a mesh in it&#39;s own seperate world.
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
An edit box widget/.
Definition: pawstextbox.h:409
pawsWidget * parent
This widget&#39;s parent.
Definition: pawswidget.h:130
Definition: pemenu.h:40
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
A simple button widget.
Definition: pawsbutton.h:43
CREATE_PAWS_FACTORY(peMenu)
A basic combo box widget.
Definition: pawscombo.h:53
bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.