Planeshift
pewidgettree.h
Go to the documentation of this file.
1 /*
2 * widgettree.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 : control tree for properties editing
23 *
24 */
25 
26 #ifndef PAWS_EDITOR_WIDGETTREE_HEADER
27 #define PAWS_EDITOR_WIDGETTREE_HEADER
28 
29 #include "paws/pawswidget.h"
31 #include "paws/pawstree.h"
32 
33 class pawsEditTextBox;
34 class pawsButton;
35 
36 class peWidgetTree : public pawsWidget
37 {
38 public:
39 
40  void LoadWidget(iDocumentNode* widgetNode);
41 
42  // implemented virtual functions from pawsWidgets
43  bool PostSetup();
44  virtual bool OnSelected( pawsWidget* widget);
45 
46 private:
47 
48  void BuildWidgetTree(pawsSimpleTreeNode *parent, iDocumentNode* widgetNode);
49 
50  pawsTree * widgetItemsTree;
51  pawsSimpleTreeNode * widgetItemsRoot;
52 
53 };
54 
56 
57 #endif
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
void LoadWidget(iDocumentNode *widgetNode)
virtual bool OnSelected(pawsWidget *widget)
Called whenever a widget is selected.
An edit box widget/.
Definition: pawstextbox.h:409
pawsWidget * parent
This widget&#39;s parent.
Definition: pawswidget.h:130
A simple button widget.
Definition: pawsbutton.h:43
CREATE_PAWS_FACTORY(peWidgetTree)
bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.