aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/eventedit.c
Commit message (Collapse)AuthorAgeFilesLines
* BUGFIX: 1515JP Rosevear1999-08-131-1/+6
| | | | | | | Just check if the ical object is new or not and set the title appropriately. svn path=/trunk/; revision=1109
* Make the code not take arguments (sync_cal_to_pilot): Nice event updateMiguel de Icaza1999-07-291-9/+0
| | | | | | | | | | | | | | | | | | | | 1999-07-28 Miguel de Icaza <miguel@gnu.org> * calendar-pilot-sync.c: Make the code not take arguments (sync_cal_to_pilot): Nice event update information * calendar.c (calendar_new): Add Event UID hash table. (calendar_add_object): Add events to the hash table here. (calendar_remove_object): Remove events here. (calendar_object_find_event): Use the hash table here. * main.c (save_calendar_cmd): The object is already destroyed by gnome_dialog_run. * calendar-pilot-sync.c (sync_object_to_pilot): Do not turn archived bit on. svn path=/trunk/; revision=1041
* Lots of more work on the sync stuff. It works pretty well now.Arturo Espinosa1999-07-291-2/+2
| | | | | | | | | | Lots of more work on the sync stuff. It works pretty well now. I dont know why my pilot is not accepting the events I send to it though Miguel. svn path=/trunk/; revision=1040
* updated spanish & walon languages.Pablo Saratxaga1999-06-081-4/+16
| | | | | | | | | modified eventedit.c so that "Every" is remplaced by "d_Every", "w_Every", "m_Every" and "y_Every", and can be correctly translated for those languages where it follows gender of the name it refers to. the 2 leading bytes should be kept; they are stripped at display svn path=/trunk/; revision=972
* Added this routine so Monthly recurrences use the weekday field as aSteve Murphy1999-04-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1999-04-01 Steve Murphy <murf@e-tools.com> * calobj.c (weekdaynum): Added this routine so Monthly recurrences use the weekday field as a simple integer for a single weekday. * calobj.c (load_recur_monthly_pos): Call weekdaynum instead of weekdaylist. The interface only lets the user input a single value anyway. * calobj.c (ical_object_to_vobject): instead of code to output day names from a bit array, use instead the value as an int and output a single dayname. * calobj.c (ical_object_generate_events): first_week_day gets the day int instead of the first entry in the bit field. I inserted a fair chunk of code to avoid calling generate if the day is out of range for a month. It may be unneccessary, because mktime will turn the extra days into a valid date the next month. But not all mktimes are equal, I fear. * eventedit.c (ee_store_recur_rule_to_ical): For case 3, (Monthly), I added code to set the interval slot of the recur struct; without this value, selecting a monthly recursing, by date, would lead to an infinite loop broken only by a failure to alloc more memory. Also, in the "by position" case, both u.month_pos and u.month_day were being assigned values. This is a mistake, as they are both part of an union, and the same thing. The weekday field should get the recur_rr_month_weekday value. * eventedit.c (ee_rp_init_rule): set default day from the weekday field instead of the u.month_day field, which is really the month_pos value. * gnome-cal.c (gnome_calendar_tag_calendar): Month days start with 1, not 0; thus, setting tm.tm_mday = 0, and then calling mktime will generate a time corresponding to the end of the previous month, which may have a mday anywhere from 28 to 31. The end time just adds 1 to the month, so your end time may not cover the last few days of this month, depending on what the biggest mday of last month was. I changed it so tm_mday is set to 1 instead. 1999-03-30 Federico Mena Quintero <federico@nuclecu.unam.mx> svn path=/trunk/; revision=792
* Did some i18n work Did some i18n workTomas Ogren1999-03-241-1/+1
| | | | | | | | | 1999-03-24 Tomas Ogren <stric@ing.umu.se> * gncal-week-view.c (gncal_week_view_set): Did some i18n work * eventedit.c (get_exception_string): Did some i18n work svn path=/trunk/; revision=779
* Set the recur->interval to the value of the recur_rr_month_period spinNat Friedman1999-03-241-0/+3
| | | | | | | | | | | 1999-03-23 Nat Friedman <nat@nat.org> * eventedit.c (ee_store_recur_rule_to_ical): Set the recur->interval to the value of the recur_rr_month_period spin button if the event is being set "by day." This closes bug #675 as reported by bagfors@hpc2n.umu.se. Thanks for the report! svn path=/trunk/; revision=777
* Add support for Due Date when adding a TODO item here. (column_resized):Clifford R. Conover1999-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 1999-03-10 Clifford R. Conover <rconover@montana.edu> * gncal-todo.c (simple_todo_editor): Add support for Due Date when adding a TODO item here. (column_resized): New function (init_column_sorting): New function. (todo_click_column): New function. (convert_time_t_to_char, make_overdue_todo_style): New functions. * gnome-cal.c (gnome_calendar_todo_properties_changed): New function used to update the TODO when the properties have been chagned for it. * prop.c (prop_apply_todo): Apply TODO properties. * gncal-day-panel.c (todo_list_properties_changed): Update the TODO display here. * eventedit.c (date_edit_new): Made public svn path=/trunk/; revision=757
* Gnomecal now autosaves all the time.Arturo Espinosa1999-02-121-0/+1
| | | | | | | | Gnomecal now autosaves all the time. Miguel. svn path=/trunk/; revision=662
* New convenience function to create a properly-configured date editorFederico Mena Quintero1999-02-051-4/+16
| | | | | | | | | 1999-02-04 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (date_edit_new): New convenience function to create a properly-configured date editor widget. svn path=/trunk/; revision=644
* Set the title of the event editor window.Federico Mena Quintero1999-02-021-0/+1
| | | | | | | | | 1999-02-01 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (event_editor_init): Set the title of the event editor window. svn path=/trunk/; revision=639
* if the user clicks on an event that is an occurance, the menu will allowJason Tackaberry1999-01-311-1/+6
| | | | | | | | | | | | | | | | 1999-01-29 Jason Tackaberry <tack@dok.org> * gncal-full-day.c (child_popup_menu): if the user clicks on an event that is an occurance, the menu will allow the user to delete all occurances of this event, or just the selected occurance. (delete_occurance): added. * eventedit.c (append_exception): force the clist to select the new exception. (fixes segfault) (delete_exception): if the last exception in the clist is deleted, move the selection index up. (fixes segfault) svn path=/trunk/; revision=636
* Add missing declaration for GtkWidget *sw.Andrew T. Veliath1998-11-241-0/+1
| | | | svn path=/trunk/; revision=487
* Update GtkClist usage.Miguel de Icaza1998-11-241-4/+5
| | | | | | | | 1998-11-23 Miguel de Icaza <miguel@nuclecu.unam.mx> * eventedit.c (ee_rp_init_exceptions): Update GtkClist usage. svn path=/trunk/; revision=486
* use GPOINTER_TO_INTHerbert V. Riedel1998-11-241-2/+2
| | | | | | | | | | 1998-11-23 Herbert V. Riedel <hvr@hvrlab.ml.org> * eventedit.c: use GPOINTER_TO_INT * gncal-todo.c: same. svn path=/trunk/; revision=483
* DittoHavoc Pennington1998-11-241-0/+2
| | | | svn path=/trunk/; revision=482
* Doh. Fixed stupid bug where the classification buttons were not being setFederico Mena Quintero1998-11-181-5/+6
| | | | | | | | | | | | | | 1998-11-16 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (ee_classification_widgets): Doh. Fixed stupid bug where the classification buttons were not being set correctly. (ee_store_general_values_to_ical): Take into account the fact that radio group lists are stored in reverse order of insertion. * gncal-todo.c (gncal_todo_init): Use a scrolled window to put the clist into. svn path=/trunk/; revision=475
* Changed a lot of stuff not to use the layout code -- the month view's daysFederico Mena Quintero1998-10-171-0/+33
| | | | | | | | | | | | | | | | | | | | | 1998-10-16 Federico Mena Quintero <federico@nuclecu.unam.mx> * month-view.c: Changed a lot of stuff not to use the layout code -- the month view's days are too small to display layout usefully. Now they display a little list of the events in each day. We also have a popup menu for the days in the month view. * calendar.c (calendar_get_objects_in_range): Reverse the list so that it is returned in increasing order. * eventedit.c (event_editor_new_whole_day): New public function to create an event for the complete span of day_begin to day_end. * year-view.c (new_appointment): Use event_editor_new_whole_day(). * year-view.c (yv_popup_menu): Mark strings for i18n. svn path=/trunk/; revision=452
* The interval was never being loaded from the spin button.Ji Lee1998-10-121-3/+9
| | | | | | | | | 1998-10-12 Ji Lee <g@ucsd.edu> * eventedit.c (ee_store_recur_rule_to_ical): The interval was never being loaded from the spin button. svn path=/trunk/; revision=446
* Changed name from time_start_of_day() to be consistent with the otherFederico Mena Quintero1998-10-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1998-10-02 Federico Mena Quintero <federico@nuclecu.unam.mx> * timeutil.c (time_day_begin): Changed name from time_start_of_day() to be consistent with the other begin/end functions. (time_day_end): Likewise. * calobj.c (ical_object_get_first_weekday): New public function to get the first toggled day in a weekday mask. Since we do not support multiple weekdays in a monthly-by-pos rule, we just fetch the first toggled one. (ical_object_generate_events): Added a missing break statement. * timeutil.c (time_month_end): Made it consistent with the rest of the time begin/end functions -- now it returns the first second of the *next* month. (time_week_end): Actually implemented this function. It will be used when the week view is rewritten. * calobj.c (time_in_range): Fix off-by-one in the comparison of the time against the end time. * gncal-full-day.c (expand_space): Fixed bug where the columns not were being expanded due to a missing "slot + j". svn path=/trunk/; revision=425
* Made title i18n friendly. This was bug #215.Nuno Ferreira1998-08-121-1/+1
| | | | | | | | | | * main.c (new_calendar): Made title i18n friendly. This was bug #215. * eventedit.c (ee_store_recur_end_to_ical): Set recur->enddate to recur->_enddate, not to itself, when adding recurring event and supplying an end date. This fixes (at least part of) bug #99. svn path=/trunk/; revision=310
* Do not subtract 1 from tm->tm_mday for the default_day.Federico Mena Quintero1998-06-051-1/+1
| | | | | | | | | | | | | 1998-06-04 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (ee_rp_init_rule): Do not subtract 1 from tm->tm_mday for the default_day. * gnome-cal.c (gnome_calendar_new): (gnome_calendar_goto): Use the start of the day -- things expect it to be that way. svn path=/trunk/; revision=244
* Fill in ical->recur->interval from value in spin_button. This ixed anNuno Ferreira1998-06-011-1/+1
| | | | | | | | | | 1998-05-27 Nuno Ferreira <nmrf@rnl.ist.utl.pt> * eventedit.c (ee_store_recur_rule_to_ical): Fill in ical->recur->interval from value in spin_button. This ixed an infinnite loop. svn path=/trunk/; revision=242
* Use the contents of ee->ical->dtstart for computing the predefined valuesMiguel de Icaza1998-05-261-4/+2
| | | | | | | | | 1998-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx> * eventedit.c (ee_rp_init_rule): Use the contents of ee->ical->dtstart for computing the predefined values of the recurrence. svn path=/trunk/; revision=239
* Various bug fixes that were reported:Arturo Espinosa1998-05-161-4/+4
| | | | | | | | | | | | Various bug fixes that were reported: 1. Correct event span computation for some cases. 2. Correct drawing of events that span more than one day 3. EventEditor supports 12/24 hour formats. mguel. svn path=/trunk/; revision=216
* 1. Fix: `New Appointment' defaults to the current day. 2. Add `NewArturo Espinosa1998-05-091-1/+1
| | | | | | | | | | 1. Fix: `New Appointment' defaults to the current day. 2. Add `New appointment today' entry. 3. Use the new freeze/thaw changes to avoid the extensive flicker. Miguel. svn path=/trunk/; revision=209
* Descend from GnomeDialog. Took vbox out of class structure; useHavoc Pennington1998-04-261-28/+15
| | | | | | | | | | | | Sat Apr 25 22:20:45 1998 Havoc Pennington <hp@pobox.com> * eventedit.c, eventedit.h: Descend from GnomeDialog. Took vbox out of class structure; use GnomeDialog vbox instead. gnome_dialog_set_destroy instead of destroying in button callbacks. Don't create buttons, separator, or vbox manually. #include <libgnomeui/gnome-dialog.h>. svn path=/trunk/; revision=197
* Fixed alarm saving code. Fixed alarm loading code. New -partial-Arturo Espinosa1998-04-251-3/+1
| | | | | | | | | Fixed alarm saving code. Fixed alarm loading code. New -partial- implementation of the mail alarm. It is not working, I do not know what is closing stdin to sendmail svn path=/trunk/; revision=194
* Lots of changes:Miguel de Icaza1998-04-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | | Lots of changes: 1998-04-21 Miguel de Icaza <miguel@nuclecu.unam.mx> 1. gEdit got Gnomified: gnome-stock, gnome-app, i18n tretment + integration into gnome-utils compilation. Original configure.in is still there for Alex/Evans to redistribute as Gtk App (I tried to ifdef gnome code). 2. gHex: warning fixes + crash fixes + i18n fixes. 3. GnCal: week view shows date range (needs some fixing); changed the day view order; other stuff I dont remember 4. GTop: more i18n treatmnet. 5. Updated Spanish translation. svn path=/trunk/; revision=178
* Enhance the exception date handling -migArturo Espinosa1998-04-211-1/+1
| | | | svn path=/trunk/; revision=174
* Made it use the new paint_row function instead of painting everythingFederico Mena Quintero1998-04-211-22/+42
| | | | | | | | | | | | | 1998-04-20 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal-full-day.c (paint_back): Made it use the new paint_row function instead of painting everything directly. We calculate areas in a smarter way so there is even less flicker than before, especially when selecting regions. * eventedit.c: Sensitize recurrence widgets properly. svn path=/trunk/; revision=171
* Fix compiler warnings - FedericoArturo Espinosa1998-04-211-5/+0
| | | | svn path=/trunk/; revision=170
* more fixes -migArturo Espinosa1998-04-211-0/+1
| | | | svn path=/trunk/; revision=169
* A lot of usability changes to GnomeCal -miguelArturo Espinosa1998-04-211-56/+40
| | | | svn path=/trunk/; revision=168
* It works. I promiseArturo Espinosa1998-04-191-1/+1
| | | | svn path=/trunk/; revision=164
* I missed this one as wellArturo Espinosa1998-04-191-1/+1
| | | | svn path=/trunk/; revision=163
* Yes.Arturo Espinosa1998-04-181-2/+2
| | | | | | | | | | | | | | | | | | | | | Yes. It works. It loads, it saves, it does all that stuff. It works, even if federico complains that we did not test close. Repetition, alarms, all that stuff you all guys love. It it is there. We did minimal testing, but we know you will happilly commit a fix if you find a problem, right? Ok, we are off to a party now. Miguel svn path=/trunk/; revision=155
* Added mandatory status property. (ical_object_to_vobject): Only storeFederico Mena Quintero1998-04-181-27/+45
| | | | | | | | | | | | | | | | 1998-04-17 Federico Mena Quintero <federico@nuclecu.unam.mx> * calobj.c (ical_new): Added mandatory status property. (ical_object_to_vobject): Only store "related" list if it exists. * main.c (save_calendar_cmd): Implemented calendar saving. (open_calendar_cmd): Implemented calendar loading. (new_calendar_cmd): Implemented calendar creation. (new_calendar): Don't load our test calendar by default. * gncal-full-day.c (delete_appointment): Delete appointment implemented. svn path=/trunk/; revision=153
* The event dialog is beautified, recurrences are saner.Federico Mena Quintero1998-04-181-189/+662
| | | | | | | | | | 1998-04-17 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (ee_init_recurrence_page): New function that creates the recurrence page in the toplevel notebook. (ee_store_recur_values_to_ical): Now we can also store the recurrences. svn path=/trunk/; revision=151
* Remove deadly excessive abuse of encapsulation -migArturo Espinosa1998-04-171-2/+2
| | | | svn path=/trunk/; revision=147
* Use menu_shell->children, not menu->children. Why does GtkMenu have aFederico Mena Quintero1998-04-171-24/+87
| | | | | | | | | | | | | | | | | | | | | 1998-04-16 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (ee_store_alarm): Use menu_shell->children, not menu->children. Why does GtkMenu have a children field in the object structure? (check_dates): New function that insures that start_date < end_date. (check_times): In addition to checking whether the event spans the whole day, now it insures that start_time < end_time. * gncal-full-day.c (child_set_size): Now children get bigger temporarily while they are focused. This allows the handles not to "overlap" the rows used by the child and thus allow editing of very thin events. (recompute_motion): Fix for new child coordinates. (gncal_full_day_expose): Make it use find_child_by_window() instead of looking for it by hand. svn path=/trunk/; revision=145
* run fix -migArturo Espinosa1998-04-161-3/+1
| | | | svn path=/trunk/; revision=141
* The general_owner may be null. Do the proper thing when creating theFederico Mena Quintero1998-04-161-11/+56
| | | | | | | | | | | | | | | | | | | | | | | | 1998-04-15 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (ee_init_general_page): The general_owner may be null. Do the proper thing when creating the label. (ee_ok): Update the gnome calendar appropriately. * timeutil.h: * gncal-year-view.h: Add some missing prototypes. * gncal-full-day.c (child_popup_menu): Set the sensitivity of menu items according to whether the ical object is being edited or not. * eventedit.c (event_editor_new): Set the "being edited" flag on the ical object (stored as the ical object's user data). (event_editor_destroy): Release the flag. * calobj.h: The iCalObject structure now has a generic user_data pointer. * calobj.c (ical_object_set_user_data ical_object_get_user_data): Functions to set this data. svn path=/trunk/; revision=140
* New widget for the year view. added required compilation of the new files.Arturo Espinosa Aldama1998-04-151-8/+7
| | | | | | | | | 1998-04-14 Arturo Espinosa Aldama <arturo@nuclecu.unam.mx> * gncal-year-view.[hc]: New widget for the year view. * Makefile.am: added required compilation of the new files. svn path=/trunk/; revision=134
* Load recurrence rules; Paint the recurrence screen according to the rules.Arturo Espinosa1998-04-141-15/+63
| | | | | | | | | Load recurrence rules; Paint the recurrence screen according to the rules. -miguel svn path=/trunk/; revision=133
* Re-aligned some widgets to make it look prettier. (ee_alarm_widgets):Federico Mena Quintero1998-04-141-45/+89
| | | | | | | | | | | | | 1998-04-13 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c (event_editor_setup_time_frame): Re-aligned some widgets to make it look prettier. (ee_alarm_widgets): Likewise. (ee_init_general_page): Likewise. (ee_classification_widgets): Likewise. (event_editor_init_widgets): Likewise. svn path=/trunk/; revision=130
* Begginning of the create-appointment-on-range-selection-and-enter code -miguelArturo Espinosa1998-04-121-7/+5
| | | | svn path=/trunk/; revision=127
* More work on the recurrence dialog box, day navigation -migArturo Espinosa1998-04-121-60/+81
| | | | svn path=/trunk/; revision=126
* Gnome cal enhancemnets -migArturo Espinosa1998-04-111-11/+266
| | | | svn path=/trunk/; revision=122
* Removed unused global variable parent_class.Federico Mena Quintero1998-04-081-2/+0
| | | | | | | | | | | | | 1998-04-07 Federico Mena Quintero <federico@nuclecu.unam.mx> * eventedit.c: Removed unused global variable parent_class. * eventedit.h: Renamed gtk_window field to window. Made the parent_class field in the EventEditorClass structure be a GtkWindowClass, not a gnome property box class. Added prototype for event_editor_get_type(). svn path=/trunk/; revision=110
* More work in progress, wheeeee - FedericoArturo Espinosa1998-04-081-4/+5
| | | | svn path=/trunk/; revision=109
* Lots -migArturo Espinosa1998-04-041-45/+258
| | | | svn path=/trunk/; revision=103
* More work. Weee! -migArturo Espinosa1998-04-031-26/+66
| | | | svn path=/trunk/; revision=102
* add test.vcf, more code progress -migArturo Espinosa1998-04-031-12/+137
| | | | svn path=/trunk/; revision=100
* More calendar work -migArturo Espinosa1998-04-031-0/+158
svn path=/trunk/; revision=98