Gnome::Db::DataEntry Class Reference

#include <dataentry.h>

Inheritance diagram for Gnome::Db::DataEntry:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~DataEntry ()
GnomeDbDataEntry* gobj ()
 Provides access to the underlying C GObject.
const GnomeDbDataEntry* gobj () const
 Provides access to the underlying C GObject.

Static Public Member Functions

static void add_interface (GType gtype_implementer)

Protected Member Functions

void set_value_type (GType type)
 Sets the type of value the GnomeDbDataEntry will handle.
GType get_value_type ()
 Fetch the type of data the GnomeDbDataEntry handles.
void set_value (const Gda::Value& value)
 Push a value into the GnomeDbDataEntry.
Gda::Value get_value () const
 Fetch the value held in the GnomeDbDataEntry widget.
void set_value_orig (const Gda::Value& value)
 Push a value into the GnomeDbDataEntry in the same way as set_value() but also sets this value as the original value.
Gda::Value get_value_orig () const
 Fetch the original value held in the GnomeDbDataEntry widget.
void set_current_as_orig ()
 Tells that the current value in de is to be considered as the original value.
void set_value_default (const Gda::Value& value)
 Sets the default value for the GnomeDbDataEntry which gets displayed when the user forces the default value.
Glib::RefPtr<Gda::DataHandler> get_handler ()
 Fetch the GdaDataHandler the GnomeDbDataEntry is using.
Glib::RefPtr<const Gda::DataHandler> get_handler () const
 Fetch the GdaDataHandler the GnomeDbDataEntry is using.
GdaValueAttribute get_attributes () const
 Retreives the parameters of the GnomeDbDataEntry widget.
void set_attributes (GdaValueAttribute attrs, GdaValueAttribute mask)
 Sets the parameters of the GnomeDbDataEntry.
bool get_expand_in_layout () const
 Used for the layout of the widget in containers.
void set_editable (bool editable=true)
 Set if de can be modified or not by the user.
void grab_focus ()
Glib::SignalProxy0<void> signal_contents_modified ()
Glib::SignalProxy0<void> signal_contents_activated ()
Glib::SignalProxy0<void> signal_status_changed ()

Related Functions

(Note that these are not member functions.)

Glib::RefPtr<Gnome::Db::DataEntrywrap (GnomeDbDataEntry* object, bool take_copy=false)

Constructor & Destructor Documentation

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


Member Function Documentation

static void Gnome::Db::DataEntry::add_interface ( GType  gtype_implementer  )  [static]

GdaValueAttribute Gnome::Db::DataEntry::get_attributes (  )  const [protected]

Retreives the parameters of the GnomeDbDataEntry widget.

Returns:
The OR'ed bits corresponding to the attributes.

bool Gnome::Db::DataEntry::get_expand_in_layout (  )  const [protected]

Used for the layout of the widget in containers.

Returns:
true if the widget should expand.

Glib::RefPtr<const Gda::DataHandler> Gnome::Db::DataEntry::get_handler (  )  const [protected]

Fetch the GdaDataHandler the GnomeDbDataEntry is using.

Returns:
The GdaDataHandler object.

Glib::RefPtr<Gda::DataHandler> Gnome::Db::DataEntry::get_handler (  )  [protected]

Fetch the GdaDataHandler the GnomeDbDataEntry is using.

Returns:
The GdaDataHandler object.

Gda::Value Gnome::Db::DataEntry::get_value (  )  const [protected]

Fetch the value held in the GnomeDbDataEntry widget.

If the value is set to 0, the returned value is of type GDA_TYPE_0. If the value is set to default, then the returned value is of type GDA_TYPE_0 or is the default value if it has been provided to the widget (and is of the same type as the one provided by de ).

Returns:
A new GValue.

Gda::Value Gnome::Db::DataEntry::get_value_orig (  )  const [protected]

Fetch the original value held in the GnomeDbDataEntry widget.

Returns:
The GValue.

GType Gnome::Db::DataEntry::get_value_type (  )  [protected]

Fetch the type of data the GnomeDbDataEntry handles.

Returns:
The GType type.

const GnomeDbDataEntry* Gnome::Db::DataEntry::gobj (  )  const [inline]

Provides access to the underlying C GObject.

Reimplemented from Glib::Interface.

Reimplemented in Gnome::Db::EntryBoolean, Gnome::Db::EntryCommonTime, Gnome::Db::EntryDate, Gnome::Db::EntryNone, Gnome::Db::EntryString, Gnome::Db::EntryTime, Gnome::Db::EntryTimestamp, and Gnome::Db::EntryWrapper.

GnomeDbDataEntry* Gnome::Db::DataEntry::gobj (  )  [inline]

Provides access to the underlying C GObject.

Reimplemented from Glib::Interface.

Reimplemented in Gnome::Db::EntryBoolean, Gnome::Db::EntryCommonTime, Gnome::Db::EntryDate, Gnome::Db::EntryNone, Gnome::Db::EntryString, Gnome::Db::EntryTime, Gnome::Db::EntryTimestamp, and Gnome::Db::EntryWrapper.

void Gnome::Db::DataEntry::grab_focus (  )  [protected]

void Gnome::Db::DataEntry::set_attributes ( GdaValueAttribute  attrs,
GdaValueAttribute  mask 
) [protected]

Sets the parameters of the GnomeDbDataEntry.

Only the attributes corresponding to the mask are set, the other ones are ignored.

Parameters:
attrs The attributes to set (OR'ed between them).
mask The mask corresponding to the considered attributes.

void Gnome::Db::DataEntry::set_current_as_orig (  )  [protected]

Tells that the current value in de is to be considered as the original value.

void Gnome::Db::DataEntry::set_editable ( bool  editable = true  )  [protected]

Set if de can be modified or not by the user.

void Gnome::Db::DataEntry::set_value ( const Gda::Value &  value  )  [protected]

Push a value into the GnomeDbDataEntry.

The value parameter must either be:

void Gnome::Db::DataEntry::set_value_default ( const Gda::Value &  value  )  [protected]

Sets the default value for the GnomeDbDataEntry which gets displayed when the user forces the default value.

If it is not set then it is set to type GDA_TYPE_0. The value parameter must either be:

void Gnome::Db::DataEntry::set_value_orig ( const Gda::Value &  value  )  [protected]

Push a value into the GnomeDbDataEntry in the same way as set_value() but also sets this value as the original value.

void Gnome::Db::DataEntry::set_value_type ( GType  type  )  [protected]

Sets the type of value the GnomeDbDataEntry will handle.

The type must be compatible with what the widget can handle.

Glib::SignalProxy0< void > Gnome::Db::DataEntry::signal_contents_activated (  )  [protected]

Prototype:
void contents_activated()

Glib::SignalProxy0< void > Gnome::Db::DataEntry::signal_contents_modified (  )  [protected]

Prototype:
void contents_modified()

Glib::SignalProxy0< void > Gnome::Db::DataEntry::signal_status_changed (  )  [protected]

Prototype:
void status_changed()


Friends And Related Function Documentation

Glib::RefPtr<Gnome::Db::DataEntry> wrap ( GnomeDbDataEntry *  object,
bool  take_copy = false 
) [related]

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 Mon Feb 12 16:49:03 2007 for libgnomedbmm by  doxygen 1.4.7