From 07a18370ad2aa1f2253afbf45565d55605a88b47 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 14 Nov 2009 15:49:12 +0000 Subject: Added Fl_Tree source code, demo files, and documentation. Thanks, Greg! git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6934 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Tree_Item_Array.H | 80 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 FL/Fl_Tree_Item_Array.H (limited to 'FL/Fl_Tree_Item_Array.H') diff --git a/FL/Fl_Tree_Item_Array.H b/FL/Fl_Tree_Item_Array.H new file mode 100644 index 000000000..7e31862eb --- /dev/null +++ b/FL/Fl_Tree_Item_Array.H @@ -0,0 +1,80 @@ +#ifndef _FL_TREE_ITEM_ARRAY_H +#define _FL_TREE_ITEM_ARRAY_H + +class Fl_Tree_Item; // forward decl must *precede* first doxygen comment block +// or doxygen will not document our class.. + +////////////////////// +// FL/Fl_Tree_Item_Array.H +////////////////////// +// +// Fl_Tree -- This file is part of the Fl_Tree widget for FLTK +// Copyright (C) 2009 by Greg Ercolano. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// + +/// +/// \file +/// \brief This file defines a class that manages an array of Fl_Tree_Item pointers. +/// + +/// \brief Manages an array of Fl_Tree_Item pointers. +/// +/// Because FLTK 1.x.x. has mandated that templates and STL not be used, +/// we use this class to dynamically manage the arrays. +/// +/// None of the methods do range checking on index values; the caller +/// must be sure that index values are within the range 0