libgnomedbmm Reference Documentation
Main Page   Namespaces   Book  

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

A combo box to choose a value from a Gda::ParameterList. More...

Inheritance diagram for Gnome::Db::EntryCombo:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 EntryCombo (const Glib::RefPtr<Gda::ParameterList>& paramlist, GdaParameterListSource* source)
Glib::SListHandle<Gda::Value> get_all_values ()
 Get a list of all the values in combo 's data model's selected row.
Glib::SListHandle<Gda::Value> get_values ()
 Get the values stored within combo .
Glib::SListHandle<Gda::Value> get_values_orig ()
 Get the original values stored within combo .
const GnomeDbEntryCombo* gobj () const
 Provides access to the underlying C GtkObject.
GnomeDbEntryCombo* gobj ()
 Provides access to the underlying C GtkObject.
bool set_values (const Glib::SListHandle<Gda::Value>& values)
 Sets the values of combo to the specified ones.
void set_values_default (const Glib::SListHandle<Gda::Value>& values)
 Sets the default values of combo to the specified ones.
void set_values_orig (const Glib::SListHandle<Gda::Value>& values)
 Sets the original values of combo to the specified ones.
virtual ~EntryCombo ()

Related Functions

(Note that these are not member functions.)

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


Detailed Description

A combo box to choose a value from a Gda::ParameterList.


Constructor & Destructor Documentation

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

Gnome::Db::EntryCombo::EntryCombo ( const Glib::RefPtr< Gda::ParameterList > &  paramlist,
GdaParameterListSource *  source 
)


Member Function Documentation

Glib::SListHandle<Gda::Value> Gnome::Db::EntryCombo::get_all_values (  ) 

Get a list of all the values in combo 's data model's selected row.

The list must be freed by the caller.

Returns:
A new list of values.

Glib::SListHandle<Gda::Value> Gnome::Db::EntryCombo::get_values (  ) 

Get the values stored within combo .

The returned values are the ones within combo , so they must not be freed afterwards, however the returned list has to be freed afterwards.

Returns:
A new list of values.

Glib::SListHandle<Gda::Value> Gnome::Db::EntryCombo::get_values_orig (  ) 

Get the original values stored within combo .

The returned values are the ones within combo , so they must not be freed afterwards; the list has to be freed afterwards.

Returns:
A new list of values.

const GnomeDbEntryCombo* Gnome::Db::EntryCombo::gobj (  )  const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gnome::Db::DataEntry.

GnomeDbEntryCombo* Gnome::Db::EntryCombo::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gnome::Db::DataEntry.

bool Gnome::Db::EntryCombo::set_values ( const Glib::SListHandle< Gda::Value > &  values  ) 

Sets the values of combo to the specified ones.

None of the values provided in the list is modified.

values holds a list of G::Value values, one for each parameter that is present in the node argument of the gnome_db_entry_combo_new() function which created combo .

An error can occur when there is no corresponding value(s) to be displayed for the provided values.

If values is 0, then the entry itself is set to 0;

Parameters:
values A list of G::Value values, or 0.
Returns:
true if no error occurred.

void Gnome::Db::EntryCombo::set_values_default ( const Glib::SListHandle< Gda::Value > &  values  ) 

Sets the default values of combo to the specified ones.

None of the values provided in the list is modified.

Parameters:
values A list of G::Value values.

void Gnome::Db::EntryCombo::set_values_orig ( const Glib::SListHandle< Gda::Value > &  values  ) 

Sets the original values of combo to the specified ones.

None of the values provided in the list is modified.

Parameters:
values A list of G::Value values.


Friends And Related Function Documentation

Gnome::Db::EntryCombo* wrap ( GnomeDbEntryCombo *  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