- public void @delete (int proxy_row)
Marks the row proxy_row
to be deleted
- public void alter_value_attributes (int proxy_row, int col, ValueAttribute alter_flags)
Alters the attributes of the value stored at (proxy_row, col) in
this.
- public bool apply_all_changes () throws Error
Apply all the changes stored in the proxy to the proxied data model.
- public bool apply_row_changes (int proxy_row) throws Error
Commits the modified data in the proxy back into the
DataModel.
- public bool cancel_all_changes ()
Cancel all the changes stored in the proxy (the
this will be reset to its state as it was just after creation).
- public void cancel_row_changes (int proxy_row, int col)
Resets data at the corresponding row and column.
- public unowned string get_filter_expr ()
Get the current filter expression used by
this.
- public int get_filtered_n_rows ()
Get the total number of filtered rows in
this if a filter has been applied.
- public int get_n_modified_rows ()
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).
- public int get_n_new_rows ()
Get the number of rows which have been added to
this and which are not part of the proxied data model.
- public unowned DataModel get_proxied_model ()
- public int get_proxied_model_n_cols ()
Get the number of columns in the proxied data model
- public int get_proxied_model_n_rows ()
Get the number of rows in the proxied data model
- public int get_proxied_model_row (int proxy_row)
Get the this's proxied model row
corresponding to proxy_row
- public int get_sample_end ()
Get the number of the last row to be available in
this (in reference to the proxied data model)
- public int get_sample_size ()
Get the size of each chunk of data displayed at a time.
- public int get_sample_start ()
Get the number of the first row to be available in
this (in reference to the proxied data model)
- public ValueAttribute get_value_attributes (int proxy_row, int col)
Get the attributes of the value stored at (proxy_row, col) in
this, which is an ORed value of ValueAttribute
flags
- public SList<unowned Value?> get_values (int proxy_row, int[] cols_index)
Retrieve a whole list of values from the
this data model.
- public bool has_changed ()
Tells if this contains any
modifications not applied to the proxied data model.
- public bool is_read_only ()
- public bool row_has_changed (int proxy_row)
Tells if the row number proxy_row
has changed
- public bool row_is_deleted (int proxy_row)
Tells if the row number proxy_row
is marked to be
deleted.
- public bool row_is_inserted (int proxy_row)
Tells if the row number proxy_row
is a row which has been
inserted in this (and is thus not in the proxied data model).
- public bool set_filter_expr (string? filter_expr) throws Error
Sets a filter among the rows presented by
this.
- public bool set_ordering_column (int col) throws Error
Orders by the col
column
- public 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 this pretends to have).
- public void set_sample_start (int sample_start)
Sets the number of the first row to be available in
this (in reference to the proxied data model)
- public void undelete (int proxy_row)
Remove the "to be deleted" mark at the row proxy_row
, if
it existed.