Gnome::Db::FindDialog Class Reference

#include <finddialog.h>

Inheritance diagram for Gnome::Db::FindDialog:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~FindDialog ()
GnomeDbFindDialog* gobj ()
 Provides access to the underlying C GtkObject.
const GnomeDbFindDialog* gobj () const
 Provides access to the underlying C GtkObject.
 FindDialog (const Glib::ustring& title)
 FindDialog (const Glib::ustring& title, const Glib::RefPtr<Gda::DataModel>& model)
bool run ()
 Shows the dialog to the user and wait for his/her input.
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.
Glib::ustring get_text () const
 Gets the current search text in dialog .
Glib::ustring get_field () const
 Gets the currently selected field in dialog .

Related Functions

(Note that these are not member functions.)

Gnome::Db::FindDialogwrap (GnomeDbFindDialog* object, bool take_copy=false)

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]


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.

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
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:08 2007 for libgnomedbmm by  doxygen 1.4.7