Commit Graph

167 Commits

Author SHA1 Message Date
Matthew Barnes 2b9713656b GalViewFactoryEtable: Remove "specification" property.
No longer needed.

Removed functions:

  gal_view_factory_etable_get_specification()
2013-07-05 16:40:49 -04:00
Matthew Barnes 99f04cfe58 Remove gal_view_etable_set_state().
No longer used.
2013-07-05 16:40:49 -04:00
Matthew Barnes c6d3ced98a GalViewEtable: Remove ETableSpecification member.
Instead, lazily load the state file once an ETable or ETree is attached,
since we need its ETableSpecification to create an ETableState instance.

This means GalViewFactoryEtable can lose its ETableSpecification too.
2013-07-05 16:40:49 -04:00
Matthew Barnes 1f84c2af98 GalViewEtable: Add a private section. 2013-07-05 16:40:49 -04:00
Matthew Barnes a2818bc4ea GalView: Add a private section. 2013-07-05 16:40:49 -04:00
Matthew Barnes c361af7396 GalViewFactory: Remove get_title() method.
No longer used.

Removed functions:

  gal_view_factory_get_title()
2013-07-05 16:40:49 -04:00
Matthew Barnes 7193739a13 GalView: Remove edit() method.
No longer used.

Removed functions:

  gal_view_edit()
2013-07-05 16:40:49 -04:00
Matthew Barnes af39ee96f0 Remove GalViewNewDialog.
No longer user.
2013-07-05 16:40:49 -04:00
Matthew Barnes 70bce028f7 Remove GalDefineViewsModel.
No longer used.
2013-07-05 16:40:49 -04:00
Matthew Barnes 031d11b437 Remove GalDefineViewsDialog.
No longer used.
2013-07-05 16:40:49 -04:00
Matthew Barnes b459f80f1f Update evolution-util API docs. 2013-07-02 10:34:12 -04:00
Matthew Barnes f267827d67 ETableSpecification: Implement GInitable.
e_table_specification_new() now takes a table specification filename and
a GError and parses the file as part of instance creation.  If a file or
parse error occurs, e_table_specification_new() returns NULL.

This replaces e_table_specification_load_from_file().

New functions:

  e_table_specification_get_filename()

Removed functions:

  e_table_specification_load_from_file()
2013-07-02 10:34:12 -04:00
Matthew Barnes dfc653bb43 Remove e_tree_set_state().
No longer used.
2013-07-02 10:34:12 -04:00
Matthew Barnes 4d5c0ce60e Remove e_tree_get_state().
No longer used.
2013-07-02 10:34:12 -04:00
Matthew Barnes 3d1514fb67 Remove e_table_set_state().
No longer used.
2013-07-02 10:34:12 -04:00
Matthew Barnes 058c39cd61 Remove e_table_get_state().
No longer used.
2013-07-02 10:34:12 -04:00
Matthew Barnes b5f6b03fdf Remove e_table_specification_load_from_string().
No longer used outside of e-table-specification.c.

Its logic is merged into e_table_specification_load_from_file(), but
that too will be removed momentarily.
2013-07-02 10:34:12 -04:00
Matthew Barnes a5f7b4eef6 Remove e_tree_new_from_spec_file().
Also remove e_tree_construct_from_spec_file().

Use e_tree_new() or e_tree_construct() instead.
2013-07-02 10:34:11 -04:00
Matthew Barnes aeefcadc77 Remove e_table_new_from_spec_file().
Also remove e_table_construct_from_spec_file().

Use e_table_new() or e_table_construct() instead.
2013-07-02 10:34:11 -04:00
Matthew Barnes 4391d00cdf Remove ETableWithout.
No longer used.
2013-07-02 10:34:11 -04:00
Matthew Barnes 1f6560f3f2 Remove ETableMemory.
No longer used.
2013-07-02 10:34:11 -04:00
Matthew Barnes 44f1ec85ba Remove ETableMemoryStore.
No longer used.
2013-07-02 10:34:11 -04:00
Matthew Barnes c4a37c155a Add ETableColumnSelector.
A new ETable column selection and ordering widget that looks like
it was written in the 21st century.  Derives from ETreeViewFrame.
2013-07-02 10:34:11 -04:00
Matthew Barnes 30d15fc59c Remove e_table_column_specification_load_from_node().
No longer used.
2013-07-02 10:34:10 -04:00
Matthew Barnes c1e8c1869d Remove e_table_specification_load_from_node().
No longer used.
2013-07-02 10:34:10 -04:00
Matthew Barnes 44c74e5e9d Add e_table_state_parse_context_push/pop().
New parser implementation that uses GMarkupParser instead of libxml2.
2013-07-02 10:34:10 -04:00
Matthew Barnes bcd071b566 Add e_table_sort_info_parse_context_push/pop().
New parser implementation that uses GMarkupParser instead of libxml2.
2013-07-02 10:34:10 -04:00
Matthew Barnes ad5ed0d603 ETableSortInfo: Rework API to avoid exposing ETableSortColumn.
Replace ETableSortColumn with separate ETableColumnSpecification and
GtkSortType parameters in the "get_nth" and "set_nth" functions.

