From f7547cc6ac347ea5e9dd92034264a23e6fd48ac4 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 26 Mar 2010 18:33:00 -0400 Subject: Simplify the search UI for express mode. For express mode: - Move the search bar up to the toolbar. - Hide the "filter" combo box and lock down the first item. - Hide the "scope" combo box and lock down the first item. (This is the combo box with "Current Folder" only in the mailer.) - EShellView owns the search bar widget now instead of EShellContent. - Insert several nasty hacks that will likely come back to bite me. --- doc/reference/shell/eshell-sections.txt | 13 +++++---- doc/reference/shell/tmpl/e-shell-content.sgml | 13 ++------- doc/reference/shell/tmpl/e-shell-searchbar.sgml | 31 +++++++++++++++++--- doc/reference/shell/tmpl/e-shell-view.sgml | 20 +++++++++++++ doc/reference/shell/tmpl/e-util.sgml | 8 ++++++ doc/reference/shell/tmpl/eshell-unused.sgml | 38 +++++++++++++++++++++++++ 6 files changed, 103 insertions(+), 20 deletions(-) (limited to 'doc/reference/shell') diff --git a/doc/reference/shell/eshell-sections.txt b/doc/reference/shell/eshell-sections.txt index 8ec35fed16..c176e23ee3 100644 --- a/doc/reference/shell/eshell-sections.txt +++ b/doc/reference/shell/eshell-sections.txt @@ -70,12 +70,11 @@ EShellBackendPrivate EShellContent EShellContent e_shell_content_new -e_shell_content_get_searchbar +e_shell_content_set_searchbar e_shell_content_check_state e_shell_content_get_shell_view e_shell_content_get_view_id e_shell_content_set_view_id -e_shell_content_get_search_name e_shell_content_run_advanced_search_dialog e_shell_content_run_edit_searches_dialog e_shell_content_run_save_search_dialog @@ -98,11 +97,13 @@ EShellContentPrivate EShellSearchbar e_shell_searchbar_new e_shell_searchbar_get_shell_view +e_shell_searchbar_get_express_mode +e_shell_searchbar_set_express_mode e_shell_searchbar_get_filter_combo_box e_shell_searchbar_get_filter_visible e_shell_searchbar_set_filter_visible -e_shell_searchbar_get_label_visible -e_shell_searchbar_set_label_visible +e_shell_searchbar_get_labels_visible +e_shell_searchbar_set_labels_visible e_shell_searchbar_get_search_hint e_shell_searchbar_set_search_hint e_shell_searchbar_get_search_option @@ -260,6 +261,8 @@ e_shell_view_set_view_id e_shell_view_is_active e_shell_view_get_page_num e_shell_view_set_page_num +e_shell_view_get_searchbar +e_shell_view_get_search_name e_shell_view_get_search_rule e_shell_view_set_search_rule e_shell_view_get_search_query @@ -645,7 +648,7 @@ e_run_signature_script e-util Miscellaneous Utilities e_get_user_data_dir -e_get_gnome_user_dir +e_get_gnome2_user_dir e_get_accels_filename e_show_uri e_display_help diff --git a/doc/reference/shell/tmpl/e-shell-content.sgml b/doc/reference/shell/tmpl/e-shell-content.sgml index b4803b93b0..3f53314db7 100644 --- a/doc/reference/shell/tmpl/e-shell-content.sgml +++ b/doc/reference/shell/tmpl/e-shell-content.sgml @@ -37,13 +37,13 @@ EShellContent @Returns: - + @shell_content: -@Returns: +@searchbar: @@ -82,15 +82,6 @@ EShellContent @view_id: - - - - - -@shell_content: -@Returns: - - diff --git a/doc/reference/shell/tmpl/e-shell-searchbar.sgml b/doc/reference/shell/tmpl/e-shell-searchbar.sgml index 71f8894845..4817ccee6b 100644 --- a/doc/reference/shell/tmpl/e-shell-searchbar.sgml +++ b/doc/reference/shell/tmpl/e-shell-searchbar.sgml @@ -23,6 +23,11 @@ EShellSearchbar + + + + + @@ -33,7 +38,7 @@ EShellSearchbar - + @@ -96,6 +101,24 @@ EShellSearchbar @Returns: + + + + + +@searchbar: +@Returns: + + + + + + + +@searchbar: +@express_mode: + + @@ -123,7 +146,7 @@ EShellSearchbar @filter_visible: - + @@ -132,13 +155,13 @@ EShellSearchbar @Returns: - + @searchbar: -@label_visible: +@labels_visible: diff --git a/doc/reference/shell/tmpl/e-shell-view.sgml b/doc/reference/shell/tmpl/e-shell-view.sgml index 03d8830fdb..5efb4d7921 100644 --- a/doc/reference/shell/tmpl/e-shell-view.sgml +++ b/doc/reference/shell/tmpl/e-shell-view.sgml @@ -133,6 +133,8 @@ EShellView @new_shell_content: @new_shell_sidebar: @new_shell_taskbar: +@construct_searchbar: +@get_search_name: @toggled: @clear_search: @custom_search: @@ -220,6 +222,24 @@ EShellView @page_num: + + + + + +@shell_view: +@Returns: + + + + + + + +@shell_view: +@Returns: + + diff --git a/doc/reference/shell/tmpl/e-util.sgml b/doc/reference/shell/tmpl/e-util.sgml index 72bf737586..82be9d041b 100644 --- a/doc/reference/shell/tmpl/e-util.sgml +++ b/doc/reference/shell/tmpl/e-util.sgml @@ -25,6 +25,14 @@ Miscellaneous Utilities @Returns: + + + + + +@Returns: + + diff --git a/doc/reference/shell/tmpl/eshell-unused.sgml b/doc/reference/shell/tmpl/eshell-unused.sgml index e69de29bb2..93f3a149fa 100644 --- a/doc/reference/shell/tmpl/eshell-unused.sgml +++ b/doc/reference/shell/tmpl/eshell-unused.sgml @@ -0,0 +1,38 @@ + + + + + + + + + + + +@shell_content: +@Returns: + + + + + + +@shell_content: +@Returns: + + + + + + +@searchbar: +@Returns: + + + + + + +@searchbar: +@label_visible: + -- cgit v1.2.3