Gtk::CellRendererCombo Class Reference
[TreeView Classes]

Renders a combobox in a cell. More...

Inherits Gtk::CellRendererText.

Collaboration diagram for Gtk::CellRendererCombo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~CellRendererCombo ()
GtkCellRendererCombo* gobj ()
 Provides access to the underlying C GtkObject.
const GtkCellRendererCombo* gobj () const
 Provides access to the underlying C GtkObject.
 CellRendererCombo ()
Glib::SignalProxy2< void,
const Glib::ustring &, const
TreeModel::iterator& > 
signal_changed ()
Glib::PropertyProxy
< Glib::RefPtr< Gtk::TreeModel > > 
property_model ()
 The model containing the possible values for the combo box.
Glib::PropertyProxy_ReadOnly
< Glib::RefPtr< Gtk::TreeModel > > 
property_model () const
 The model containing the possible values for the combo box.
Glib::PropertyProxy< int > property_text_column ()
 A column in the data source model to get the strings from.
Glib::PropertyProxy_ReadOnly< int > property_text_column () const
 A column in the data source model to get the strings from.
Glib::PropertyProxy< bool > property_has_entry ()
 If FALSE.
Glib::PropertyProxy_ReadOnly
< bool > 
property_has_entry () const
 If FALSE.

Related Functions

(Note that these are not member functions.)



Gtk::CellRendererCombowrap (GtkCellRendererCombo* object, bool take_copy=false)
 A Glib::wrap() method for this object.

Detailed Description

Renders a combobox in a cell.

CellRendererCombo renders text in a cell like CellRendererText, from which it is derived. But while CellRendererText offers a simple entry to edit the text, CellRendererCombo offers a ComboBox or ComboBoxEntry widget to edit the text. The values to display in the combo box are taken from the tree model specified in the model property.

The combo cell renderer takes care of adding a text cell renderer to the combo box and sets it to display the column specified by its text_column property. Further cell renderers can be added in a handler for the editing_started signal.


Constructor & Destructor Documentation

virtual Gtk::CellRendererCombo::~CellRendererCombo (  )  [virtual]
Gtk::CellRendererCombo::CellRendererCombo (  ) 

Member Function Documentation

const GtkCellRendererCombo* Gtk::CellRendererCombo::gobj (  )  const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::CellRendererText.

GtkCellRendererCombo* Gtk::CellRendererCombo::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::CellRendererText.

Glib::PropertyProxy_ReadOnly<bool> Gtk::CellRendererCombo::property_has_entry (  )  const

If FALSE.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.
Glib::PropertyProxy<bool> Gtk::CellRendererCombo::property_has_entry (  ) 

If FALSE.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gtk::TreeModel> > Gtk::CellRendererCombo::property_model (  )  const

The model containing the possible values for the combo box.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.
Glib::PropertyProxy< Glib::RefPtr<Gtk::TreeModel> > Gtk::CellRendererCombo::property_model (  ) 

The model containing the possible values for the combo box.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.
Glib::PropertyProxy_ReadOnly<int> Gtk::CellRendererCombo::property_text_column (  )  const

A column in the data source model to get the strings from.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.
Glib::PropertyProxy<int> Gtk::CellRendererCombo::property_text_column (  ) 

A column in the data source model to get the strings from.

You rarely need to use properties because there are get_ and set_ methods for almost all of them.

Returns:
A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes.
Glib::SignalProxy2< void,const Glib::ustring&,const TreeModel::iterator& > Gtk::CellRendererCombo::signal_changed (  ) 
Prototype:
void on_my_changed(const Glib::ustring& path, const TreeModel::iterator& iter)

Friends And Related Function Documentation

Gtk::CellRendererCombo* wrap ( GtkCellRendererCombo *  object,
bool  take_copy = false 
) [related]

A Glib::wrap() method for this object.

Parameters:
object The C instance.
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.

The documentation for this class was generated from the following file:

Generated on Tue May 4 13:21:48 2010 for gtkmm by  doxygen 1.6.1