Makes some other parts of the code simpler since it no longer has to
translate a column number to a column specification.
2013-07-02 10:34:10 -04:00
Matthew Barnes ce3e2091c2 Add e_table_sort_info_sorting_remove(). 2013-07-02 10:34:10 -04:00
Matthew Barnes 21998504a0 ETableSortInfo: Add a "specification" construct-only property.
ETableSortInfo now keeps a weak reference on the ETableSpecification to
which it's associated.  The plan is to replace the column index numbers
with a direct reference to an ETableColumnSpecification from the spec.

New functions:

  e_table_sort_info_ref_specification()
2013-07-02 10:34:09 -04:00
Matthew Barnes cf33c28a0e ETableSortInfo: Add a private section. 2013-07-02 10:34:09 -04:00
Matthew Barnes f8605636c3 ETableSortInfo cleanups. 2013-07-02 10:34:09 -04:00
Matthew Barnes 93987da1f5 Add e_table_header_get_column_by_spec().
Will eventually replace e_table_header_get_column_by_col_idx().
2013-07-02 10:34:09 -04:00
Matthew Barnes d40e5a8ba1 Add e_table_specification_get_column_index().
Lookups up the column index of an ETableColumnSpecification, returns a
negative value if no match found.
2013-07-02 10:34:09 -04:00
Matthew Barnes 46b7a9961f Add e_table_column_specification_equal().
Compares two ETableColumnSpecification instances for equality, which
just means they both refer to the same model column number.
2013-07-02 10:34:08 -04:00
Matthew Barnes e663dec920 ETableSpecification: Add a private section. 2013-07-02 10:34:08 -04:00
Matthew Barnes e9299f623e Add e_table_specification_ref_columns(). 2013-07-02 10:34:08 -04:00
Matthew Barnes 05c04b5512 ETableState: Add a "specification" construct-only property.
ETableState now keeps a weak reference on the ETableSpecification to
which it's associated.  The plan is to replace the column index numbers
with a direct reference to an ETableColumnSpecification from the spec.

New functions:

  e_table_state_ref_specification()
2013-07-02 10:34:08 -04:00
Matthew Barnes 9deb892820 ETableState: Add a private section. 2013-07-02 10:34:08 -04:00
Matthew Barnes a764f34313 Remove unused e_table_sort_info_freeze/thaw(). 2013-06-26 11:36:12 -04:00
Matthew Barnes e19fb153b1 Remove unused e_table_column_specification_save_to_node(). 2013-06-26 11:36:12 -04:00
Matthew Barnes 3b5a2a2570 Remove unused e_table_specification_save_to_node(). 2013-06-26 11:36:12 -04:00
Matthew Barnes be3e682562 Remove unused e_table_specification_save_to_string(). 2013-06-26 11:36:12 -04:00
Matthew Barnes 54a69c4cda Remove unused e_table_specification_duplicate(). 2013-06-26 11:36:12 -04:00
Matthew Barnes bf44760175 Remove unused e_table_specification_save_to_file(). 2013-06-26 11:36:12 -04:00
Matthew Barnes 9ae72cb11c Add ETreeViewFrame.
ETreeViewFrame embeds a GtkTreeView in a scrolled window and adds an
inline-style toolbar beneath the scrolled window which can be hidden.

The inline-style toolbar supports "add" and "remove" actions, as well
as move actions if the tree view is reorderable and selection actions
if the tree view supports multiple selections.  The action set can be
extended through e_tree_view_frame_insert_toolbar_action().

This also adds a small demo program: test-tree-view-frame
2013-06-25 14:44:11 -04:00
Matthew Barnes d2bf13d734 EUrlEntry: Replace button with clickable inline icon.
Replace the big, bulky "open URL" button with a clickable icon directly
in the text entry field.  This saves precious vertical space, especially
in the contact editor.

Also remove e_url_entry_get_entry() since EUrlEntry now IS a GtkEntry.
2013-06-23 19:32:40 -04:00
Matthew Barnes f8a116931c ESorterArray: Further cleanups. 2013-06-20 16:25:37 -04:00
Matthew Barnes ad6b3f483d Convert ESorter to an interface. 2013-06-20 16:10:21 -04:00
Matthew Barnes 794bf75c9e Remove e_tree_view_to_model_row().
Now that ETree no longer has an ESorter, this function is silly.
2013-06-20 15:31:53 -04:00