#include <datawidget.h>
Inheritance diagram for Gnome::Db::DataWidget:

Public Member Functions | |
| virtual | ~DataWidget () |
| GnomeDbDataWidget* | gobj () |
| Provides access to the underlying C GObject. | |
| const GnomeDbDataWidget* | gobj () const |
| Provides access to the underlying C GObject. | |
| Glib::RefPtr<Gda::DataProxy> | get_proxy () |
| Get a pointer to the Gda::DataProxy being used by iface. | |
| Glib::RefPtr<const Gda::DataProxy> | get_proxy () const |
| Get a pointer to the Gda::DataProxy being used by iface. | |
| void | column_show (int column) |
| Shows the data at column in the data model iface operates on. | |
| void | column_hide (int column) |
| Hides the data at column in the data model iface operates on. | |
| void | column_set_editable (int column, bool editable) |
| Sets if the data entry in the iface widget at column (in the data model iface operates on) can be edited or not. | |
| void | column_show_actions (int column, bool show_actions) |
| Sets if the data entry in the iface widget at column (in the data model iface operates on) must show its actions menu or not. | |
| Glib::RefPtr<Gtk::ActionGroup> | get_actions_group () |
| Each widget imlplementing the Gnome::DbDataWidget interface provides actions. | |
| Glib::RefPtr<const Gtk::ActionGroup> | get_actions_group () const |
| Each widget imlplementing the Gnome::DbDataWidget interface provides actions. | |
| void | perform_action (Action action) |
| Forces the widget to perform the selected action , as if the user had pressed on the corresponding action button in the iface widget, if the corresponding action is possible and if the iface widget supports the action. | |
| Glib::RefPtr<Gda::DataModelIter> | get_current_data () |
| Get the Gda::DataModelIter object which contains all the parameters which in turn contain the actual data stored in iface . | |
| Glib::RefPtr<const Gda::DataModelIter> | get_current_data () const |
| Get the Gda::DataModelIter object which contains all the parameters which in turn contain the actual data stored in iface . | |
| Glib::RefPtr<Gda::DataModel> | get_gda_model () |
| Get the current Gda::DataModel used by iface. | |
| Glib::RefPtr<const Gda::DataModel> | get_gda_model () const |
| Get the current Gda::DataModel used by iface. | |
| void | set_gda_model (const Glib::RefPtr<Gda::DataModel>& model) |
| Sets the data model which is used by iface . | |
| DataWidgetWriteMode | get_write_mode () const |
| void | set_write_mode (DataWidgetWriteMode mode) |
| Glib::SignalProxy1< void, const Glib::RefPtr<Gnome::Gda::DataProxy >&> | signal_proxy_changed () |
Static Public Member Functions | |
| static void | add_interface (GType gtype_implementer) |
Related Functions | |
| (Note that these are not member functions.) | |
| Glib::RefPtr<Gnome::Db::DataWidget> | wrap (GnomeDbDataWidget* object, bool take_copy=false) |
| virtual Gnome::Db::DataWidget::~DataWidget | ( | ) | [virtual] |
| static void Gnome::Db::DataWidget::add_interface | ( | GType | gtype_implementer | ) | [static] |
| void Gnome::Db::DataWidget::column_hide | ( | int | column | ) |
Hides the data at column in the data model iface operates on.
| column | Column number to hide. |
| void Gnome::Db::DataWidget::column_set_editable | ( | int | column, | |
| bool | editable | |||
| ) |
Sets if the data entry in the iface widget at column (in the data model iface operates on) can be edited or not.
| column | Column number of the data. | |
| editable | Whether the data entry can be edited. |
| void Gnome::Db::DataWidget::column_show | ( | int | column | ) |
Shows the data at column in the data model iface operates on.
| column | Column number to show. |
| void Gnome::Db::DataWidget::column_show_actions | ( | int | column, | |
| bool | show_actions | |||
| ) |
Sets if the data entry in the iface widget at column (in the data model iface operates on) must show its actions menu or not.
| column | Column number of the data. | |
| show_actions | Whether to show the actions menu. |
| Glib::RefPtr<const Gtk::ActionGroup> Gnome::Db::DataWidget::get_actions_group | ( | ) | const |
Each widget imlplementing the Gnome::DbDataWidget interface provides actions.
Actions can be triggered using the perform_action() method, but using this method allows for the creation of toolbars, menus, etc calling these actions.
The actions are among: <itemizedlist><listitem>Data edition actions: "ActionNew", "ActionCommit", "ActionDelete, "ActionUndelete, "ActionReset", </listitem> <listitem>Record by record moving: "ActionFirstRecord", "ActionPrevRecord", "ActionNextRecord", "ActionLastRecord",</listitem> <listitem>Chuncks of records moving: "ActionFirstChunck", "ActionPrevChunck", "ActionNextChunck", "ActionLastChunck".</listitem></itemizedlist>
| Glib::RefPtr<Gtk::ActionGroup> Gnome::Db::DataWidget::get_actions_group | ( | ) |
Each widget imlplementing the Gnome::DbDataWidget interface provides actions.
Actions can be triggered using the perform_action() method, but using this method allows for the creation of toolbars, menus, etc calling these actions.
The actions are among: <itemizedlist><listitem>Data edition actions: "ActionNew", "ActionCommit", "ActionDelete, "ActionUndelete, "ActionReset", </listitem> <listitem>Record by record moving: "ActionFirstRecord", "ActionPrevRecord", "ActionNextRecord", "ActionLastRecord",</listitem> <listitem>Chuncks of records moving: "ActionFirstChunck", "ActionPrevChunck", "ActionNextChunck", "ActionLastChunck".</listitem></itemizedlist>
| Glib::RefPtr<const Gda::DataModelIter> Gnome::Db::DataWidget::get_current_data | ( | ) | const |
Get the Gda::DataModelIter object which contains all the parameters which in turn contain the actual data stored in iface .
When the user changes what's displayed or what's selected (depending on the actual widget) in iface , then the parameter's values change as well.
| Glib::RefPtr<Gda::DataModelIter> Gnome::Db::DataWidget::get_current_data | ( | ) |
Get the Gda::DataModelIter object which contains all the parameters which in turn contain the actual data stored in iface .
When the user changes what's displayed or what's selected (depending on the actual widget) in iface , then the parameter's values change as well.
| Glib::RefPtr<const Gda::DataModel> Gnome::Db::DataWidget::get_gda_model | ( | ) | const |
Get the current Gda::DataModel used by iface.
0 if there is none. | Glib::RefPtr<Gda::DataModel> Gnome::Db::DataWidget::get_gda_model | ( | ) |
Get the current Gda::DataModel used by iface.
0 if there is none. | Glib::RefPtr<const Gda::DataProxy> Gnome::Db::DataWidget::get_proxy | ( | ) | const |
Get a pointer to the Gda::DataProxy being used by iface.
| Glib::RefPtr<Gda::DataProxy> Gnome::Db::DataWidget::get_proxy | ( | ) |
Get a pointer to the Gda::DataProxy being used by iface.
| DataWidgetWriteMode Gnome::Db::DataWidget::get_write_mode | ( | ) | const |
| const GnomeDbDataWidget* Gnome::Db::DataWidget::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface.
Reimplemented in Gnome::Db::RawForm, and Gnome::Db::RawGrid.
| GnomeDbDataWidget* Gnome::Db::DataWidget::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Glib::Interface.
Reimplemented in Gnome::Db::RawForm, and Gnome::Db::RawGrid.
| void Gnome::Db::DataWidget::perform_action | ( | Action | action | ) |
Forces the widget to perform the selected action , as if the user had pressed on the corresponding action button in the iface widget, if the corresponding action is possible and if the iface widget supports the action.
| action | A Gnome::DbAction action. |
| void Gnome::Db::DataWidget::set_gda_model | ( | const Glib::RefPtr< Gda::DataModel > & | model | ) |
Sets the data model which is used by iface .
| model | A valid Gda::DataModel. |
| void Gnome::Db::DataWidget::set_write_mode | ( | DataWidgetWriteMode | mode | ) |
| Glib::SignalProxy1< void,const Glib::RefPtr<Gnome::Gda::DataProxy>& > Gnome::Db::DataWidget::signal_proxy_changed | ( | ) |
void proxy_changed(const Glib::RefPtr<Gnome::Gda::DataProxy>& proxy)
| Glib::RefPtr<Gnome::Db::DataWidget> wrap | ( | GnomeDbDataWidget * | object, | |
| bool | take_copy = false | |||
| ) | [related] |
| 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. |
1.4.7