|
| DataProxy (DataProxy&& src) noexcept |
|
DataProxy& | operator= (DataProxy&& src) noexcept |
|
virtual | ~DataProxy () noexcept |
|
GdaDataProxy* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GdaDataProxy* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GdaDataProxy* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
Glib::RefPtr< DataModel > | get_proxied_model () |
| Fetch the Gda::DataModel which proxy does proxy. More...
|
|
Glib::RefPtr< const DataModel > | get_proxied_model () const |
| Fetch the Gda::DataModel which proxy does proxy. More...
|
|
int | get_proxied_model_n_cols () const |
| Get the number of columns in the proxied data model. More...
|
|
int | get_proxied_model_n_rows () const |
| Get the number of rows in the proxied data model. More...
|
|
bool | is_read_only () const |
|
ValueVector | get_values (int proxy_row, const std::vector< int >& cols_index) const |
| Retrieve a whole list of values from the proxy data model. More...
|
|
ValueAttribute | get_value_attributes (int proxy_row, int col) const |
| Get the attributes of the value stored at (proxy_row, col) in proxy, which is an ORed value of Gda::ValueAttribute flags. More...
|
|
void | alter_value_attributes (int proxy_row, int col, ValueAttribute alter_flags) |
| Alters the attributes of the value stored at (proxy_row, col) in proxy. More...
|
|
int | get_proxied_model_row (int proxy_row) const |
| Get the proxy's proxied model row corresponding to proxy_row. More...
|
|
void | erase (int proxy_row) |
| Marks the row proxy_row to be deleted. More...
|
|
void | unerase (int proxy_row) |
| Remove the "to be deleted" mark at the row proxy_row, if it existed. More...
|
|
bool | row_is_deleted (int proxy_row) const |
| Tells if the row number proxy_row is marked to be deleted. More...
|
|
bool | row_is_inserted (int proxy_row) const |
| Tells if the row number proxy_row is a row which has been inserted in proxy (and is thus not in the proxied data model). More...
|
|
void | cancel_row_changes (int proxy_row, int col) |
| Resets data at the corresponding row and column. More...
|
|
void | apply_row_changes (int proxy_row) |
| Commits the modified data in the proxy back into the Gda::DataModel. More...
|
|
bool | has_changed () const |
| Tells if proxy contains any modifications not applied to the proxied data model. More...
|
|
bool | row_has_changed (int proxy_row) const |
| Tells if the row number proxy_row has changed. More...
|
|
int | get_n_new_rows () const |
| Get the number of rows which have been added to proxy and which are not part of the proxied data model. More...
|
|
int | get_n_modified_rows () const |
| Get the number of rows which have been modified in the proxy (the sum of rows existing in the proxied data model which have been modified, and new rows). More...
|
|
void | set_sample_size (int sample_size) |
| Sets the size of each chunk of data to display: the maximum number of rows which can be "displayed" at a time (the maximum number of rows which proxy pretends to have). More...
|
|
int | get_sample_size () const |
| Get the size of each chunk of data displayed at a time. More...
|
|
void | set_sample_start (int sample_start) |
| Sets the number of the first row to be available in proxy (in reference to the proxied data model) More...
|
|
int | get_sample_start () const |
| Get the number of the first row to be available in proxy (in reference to the proxied data model) More...
|
|
int | get_sample_end () const |
| Get the number of the last row to be available in proxy (in reference to the proxied data model) More...
|
|
bool | apply_all_changes () |
| Apply all the changes stored in the proxy to the proxied data model. More...
|
|
bool | cancel_all_changes () |
| Cancel all the changes stored in the proxy (the proxy will be reset to its state as it was just after creation). More...
|
|
int | get_filtered_n_rows () |
| Get the total number of filtered rows in proxy if a filter has been applied. More...
|
|
Glib::ustring | get_filter_expr () |
| Get the current filter expression used by proxy. More...
|
|
void | get_filter_expr (const Glib::ustring& filter_expr) |
| Sets a filter among the rows presented by proxy. More...
|
|
void | set_ordering_column (int col) |
| Orders by the col column. More...
|
|
Glib::PropertyProxy< Glib::RefPtr< DataModel > > | property_model () |
| Proxied data model. More...
|
|
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< DataModel > > | property_model () const |
| Proxied data model. More...
|
|
Glib::PropertyProxy< bool > | property_prepend_null_entry () |
| Tells if a row composed of NULL values is inserted as the proxy's first row. More...
|
|
Glib::PropertyProxy_ReadOnly< bool > | property_prepend_null_entry () const |
| Tells if a row composed of NULL values is inserted as the proxy's first row. More...
|
|
Glib::PropertyProxy< bool > | property_defer_sync () |
| Tells if changes to the sample of rows displayed is done in background in several steps or if it's done in one step. More...
|
|
Glib::PropertyProxy_ReadOnly< bool > | property_defer_sync () const |
| Tells if changes to the sample of rows displayed is done in background in several steps or if it's done in one step. More...
|
|
Glib::PropertyProxy< int > | property_sample_size () |
| Number of rows which the proxy will contain at any time, like a sliding window on the proxied data model. More...
|
|
Glib::PropertyProxy_ReadOnly< int > | property_sample_size () const |
| Number of rows which the proxy will contain at any time, like a sliding window on the proxied data model. More...
|
|
Glib::SignalProxy2< void, int, bool > | signal_row_delete_changed () |
|
Glib::SignalProxy2< void, int, int > | signal_sample_changed () |
|
Glib::SignalProxy1< void, int > | signal_sample_size_changed () |
|
Glib::SignalProxy0< void > | signal_filter_changed () |
|
Glib::SignalProxy2< Glib::Error, int, int > | signal_validate_row_changes () |
|
Glib::SignalProxy2< void, int, int > | signal_row_changes_applied () |
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
void | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
|
sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| trackable () |
|
| trackable (const trackable &src) |
|
| trackable (trackable &&src) noexcept |
|
| ~trackable () |
|
void | add_destroy_notify_callback (void *data, func_destroy_notify func) const |
|
void | notify_callbacks () |
|
trackable & | operator= (const trackable &src) |
|
trackable & | operator= (trackable &&src) noexcept |
|
void | remove_destroy_notify_callback (void *data) const |
|
| DataModel (DataModel&& src) noexcept |
|
DataModel& | operator= (DataModel&& src) noexcept |
|
virtual | ~DataModel () noexcept |
|
GdaDataModel* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GdaDataModel* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
void | freeze () |
| Disables notifications of changes on the given data model. More...
|
|
void | thaw () |
| Re-enables notifications of changes on the given data model. More...
|
|
int | get_n_rows () const |
|
int | get_n_columns () const |
|
int | get_column_index (const Glib::ustring& name) |
| Get the index of the first column named name in model. More...
|
|
Glib::RefPtr< Column > | describe_column (int col) |
| Queries the underlying data model implementation for a description of a given column. More...
|
|
Glib::RefPtr< const Column > | describe_column (int col) const |
| Queries the underlying data model implementation for a description of a given column. More...
|
|
Glib::ustring | get_column_title (int col) const |
|
void | set_column_title (int col, const Glib::ustring& title) |
| Sets the title of the given col in model. More...
|
|
Value | get_value_at (int col, int row) const |
| Retrieves the data stored in the given position (identified by the col and row parameters) on a data model. More...
|
|
Value | get_typed_value_at (int col, int row, GType expected_type, bool nullok) const |
| Upon errors 0 will be returned and error will be assigned a Error from the Gda::DATA_MODEL_ERROR domain. More...
|
|
ValueAttribute | get_attributes_at (int col, int row) |
| Get the attributes of the value stored at (row, col) in model, which is an ORed value of Gda::ValueAttribute flags. More...
|
|
Glib::RefPtr< DataModelIter > | create_iter () |
| Creates a new iterator object Gda::DataModelIter object which can be used to iterate through rows in model. More...
|
|
bool | set_value_at (int col, int row, const Value& value) |
| Modifies a value in model, at ( col, row). More...
|
|
bool | set_values (int row, const std::vector< Value >& values) |
| In a similar way to set_value_at(), this method modifies a data model's contents by setting several values at once. More...
|
|
DataModelAccessFlags | get_access_flags () const |
| Get the attributes of model such as how to access the data it contains if it's modifiable, etc. More...
|
|
int | append_values (const std::vector< Value >& values) |
| Appends a row to the given data model. More...
|
|
bool | append_row () |
| Appends a row to the data model (the new row will possibly have 0 values for all columns, or some other values depending on the data model implementation) More...
|
|
bool | remove_row (int row) |
| Removes a row from the data model. More...
|
|
int | get_row_from_values (const ValueVector& values, const std::vector< int >& cols_index) |
| Returns the first row where all the values in values at the columns identified at cols_index match. More...
|
|
void | send_hint (DataModelHint hint, const Value& hint_value) |
| Sends a hint to the data model. More...
|
|
Glib::ustring | export_to_string (DataModelIOFormat format, const std::vector< int >& cols, const std::vector< int >& rows, const Glib::RefPtr< Set >& options) |
| Exports data contained in model to the a string; the format is specified using the format argument. More...
|
|
bool | export_to_file (DataModelIOFormat format, const std::string& file, const std::vector< int >& cols, const std::vector< int >& rows, const Glib::RefPtr< Set >& options) |
| Exports data contained in model to the file; the format is specified using the format argument. More...
|
|
bool | import_from_model (const Glib::RefPtr< DataModel >& from, bool overwrite, GHashTable* cols_trans) |
| Copy the contents of the from data model to the to data model. More...
|
|
bool | import_from_string (const Glib::ustring&string, GHashTable* cols_trans, const Glib::RefPtr< const Set >& options) |
| Loads the data from string into model. More...
|
|
bool | import_from_file (const std::string& file, GHashTable* cols_trans, const Glib::RefPtr< const Set >& options) |
| Imports data contained in the file file into model; the format is detected. More...
|
|
void | dump (FILE* to_stream) const |
| Dumps a textual representation of the model to the to_stream stream. More...
|
|
Glib::ustring | dump_as_string () const |
| Dumps a textual representation of the model into a new string. More...
|
|
void | set_column_name (int col, const Glib::ustring& name) |
| Sets the name of the given col in model, and if its title is not set, also sets the title to name. More...
|
|
Glib::ustring | get_column_name (int col) const |
|
bool | iter_move_next_default (const Glib::RefPtr< DataModelIter >& iter) |
|
bool | iter_move_prev_default (const Glib::RefPtr< DataModelIter >& iter) |
|
bool | iter_move_to_row_default (const Glib::RefPtr< DataModelIter >& iter, int row) |
|
Glib::SignalProxy1< void, int > | signal_row_inserted () |
|
Glib::SignalProxy1< void, int > | signal_row_updated () |
|
Glib::SignalProxy1< void, int > | signal_row_removed () |
|
Glib::SignalProxy0< void > | signal_reset () |
|
Glib::SignalProxy0< void > | signal_changed () |
|
| Interface () |
|
| Interface (Interface &&src) noexcept |
|
Interface & | operator= (Interface &&src) noexcept |
|
| Interface (const Glib::Interface_Class &interface_class) |
|
| Interface (GObject *castitem) |
|
virtual | ~Interface () noexcept |
|
| Interface (const Interface &)=delete |
|
Interface & | operator= (const Interface &)=delete |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
Proxy to hold modifications for any DataModel, providing the DataModel interface itself.
This object stores modifications made to a DataModel object which is proxied until asked to make the changes inside the DataModel. It also filters the proxied data model to show only a sample (a defined number of continuous rows) of it.
Specifically, for a proxied data model having nb_cols columns and nb_rows rows, the DataProxy object has the following attributes:
- 2 * nb_cols columns:
- The first (>= 0) nb_cols columns are the current values stored in the proxy (which correspond to the values of the proxied data model if the considered row has not been changed). The associated values are writable.
- The last nb_cols columns are the values stored in the proxied data model, at column col - nb_cols.
- A variable number of rows depending on the following attributes:
- Whether the proxy is configured to have an empty row as the first row.
- Whether the proxy only displays parts of the proxied data model.
- Whether new rows have been added to the proxy.
Note that unless explicitely mentioned, the columns are read-only.