aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/year-view.c
Commit message (Collapse)AuthorAgeFilesLines
* More file moving action - FedericoFederico Mena Quintero2000-03-061-741/+0
| | | | svn path=/trunk/; revision=2061
* new file -- things shared between the client and server go in thisSeth Alves2000-03-041-1/+1
| | | | | | | | | | | | * cal-util/Makefile.am: new file -- things shared between the client and server go in this directory * calobj.c calobj.h icalendar.c icalendar.h timeutil.c timeutil.h cal-util.c cal-util.h where moved backend stuff went into pcs. shared stuff went into cal-util. svn path=/trunk/; revision=2032
* Small fix -miguelArturo Espinosa1999-09-281-8/+8
| | | | svn path=/trunk/; revision=1265
* Removed unused macro CALENDAR_HEIGHT.Federico Mena Quintero1999-05-261-2/+0
| | | | | | | | 1999-05-25 Federico Mena Quintero <federico@nuclecu.unam.mx> * year-view.c: Removed unused macro CALENDAR_HEIGHT. svn path=/trunk/; revision=940
* Set the canvas scroll region here, not in size_allocate(). Also, use theFederico Mena Quintero1999-05-261-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | 1999-05-25 Federico Mena Quintero <federico@nuclecu.unam.mx> * year-view.c (idle_handler): Set the canvas scroll region here, not in size_allocate(). Also, use the correct width and height based on the allocation and the precomputed minimum width/height values. * gnome-cal.c (setup_widgets): Set the scrollbar policy of the scrolled window. * main.c (setup_appbar): Use the correct type for the appbar. * gncal-day-view.c: Removed unused function switch_to_day(). * gncal-day-panel.c (calendar_day_selected): Removed unused variable. 1999-05-25 Federico Mena Quintero <federico@nuclecu.unam.mx> * configure.in: Added the gncal/doc/* Makefiles to AC_OUTPUT. svn path=/trunk/; revision=939
* This is the fix Miguel and I hacked in the car at Expo to make theNat Friedman1999-05-261-3/+5
| | | | | | | | | | | | | | | | | | | | | year view work in low-resolution displays. This isn't the proper fix, but it's better than the way things were. 1999-05-25 Nat Friedman <nat@nat.org> * doc/C/gnomecal.sgml: Fixed a typo. * gnome-cal.c (setup_widgets): Added a scrolled window widget into which the year view is placed. * year-view.c (CALENDAR_HEIGHT): The height of the total year view inside the scrolled window. (idle_handler): Set the height of the year view to CALENDAR_HEIGHT. (year_view_size_allocate): Set the scroll region of the year view canvas to allocation->width, CALENDAR_HEIGHT. svn path=/trunk/; revision=938
* Updated spanish language file;Pablo Saratxaga1999-02-251-1/+1
| | | | | | and some i18n improvements svn path=/trunk/; revision=692
* will define fonts via fontset. Friendlier to locales that use iso8859-[^1]Sergey I. Panov1999-02-181-6/+6
| | | | | | | | | | | | | * gnome-month-item.c,gnome-month-item.h,goto.c,mark.h, month-view.c,prop.c,quick-view.c,year-view.c: will define fonts via fontset. Friendlier to locales that use iso8859-[^1] and koi8-r encodings. Does not solve problem for Asian languiges --- better solution is needed (e.g. standart GNOME fontstyles defined in gtkrc). Interpol svn path=/trunk/; revision=677
* Use the allocation size instead of the old fields in the canvas structure.Federico Mena Quintero1998-12-151-2/+2
| | | | | | | | | 1998-12-14 Federico Mena Quintero <federico@nuclecu.unam.mx> * year-view.c (idle_handler): Use the allocation size instead of the old fields in the canvas structure. svn path=/trunk/; revision=523
* use GPOINTER_TO_INTHerbert V. Riedel1998-11-241-1/+1
| | | | | | | | | | 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
* Changed a lot of stuff not to use the layout code -- the month view's daysFederico Mena Quintero1998-10-171-30/+5
| | | | | | | | | | | | | | | | | | | | | 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
* Changed name from time_start_of_day() to be consistent with the otherFederico Mena Quintero1998-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use the font #defines. (month_view_new): Set the colors of the month viewFederico Mena Quintero1998-10-021-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1998-10-01 Federico Mena Quintero <federico@nuclecu.unam.mx> * month-view.c (month_view_init): Use the font #defines. (month_view_new): Set the colors of the month view upon creation. (mark_current_day): New function to mark the current day in the month view. (month_view_set): Mark the current day. (month_view_colors_changed): Mark the current day and colorify the month item appropriately. * month-view.h: Added year and month fields to the MonthView structure. * main.c: Renamed the Appointments color property, since it will be used by the month view as well. * goto.c (update): Set the current day's font and color. * year-view.c (year_view_init): Set the fonts of the month items when creating them. * mark.h: Added new #defines for HEADING_FONT and TITLE_FONT. * year-view.c (year_view_init): Use the new font #defines. * prop.c (prop_apply_colors): Fixed to work with the I-am-paranoid-and-I-need-to-size-my-ints changes to GnomeColorPicker. (color_spec_from_picker): Likewise. svn path=/trunk/; revision=424
* Colorify the month item and prepare it for prelighting here.Federico Mena Quintero1998-10-011-37/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1998-09-30 Federico Mena Quintero <federico@nuclecu.unam.mx> * goto.c (create_days): Colorify the month item and prepare it for prelighting here. * main.c (color_props): Changed the default colors to something not dull. * year-view.c (compute_min_size): New function to compute the minimum size of the year view properly. (year_view_size_request): Added two new fields to the year view structure that contain the minimum size. Return this in the size_request method. (year_view_new): Call compute_min_size to save the minimum size for later use. (idle_handler): Make it resize the items correctly. * gnome-month-item.c (gnome_month_item_set_arg): Reshape when necessary. This is needed becaues we now actually calculate a minimum size for the month item based on the font sizes and paddings. (check_heading_sizes): New function to calculate a minimum size based on the headings' dimensions. (check_day_sizes): New function to calculate a minimum size based on the day number labels' dimensions. (check_sizes): New function that computes a minimum size for the month item. (reshape): Now calls check_sizes() to ensure a minimum size for the month item. svn path=/trunk/; revision=419
* New function to mark the current day in the year view.Federico Mena Quintero1998-10-011-1/+51
| | | | | | | | | | | 1998-09-30 Federico Mena Quintero <federico@nuclecu.unam.mx> * year-view.c (mark_current_day): New function to mark the current day in the year view. * mark.c: Removed mark_current_day from here. svn path=/trunk/; revision=418
* Stuff that I forgot to commit yesterday.Federico Mena Quintero1998-10-011-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stuff that I forgot to commit yesterday. Now the year view has a nifty pop-up view you can activate if you click on a day with mouse button 1. It will display a quick view of the appointments in that day. Also, reworked the marking and coloring code for month items so that the year view is not glacially slow anymore when switching years. It still is slow when first mapping or realizing the year view, I'm not sure why. I will look into that. 1998-09-29 Federico Mena Quintero <federico@nuclecu.unam.mx> * prop.c (fetch_color_spec): Changed name from fetch_prelight_spec and made it conform to the new prelighting mechanism. (fake_mark_days): Set the proper day attributes. (reconfigure_month): Use colorify_month_item(). (fake_mark_days): Use mark_month_item_index(). * mark.c (colorify_month_item): New public function to reset the colors in a month item. (get_attributes): New internal function that creates an array of attributes for the days in a month item. This is the basis of all the new optimizations to month item marking. (unmark_month_item): Now it uses the attributes array to unmark only the days that need unmarking. (mark_event_in_month): Update the day attributes array. (month_item_prepare_prelight): Changed the definition of the prelight color query function. Use the new function. (day_event): Do color changes based on the day attributes array. (mark_month_item_index): New public function to mark a single day by index. (mark_event_in_month): Use mark_month_item_index(). * gnome-month-item.c (gnome_month_item_num2child): Now takes an int, not a GnomeMonthItemChild. (gnome_month_item_child2num): Now returns an int, not a GnomeMonthItemChild. (gnome_month_item_num2day): Now takes an int, not a GnomeMonthItemChild. * goto.c (goto_dialog): Create the days before the year spin button, because the year_changed callback expects the month item to be created. The new semantics of the spin button cause it to emit a value_changed signal on the adjustment upon creation -- is this the behavior we want from it? (goto_dialog): Use gtk_window_set_modal() instead of the deprectaed gnome_dialog_set_modal(). * quick-view.c (quick_view_new): Make it look not as crappy by putting the title inside the frame. (quick_view_do_popup): Fixed the pointer grab and added a cursor. (create_items_for_event): Query the text width/height from the text item using the new object arguments, so that the size of the popup window can be set properly. * year-view.c (do_quick_view_popup): Calculate a nice date string for the popup window. svn path=/trunk/; revision=415
* New file that presents a quick view of the events in a particular day whenFederico Mena Quintero1998-09-291-4/+23
| | | | | | | | | | | | | | | | 1998-09-28 Federico Mena Quintero <federico@nuclecu.unam.mx> * quick-view.[ch]: New file that presents a quick view of the events in a particular day when the mouse is clicked on the year view. Work in progress. * year-view.c (do_quick_view_popup): New function that creates a quick view for the events in a day. * Makefile.am (gnomecal_SOURCES): Added quick-view.[ch] to the list of sources. svn path=/trunk/; revision=413
* New function to execute the popup menu in the year view. (day_event):Federico Mena Quintero1998-09-251-11/+213
| | | | | | | | | | | | | | | | 1998-09-24 Federico Mena Quintero <federico@nuclecu.unam.mx> * year-view.c (do_popup_menu): New function to execute the popup menu in the year view. (day_event): Invoke the popup menu with the context set to days. (new_appointment): New function to create a new appointment from the year view. (do_jump): New function to do the appropriate view/date jumping from the popup menu. * main.c: Fixed two icons in the File menu. svn path=/trunk/; revision=398
* Added underlined shortcuts and accelerators to the main menu.Federico Mena Quintero1998-09-221-0/+1
| | | | | | | | 1998-09-21 Federico Mena Quintero <federico@nuclecu.unam.mx> * main.c: Added underlined shortcuts and accelerators to the main menu. svn path=/trunk/; revision=391
* Finished with the properties dialog. You can jump to days from the yearFederico Mena Quintero1998-09-041-4/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Finished with the properties dialog. You can jump to days from the year view now. I'm off to rewrite gnome-popupmenu and friends. 1998-09-03 Federico Mena Quintero <federico@nuclecu.unam.mx> * gncal-full-day.c (gncal_full_day_forall): Updated foreach -> forall from Gtk changes, bleah. * year-view.c (day_event): New function to handle events from days. Jumps to the day that is clicked. * main.c: Use a watch cursor while the previous/today/next functions are doing their job. * mark.c (month_item_prepare_prelight): New public utility function to prepare a month item for prelighting. It will store the proper prelight information and attach the appropriate signals. (mark_current_day): Make the current day bold as well (useful for color-blind people, I guess). * prop.c (set_current_day): Reset the date in the sample calendar and mark the current day. (fake_mark_days): Mark fake events in the sample calendar. * year-view.c (year_view_set): Use the general prelighting engine. * goto.c (day_event): Just process button presses, as prelighting is done behind the scenes now. (update): Use the general prelighting engine. * prop.c (create_colors_page): We can now configure the colors of svn path=/trunk/; revision=361
* Today: we can now configure the colors for the monthly items, courtesy ofFederico Mena Quintero1998-09-031-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Today: we can now configure the colors for the monthly items, courtesy of the canvas and GnomeColorPicker. Look at the preferences dialog, it is kind of nice. There are still some bugs to be fixed, nothing major. 1998-09-03 Federico Mena Quintero <federico@nuclecu.unam.mx> * prop.c (create_colors_page): We can now configure the colors of the monthly calendars! Wheeeeee! There are still some nits to be fixed, which are listed in the TODO file. (build_color_spec): New function to build color specifications. (parse_color_spec): New function to parse color specifications. * mark.c: Modified all functions to use the configured colors. * goto.c: Likewise. * main.c (colors_changed): New function that notifies all calendars that colors have changed. * gnome-cal.c (gnome_calendar_colors_changed): New function that notifies all the views that the colors have changed. * month-view.c (month_view_colors_changed): New function that notifies the month view that colors have changed. * year-view.c (year_view_colors_changed): New function that notifies the year view that colors have changed. * gnome-month-item.h (struct _GnomeMonthItem): Added fields for outline and day box colors. * gnome-month-item.c (gnome_month_item_set_arg): Added outline_color, outline_color_gdk, day_box_color, and day_box_color_gdk arguments to month items. These are convenient to quickly set the colors of the month item. (gnome_month_item_get_arg): Likewise. * main.[ch]: Added a global array of structures for color preferences. svn path=/trunk/; revision=360
* Centralized marking of month items. We now have a little utility functionFederico Mena Quintero1998-08-301-104/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Centralized marking of month items. We now have a little utility function to colorify the days in a month item that have events scheduled for them. This is currently used by the year view and the go-to dialog. Fixed buglets here and there. 1998-08-29 Federico Mena Quintero <federico@nuclecu.unam.mx> * mark.[ch]: New files with utility functions to mark calendars with their events. * mark.c (mark_month_item): New public function to mark a month item with events. (unmark_month_item): New public function to unmark all the days in a month item to their default appearance. * year-view.c (year_view_set): Use the new unmark_month_item() and mark_month_item() to mark the months with events. * goto.c (update): New function that updates the calendar in the Go-to dialog by marking the days. * timeutil.c (time_year_begin): Modified to take a time_t value. (time_year_end): Likewise. (time_month_begin): Actually implemented this function, which was in the header file but not here. (time_days_in_month): New public function that returns the number of days in a month. * Makefile.am (gnomecal_SOURCES): Added mark.[ch] to the sources. * year-view.c (unmark_days): Use unmark_month_item(). * gncal-full-day.c (gncal_full_day_destroy): Fixed crash when destroying the full day view. The full day's destroy method is unusual in that it destroys the list of child widgets itself, as it does not have a remove method, so it needs to reset the list to NULL. svn path=/trunk/; revision=351
* Today: fixed calculation of day indexes when weeks start on Monday. TheFederico Mena Quintero1998-08-281-306/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Today: fixed calculation of day indexes when weeks start on Monday. The year view now marks days (and fixed bugs in day marking as well). Next step: make a generic month-marker routine and use that all over the place. 1998-08-27 Federico Mena Quintero <federico@nuclecu.unam.mx> * gnome-month-item.c (build_month): Now does the correct thing when the user wants weeks to start on Monday. Now all the Monday special casing, as far as day numbering is concerned, is only in this function. * year-view.c (mark_days): This function marks the days that have events in them. It also fixes a memory leak in the old implementation (it was leaking the whole list). (unmark_days): New function used to unmark all the days in the year view. (mark_event): New function that marks all the days that are spanned by a time range. It also fixes the bug in the old implementation where it could possibly mark days past the ends of the year (if the event crosses year boundaries, for example). * timeutil.c (time_year_begin): Take the year parameter since year 1, not 1900. (time_year_end): Likewise. * year-view.c (year_view_size_allocate): Now changing the size of the calendars is done in the idle loop. (idle_handler): This function actually does the resizing of the items. * year-view.h (struct _YearView): Added idle_id and need_resize fields. svn path=/trunk/; revision=346
* Today: beginning of year view using the canvas. I still have to finishFederico Mena Quintero1998-08-271-5/+283
| | | | | | | | | | | | | | | | | | | | | Today: beginning of year view using the canvas. I still have to finish fixing size allocation and event marking. This is all for today since Bonnie is coming. 1998-08-26 Federico Mena Quintero <federico@nuclecu.unam.mx> * year-view.c: Beginning of the new year view. Sizing and event marking needs to be finished. * gnome-cal.c: Updated for year-view. (gnome_calendar_time_format_changed): Use year_view_time_format_changed(). * year-view.[ch]: Renamed the gncal-year-view.[ch] files to year-view.[ch]. * Makefile.am (gnomecal_SOURCES): Updated year-view.[ch] in the list of source files. svn path=/trunk/; revision=341
* Various bug fixes that were reported:Arturo Espinosa1998-05-161-1/+0
| | | | | | | | | | | | 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
* Bug free version of the range computation in place.Miguel de Icaza1998-05-161-11/+12
| | | | | | | | | | | | | | | 1998-05-15 Miguel de Icaza <miguel@nuclecu.unam.mx> * gnome-cal.c (mark_gtk_calendar_day): Bug free version of the range computation in place. * gncal-year-view.c (year_view_mark_day): Use the same new version of the range computation here. * calobj.c (ical_object_generate_events): Fix the begin/end condition. svn path=/trunk/; revision=215
* 1. Fix: `New Appointment' defaults to the current day. 2. Add `NewArturo Espinosa1998-05-091-1/+5
| | | | | | | | | | 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
* Fixes for vTodo thingies -migArturo Espinosa1998-04-231-1/+1
| | | | svn path=/trunk/; revision=190
* Various small fixes here and there -migArturo Espinosa1998-04-191-2/+3
| | | | svn path=/trunk/; revision=160
* Year view, double click -migArturo Espinosa1998-04-181-7/+17
| | | | svn path=/trunk/; revision=152
* The event dialog is beautified, recurrences are saner.Federico Mena Quintero1998-04-181-5/+21
| | | | | | | | | | 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
* Large number of updates. Recurrence basically works now in most of itsArturo Espinosa1998-04-181-32/+44
| | | | | | | | | Large number of updates. Recurrence basically works now in most of its forms (daily, weekly, month-by-position). Miguel. svn path=/trunk/; revision=148
* Use menu_shell->children, not menu->children. Why does GtkMenu have aFederico Mena Quintero1998-04-171-0/+1
| | | | | | | | | | | | | | | | | | | | | 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
* The general_owner may be null. Do the proper thing when creating theFederico Mena Quintero1998-04-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Year view marks ranges of new dates (on update view). Recurrence iteratorArturo Espinosa1998-04-151-8/+49
| | | | | | | | | | | Year view marks ranges of new dates (on update view). Recurrence iterator functions are here now (clap, clap, clap). Microsoft Outlook's days are counted. Miguel. svn path=/trunk/; revision=139
* Now using time_t for new and set. Random fixes, as well.Arturo Espinosa Aldama1998-04-151-15/+40
| | | | | | | | | 1998-04-15 Arturo Espinosa Aldama <arturo@nuclecu.unam.mx> * gncal-year-view.[hc]: Now using time_t for new and set. Random fixes, as well. svn path=/trunk/; revision=137
* Routine to destory rows array properly.Miguel de Icaza1998-04-151-1/+2
| | | | | | | | | | | | | | | 1998-04-15 Miguel de Icaza <miguel@nuclecu.unam.mx> * gncal-full-day.c (layout_kill_rows): Routine to destory rows array properly. * gncal-year-view.c (gncal_year_view_new): Add missing year in call to strftime. * calobj.c (ical_object_create_from_vobject): Fixed memory leaks from the return values of versit's fakeCString. svn path=/trunk/; revision=136
* New widget for the year view. added required compilation of the new files.Arturo Espinosa Aldama1998-04-151-0/+135
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