Planeshift
|
00001 /* 00002 * widgettree.h 00003 * 00004 * Copyright (C) 2005 Atomic Blue ([email protected], http://www.atomicblue.org) 00005 * 00006 * Credits : 00007 * Michael Cummings <[email protected]> 00008 * 00009 * This program is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * as published by the Free Software Foundation (version 2 00012 * of the License). 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00020 * 00021 * Creation Date: 1/20/2005 00022 * Description : control tree for properties editing 00023 * 00024 */ 00025 00026 #ifndef PAWS_EDITOR_WIDGETTREE_HEADER 00027 #define PAWS_EDITOR_WIDGETTREE_HEADER 00028 00029 #include "paws/pawswidget.h" 00030 #include "paws/pawsfilenavigation.h" 00031 #include "paws/pawstree.h" 00032 00033 class pawsEditTextBox; 00034 class pawsButton; 00035 00036 class peWidgetTree : public pawsWidget 00037 { 00038 public: 00039 00040 void LoadWidget(iDocumentNode* widgetNode); 00041 00042 // implemented virtual functions from pawsWidgets 00043 bool PostSetup(); 00044 virtual bool OnSelected( pawsWidget* widget); 00045 00046 private: 00047 00048 void BuildWidgetTree(pawsSimpleTreeNode *parent, iDocumentNode* widgetNode); 00049 00050 pawsTree * widgetItemsTree; 00051 pawsSimpleTreeNode * widgetItemsRoot; 00052 00053 }; 00054 00055 CREATE_PAWS_FACTORY( peWidgetTree ); 00056 00057 #endif