Repository navigation
Expand file tree
/
Copy pathOChangeLog-2000-02-23
More file actions
9132 lines (6096 loc) · 302 KB
/
Copy pathOChangeLog-2000-02-23
File metadata and controls
9132 lines (6096 loc) · 302 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2000-02-23 Miguel de Icaza <miguel@helixcode.com>
* src/dialogs/dialog-stf.c (dialog_stf): remove invocation to
glade_gnome_init(), this is not required.
* src/sheet-object-container.c (sheet_object_container_realize):
Update to new Bonobo API.
2000-02-19 Miguel de Icaza <miguel@gnu.org>
* src/workbook.c (launch_graphics_wizard_cmd): New function, used
to launch the graphics wizard.
* src/wizard.h: New file.
* src/corba-workbook-factory.c (WorkbookFactory_read): Fixed
command_context_corba usage. Kill memory leak.
* src/sheet-object.c (sheet_set_mode_type): Remove the sheet event
button binding code from here.
(sheet_object_bind_button_events): New function. To here.
* src/sheet.h: New creation mode: SHEET_OBJECT_CREATE_COMPONENT.
The GRAPHICS one will be used only by the wizard.
* src/pixmaps.h: Include object.xpm.
* src/pixmaps/object.xpm: More Modern Art work from Miguel, this
image represents an object. The object has suffered a lot and is
in pain as you can see by the colors chosen by the artist.
2000-02-24 Michael Meeks <michael@helixcode.com>
* src/plugin.c (plugin_close): expand.
2000-02-23 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/widgets/widget-color-combo.[ch]:
In function color_table_construct() - moved tool_tip in order to
plug memory leak(called gtk_tooltips_new() too many times)
* src/functions/fn-database.c (gnumeric_daverage): add error for
-'ive count
2000-02-23 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/plugin.[ch]: Additions to API -- Made struct _PluginData private
Added field 'initialized' to PluginData to keep track of whether
the plugin has gone through init yet or not
Added field 'descr' - a paragraph description of the plugin
plugin_load() - Updated to use initialized field
New function: static void plugin_close() - shuts down plugin
Updated plugin_load() and plugin_unload() to use plugin_close() --
lots of duplicated code
New functions to reflect new privateness of PluginData struct:
plugin_data_init()
plugin_data_get_filename()
plugin_data_get_title()
plugin_data_get_descr()
plugin_data_set_private_data()
plugin_data_get_private_data()
* plugins/dif/dif.c
* plugins/ff-csv/csv-io.c
* plugins/ff-stf/stf.c
* plugins/gda/plugin-gda.c
* plugins/html/boot.c
* plugins/lotus-123/boot.c
* plugins/oleo/boot.c
* plugins/plan-perfect/pln.c
* plugins/sample/plugin-sample.c
* plugins/sc/sc.c
* plugins/sylk/sylk.c
* plugins/text/text-io.c
* plugins/xbase/boot.c:
Changed init_plugin() in each to use new plugin API, specifically
They all call plugin_data_init() now
Changed the respective cleanup functions to not g_free() the title or
descriptions
* plugins/gb/plugin.c: in addition to the above statement, I changed
cleanup() and init_plugin() to use plugin_data_[get|set]_private_data
* plugins/guile/plugin.c
* plugins/perl/perl.c
* plugins/python/python.c: added function no_cleanup_for_me() which
does absolutely nothing for completeness
* src/dialogs/dialog-plugin-manager.c: Changed add_to_clist() to use
new plugin_data_get_XXX() methods
2000-02-23 Matthias Warkus <mawa@iname.com>
* gnome-spreadsheet.png, gnome-xls.png: Removed. They have been
superseded by correctly named, overhauled icons I checked in on
January 31st. I was not aware that suboptimal versions had been
added before. Kenneth seems to be sending icons out over the world
a lot, it's hard to look after everything he's up to. In the
future, please consult me before pulling that kind of stunt.
Remember: I, too, wish that the icon project wasn't as tied to my
person as it is today. I'm not a weird control freak (well, I am,
but just a little).
2000-02-23 Peter Wainwright <prw@wainpr.demon.co.uk>
* src/sheet-object-container.c (sheet_object_container_realize): Fix
until Nat mends the bonobo brokenness.
2000-02-23 Michael Meeks <michael@helixcode.com>
* src/sheet-style.c (sheet_style_optimize): don't optimize with
the default style.
* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
use select_clear.
2000-02-21 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/widgets/widget-color-combo.[ch]: Few minor API changes
Added custom color support through a GnomeColorPicker widget
* src/workbook-format-toolbar.c (fore_color_changed),
(back_color_changed): Fix to handle above ColorCombo API change
* src/dialog-autocorrect.c: Make array static
2000-02-23 Michael Meeks <michael@helixcode.com>
* configure.in (GB_LIBS): bump gb ver. check.
2000-02-21 Michael Meeks <michael@helixcode.com>
* src/expr-name.c (name_print_area): implement.
* src/value.c (value_new_cellrange_r): implement.
2000-02-22 Jon K Hellan <hellan@acm.org>
* src/dialogs/dialog-solver.c (dialog_solver): Set constraint
clist title passive.
(constr_add_click): Make solver dialog reappear if user presses
<Esc>. Make <Ret> in entry fields invoke default.
(constr_change_click): Make <Ret> in entry fields invoke default.
* src/dialogs/solver.glade: Make more room for constraint list title.
* src/dialogs/solver.glade,
src/dialogs/solver.glade.h: Accelerators.
* src/dialogs/solver-options.glade,
src/dialogs/solver-options.glade.h: Accelerators
* src/dialogs/utils-dialog.[ch] (hbox_pack_label_and_entry):
Explicit dialog parameter. Reorder arguments in signature.
* src/dialogs/dialog-analysis-tools.c (dialog_sampling_tool,
dialog_descriptive_stat_tool, dialog_ztest_tool,
dialog_random_tool, dialog_regression_tool): Use new signature of
hbox_pack_label_and_entry. This kills some Gtk warnings.
(dialog_data_analysis): Do not destroy if gnumeric_dialog_run
returns -1.
* src/dialogs/autosave.glade, src/dialogs/autosave.glade.h :
Accelerator for "minutes" field.
* src/dialogs/autocorrect-exceptions.glade,
src/dialogs/autocorrect-exceptions.glade.h: Accelerators
* src/dialogs/dialog-autocorrect.c (exceptions_callback): Really
make <Ret> in entry fields invoke default.
* src/dialogs/dialog-goal-seek.c (dialog_found_solution):
Deflickerize.
* src/dialogs/dialog-analysis-tools.c (dialog_sampling_tool,
dialog_descriptive_stat_tool, dialog_ztest_tool,
dialog_random_tool, dialog_regression_tool): Deflickerize.
2000-02-21 Jody Goldberg <jgoldberg@home.com>
* src/cell-draw.c (cell_draw) : Doh!
* src/sheet.c (sheet_cursor_set) : Be religous about handing edit_pos
changes.
* src/commands.c (cmd_format) : save for formats for a range 1 cell
thick around the selection so that borders are handled.
* src/sheet-view.c (sheet_view_redraw_cell_region) : Redraw a border
around the selected region to handle thick borders */
* src/sheet-object.c (sheet_object_canvas_event) : Ignore mouse wheel
events.
* src/border.c (style_border_set_gc_dash) : Use GDK_LINE_ON_OFF_DASH
so that background colours show through.
* src/sheet-style.c (sheet_range_set_border) : Prefer top vs bottom
and left vs right. This will simplify drawing eventually.
2000-02-21 Almer. S. Tigelaar. <almer1@dds.nl>
* src/dialogs/dialog-stf-csv-page.c :
(csv_page_prepare) : csv_page_custom_toggled was called twice, removed one.
* src/stf.c, src/dialogs/dialog-stf.c, src/dialogs/dialog-stf-main-page.c,
* src/dialogs/dialog-stf-csv-page.c, src/dialogs/dialog-stf-fixed-page.c,
* src/dialogs/dialog-stf-format-page.c, src/dialogs/dialog-stf-preview.c
Fixed incorrect comments and added function comment headers where they
didn't exist. Also moved some includes.
* src/dialogs/dialog-stf.h
Removed TEXT_VOFFSET, because it is no langer required.
* src/dialogs/dialog-stf-preview.h
Changed the colours to match the current gnumeric sheet selection color
* src/dialogs/dialog-stf-format-page.c
(format_page_collist_select_row) : Makes selected row visible
(format_page_prepare) : Corrected minor error which caused the format entry to stay empty
* src/dialogs/dialog-stf.glade, src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h
Completely removed the "finish" page of the druid.
* src/dialogs/dialog-stf.glade, src/stf-parse.h, src/stf-parse.c
Fixed support for colon and added support for new separator
symbols : semicolon, pipe, slash, hyphen, bang.
separators are now also displayed on the csv page.
* src/stf-parse.c
(stf_parse_get_colcount) : last line wasn't counted
(stf_parse_get_colwidth) : idem
* src/stf.h :
Removed obsoleted FileSource_t struct type definition.
* src/stf.c :
(stf_read_workbook) : Detach sheet on parse error.
2000-02-21 Jon K Hellan <hellan@acm.org>
* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): Deflickerize.
* src/dialogs/dialog-cell-comment.c (dialog_cell_comment): Ditto.
* src/gnumeric-util.c (gnumeric_dialog_show): New function. Pop up
a dialog without recursive main loop, with a handler to take care
of parent shell closing.
(on_parent_close, on_close): New callback functions.
(connect_to_parent_close): New helper function - connect handler
for parent shell closing.
* src/print.c (sheet_print): Use gnumeric_dialog_run.
2000-02-20 Jody Goldberg <jgoldberg@home.com>
* src/border.c (style_border_draw) : It ain't perfect, but it is
better than nothing.
2000-02-20 Jody Goldberg <jgoldberg@home.com>
* src/dialogs/dialog-cell-format.c (cb_back_preview_color) : Hard code
the alpha channel to 0.
(cb_pattern_preview_color) : Ditto.
(cb_border_color) : Ditto.
(init_border_button) : Ditto.
* src/widgets/widget-pixmap-combo.c (pixmap_combo_select_pixmap) :
Replace the storing of the new index.
* src/workbook-format-toolbar.c (cb_border_changed) : Implement.
2000-02-20 Tuomas Kuosmanen <tigert@gimp.org>
* src/pixmaps/graphic.xpm: New icon for the "add graph" -button
requested by miguel
(hello fellow finn below btw :)
2000-02-20 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/mathfunc.c: Implemented Affine Scaling algorithm for the
Solver tool.
* src/solver-lp.c: Switched the solver to use the affine scaling
instead of the simplex. Beautified the generated reports.
* src/solver.h: Renamed some of the Solver constants.
* src/analysis-tools.h: New file. Moved stuff from
src/dialog/dialogs.h.
2000-02-20 Jody Goldberg <jgoldberg@home.com>
* src/item-cursor.c : Switch to a quartic approved delayed update
model. Do not change the bounding box while drawing.
* src/selection.c (sheet_selection_add_range) : Do NOT directly change
the edit/move/base characteristics of the sheet sheet_cursor_set handles
that.
* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges) : Use
item_cursor_reposition rather than pretending that the cursor moved.
* src/item-grid.c (item_grid_button_1) : Don't call both
sheet_cursor_move and sheet_selection_add. The former was moving
the edit cursor without redrawing it.
2000-02-20 Michael Meeks <michael@helixcode.com>
* src/sheet-object-container.c (sheet_object_container_realize): pass
UI handler in straight.
2000-02-19 Mike Kestner <mkestner@ameritech.net>
*src/dialogs/dialog-simple-input.c (dialog_get_number): Fixed leaks.
(dialog_get_sheet_name): Fixed leaks.
2000-02-19 Jody Goldberg <jgoldberg@home.com>
* src/corba-workbook-factory.c (WorkbookFactory_read) : Create a tmp
corba context with which to report problems while reading a new
workbook. This is a temporary work around until corba_context is
implemented and we see what the requirements are.
* src/command-context-corba.c (command_context_corba_new) : longer
require a workbook.
* src/corba-workbook.c (workbook_corba_setup) : Support above change.
2000-02-19 Jody Goldberg <jgoldberg@home.com>
* src/selection.c (sheet_selection_extend) : Don't store the results
of the move directly into sheet::cursor::move_corner. That makes
sheet_selection_extend_to think there is nothing to be done.
2000-02-19 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/dialogs/dialog-analysis-tools.c: Made the cancel operation
of a tool to return the tool selection.
2000-02-19 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/dialogs/analysis-tools.glade,
src/dialogs/dialog-analysis-tools.c: Implemented Glade dialogs for
Anova two-single factor and Moving average tools.
2000-02-18 Almer. S. Tigelaar. <almer1@dds.nl>
* /src/dialogs/dialog-stf.glade :
Corrected a minor spelling error on the first page of
the druid.
2000-02-19 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/dialogs/dialog-autosave.c: Added a few checks for the
correctness of autosave.glade file.
* src/dialogs/analysis-tools.glade,
src/dialogs/dialog-analysis-tools.c: Implemented Glade dialog for
Anova single factor tool.
2000-02-18 Almer. S. Tigelaar. <almer1@dds.nl>
What follows is the Changelog entry for the new STF that miguel
commited.
The original STF Plug-in has been removed and is now merged
with the Gnumeric main sources.
Numerous bug fixes have been made, the major ones :
* stf-util.c, stf-util.h :
Obsoleted, merged with dialog_stf.[ch]
* stf-fixed.c, stf-separated.c, stf-fixed.h, stf-separated.h :
Obsoleted, replace with stf-parse.[ch], a new interface.
* stf-parse.h, stf-parse.c :
Two new units which are a re-make of the stf-separated.c and
stf-fixed.c. These supersede those two units.
* dialog-stf.c, dialog-stf.h, dialog-stf-csv-page.c, dialog-stf-fixed-page.c :
Altered so they use the new stf-parse.[ch] instead of stf-separated.c
and stf-fixed.c.
* dialog-stf-main-page.c
Now allows you to select both the line to start _and_ the line to stop
importing.
* dialog-stf-fixed-page.c :
Apart from some minor bug fixes you can now also use the mouse
to interactively create, delete and resize columns.
* dialog-stf-format-page.c :
Now allows you to click in the preview to select a column.
Also fixed minor errors
* dialog-stf-preview.c, dialog-stf-preview.h :
Completely revised preview rendering, lots of changes.
* dialog-stf.glade :
More descriptive hints on each page
Now some integration changes :
* main.c
Modified to also initialize the stf-plugin
* stf.c, stf.h
Now uses the new dialog-stf.[ch] and stf-parse.[ch] interfaces.
* clipboard.c
modified (x_selection_to_cell_region) to use the STF stuff instead
of the previous 'based-on-assumptions' approach.
->by request from Jody Goldberg
2000-02-18 Jody Goldberg <jgoldberg@home.com>
* src/widgets/widget-color-combo.c (color_combo_construct) : typo.
(color_combo_new) : Disable the charting colours for now. They are
mostly duplicates.
2000-02-16 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/widgets/widget-color-combo.[ch]
Changed the code some to enable tooltips
Minor api changes
2000-02-18 Jody Goldberg <jgoldberg@home.com>
* src/workbook-view.c : Add history.h.
2000-02-18 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_redraw_selection) : Delete.
* src/selection.c (sheet_selection_extend_to) : Short circuit when
there would be no change to the selection.
(sheet_selection_change) : The sheet already has the correct edit,
move, base positions. Use them.
* src/sheet-view.c (sheet_view_redraw_headers) : gnome_canvas_request_redraw
EXCLUDES the far coordinates. Add 1 so that the last pixel get
redrawn too.
2000-02-18 Jody Goldberg <jgoldberg@home.com>
* src/history.c (history_menu_item_create) : typo.
2000-02-18 Jody Goldberg <jgoldberg@home.com>
* src/dialogs/dialog-goal-seek.c (dialog_goal_seek) : Use edit_pos.
* src/dialogs/dialog-solver.c (dialog_solver) : Ditto.
* src/xml-io.c (xml_read_selection_info) : Use edit_pos.
(xml_write_selection_info) : Ditto.
* src/workbook.c (cb_sheet_check_dirty) : Use edit_pos.
(paste_cmd) : Ditto.
(paste_special_cmd) : Ditto.
(insert_current_date_cmd) : Ditto.
(insert_current_time_cmd) : Ditto.
(workbook_edit_comment) : Ditto.
* src/sheet.c (sheet_new) : sheet_selection_append -> sheet_selection_add.
(sheet_accept_pending_input) : Use edit_pos.
(sheet_load_cell_val) : Ditto.
(sheet_start_editing_at_cursor) : Ditto.
(sheet_update_controls) : Ditto.
(sheet_{col,row}_selection_type) : Fix cut-paste-o.
(walk_boundaries) : Move to selection.c.
(walk_boundaries_wrapped) : Ditto.
(sheet_selection_walk_step) : Reworked and moved to selection.c.
(sheet_cursor_move) : Switch to new framework.
(sheet_cursor_set) : Ditto.
(sheet_set_selection) : Delete.
* src/sheet.h : (SheetSlection) : Remove base member.
(Sheet) : adjust notion of cursor to differentiate between,
edit, base, and movement. (see comments).
* src/sheet-view.c (sheet_view_set_zoom_factor) : Use edit_pos.
(sheet_view_scrollbar_config) : Switch to new scheme.
(sheet_view_{col,row}_selection_changed) : Make the Top/Left visible
cell the edit cursor when things are out of range.
* src/sheet-style.c (sheet_style_attach) : Use sheet_redraw_range directly.
(sheet_range_apply_style) : Ditto.
(sheet_range_set_border) : Ditto.
* src/selection.c (sheet_selection_add_range) : Renamed from,
sheet_selection_append. Document. Switch to new edit, base, move
scheme. Directly call sheet_cursor_set rather than the confusingly
named sheet_set_selection.
(sheet_selection_add) : Renamed from sheet_selection_append.
(sheet_selection_change) : Adjust parm name from 'new' -> 'new_sel' to
enable test compiles from C++.
(sheet_selection_extend_to) : Switch to new edit, base, move scheme.
(sheet_selection_extend) : Just call sheet_selection_extend_to for the
main work. Document.
(sheet_select_all) : sheet_selection_append_range -> sheet_selection_add_range.
(sheet_selection_extend_{horizontal, vertical} : Merge in to
sheet_selection_extend and fix.
(sheet_selection_set) : Switch to the new scheme.
(sheet_selection_reset) : sheet_selection_append -> sheet_selection_add.
Use edit_pos.
(walk_boundaries) : Moved from sheet.c, merged with
walk_boundaries_wrap, and change signature.
(sheet_selection_walk_step) : Moved from sheet.c and switched to the
new method. Do not change the selected region while iterating.
* src/item-grid.c (item_grid_paint_empty_cell) : Use edit_pos.
(item_grid_draw_cell) : Ditto.
(item_grid_event) : Ditto.
(context_paste_cmd) : Use the base and move cursors.
(context_paste_special_cmd) : Ditto.
(item_grid_button_1) : sheet_selection_append -> sheet_selection_add.
* src/item-cursor.c (item_cursor_autofill_event) : Use
sheet_selection_add_range rather than the two step select extend.
* src/clipboard.c (sheet_paste_selection) : Use
sheet_selection_add_range rather than the 2 step process
of setting the corner and extending.
* plugins/excel/ms-excel-read.c (ms_excel_read_selection) :
sheet_selection_append_range -> sheet_selection_add_range
* src/corba-sheet.c (Sheet_selection_append) : Ditto.
(Sheet_selection_append_range) : Ditto.
* src/gnumeric-sheet.c (move_cursor) : Ditto.
(gnumeric_sheet_key_mode_sheet) : Ditto. Use edit_pos.
sheet_selection_walk_step now handles the cursor and selection
changes.
(gnumeric_sheet_set_selection) : Delete this was unnecessary.
(gnumeric_sheet_set_cursor_bounds) : Add preconditions.
(move_cursor_horizontal) : Use the edit_pos for movement.
(move_cursor_vertical) : Ditto.
(gnumeric_sheet_create_editing_cursor) : Ditto.
(start_cell_selection) : Ditto.
(move_horizontal_selection) : Use sheet_selection_extend.
(move_vertical_selection) : Ditto.
(gnumeric_sheet_compute_visible_ranges) : Force a redraw of the
item-cursor when the visible region changes. FIXME : This should be
an update not a redraw.
2000-02-18 Miguel de Icaza <miguel@gnu.org>
* configure.in (EXTRA_GNOME_CFLAGS): Remove stf plugin from here.
* plugins/Makefile.am (SUBDIRS): And from here.
* src/stf.c (stf_open_and_read): Use malloc instead of g_malloc0
because g_malloc aborts execution if the buffer is too large
(which it might likely be).
(stf_read_workbook): Release using free, not g_free here.
(stf_read_workbook): Fix sheet object memory leak.
(stf_init): Kill old and unused code.
2000-02-18 Michael Meeks <michael@helixcode.com>
* src/workbook.c (workbook_new): setup view history.
(workbook_do_destroy): add workbook to view history and write config.
* src/history.c (history_item_label): substantialy alter.
(history_remove_menu_item): kill translation on non bonobo case.
2000-02-18 Mike Kestner <mkestner@ameritech.net>
* src/application.c (application_history_get_list): add
(application_history_update_list, application_history_list_shrink),
(application_history_write_config): ditto.
* src/workbook-view.c (workbook_view_history_setup): create.
(workbook_view_history_update, workbook_view_history_shrink): ditto.
* src/Makefile.am: add history.[ch].
* src/history.[ch]: Added.
2000-02-18 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/dialogs/analysis-tools.glade,
src/dialogs/dialog-analysis-tools.c: Implemented Glade dialogs for
T-Test tools.
* src/dialogs/dialog-autosave.c: Fixed a few bugs in
dialog_autosave (cancel caused segmentation fault at the next
run). Made the prompt button unsensitive if the autosave is
turned off.
* src/analysis-tools.c: Made the titles to be printed in italic
style for Correlation, Covariance, F-Test, and T-Test tools. In
addition, the columns are autosized.
2000-02-16 Miguel de Icaza <miguel@gnu.org>
* src/widgets/widget-pixmap-combo.c (pixmap_combo_select_pixmap):
Changed the code to use gnoem_pixmaps here.
(pixmap_combo_construct): and here.
2000-02-15 Jody Goldberg <jgoldberg@home.com>
* *.[ch] : More header cleanup. Remove value.h and sheet.h
from expr.h. Remove sheet.h from cell.h.
2000-02-16 Dom Lachowicz <dominicl@seas.upenn.edu>
* src/plugin-manager.c : Move functionality.
* src/dialogs/dialog-plugin-manager.c : here. and move to libglade.
* src/workbook.c (plugins_cmd) : Use dialog_plugin_manager instead
of plugin_manager_new.
2000-02-16 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/dialogs/analysis-tools.glade, src/analysis-tools.c,
src/dialogs/dialog-analysis-tools.c: Implemented Glade dialog for
Rank and Percentile tool.
2000-02-15 Jody Goldberg <jgoldberg@home.com>
* src/workbook-cmd-format.c (workbook_cmd_format_{column,row}_auto_fit) :
Handle repositioning and redrawing here in preparation to adding undo.
(workbook_cmd_format_column_width) : Ditto.
(workbook_cmd_format_row_height) : Ditto.
* src/sheet.c (sheet_reposition_comments_from_{row,col}) : publicize.
(sheet_recompute_spans_for_col) : Ditto.
(sheet_save_row_col_sizes) : Store cols/rows of 'default' size as 0.
(sheet_restore_row_col_sizes) : Restore cols/rows to true default state.
(sheet_{col,row}_set_size_pts) : document, and REMOVE calls to reposition
and redraw.
2000-02-16 Jon K Hellan <hellan@acm.org>
* src/sheet.c (col_row_info_init): Fix typo
2000-02-15 Morten Welinder <terra@diku.dk>
* src/functions/fn-math.c (gnumeric_mmult): Fix row/col confusion.
* src/mathfunc.c (mmult): Ditto. How did this ever work for
non-square matrices?
2000-02-15 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_col_set_default_size_pts) : There is no notion of
default column width having thick margins.
2000-02-14 Jon K Hellan <hellan@acm.org>
* src/dialogs/import.glade: Add scrolled window
* src/file.c (workbook_read, workbook_import, workbook_save_as,
workbook_save): Use error message template.
* src/command-context.h (struct _CommandContext): Add
template_list member.
(struct CommandContextClass): Call message parameter to methods
"message".
(command_context_push_template, command_context_pop_template):
Declare.
* src/command-context.c (command_context_push_template): New
function. Push a printf template for error messages to stack.
(command_context_pop_template): New function. Pop current template
from stack.
(format_message): New function. Format a message using template on
stack.
(gnumeric_error_plugin_problem, gnumeric_error_read,
gnumeric_error_save): Use format_message.
* src/command-context-corba.c (ccc_error_plugin_problem,
ccc_error_read, ccc_error_save): Call message parameter
"message".
* src/command-context-gui.c (ccg_error_plugin_problem,
ccg_error_read, ccg_error_save): Ditto.
2000-02-14 Jody Goldberg <jgoldberg@home.com>
* src/cell-draw.c (cell_draw) : Cells can span in either direction.
* src/format.c (format_value) : Empty formats produce empty cells.
* src/workbook.c (workbook_menu_tools) : Move the plugins menu item to
the Tools menu.
2000-02-14 Jukka-Pekka Iivonen <iivonen@iki.fi>
* src/dialogs/analysis-tools.glade, src/analysis-tools.c,
src/dialogs/dialog-analysis-tools.c: Implemented Glade dialogs for
Correlation, Covariance, and F-Test tools.
2000-02-14 Jody Goldberg <jgoldberg@home.com>
* src/item-bar.c (item_bar_event) : Handle rename from
sheet_{col,row}_size_fit -> sheet_{col,row}_size_fit_pixels
* src/selection.c (cb_set_row_height) : Ditto.
* src/workbook-cmd-format.c
(workbook_cmd_format_{column,row}_auto_fit) : Ditto.
* src/cell.c (cell_calc_dimensions) : Use sheet_row_set_size_pixels
rather than sheet_row_set_internal_size_pts.
* src/sheet.c (sheet_{col,row}_set_size_{pixels,pts}) :
Use sheet_row_fetch to avoid manually adding rows/col.
Syncronize implementations and move the 'set_internal' code
here.
(sheet_{col,row}_set_internal_size_pts) : Delete.
(sheet_{col,row}_size_fit) : Rename sheet_{col,row}_size_fit_pixels
(colrow_compute_pts_from_pixels) : Typo.
2000-02-14 Miguel de Icaza <miguel@gnu.org>
* src/dialogs/dialog-solver.c (constr_add_click): Fix handling
of return value from gnumeric_dialog_run. Fix memory leaks.
* src/dialogs/dialog-goto-cell.c (dialog_goto_cell): Fix handling
of return value from gnumeric_dialog_run
* src/dialogs/dialog-function-wizard.c (dialog_function_wizard):
* src/dialogs/dialog-analysis-tools.c (dialog_correlation_tool):
Fix handling of return value from gnumeric_dialog_run
(dialog_sampling_tool): ditto.
(dialog_descriptive_stat_tool): ditto.
(dialog_ttest_eq_tool): ditto.
(dialog_regression_tool): ditto
(dialog_average_tool): ditto.
(dialog_ranking_tool): ditto.
(dialog_anova_single_factor_tool): ditto.
* src/dialogs/dialog-solver.c (dialog_solver): The argument is
*NOT* a GtkObject, but some other data structure.
* src/dialogs/dialog-analysis-tools.c (dialog_data_analysis):
Correct handling.
(dialog_covariance_tool): Handle correctly.
* src/dialogs/dialog-advanced-filter.c (dialog_advanced_filter):
Proper error handling.
2000-02-13 Jody Goldberg <jgoldberg@home.com>
* src/workbook-format-toolbar.c (workbook_create_format_toolbar)
Add a border item.
* src/widgets/widget-pixmap-combo.[ch] : New files.
2000-02-13 Miguel de Icaza <miguel@gnu.org>
* src/workbook.c (workbook_new): Do not autosave by default, much
less with prompt feature.
* src/widgets/widget-color-combo.c (color_combo_construct):
Acknowledge the GNOME user settings for the combo box button.
Same for the button we create.
* src/workbook.c (workbook_create_standard_toobar): ditto.
2000-02-13 Jody Goldberg <jgoldberg@home.com>
* src/sheet.c (sheet_col_get_distance_pts) : Fix missed +1.
* src/cell-draw.c (cell_draw) : syncronize with print_cell_text.
* src/print-cell.c (print_cell_text) : Ditto.
2000-02-13 Jody Goldberg <jgoldberg@home.com>
* src/item-grid.c (item_grid_paint_empty_cell) : paint the selection
rectangle EXCLUDING the grid lines when selected.
* src/cell-draw.c (cell_draw) : Ditto.
* src/pattern.c (gnumeric_background_set_gc) : return FALSE if there
is no pattern even if the cell is selected.
2000-02-13 Jody Goldberg <jgoldberg@home.com>
* src/item-grid.c (item_grid_paint_empty_cell) : Move above item_grid_draw_cell.
(item_grid_draw_cell) : Do not to set colours here that is handled
elsewhere. Call empty_cell for zeros when we are not displaying them.
* src/cell-draw.c (cell_draw) : Reset the clipping region
to avoid losing the background colour because the previous cell
drawn had set a non overlapping clipping region.
* src/workbook-view.c (workbook_view_set_size) : Clarify that the
measurements are in pixels.
* src/sheet-view.c (sheet_view_redraw_cell_region) : redraw the
bounding grid lines too.
* src/item-cursor.c (item_cursor_get_pixel_coords) : Clip the cursor
region to the visible range. The layout still needs cleaning to
match the 'correct' way of implementing canvas-items, but this
heuristic saves us lots of iterations through the accumulator for
the size of the entire sheet.
2000-02-12 Jody Goldberg <jgoldberg@home.com>
* src/gnumeric-sheet.c : Use visible flag and adjust to naming and
margin changes.
* src/item-bar.c (colrow_tip_setlabel) : Use the format provided by
XL2000. Things are correct for rows, colwidth are quoted in pts
rather than char widths.
(get_col_from_pos) : Use visible flag.
(item_bar_start_resize) : Function renaming.
(is_pointer_on_division) : Ditto.
(item_bar_draw) : Changes to margins.
* src/item-edit.c : Function renaming.
* src/item-cursor.c : Ditto. decrease spacing for auto handle.
* src/item-grid.c (item_grid_draw) : Remove inversion process for the
selection. Instead have the cells draw their background
differently. Use the visible flag.
(item_grid_paint_empty_cell) : Ditto.
(item_grid_paint_cell) : Ditto.
* src/mstyle.c (mstyle_new_default) : The default vert alignment is BOTTOM.
* src/pattern.c (gnumeric_background_set_gc) : Draw the background of
a selected cell differently.
* src/print-cell.c (DIM) : margins are already included.
(print_cell_text) : Adjust argument order to more closely match
cell_draw. Add support for vertical alignment of 1 line cells.
Invert control of single vs multiple lines.
(print_cell) : Adjust to changes in the arguments.
(print_cell_range) : Use the visible flag.
Draw line at the boundary rather than pretending there were
additional rows/cols.
* src/print.c (compute_groups) : size_pts INCLUDES margins. Use 'visible' flag.
(print_page) : Adjust to function renaming.
(print_range_used_units) : Ditto.
* src/selection.c : Include sheet-view directly for now.
(cb_set_row_height) : Adjust to function renaming.
* src/sheet-view.c (sheet_view_redraw_cell_region) : Adjust to function
renaming.
(sheet_view_redraw_headers) : Ditto.
(sheet_view_set_zoom_factor) : Ditto.
(sheet_view_col_size_changed) : Ditto.
(sheet_view_row_size_changed) : Ditto.
(sheet_view_comment_get_points) : Ditto.
* src/sheet.[ch] : Rationalize function names, and add glossary.
Make the use of margins and sizes (in points and pixels) consistant.
(sheet_col_get_external_width : Delete.
(sheet_row_get_external_height : Delete.
(sheet_col_get_distance : Rename sheet_col_get_distance_pixels.
(sheet_row_get_distance : Rename sheet_row_get_distance_pixels.
(sheet_row_get_unit_distance : Rename sheet_row_get_distance_pts.
(sheet_col_get_unit_distance : Rename sheet_col_get_distance_pts.
(sheet_col_set_width : Rename sheet_col_set_size_pixels.
(sheet_col_set_width_units : Rename sheet_col_set_size_pts.
(sheet_row_set_height : Rename sheet_row_set_size_pixels.
(sheet_row_set_height_units) : Rename sheet_row_set_size_pts.
(sheet_get_default_external_col_width) : Rename sheet_col_get_default_size_pts.
(sheet_get_default_external_row_height): Rename sheet_row_get_default_size_pts.
(sheet_col_set_internal_width) : sheet_col_set_internal_size_pts.
(sheet_row_set_internal_height): sheet_row_set_internal_size_pts.
(sheet_{row,col}_set_default_size_pts) : New functions.
(sheet_init_default_styles) : Tune to match XL defaults.
* src/sort.c : Use g_strcasecmp, and include <stdlib.h>
* src/style.c (style_color_new) : Init the selection colour as a 50%
alpha blend with lavender.
* src/style.h : Change default font to be Helvetica 9 because it will
scale better when the standard 96 dpi resolution is assumed.
Add a selected_color to StyleColor.
* src/value-sheet.c : Include <gnome.h> to get the
internationalization support.
* src/workbook-cmd-format.c (workbook_cmd_format_column_auto_fit) :
sheet_col_set_width -> sheet_col_set_size_pixels.
(workbook_cmd_format_column_width) :
sheet_col_set_width_units -> sheet_col_set_size_pts.
(workbook_cmd_format_row_auto_fit) :
sheet_row_set_height -> sheet_row_set_size_pixels
(workbook_cmd_format_row_height) :
sheet_row_set_height_units -> sheet_row_set_size_pts.
* src/xml-io.c (xml_read_rows_info) : Rename
sheet_row_set_height_units -> sheet_row_set_size_pts.
(xml_read_cols_info) : Rename
sheet_col_set_height_units -> sheet_col_set_size_pts.
(xml_read_colrow_info) : Remove hack with negative pixels.
Use 'visible' flag instead.
(xml_write_colrow_info) : Ditto.
2000-02-12 Gregory McLean <gregm@gnu.org>
* src/functions/fn-financial.c: Added documentation and examples.
2000-02-12 Jukka-Pekka Iivonen <iivonen@iki.fi>
* doc/C/autosave.sgml: New file added. Documentation of the
AutoSave tool.
2000-02-11 Jody Goldberg <jgoldberg@home.com>
* src/workbook-format-toolbar.c (workbook_create_format_toolbar) :
Adjust to new signature for color_combo_new.
Select index 0 rather than 1 (some one has spent too much time in
fortran). Reorder the initializations to match deployment (I'm
being pedantic).
* src/widgets/widget-color-combo.c (color_table_setup) : Change the
no_color flag to a possibly NULL string to provide finer control.
(color_combo_construct) : Ditto.
(color_combo_new_with_vals) : Ditto.
(color_combo_new) : Ditto.
2000-02-11 Dean Scott <drscott12@hotmail.com>
* src/widgets/widget-color-combo.c (default_colors) : Reorder to match
XL2000 more closely and provide names.
(color_combo_new) : Correct the layout to display all colours.
2000-02-11 Michael Meeks <michael@helixcode.com>
* src/sheet.c (sheet_load_cell_val): fix brokenness.
(sheet_load_cell_val): cast to shut it up.
2000-02-11 Michael Meeks <michael@helixcode.com>
* src/sheet.c (cellref_name): use sheet_quote_name.
(sheet_quote_name): implement.
* src/workbook.h (WorkbookClass): add cell_changed signal.
* src/workbook.c (workbook_class_init): add cell_changed.
* src/sheet.c (sheet_load_cell_val): Add signal for blind folks.
2000-02-11 Michael Meeks <michael@helixcode.com>
* src/sheet.c (sheet_get_extent): Fix silly buglet for blank sheets.
* configure.in: split out GB autoconf from EXTRA_GNOME_LIBS
2000-02-10 Michael Meeks <michael@helixcode.com>
* src/clipboard.c (sheet_paste_selection): pass CellPos.
(clipboard_copy_cell_range): pass ptr to range.
* src/sheet-style.c (sheet_get_styles_in_range): include the background
style so we can undo nicely. (sheet_style_attach_list): simplify.
* src/workbook-format-toolbar.c (change_font_size_in_selection_cmd),
(change_selection_font, set_selection_halign, change_font_in_selection_cmd),
(change_font_size_in_selection_cmd, do_sheet_selection_apply_style),
(fore_color_changed, back_color_changed): use cmd_format.
* src/dialogs/dialog-cell-format.c (cb_fmt_dialog_dialog_apply): update
to use cmd_format.
* src/sheet-style.c (sheet_selection_set_border): kill style unref.
(sheet_selection_apply_border_cb): renamed to (sheet_range_set_border):
(sheet_selection_set_border): kill ( with leak ).
(sheet_range_apply_style): rename (sheet_selection_apply_style): kill.
(sheet_get_styles_in_range): take a const range pointer
2000-02-10 Jody Goldberg <jgoldberg@home.com>
* src/corba-workbook-factory.c (WorkbookFactory_read) : Include
gnorba.
2000-02-10 Michael Meeks <michael@helixcode.com>
* src/corba-sheet.c: include cell.h & colrow.h
(Sheet_col_width): use size_pts (Sheet_row_height): ditto.
* src/embeddable-grid.h: include sheet-view.h
* configure.in (have_gb): bump ver.
* src/workbook.c (workbook_new): fix ordering of arguments on autosave
function; default to not ask, and make interval 10 minutes. ( instead
of 1 with bug ).
2000-02-10 Jody Goldberg <jgoldberg@home.com>
* src/sheet.h : Remove inclusion of cell.h. Adjust includes to loosen
things a bit more.
* src/colrow.h : Remove margin_a_pt margin_b_pt. Margins are NOT
scaled by resolution or zoom.
Rename units -> size_pts and store as float rather than double.