3 #ifndef _GTKMM_TREEVIEWCOLUMN_H
4 #define _GTKMM_TREEVIEWCOLUMN_H
6 #include <gtkmmconfig.h>
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
38 #include <glibmm/listhandle.h>
42 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 {
class TreeViewColumn_Class; }
70 #ifndef DOXYGEN_SHOULD_SKIP_THIS
78 static GType value_type() G_GNUC_CONST;
106 #ifndef DOXYGEN_SHOULD_SKIP_THIS
115 #ifndef DOXYGEN_SHOULD_SKIP_THIS
119 static CppClassType treeviewcolumn_class_;
126 explicit TreeViewColumn(
const Glib::ConstructParams& construct_params);
132 #ifndef DOXYGEN_SHOULD_SKIP_THIS
133 static GType get_type() G_GNUC_CONST;
136 static GType get_base_type() G_GNUC_CONST;
170 template<
class T_ModelColumnType>
202 template<
class T_ModelColumnType>
215 template<
class T_ModelColumnType>
239 #ifndef GTKMM_DISABLE_DEPRECATED
310 typedef sigc::slot<void, CellRenderer*, const Gtk::TreeModel::iterator&>
SlotCellData;
567 #ifndef GTKMM_DISABLE_DEPRECATED
641 #ifndef GTKMM_DISABLE_DEPRECATED
968 #ifndef DOXYGEN_SHOULD_SKIP_THIS
971 static const Glib::Class& class_init_();
977 #ifndef DOXYGEN_SHOULD_SKIP_THIS
979 template<
class T_ModelColumnType>
inline
983 CellRenderer* pCellRenderer =
manage( CellRenderer_Generation::generate_cellrenderer<T_ModelColumnType>() );
990 template<
class T_ModelColumnType>
inline
994 CellRenderer* pCellRenderer=
manage( CellRenderer_Generation::generate_cellrenderer<T_ModelColumnType>() );
1001 template <
class T_ModelColumnType>
inline
1003 const TreeModelColumn<T_ModelColumnType>& column)
1005 Glib::ObjectBase(0),
1006 Gtk::Object(
Glib::ConstructParams(class_init_(),
"title", title.c_str(), (char*) 0))
void set_renderer(Gtk::CellRenderer &renderer, const TreeModelColumnBase &column)
void focus_cell(CellRenderer &cell)
void set_sort_column_id(int sort_column_id)
virtual void on_clicked()
This is a default handler for the signal signal_clicked().
const CellRenderer * get_first_cell() const
void set_alignment(float xalign)
void cell_get_size(const Gdk::Rectangle &cell_area, int &x_offset, int &y_offset, int &width, int &height) const
void add_attribute(CellRenderer &cell_renderer, const Glib::ustring &attribute, int column)
const Widget * get_widget() const
Glib::PropertyProxy< float > property_alignment()
Glib::PropertyProxy< bool > property_reorderable()
Glib::PropertyProxy< bool > property_sort_indicator()
Glib::PropertyProxy< TreeViewColumnSizing > property_sizing()
void set_expand(bool expand=true)
void set_clickable(bool clickable=true)
void set_reorderable(bool reorderable=true)
TreeViewColumn(const Glib::ustring &title, CellRenderer &cell)
Glib::PropertyProxy_ReadOnly< Widget * > property_widget() const
void pack_start(CellRenderer &cell, bool expand=true)
Glib::PropertyProxy_ReadOnly< bool > property_resizable() const
void set_sort_order(SortType order)
Glib::PropertyProxy_ReadOnly< float > property_alignment() const
bool get_resizable() const
Glib::PropertyProxy_ReadOnly< bool > property_reorderable() const
bool cell_is_visible() const
Glib::PropertyProxy< bool > property_visible()
void set_widget(Gtk::Widget &widget)
Glib::PropertyProxy_ReadOnly< bool > property_clickable() const
void set_title(const Glib::ustring &title)
Glib::PropertyProxy_ReadOnly< int > property_max_width() const
virtual ~TreeViewColumn()
Glib::PropertyProxy_ReadOnly< bool > property_expand() const
Glib::PropertyProxy_ReadOnly< SortType > property_sort_order() const
Glib::PropertyProxy_ReadOnly< int > property_sort_column_id() const
void set_sort_indicator(bool setting)
Glib::ListHandle< const CellRenderer * > get_cell_renderers() const
void set_sort_column(const TreeModelColumnBase &sort_column_id)
void pack_end(const TreeModelColumn< T_ModelColumnType > &column, bool expand=true)
CellRenderer * get_first_cell_renderer()
Glib::PropertyProxy< int > property_min_width()
void set_spacing(int spacing)
void set_alignment(AlignmentEnum xalign)
Glib::PropertyProxy< int > property_max_width()
sigc::slot< void, CellRenderer *, const Gtk::TreeModel::iterator & > SlotCellData
Glib::PropertyProxy< int > property_sort_column_id()
void set_sort_column(int sort_column_id)
TreeViewColumn(const Glib::ustring &title, const TreeModelColumn< T_ModelColumnType > &column)
int get_sort_column_id() const
Glib::PropertyProxy_ReadOnly< bool > property_sort_indicator() const
void set_cell_data_func(CellRenderer &cell_renderer, const SlotCellData &slot)
void unset_cell_data_func(CellRenderer &cell_renderer)
Glib::PropertyProxy_ReadOnly< int > property_min_width() const
TreeViewColumn(const Glib::ustring &title)
Gtk::TreeViewColumn * wrap(GtkTreeViewColumn *object, bool take_copy=false)
const GtkTreeViewColumn * gobj() const
Provides access to the underlying C GtkObject.
const CellRenderer * get_first_cell_renderer() const
bool get_clickable() const
void add_attribute(const Glib::PropertyProxy_Base &property, const TreeModelColumnBase &column)
void add_attribute(Gtk::CellRenderer &cell, const Glib::ustring &property_name, const TreeModelColumnBase &column)
Glib::PropertyProxy< int > property_fixed_width()
void set_sizing(TreeViewColumnSizing type)
void clear_attributes(CellRenderer &cell_renderer)
int get_max_width() const
bool get_reorderable() const
Glib::PropertyProxy_ReadOnly< int > property_fixed_width() const
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_title() const
Glib::PropertyProxy< int > property_spacing()
Glib::PropertyProxy_ReadOnly< bool > property_visible() const
void set_visible(bool visible=true)
Glib::PropertyProxy< bool > property_resizable()
bool get_cell_position(const CellRenderer &cell_renderer, int &start_pos, int &width) const
Glib::PropertyProxy< bool > property_expand()
void pack_end(CellRenderer &cell, bool expand=true)
void cell_set_cell_data(const Glib::RefPtr< TreeModel > &tree_model, const TreeModel::iterator &iter, bool is_expander, bool is_expanded)
Glib::PropertyProxy< SortType > property_sort_order()
void pack_start(const TreeModelColumn< T_ModelColumnType > &column, bool expand=true)
Glib::PropertyProxy< Widget * > property_widget()
Glib::PropertyProxy_ReadOnly< int > property_width() const
void set_resizable(bool resizable=true)
void cell_get_size(Gdk::Rectangle &cell_area, int &x_offset, int &y_offset, int &width, int &height) const
CellRenderer * get_first_cell()
TreeView * get_tree_view()
void set_min_width(int min_width)
GtkTreeViewColumn * gobj()
Provides access to the underlying C GtkObject.
float get_alignment() const
Glib::PropertyProxy_ReadOnly< int > property_spacing() const
TreeViewColumnSizing get_sizing()
Glib::PropertyProxy< bool > property_clickable()
Glib::SignalProxy0< void > signal_clicked()
bool get_sort_indicator() const
SortType get_sort_order() const
int get_fixed_width() const
Glib::PropertyProxy_ReadOnly< TreeViewColumnSizing > property_sizing() const
Glib::PropertyProxy< Glib::ustring > property_title()
Glib::ustring get_title() const
void set_max_width(int max_width)
Glib::ListHandle< CellRenderer * > get_cell_renderers()
int get_min_width() const
void set_sort_column_id(const TreeModelColumnBase &sort_column_id)
const TreeView * get_tree_view() const
void set_fixed_width(int fixed_width)
PBD::PropertyDescriptor< uint32_t > order