From 9b890a0b0146ffcaf4442e7a9aa8e252012d8a75 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Tue, 30 Mar 2004 19:42:35 +0000 Subject: add remote calendar setup page to task list setup assistant and edit 2004-03-30 William Jon McCann * gui/dialogs/calendar-setup.glade: * gui/dialogs/calendar-setup.c (new_task_list_finish) (calendar_setup_new_task_list, calendar_setup_edit_task_list): add remote calendar setup page to task list setup assistant and edit dialog. Remove separators from dialog. svn path=/trunk/; revision=25244 --- calendar/gui/dialogs/calendar-setup.c | 27 +- calendar/gui/dialogs/calendar-setup.glade | 404 ++++++++++++++++++++++++++++-- 2 files changed, 408 insertions(+), 23 deletions(-) (limited to 'calendar/gui/dialogs') diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c index 87f8eff819..2fbe124660 100644 --- a/calendar/gui/dialogs/calendar-setup.c +++ b/calendar/gui/dialogs/calendar-setup.c @@ -649,7 +649,8 @@ new_task_list_finish (SourceDialog *source_dialog) { source_dialog->source = create_new_source_with_group (GTK_WINDOW (source_dialog->window), source_dialog->source_group, - gtk_entry_get_text (GTK_ENTRY (source_dialog->name_entry)), NULL, + gtk_entry_get_text (GTK_ENTRY (source_dialog->name_entry)), + gtk_entry_get_text (GTK_ENTRY (source_dialog->uri_entry)), E_CAL_SOURCE_TYPE_TODO); dialog_to_source (source_dialog); @@ -685,6 +686,8 @@ calendar_setup_new_task_list (GtkWindow *parent) G_CALLBACK (general_page_modified), source_dialog); g_signal_connect_after (page, "prepare", G_CALLBACK (general_page_prepare), source_dialog); + g_signal_connect_after (page, "next", + G_CALLBACK (general_page_forward), source_dialog); source_dialog->source_list = e_source_list_new_for_gconf_default ("/apps/evolution/tasks/sources"); source_dialog->group_optionmenu = @@ -704,6 +707,17 @@ calendar_setup_new_task_list (GtkWindow *parent) g_signal_connect_swapped (source_dialog->group_optionmenu, "changed", G_CALLBACK (source_group_changed), source_dialog); + /* Remote page */ + page = glade_xml_get_widget (source_dialog->gui_xml, "remote-page"); + source_dialog->uri_entry = glade_xml_get_widget (source_dialog->gui_xml, "uri-entry"); + source_dialog->refresh_spin = glade_xml_get_widget (source_dialog->gui_xml, "refresh-spin"); + g_signal_connect_swapped (source_dialog->uri_entry, "changed", + G_CALLBACK (remote_page_modified), source_dialog); + g_signal_connect_swapped (source_dialog->refresh_spin, "changed", + G_CALLBACK (remote_page_modified), source_dialog); + g_signal_connect_after (page, "prepare", + G_CALLBACK (remote_page_prepare), source_dialog); + /* Finish page */ page = glade_xml_get_widget (source_dialog->gui_xml, "finish-page"); g_signal_connect_swapped (page, "finish", @@ -763,6 +777,14 @@ calendar_setup_edit_task_list (GtkWindow *parent, ESource *source) g_signal_connect_swapped (source_dialog->name_entry, "activate", G_CALLBACK (edit_calendar_finish), source_dialog); + /* Remote page */ + source_dialog->uri_entry = glade_xml_get_widget (source_dialog->gui_xml, "uri-entry"); + source_dialog->refresh_spin = glade_xml_get_widget (source_dialog->gui_xml, "refresh-spin"); + g_signal_connect_swapped (source_dialog->uri_entry, "changed", + G_CALLBACK (remote_page_modified), source_dialog); + g_signal_connect_swapped (source_dialog->refresh_spin, "changed", + G_CALLBACK (remote_page_modified), source_dialog); + /* Finishing */ g_signal_connect_swapped (glade_xml_get_widget (source_dialog->gui_xml, "ok-button"), "clicked", G_CALLBACK (edit_task_list_finish), source_dialog); @@ -779,5 +801,8 @@ calendar_setup_edit_task_list (GtkWindow *parent, ESource *source) gtk_widget_show_all (source_dialog->window); + if (!source_is_remote (source_dialog->source)) + gtk_widget_hide (glade_xml_get_widget (source_dialog->gui_xml, "remote-page")); + return TRUE; } diff --git a/calendar/gui/dialogs/calendar-setup.glade b/calendar/gui/dialogs/calendar-setup.glade index a4b187bae0..cb310cf4c5 100644 --- a/calendar/gui/dialogs/calendar-setup.glade +++ b/calendar/gui/dialogs/calendar-setup.glade @@ -320,17 +320,6 @@ - - - True - - - 0 - True - True - - - True @@ -1208,6 +1197,227 @@ searches, and for creating and editing contacts. + + + True + Step 2: Remote Folder Parameters + + + + 16 + True + False + 6 + + + + 16 + True + False + 6 + + + + 6 + True + False + 6 + + + + True + You're creating a folder in a group that's stored in a remote location. This requires you +to specify additional parameters. + False + False + GTK_JUSTIFY_LEFT + False + False + 7.45058e-09 + 0.5 + 3 + 0 + + + 0 + False + False + + + + + + True + + + 0 + False + False + + + + + + 3 + True + 2 + 2 + False + 6 + 3 + + + + True + True + True + True + True + 0 + + True + * + False + + + 1 + 2 + 0 + 1 + + + + + + + True + _Source URL: + True + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + uri-entry + + + 0 + 1 + 0 + 1 + fill + + + + + + + True + _Refresh Interval: + True + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + 1 + 1 + 2 + fill + + + + + + + True + False + 4 + + + + True + True + 1 + 0 + False + GTK_UPDATE_ALWAYS + False + False + 30 1 9999 1 10 10 + + + 0 + False + True + + + + + + True + minute(s) + False + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + 1 + 2 + 1 + 2 + fill + fill + + + + + 0 + False + False + + + + + 0 + True + True + + + + + 0 + True + True + + + + + + + True @@ -1254,7 +1464,7 @@ Please click the "Apply" button to save the settings you have entered False - + 6 True False @@ -1369,17 +1579,167 @@ Please click the "Apply" button to save the settings you have entered tab - - - 0 - True - True - - - - - True + + + 6 + True + 2 + 2 + False + 4 + 4 + + + + True + _Source URL: + True + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + uri-entry + + + 0 + 1 + 0 + 1 + fill + + + + + + + True + True + True + True + 0 + + True + * + False + + + 1 + 2 + 0 + 1 + + + + + + + True + _Refresh Interval: + True + False + GTK_JUSTIFY_LEFT + False + False + 0 + 0.5 + 0 + 0 + + + 0 + 1 + 1 + 2 + fill + + + + + + + True + False + 4 + + + + True + True + 1 + 0 + False + GTK_UPDATE_ALWAYS + False + False + 30 1 9999 1 10 10 + + + 0 + True + True + + + + + + True + minute(s) + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + 0 + False + False + + + + + 1 + 2 + 1 + 2 + fill + fill + + + + + False + True + + + + + + True + Remote + False + False + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + + + tab + + 0 -- cgit