GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

treemodelsort.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2002-2004 The GFC Development Team. 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00023 00024 #ifndef GFC_GTK_TREE_MODEL_SORT_HH 00025 #define GFC_GTK_TREE_MODEL_SORT_HH 00026 00027 #ifndef GFC_G_OBJECT_HH 00028 #include <gfc/glib/object.hh> 00029 #endif 00030 00031 #ifndef GFC_GTK_TREE_MODEL_HH 00032 #include <gfc/gtk/treemodel.hh> 00033 #endif 00034 00035 #ifndef GFC_GTK_TREE_SORTABLE_HH 00036 #include <gfc/gtk/treesortable.hh> 00037 #endif 00038 00039 #ifndef GFC_GTK_TREE_DND_HH 00040 #include <gfc/gtk/treednd.hh> 00041 #endif 00042 00043 #ifndef __GTK_TREE_MODEL_SORT_H__ 00044 #include <gtk/gtktreemodelsort.h> 00045 #endif 00046 00047 namespace GFC { 00048 00049 namespace Gtk { 00050 00055 00056 class TreeModelSort : public G::Object, public TreeModel, public TreeSortable, public TreeDragSource 00057 { 00058 friend class G::Object; 00059 00060 TreeModelSort(const TreeModelSort&); 00061 TreeModelSort& operator=(const TreeModelSort&); 00062 00063 protected: 00066 00067 explicit TreeModelSort(GtkTreeModelSort *tree_model, bool owns_reference = true); 00074 00076 00077 public: 00080 00081 TreeModelSort(TreeModel& child_model); 00084 00085 virtual ~TreeModelSort(); 00087 00091 00092 GtkTreeModelSort* gtk_tree_model_sort() const; 00094 00095 operator GtkTreeModelSort* () const; 00097 00098 TreeModel* get_model() const; 00101 00102 bool iter_is_valid(const TreeIter& iter) const; 00108 00112 00113 Pointer<TreePath> convert_child_path_to_path(const TreePath& child_path); 00121 00122 TreeIter convert_child_iter_to_iter(const TreeIter& child_iter); 00127 00128 Pointer<TreePath> convert_path_to_child_path(const TreePath& sorted_path); 00136 00137 TreeIter convert_iter_to_child_iter(const TreeIter& sorted_iter); 00142 00143 void reset_default_sort_func(); 00147 00148 void clear_cache(); 00154 00156 }; 00157 00158 } // namespace Gtk 00159 00160 } // namespace GFC 00161 00162 #include <gfc/gtk/inline/treemodelsort.inl> 00163 00164 #endif // GFC_GTK_TREE_MODEL_SORT_HH 00165

Generated on Tue Aug 24 00:34:32 2004 for GFC-UI by doxygen 1.3.8