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
1998-10-11 Martin Baulig <martin@home-of-linux.org>
* gnome-libgtop-sysdeps.m4 (libgtop_postinstall): Use `:' instead
of the empty string if there is nothing to do since the empty string
is no valid shell sytax.
svn path=/trunk/; revision=441
* gnome-guile-checks.m4: Check for "guile-config" and then for
"build-guile", if guile-config couldn't be found. Do not
explicitely include output from "info libdir", it is already
included in "link". Use "compile" instead of "info includedir". Do
not include "1.2" in error message when Guile can't be found at
all.
svn path=/trunk/; revision=440
1998-10-11 Martin Baulig <martin@home-of-linux.org>
* gnome-libgtop-check.m4 (GNOME_INIT_LIBGTOP): Added optional
third parameter which is the `script-if-enabled' parameter of
the GNOME_LIBGTOP_HOOOK.
svn path=/trunk/; revision=439
1998-10-09 Federico Mena Quintero <federico@nuclecu.unam.mx>
* month-view.c (month_view_update): Create a list of children and
lay them out nicely. Lots of functions added for this purpose.
(adjust_segment): Main event segment adjustment routine.
(adjust_children): Adjusts all the children in the month view.
(child_create_segments): Creates the segments for a particular event.
(layout_children): Uses the generic layout engine to organize the children.
svn path=/trunk/; revision=438
1998-10-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gncal-todo.c (clist_row_selected): Set the sensitivity of the
edit/delete buttons.
(gncal_todo_update): Likewise. Thanks to Dirk Luetjens for the
bug report.
svn path=/trunk/; revision=435
1998-10-08 Federico Mena Quintero <federico@nuclecu.unam.mx>
* layout.c: Do some cleanup; now we pass a struct with the layout
algorithm's state instead of passing a trillion parameters around.
* gncal-full-day.c (layout_children): Use the new generic layout
engine.
(child_compare): Sort keys are start time then end time, not just
start time. This produces somewhat nicer results for the layout
algorithm.
The new layout code uses a partition of the time range occupied by
the events, rather than using a fixed time granularity. This is
better since the different parts of the program that use the
layout module will have different semantics regarding snapping the
event bounds to a fixed "time grid".
svn path=/trunk/; revision=434
1998-10-07 Federico Mena Quintero <federico@nuclecu.unam.mx>
* layout.[ch]: New files that abstract the event layout code from
gncal-full-day.c into something useful for other parts of the
program. Now all event layout is done here.
* Makefile.am (gnomecal_SOURCES): Added layout.[ch] to the list of
sources.
svn path=/trunk/; revision=432
1998-10-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/cell.c (cell_modified): Cells from the clipboard do not have
a Sheet parameter attached.
* src/sheet.c (sheet_cell_add): Check the computed style: if the
computed style includes a format, then turn on the cell flag for
format is set to avoid the auto guess of cell content.
(sheet_style_compute): Now can return the flags of the style that
were not part of the default style.
* src/file.c (dialog_query_load_file, workbook_save_as): Put the
window close to the mouse.
* src/workbook.c (sheet_check_dirty, workbook_close): Do not
cancel without warning the user if the workbook has changed.
(workbook_new, workbook_can_close, workbook_window_destroy,
quit_cmd, close_cmd): Reorganized the code to suit the new code to
prevent inadvertent quits.
svn path=/trunk/; revision=429
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
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
1998-10-01 Martin Baulig <martin@home-of-linux.org>
* gnome-libgtop-sysdeps.m4 (libgtop_postinstall):
Added `AC_SUBST(libgtop_postinstall)'. This is used in
`src/daemon/Makefile.am' to make the server suid root or
sgid kmem if required.
svn path=/trunk/; revision=420
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
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.
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
1998-09-29 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/cell.c (cell_draw_comment): New routine to paint a little
red triangle if the cell hsa notes.
* src/cell.c (cell_destroy): Destroy the comment.
(str_trim_spaces): New routine. Trims the spaces on a string.
(cell_draw): Trim the leading and trailing spaces on every string
of a multi-line text.
* src/color.c (color_init): Allocate a red for tagging the
spreadhseet notes.
* src/dialog-cell-format.c (format_list_fill): Apply the
traslation when adding the format.
* doc/tranlating.sgml: New document that describes how to
internationalize and localize Gnumeric properly.
* src/workbook.c (recalc_cmd): Provide a way to force a recomputation.
(insert_current_time_cmd): New function. insert the current time.
(insert_current_date_cmd): New function. insert the current date.
(insert_at_cursor): New utility function.
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Handle control-home
svn path=/trunk/; revision=414
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
1998-09-28 Martin Baulig <martin@home-of-linux.org>
* gnome-libgtop-sysdeps.m4: Make the default not to build the
LibGTope examples.
svn path=/trunk/; revision=409
1998-09-28 Martin Baulig <martin@home-of-linux.org>
* compiler-flags.m4 (--enable-warn-unused): New configure parameter
to add `-Wunused' to the warning flags.
svn path=/trunk/; revision=408
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
New:
- Bold button works properly (ie, it detects what sort of
stuff you have and presses/unpresses accordingly).
- GNumeric now has operation modes: sheet and object.
Using delete/backspace/edit-cut will let you kill
objects.
- Lots of the bug fixes reported by Adrian/Federico.
Here is the detailed changelog:
1998-09-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/xml-io.c: Destroy the extra style.
* src/main.c (main): No need to init colors as they are auto-inited.
* src/style.c (font_compute_hints): At font creation time store a
couple of the font attributes for quick retrieval.
* src/sheet-view.c (sheet_view_construct): Do not allow this
button to have the focus either.
* src/item-bar.c (item_bar_draw): If the whole sheet is selected,
draw all of the columns in pressed presenstation
* src/sheet.c (sheet_is_all_selected): Return wheter all the sheet
is selected.
* src/utils.c (cell_name): Fixed cell name computation.
(parse_cell_name): Fixed parsing of the cell name.
svn path=/trunk/; revision=396
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
1998-09-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/expr.c (do_expr_decode_tree): When decoding a tree, include
the argument separator. Also, loop properly trough the arguments
being decoded.
(function_call_with_values, function_def_call_with_values): New
functions: these ones are for the plugins so that a plugin can
invoke other functions in Gnumeric.
* src/fn-date.c (gnumeric_now): The serial number returned by
NOW() should be relative to 1900/1/1, not year zero.
1998-09-20 Miguel de Icaza <miguel@nuclecu.unam.mx>
* src/expr.c (eval_expr): Fix the way we computed expressions.
* src/eval.c (cell_eval): Maintain a CELL_ERROR flag to know if
the value is NULL due to an error or to the cell not being
evaluated.
* src/expr.c (funcion_call_with_values): Add a routine to allow
plugins to call other functions defined in Gnumeric.
* src/style.c: Handle the pattern property of the styles.
* src/style.h: Pattern style is now just a 4 bit quantity, instead
of a RefCounted structure.
* src/plugin.c: Include gnumeric-util.h
svn path=/trunk/; revision=390
Do not use -W as in the context of Gtk/Gnome, we get warnings for
the unused parameters in callback funcions which we cant fix.
Miguel.
svn path=/trunk/; revision=384