libgnomedbmm Reference Documentation
Main Page   Namespaces   Book  

Gnome::Db::FindDialog Class Reference

A dialog to enter a string to search in a Gda::DataModel. More...

Inheritance diagram for Gnome::Db::FindDialog:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void add_field (const Glib::ustring& field)
 Adds field to the Fields combo.
void add_fields_from_model (const Glib::RefPtr<Gda::DataModel>& dm)
 Adds all the fields of dm into the Fields combo.
 FindDialog (const Glib::ustring& title, const Glib::RefPtr<Gda::DataModel>& model)
 Creates a new FindDialog and adds the fields of the model to the Fields combo.
 FindDialog (const Glib::ustring& title)
Glib::ustring get_field () const
 Gets the currently selected field in dialog .
Glib::ustring get_text () const
 Gets the current search text in dialog .
const GnomeDbFindDialog* gobj () const
 Provides access to the underlying C GtkObject.
GnomeDbFindDialog* gobj ()
 Provides access to the underlying C GtkObject.
Glib::PropertyProxy_ReadOnly<
Glib::ustring
property_field () const
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.
Glib::PropertyProxy_ReadOnly<
Glib::ustring
property_text () const
 You rarely need to use properties because there are get_ and set_ methods for almost all of them.
bool run ()
 Shows the dialog to the user and wait for his/her input.
virtual ~FindDialog ()

Related Functions

(Note that these are not member functions.)

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


Detailed Description

A dialog to enter a string to search in a Gda::DataModel.


Constructor & Destructor Documentation

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

Gnome::Db::FindDialog::FindDialog ( const Glib::ustring title  )  [explicit]

Gnome::Db::FindDialog::FindDialog ( const Glib::ustring title,
const Glib::RefPtr< Gda::DataModel > &  model 
) [explicit]

Creates a new FindDialog and adds the fields of the model to the Fields combo.

Parameters:
title The title of the dialog.
model A Gda::DataModel.


Member Function Documentation

void Gnome::Db::FindDialog::add_field ( const Glib::ustring field  ) 

Adds field to the Fields combo.

Parameters:
field The field's name.

void Gnome::Db::FindDialog::add_fields_from_model ( const Glib::RefPtr< Gda::DataModel > &  dm  ) 

Adds all the fields of dm into the Fields combo.

Parameters:
dm A Gda::DataModel.

Glib::ustring Gnome::Db::FindDialog::get_field (  )  const

Gets the currently selected field in dialog .

Returns:
Name of the selected field.

Glib::ustring Gnome::Db::FindDialog::get_text (  )  const

Gets the current search text in dialog .

Returns:
Text to find.

const GnomeDbFindDialog* Gnome::Db::FindDialog::gobj (  )  const [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Dialog.

GnomeDbFindDialog* Gnome::Db::FindDialog::gobj (  )  [inline]

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Dialog.

Glib::PropertyProxy_ReadOnly<Glib::ustring> Gnome::Db::FindDialog::property_field (  )  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.

Glib::PropertyProxy_ReadOnly<Glib::ustring> Gnome::Db::FindDialog::property_text (  )  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.

bool Gnome::Db::FindDialog::run (  ) 

Shows the dialog to the user and wait for his/her input.

Returns:
True if the user clicks "find", false otherwise.

Reimplemented from Gtk::Dialog.


Friends And Related Function Documentation

Gnome::Db::FindDialog* wrap ( GnomeDbFindDialog *  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