From f00e9367382fb81cdb4b689f96645357f122b051 Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 16 May 2001 23:38:58 +0000 Subject: Split the event and task editors into different objects for the separate 2001-05-16 Federico Mena Quintero Split the event and task editors into different objects for the separate pages; this way they can be shared by both editors. * gui/dialogs/editor-page.[ch]: New abstract class for a page in a calendar component editor. * gui/dialogs/event-page.[ch]: Main page of an event editor. * gui/dialogs/alarm-page.[ch]: Alarm page of a calendar component editor. * gui/dialogs/recurrence-page.[ch]: Recurrence page of a calendar component editor. * gui/dialogs/event-page.c (event_page_fill_widgets): Eeek, this was missing a bunch of break statements. (event_page_fill_component): Use a temporary variable rather than allocating a struct icaltimetype. * gui/dialogs/alarm-page.c (get_alarm_string): Do not use fixed-size buffers. (alarm_page_fill_widgets): Use cal_obj_uid_list_free(). (append_reminder): Now the list stores the plain CalComponentAlarm structures in the row data. We do *NOT* want to be frobbing the component's data directly. Rather, we clone the alarms from the component and maintain them on our own. (alarm_page_fill_component): Clone the alarms before adding them to the component so that we maintain the invariant that the alarm structures in the list did *not* come from the component. * cal-util/cal-component.c (cal_component_add_alarm): Added documentation. (cal_component_remove_alarm): Added documentation. (cal_component_remove_alarm): Do a lookup in our hash table of alarms instead of scanning the whole component. (CalComponentAlarm): Removed the `parent' field, since it was unused. (cal_component_free_alarm_uids): Removed function, since cal_component_get_alarm_uids() is documented so that the user will know that he must use cal_obj_uid_list_free(). (cal_component_alarm_clone): New function. svn path=/trunk/; revision=9861 --- calendar/gui/dialogs/task-page.glade | 944 +++++++++++++++-------------------- 1 file changed, 398 insertions(+), 546 deletions(-) (limited to 'calendar/gui/dialogs/task-page.glade') diff --git a/calendar/gui/dialogs/task-page.glade b/calendar/gui/dialogs/task-page.glade index ae7ea9681a..e9f0d4700d 100644 --- a/calendar/gui/dialogs/task-page.glade +++ b/calendar/gui/dialogs/task-page.glade @@ -2,8 +2,8 @@ - task-editor-dialog - task-editor-dialog + task-page + task-page src pixmaps @@ -13,681 +13,533 @@ - GnomePropertyBox - task-editor-dialog - False + GtkWindow + task-toplevel + window1 + GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False False - False + True False - GtkNotebook - GnomeDock:contents - notebook1 - 2 - True - True - True - GTK_POS_TOP - False - 2 - 2 - False + GtkVBox + task-page + 4 + False + 4 - GtkVBox - vbox1 - 4 + GtkTable + table3 + 1 + 2 False - 4 + 4 + 4 + + 0 + False + True + - GtkTable - table3 - 1 - 2 - False - 4 - 4 + GtkLabel + label3 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + summary - 0 - False - True - - - - GtkLabel - label3 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 + 0 + 1 + 0 + 1 0 0 - summary - - 0 - 1 - 0 - 1 - 0 - 0 - False - False - False - False - False - False - - - - - GtkEntry - summary - True - True - True - 0 - - - 1 - 2 - 0 - 1 - 0 - 0 - True - False - False - False - True - False - - - - - - GtkFrame - frame2 - - 0 - GTK_SHADOW_ETCHED_IN - - 0 - False - True + False + False + False + False + False + False - - - GtkHBox - hbox4 - 4 - False - 0 - - - GtkTable - table1 - 2 - 2 - False - 2 - 4 - - 0 - False - True - - - - GtkLabel - label6 - - GTK_JUSTIFY_CENTER - False - 0 - 0.5 - 0 - 0 - - 0 - 1 - 1 - 2 - 0 - 0 - False - False - False - False - True - False - - - - - GtkLabel - label5 - - GTK_JUSTIFY_CENTER - False - 0 - 0.5 - 0 - 0 - - 0 - 1 - 0 - 1 - 0 - 0 - False - False - False - False - True - False - - - - - Custom - due-date - task_editor_create_date_edit - 0 - 0 - Sun, 10 Sep 2000 17:32:18 GMT - - 1 - 2 - 0 - 1 - 0 - 0 - True - False - False - False - True - False - - - - - Custom - start-date - task_editor_create_date_edit - 0 - 0 - Sun, 10 Sep 2000 17:33:31 GMT - - 1 - 2 - 1 - 2 - 0 - 0 - True - False - False - False - True - False - - - - - GtkScrolledWindow - scrolledwindow1 - GTK_POLICY_NEVER - GTK_POLICY_AUTOMATIC - GTK_UPDATE_CONTINUOUS - GTK_UPDATE_CONTINUOUS + GtkEntry + summary + True + True + True + 0 + - 0 - False - True + 1 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False - - - GtkText - description - 80 - True - True - - + + + + GtkFrame + frame2 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + - GtkFrame - frame23 - - 0 - GTK_SHADOW_ETCHED_IN - - 0 - False - True - + GtkHBox + hbox4 + 4 + False + 0 - GtkHBox - hbox3 - 4 + GtkTable + table1 + 2 + 2 False - 4 + 2 + 4 + + 0 + False + True + GtkLabel - label7 - + label6 + GTK_JUSTIFY_CENTER False - 0.5 + 0 0.5 0 0 - status - - 0 - False - False - - - - - GtkOptionMenu - status - True - Not Started -In Progress -Completed -Cancelled - - 0 - 0 - False - False + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False GtkLabel - label8 - + label5 + GTK_JUSTIFY_CENTER False - 0.5 + 0 0.5 0 0 - priority - 0 - False - False - - - - - GtkOptionMenu - priority - True - High -Normal -Low -Undefined - - 0 - - 0 - False - False + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False - GtkLabel - label9 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 - percent-complete + Custom + due-date + task_editor_create_date_edit + 0 + 0 + Sun, 10 Sep 2000 17:32:18 GMT - 0 - False - False + 1 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False - GtkSpinButton - percent-complete - 60 - True - 1 - 0 - False - GTK_UPDATE_ALWAYS - False - False - 0 - 0 - 100 - 10 - 10 - 10 + Custom + start-date + task_editor_create_date_edit + 0 + 0 + Sun, 10 Sep 2000 17:33:31 GMT - 0 - False - False + 1 + 2 + 1 + 2 + 0 + 0 + True + False + False + False + True + False + - - GtkFrame - frame24 - - 0 - GTK_SHADOW_ETCHED_IN - - 0 - False - True - - - - GtkHBox - hbox6 - 2 - False - 4 - - - GtkRadioButton - classification-public - True - - True - True - classification_radio_group - - 0 - False - False - - - - - GtkRadioButton - classification-private - True - - False - True - classification_radio_group - - 0 - False - False - - + + GtkScrolledWindow + scrolledwindow1 + GTK_POLICY_NEVER + GTK_POLICY_AUTOMATIC + GTK_UPDATE_CONTINUOUS + GTK_UPDATE_CONTINUOUS + + 0 + False + True + - - GtkRadioButton - classification-confidential - True - - False - True - classification_radio_group - - 0 - False - False - - - + + GtkText + description + 80 + True + True + + + + + GtkFrame + frame23 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + GtkHBox - hbox2 + hbox3 + 4 False - 2 - - 0 - True - True - + 4 - GtkButton - contacts-button - True + GtkLabel + label7 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + status 0 False False - - - GtkLabel - label16 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 4 - 0 - - GtkEntry - contacts + GtkOptionMenu + status True - True - True - 0 - + Not Started +In Progress +Completed +Cancelled + + 0 0 - True - True + False + False - GtkButton - categories-button + GtkLabel + label8 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + priority + + 0 + False + False + + + + + GtkOptionMenu + priority True + High +Normal +Low +Undefined + + 0 0 False False + - - GtkLabel - label17 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 4 - 0 - + + GtkLabel + label9 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + percent-complete + + 0 + False + False + - GtkEntry - categories + GtkSpinButton + percent-complete + 60 True - True - True - 0 - + 1 + 0 + False + GTK_UPDATE_ALWAYS + False + False + 0 + 0 + 100 + 10 + 10 + 10 0 - True - True + False + False - GtkLabel - Notebook:tab - label1 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 + GtkFrame + frame24 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + True + + + + GtkHBox + hbox6 + 2 + False + 4 + + + GtkRadioButton + classification-public + True + + True + True + classification_radio_group + + 0 + False + False + + + + + GtkRadioButton + classification-private + True + + False + True + classification_radio_group + + 0 + False + False + + + + + GtkRadioButton + classification-confidential + True + + False + True + classification_radio_group + + 0 + False + False + + + - GtkTable - table4 - 4 - 2 - 2 + GtkHBox + hbox2 False - 2 - 4 + 2 + + 0 + True + True + - GtkLabel - label12 - - GTK_JUSTIFY_CENTER - False - 0 - 0.5 - 0 - 0 + GtkButton + contacts-button + True + GTK_RELIEF_NORMAL - 0 - 1 - 0 - 1 - 0 - 0 - False - False - False - False - True - False + 0 + False + False - - - GtkLabel - label14 - - GTK_JUSTIFY_CENTER - False - 0 - 0.5 - 0 - 0 - - 0 - 1 - 1 - 2 - 0 + + GtkLabel + label16 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 4 0 - False - False - False - False - True - False - + GtkEntry - url + contacts True True True 0 - 1 - 2 - 1 - 2 - 0 - 0 - True - False - False - False - True - False + 0 + True + True - Custom - completed-date - task_editor_create_date_edit - 0 - 0 - Sun, 10 Sep 2000 17:34:07 GMT + GtkButton + categories-button + True + GTK_RELIEF_NORMAL - 1 - 2 - 0 - 1 - 0 - 0 - True - False - False - False - True - False + 0 + False + False + + + GtkLabel + label17 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 4 + 0 + - - - GtkLabel - Notebook:tab - label2 - - GTK_JUSTIFY_CENTER - False - 0.5 - 0.5 - 0 - 0 + + GtkEntry + categories + True + True + True + 0 + + + 0 + True + True + + -- cgit v1.2.3