Install ardour as a binary, a script and a set of shared
[ardour.git] / libs / gtkmm2 / gtk / gtkmm / treeview_private.h
1 #ifndef _GTKMM_TREEVIEW_PRIVATE_H
2 #define _GTKMM_TREEVIEW_PRIVATE_H
3 /* $Id$ */
4
5
6 /* treeview.h
7  *
8  * Copyright(C) 2001-2002 The gtkmm Development Team
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Library General Public
12  * License as published by the Free Software Foundation; either
13  * version 2 of the License, or(at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  * Library General Public License for more details.
19  *
20  * You should have received a copy of the GNU Library General Public
21  * License along with this library; if not, write to the Free
22  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23  */
24
25 #include <gtkmm/treeviewcolumn.h>
26 #include <gtkmm/treeview.h>
27
28 namespace Gtk
29 {
30
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
32 namespace TreeView_Private
33 {
34
35 //This Signal Proxy allows the C++ coder to specify a sigc::slot instead of a static function.
36 class SignalProxy_CellData
37 {
38 public:
39   typedef TreeViewColumn::SlotCellData SlotType;
40
41   SignalProxy_CellData(const SlotType& slot);
42   ~SignalProxy_CellData();
43
44   static void gtk_callback(GtkTreeViewColumn*, GtkCellRenderer* cell,
45                            GtkTreeModel* model, GtkTreeIter* iter, void* data);
46   static void gtk_callback_destroy(void* data);
47
48 protected:
49   SlotType slot_;
50 };
51
52 //SignalProxy_RowSeparator:
53
54 //This Signal Proxy allows the C++ coder to specify a sigc::slot instead of a static function.
55 class SignalProxy_RowSeparator
56 {
57 public:
58   typedef TreeView::SlotRowSeparator SlotType;
59
60   SignalProxy_RowSeparator(const SlotType& slot);
61   ~SignalProxy_RowSeparator();
62
63   static gboolean gtk_callback(GtkTreeModel* model, GtkTreeIter* iter, void* data);
64   static void gtk_callback_destroy(void* data);
65
66 protected:
67   SlotType slot_;
68 };
69
70
71 } /* namespace TreeView_Private */
72 #endif //DOXYGEN_SHOULD_SKIP_THIS
73
74 } /* namespace Gtk */
75
76
77 #endif /* _GTKMM_TREEVIEW_PRIVATE_H */