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
Autofill lists work:
Integers, Floats, Formulas and constant strings works.
Todo:
Lists of known strings and strings with numbers embedded
Miguel.
svn path=/trunk/; revision=379
Got cursors working.
Use the cursors properly on the spreadhseet (gives good feedback
on what is going to happen).
More work on autofill.
miguel.
svn path=/trunk/; revision=377
Color attributes in formats work (ie, you can get colored cells now);
My first -futile attempts- at getting various different cursors working on the
spreadsheet (we need a cross and various other cursors for a better emulation
of Excel).
The beginning of autofill, but I really need to see Excel live before implementing
this.
Miguel.
svn path=/trunk/; revision=376
1998-09-09 Martin Baulig <baulig@merkur.uni-trier.de>
* gnome-libgtop-sysdeps.m4: Added check for SMP support.
(--with-libgtop-smp): New parameter, default is to enable
it only if you're running configure on a SMP system.
Added (AC_DEFINE): `HAVE_LIBGTOP_SMP' if enabled.
(LIBGTOP_SMP): New automake conditional.
svn path=/trunk/; revision=369
1998-09-06 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-cal.c (mail_notify): Fixed the bug reported about the mail
notification not beint sent until the program was terminated.
svn path=/trunk/; revision=363
Revamped the GNOME_XML_CHECK macro. Now acts (somewhat) like the GNOME_INIT
and GNOME_INIT_HOOK macros. The GNOME_XML_CHECK macro will abort a config
if XML is not found. GNOME_XML_HOOK will set GNOME_XML_LIB to the value
"iswwci"
Need to continue thinking how to better handle the not-found-but-I-can-survive-
without-it case a little more...
Mark Crichton
svn path=/trunk/; revision=362
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 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
1998-09-02 Martin Baulig <martin@home-of-linux.org>
* gnome-support.m4: Check for canonicalize_file_name () and
realpath () and add `canonicalize.o' to LIBOBJS if required.
svn path=/trunk/; revision=358
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
1998-08-29 Martin Baulig <martin@home-of-linux.org>
* gnome-libgtop-check.m4: Make it require libgtop >= 0.26.0.
Added (AC_SUBST): `LIBGTOP_INTERFACE_AGE' and `LIBGTOP_BINARY_AGE'.
svn path=/trunk/; revision=350