Commit Graph

326 Commits

Author SHA1 Message Date
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
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
4391d00cdf Remove ETableWithout.
No longer used.
2013-07-02 10:34:11 -04:00
1f6560f3f2 Remove ETableMemory.
No longer used.
2013-07-02 10:34:11 -04:00
44f1ec85ba Remove ETableMemoryStore.
No longer used.
2013-07-02 10:34:11 -04:00
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
30d15fc59c Remove e_table_column_specification_load_from_node().
No longer used.
2013-07-02 10:34:10 -04:00
c1e8c1869d Remove e_table_specification_load_from_node().
No longer used.
2013-07-02 10:34:10 -04:00
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
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
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
ce3e2091c2 Add e_table_sort_info_sorting_remove(). 2013-07-02 10:34:10 -04:00
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
cf33c28a0e ETableSortInfo: Add a private section. 2013-07-02 10:34:09 -04:00
f8605636c3 ETableSortInfo cleanups. 2013-07-02 10:34:09 -04:00
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
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
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
e663dec920 ETableSpecification: Add a private section. 2013-07-02 10:34:08 -04:00
e9299f623e Add e_table_specification_ref_columns(). 2013-07-02 10:34:08 -04:00
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
9deb892820 ETableState: Add a private section. 2013-07-02 10:34:08 -04:00
a764f34313 Remove unused e_table_sort_info_freeze/thaw(). 2013-06-26 11:36:12 -04:00
e19fb153b1 Remove unused e_table_column_specification_save_to_node(). 2013-06-26 11:36:12 -04:00
3b5a2a2570 Remove unused e_table_specification_save_to_node(). 2013-06-26 11:36:12 -04:00
be3e682562 Remove unused e_table_specification_save_to_string(). 2013-06-26 11:36:12 -04:00
54a69c4cda Remove unused e_table_specification_duplicate(). 2013-06-26 11:36:12 -04:00
bf44760175 Remove unused e_table_specification_save_to_file(). 2013-06-26 11:36:12 -04:00
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
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
f8a116931c ESorterArray: Further cleanups. 2013-06-20 16:25:37 -04:00
ad6b3f483d Convert ESorter to an interface. 2013-06-20 16:10:21 -04:00
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
27e326c80f Remove e_sorter_new().
ESorter itself does nothing useful, so there's no reason to create one.

ESorter should really be an interface.
2013-06-20 15:31:53 -04:00
b63340b736 Remove unused e_tree_find_next(). 2013-06-20 15:31:53 -04:00
a0bfd19716 Remove unused e_tree_get_tooltip(). 2013-06-20 15:31:53 -04:00
ce4a2a7748 Remove unused e_tree_model_to_view_row(). 2013-06-20 15:31:53 -04:00
05f69aaec0 Remove unused e_tree_get_prev_row(). 2013-06-20 15:31:52 -04:00
bb22e3b53a Remove unused e_tree_get_next_row(). 2013-06-20 15:31:52 -04:00
187fcd6653 Remove unused e_tree_get_printable(). 2013-06-20 15:31:52 -04:00
e6dfce71e8 Remove unused e_tree_load_state(). 2013-06-20 15:31:52 -04:00
a5af202855 Remove unused e_tree_set_search_column(). 2013-06-20 15:31:52 -04:00
9a4aed9785 Remove unused e_tree_save_state(). 2013-06-20 15:31:52 -04:00
6abeaa3223 Remove e_tree_row_count().
Reducing API bloat.  Do this instead:

  adapter = e_tree_get_table_adapter (tree);
  row_count = e_table_model_row_count (E_TABLE_MODEL (adapter));
2013-06-20 15:31:52 -04:00
662c1a21bf Remove e_tree_force_expanded_state().
Reducing API bloat.  Do this instead:

  adapter = e_tree_get_table_adapter (tree);
  e_tree_table_adapter_force_expanded_state (adapter, state);
2013-06-20 15:31:52 -04:00
68b0b10221 Remove e_tree_load_expanded_state_xml().
Reducing API bloat.  Do this instead:

  adapter = e_tree_get_table_adapter (tree);
  e_tree_table_adapter_load_expanded_state_xml (adapter, xml);
2013-06-20 15:31:52 -04:00
ebcb25def1 Remove e_tree_save_expanded_state_xml().
Reducing API bloat.  Do this instead:

  adapter = e_tree_get_table_adapter (tree);
  xml = e_tree_table_adapter_save_expanded_state_xml (adapter);
2013-06-20 15:31:52 -04:00
40da203f43 Remove e_tree_load_expanded_state().
Reducing API bloat.  Do this instead:

  adapter = e_tree_get_table_adapter (tree);
  e_tree_table_adapter_load_expanded_state (adapter, filename);
2013-06-20 15:31:52 -04:00
63a53b5aa4 Remove e_tree_save_expanded_state().
Reducing API bloat.  Do this instead:

  adapter = e_tree_get_table_adapter (tree);
  e_tree_table_adapter_save_expanded_state (adapter, filename);
2013-06-20 15:31:52 -04:00
a8bb464bf5 Remove e_tree_show_node().
Reducing API bloat.  Do this instead:

  adapter = e_tree_get_table_adapter (tree);
  e_tree_table_adapter_show_node (adapter, path);
2013-06-20 15:31:51 -04:00