libgnomedbmm Reference Documentation
Main Page   Namespaces   Book  

Gnome::Db::RawGrid Class Reference
[DbWidgets]

Grid to display and modify data in a Gda::DataModel. More...

Inheritance diagram for Gnome::Db::RawGrid:

Inheritance graph
[legend]
List of all members.

Public Types

typedef Glib::ListHandle<
int, IntTraits > 
IntListHandle

Public Member Functions

RawGrid::IntListHandle get_selection () const
 Returns: a new list, should be freed (by calling g_list_free) when no longer needed.
const GnomeDbRawGrid* gobj () const
 Provides access to the underlying C GtkObject.
GnomeDbRawGrid* gobj ()
 Provides access to the underlying C GtkObject.
Glib::PropertyProxy_ReadOnly<
bool > 
property_global_actions_visible () const
 Global Actions visible.
Glib::PropertyProxy<bool> property_global_actions_visible ()
 Global Actions visible.
Glib::PropertyProxy_ReadOnly<
bool > 
property_info_cell_visible () const
 Info cell visible.
Glib::PropertyProxy<bool> property_info_cell_visible ()
 Info cell visible.
Glib::PropertyProxy_ReadOnly<
Glib::RefPtr<Gda::DataModel >> 
property_model () const
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy< Glib::RefPtr<
Gda::DataModel > > 
property_model ()
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.
 RawGrid (const Glib::RefPtr<Gda::DataModel>& model)
void set_sample_size (int sample_size)
void set_sample_start (int sample_start)
Glib::SignalProxy1< void,
int > 
signal_double_clicked ()
 
Prototype:
void double_clicked(int row)

Glib::SignalProxy1< void,
Gtk::Menu* > 
signal_populate_popup ()
 
Prototype:
void populate_popup(Gtk::Menu* menu)

Glib::SignalProxy1< void,
bool > 
signal_selection_changed ()
 
Prototype:
void selection_changed(bool row_selected)

virtual ~RawGrid ()

Protected Member Functions

virtual void on_double_clicked (int row)
virtual void on_populate_popup (Gtk::Menu* menu)
virtual void on_selection_changed (bool row_selected)

Related Functions

(Note that these are not member functions.)

Gnome::Db::RawGridwrap (GnomeDbRawGrid* object, bool take_copy=false)
 
Parameters:
object The C instance


Detailed Description

Grid to display and modify data in a Gda::DataModel.

This widget only contains data - it has no decoration, or button to change the displayed row, or any indicator about the current displayed row or the total number of rows. To have a complete grid widget, see the Grid class.

This widget is itself a Gtk::TreeView widget.


Member Typedef Documentation

typedef Glib::ListHandle<int, IntTraits> Gnome::Db::RawGrid::IntListHandle


Constructor & Destructor Documentation

virtual Gnome::Db::RawGrid::~RawGrid (  )  [virtual]

Gnome::Db::RawGrid::RawGrid ( const Glib::RefPtr< Gda::DataModel > &  model  )  [explicit]


Member Function Documentation

RawGrid::IntListHandle Gnome::Db::RawGrid::get_selection (  )  const

Returns: a new list, should be freed (by calling g_list_free) when no longer needed.

Returns:
A new list, should be freed (by calling g_list_free) when no longer needed.

Reimplemented from Gtk::TreeView.

const GnomeDbRawGrid* Gnome::Db::RawGrid::gobj (  )  const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::TreeView.

GnomeDbRawGrid* Gnome::Db::RawGrid::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::TreeView.

virtual void Gnome::Db::RawGrid::on_double_clicked ( int  row  )  [protected, virtual]

virtual void Gnome::Db::RawGrid::on_populate_popup ( Gtk::Menu menu  )  [protected, virtual]

virtual void Gnome::Db::RawGrid::on_selection_changed ( bool  row_selected  )  [protected, virtual]

Glib::PropertyProxy_ReadOnly<bool> Gnome::Db::RawGrid::property_global_actions_visible (  )  const

Global Actions visible.

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> Gnome::Db::RawGrid::property_global_actions_visible (  ) 

Global Actions visible.

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<bool> Gnome::Db::RawGrid::property_info_cell_visible (  )  const

Info cell visible.

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> Gnome::Db::RawGrid::property_info_cell_visible (  ) 

Info cell visible.

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<Gda::DataModel> > Gnome::Db::RawGrid::property_model (  )  const

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.

Reimplemented from Gtk::TreeView.

Glib::PropertyProxy< Glib::RefPtr<Gda::DataModel> > Gnome::Db::RawGrid::property_model (  ) 

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.

Reimplemented from Gtk::TreeView.

void Gnome::Db::RawGrid::set_sample_size ( int  sample_size  ) 

void Gnome::Db::RawGrid::set_sample_start ( int  sample_start  ) 

Glib::SignalProxy1< void,int > Gnome::Db::RawGrid::signal_double_clicked (  ) 

Prototype:
void double_clicked(int row)

Glib::SignalProxy1< void,Gtk::Menu* > Gnome::Db::RawGrid::signal_populate_popup (  ) 

Prototype:
void populate_popup(Gtk::Menu* menu)

Glib::SignalProxy1< void,bool > Gnome::Db::RawGrid::signal_selection_changed (  ) 

Prototype:
void selection_changed(bool row_selected)


Friends And Related Function Documentation

Gnome::Db::RawGrid* wrap ( GnomeDbRawGrid *  object,
bool  take_copy = false 
) [related]

Parameters:
object The C instance

Parameters:
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 for libgnomedbmm by Doxygen 1.5.1 © 1997-2001