00001 00002 // exotkTree_MenuNode.cxx 00004 // Copyright (C) 2001 Stephane Routelous 00005 // 00006 // This file is part of exoTK. 00007 // 00008 // exoTK is free software; you can redistribute it and/or modify 00009 // it under the terms of the GNU General Public License as published by 00010 // the Free Software Foundation; either version 2 of the License, or 00011 // (at your option) any later version. 00012 // 00013 // exoTK 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 // 00018 // You should have received a copy of the GNU General Public License 00019 // along with exoTK; if not, write to the Free Software 00020 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 00028 #include <exotkTree_MenuNode.hxx> 00029 #ifndef _exotkTree_Separator_HeaderFile 00030 #include <exotkTree_Separator.hxx> 00031 #endif 00032 // 00033 IMPLEMENT_STANDARD_HANDLE(exotkTree_MenuNode, exotkTree_TreeNode) 00034 IMPLEMENT_STANDARD_RTTI(exotkTree_MenuNode, exotkTree_TreeNode) 00035 // 00036 // Foreach ancestors, we add a IMPLEMENT_STANDARD_SUPERTYPE and 00037 // a IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY macro. 00038 // We must respect the order: from the direct ancestor class 00039 // to the base class. 00040 // 00041 00042 IMPLEMENT_STANDARD_TYPE(exotkTree_MenuNode) 00043 IMPLEMENT_STANDARD_SUPERTYPE(exotkTree_TreeNode) 00044 IMPLEMENT_STANDARD_SUPERTYPE(MMgt_TShared) 00045 IMPLEMENT_STANDARD_SUPERTYPE(Standard_Transient) 00046 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY() 00047 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(exotkTree_TreeNode) 00048 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(MMgt_TShared) 00049 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_ENTRY(Standard_Transient) 00050 IMPLEMENT_STANDARD_SUPERTYPE_ARRAY_END() 00051 IMPLEMENT_STANDARD_TYPE_END(exotkTree_MenuNode) 00052 00053 00054 //================================================================================== 00055 // Function name : exotkTree_MenuNode::exotkTree_MenuNode 00056 //================================================================================== 00057 // Written by : Stephane Routelous - 2001-11-07 19:46:48 00058 // Description : 00059 // Return type : 00060 //================================================================================== 00061 exotkTree_MenuNode::exotkTree_MenuNode() 00062 { 00063 00064 } 00065 00066 00067 //================================================================================== 00068 // Function name : exotkTree_MenuNode::~exotkTree_MenuNode 00069 //================================================================================== 00070 // Written by : Stephane Routelous - 2001-11-07 19:46:49 00071 // Description : 00072 // Return type : 00073 //================================================================================== 00074 exotkTree_MenuNode::~exotkTree_MenuNode() 00075 { 00076 00077 } 00078 00079 //================================================================================== 00080 // Function name : exotkTree_MenuNode::AddSeparator 00081 //================================================================================== 00082 // Written by : Stephane Routelous - 2001-11-07 19:46:52 00083 // Description : 00084 // Return type : void 00085 //================================================================================== 00086 void exotkTree_MenuNode::AddSeparator() 00087 { 00088 AppendChild(new exotkTree_Separator()); 00089 }
1.2.12 written by Dimitri van Heesch,
© 1997-2001