Ardour  9.0-pre0-582-g084a23a80d
treemodelsort.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_TREEMODELSORT_H
4 #define _GTKMM_TREEMODELSORT_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: treemodelsort.hg,v 1.5 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* Copyright(C) 1998-2002 The gtkmm Development Team
13  *
14  * This library is free software; you can redistribute it and/or
15  * modify it under the terms of the GNU Lesser General Public
16  * License as published by the Free Software Foundation; either
17  * version 2.1 of the License, or(at your option) any later version.
18  *
19  * This library is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  * Lesser General Public License for more details.
23  *
24  * You should have received a copy of the GNU Lesser General Public
25  * License along with this library; if not, write to the Free
26  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27  */
28 
29 
30 // We couldn't include it in treemodel.h, but doing it here makes it easier for people.
31 #include <gtkmm/treepath.h>
32 
33 #include <gtkmm/treeiter.h>
34 #include <gtkmm/treemodel.h>
35 #include <gtkmm/treesortable.h>
36 
37 
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 typedef struct _GtkTreeModelSort GtkTreeModelSort;
41 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
42 
43 
44 #ifndef DOXYGEN_SHOULD_SKIP_THIS
45 namespace Gtk
46 { class TreeModelSort_Class; } // namespace Gtk
47 #endif //DOXYGEN_SHOULD_SKIP_THIS
48 
49 namespace Gtk
50 {
51 
72 class TreeModelSort : public Glib::Object, public TreeModel, public TreeSortable
73 {
74 
75 #ifndef DOXYGEN_SHOULD_SKIP_THIS
76 
77 public:
78  typedef TreeModelSort CppObjectType;
79  typedef TreeModelSort_Class CppClassType;
80  typedef GtkTreeModelSort BaseObjectType;
81  typedef GtkTreeModelSortClass BaseClassType;
82 
83 private: friend class TreeModelSort_Class;
84  static CppClassType treemodelsort_class_;
85 
86 private:
87  // noncopyable
89  TreeModelSort& operator=(const TreeModelSort&);
90 
91 protected:
92  explicit TreeModelSort(const Glib::ConstructParams& construct_params);
93  explicit TreeModelSort(GtkTreeModelSort* castitem);
94 
95 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
96 
97 public:
98  virtual ~TreeModelSort();
99 
102  static GType get_type() G_GNUC_CONST;
103 
104 #ifndef DOXYGEN_SHOULD_SKIP_THIS
105 
106 
107  static GType get_base_type() G_GNUC_CONST;
108 #endif
109 
111  GtkTreeModelSort* gobj() { return reinterpret_cast<GtkTreeModelSort*>(gobject_); }
112 
114  const GtkTreeModelSort* gobj() const { return reinterpret_cast<GtkTreeModelSort*>(gobject_); }
115 
118 
119 private:
120 
121 
122 protected:
123  explicit TreeModelSort(const Glib::RefPtr<TreeModel>& model);
124 
125 
126 public:
127 
128  static Glib::RefPtr<TreeModelSort> create(const Glib::RefPtr<TreeModel>& model);
129 
130 
135  Glib::RefPtr<TreeModel> get_model();
136 
141  Glib::RefPtr<const TreeModel> get_model() const;
142 
143 
152  Path convert_child_path_to_path(const Path& child_path) const;
153 
159  iterator convert_child_iter_to_iter(const iterator& child_iter) const;
160 
161 
171  Path convert_path_to_child_path(const Path& sorted_path) const;
172 
178  iterator convert_iter_to_child_iter(const iterator& sorted_iter) const;
179 
180 
187 
195  void clear_cache();
196 
197 
205  bool iter_is_valid(const iterator& iter) const;
206 
212  Glib::PropertyProxy_ReadOnly< Glib::RefPtr<TreeModel> > property_model() const;
213 
214 
215 protected:
216  virtual void set_value_impl(const iterator& row, int column, const Glib::ValueBase& value);
217 
218 
219 public:
220 
221 public:
222  //C++ methods used to invoke GTK+ virtual functions:
223 
224 protected:
225  //GTK+ Virtual Functions (override these to change behaviour):
226 
227  //Default Signal Handlers::
228 
229 
230 };
231 
232 } // namespace Gtk
233 
234 
235 namespace Glib
236 {
245  Glib::RefPtr<Gtk::TreeModelSort> wrap(GtkTreeModelSort* object, bool take_copy = false);
246 }
247 
248 
249 #endif /* _GTKMM_TREEMODELSORT_H */
250 
virtual void set_value_impl(const iterator &row, int column, const Glib::ValueBase &value)
TreeModelSort(const Glib::RefPtr< TreeModel > &model)
GtkTreeModelSort * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
iterator convert_iter_to_child_iter(const iterator &sorted_iter) const
GtkTreeModelSort * gobj()
Provides access to the underlying C GObject.
Path convert_child_path_to_path(const Path &child_path) const
Path convert_path_to_child_path(const Path &sorted_path) const
static GType get_type() G_GNUC_CONST
Glib::RefPtr< TreeModel > get_model()
iterator convert_child_iter_to_iter(const iterator &child_iter) const
Glib::RefPtr< const TreeModel > get_model() const
const GtkTreeModelSort * gobj() const
Provides access to the underlying C GObject.
bool iter_is_valid(const iterator &iter) const
static Glib::RefPtr< TreeModelSort > create(const Glib::RefPtr< TreeModel > &model)
Glib::RefPtr< Gtk::TreeModelSort > wrap(GtkTreeModelSort *object, bool take_copy=false)
virtual ~TreeModelSort()
void reset_default_sort_func()
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< TreeModel > > property_model() const
Definition: ardour_ui.h:188