Debian Codegraph @

ChangeLog

raw
1 2018-09-09 Hiroyuki Ito <ZXB01226 at nifty.com>
2
3 * src/gtk/gtk_subwin.c (focus_out, focus_in): added.
4 (sub_window_create): connect "focus-in-event" and
5 "focus-out-event".
6
7 2018-09-08 Hiroyuki Ito <ZXB01226 at nifty.com>
8
9 * src/gtk/gtk_subwin.c (set_object_name)
10 (list_sub_window_object_name): added.
11
12 2018-09-02 Hiroyuki Ito <ZXB01226 at nifty.com>
13
14 * src/gtk/x11menu.c (application): call
15 "gtk_icon_theme_add_resource_path()".
16
17 2018-08-23 Hiroyuki Ito <ZXB01226 at nifty.com>
18
19 * merge "marker type" feature of the path object.
20
21 2018-07-31 Hiroyuki Ito <ZXB01226 at nifty.com>
22
23 * src/gtk/gtk_widget.c (set_linumber_color): removed.
24
25 2018-07-30 Hiroyuki Ito <ZXB01226 at nifty.com>
26
27 * src/odraw.h (ARROW_POSITION_TYPE_NUM, JOIN_TYPE_NUM): added.
28
29 2018-07-28 Hiroyuki Ito <ZXB01226 at nifty.com>
30
31 * src/gtk/x11menu.c (create_toplevel_window): set toplevel window
32 modal for the GtkColorButton (modal GtkColorChooserDialog).
33
34 2018-07-27 Hiroyuki Ito <ZXB01226 at nifty.com>
35
36 * addin/fitrslt.c (set_parameter): use "g_strdup_printf()" instead
37 of "snprintf()".
38
39 * src/shellcm.c (cmget): fix check "NWRITE" flag.
40
41 * src/gtk/x11file.c (FileDialogAxis): increase size of the buffer.
42
43 * src/gtk/init.c (exec_console): increase size of the buffer.
44
45 2018-07-25 Hiroyuki Ito <ZXB01226 at nifty.com>
46
47 * src/odraw.h (DEFAULT_FONT_PT): added.
48 (DEFAULT_MARK_SIZE): added.
49
50 * src/omark.c (markinit): use "DEFAULT_MARK_SIZE".
51
52 * src/odata.c (f2dinit): use "DEFAULT_MARK_SIZE".
53
54 * src/otext.c (textinit): use "DEFAULT_FONT_PT".
55
56 * src/oaxis.c (axisinit): use "DEFAULT_FONT_PT".
57
58 * src/gtk/x11axis.c (create_num_combo_item, select_type)
59 (numbering_tab_create): now the type of the field "no_zero" is not
60 NBOOL but NENUM.
61
62 * src/oaxis.c (AXIS_NUM_NO_ZERO, anumnozero): added.
63 (get_axis_gauge_num_str): add 3rd argument.
64 (anumnozeroput): added.
65 (axis): the type of the field "num_no_zero" is now "NENUM".
66 (anumnozero): use "false" and "true" for backward compatibility.
67
68 2018-07-21 Hiroyuki Ito <ZXB01226 at nifty.com>
69
70 * src/axis.c (getaxisposition): compare "*po", "alocal->posst" an
71 "alocal->posed" with "N_EPSILON".
72
73 * src/mathfn.c (nraise): use "N_EPSILON" if x is nagative.
74
75 * src/mathfn.h (N_EPSILON): added.
76
77 2018-07-19 Hiroyuki Ito <ZXB01226 at nifty.com>
78
79 * src/odraw.h (DEFAULT_LINE_WIDTH): added.
80
81 2018-07-17 Hiroyuki Ito <ZXB01226 at nifty.com>
82
83 * addin/legend.nsc: use "-escape" option to get fields of a data
84 object.
85
86 * src/shellcm.c (put_field_str): added.
87 (cmget): add "escape" option.
88
89 2018-07-12 Hiroyuki Ito <ZXB01226 at nifty.com>
90
91 * src/gtk/x11file.c (FileDialogType): set sensitivity of only
92 curve and fit button (for drawing math-functions).
93
94 2018-07-06 Hiroyuki Ito <ZXB01226 at nifty.com>
95
96 * test/math_test_new.dat: fix some tests related to comparison
97 with precision.
98
99 * src/math/math_basic_function.c (compare_double_with_prec): use
100 "gsl_fcmp()" when available.
101
102 2018-06-30 Hiroyuki Ito <ZXB01226 at nifty.com>
103
104 * src/common.h: check "G_OS_WIN32" instead of "__MINGW32__".
105
106 2018-06-29 Hiroyuki Ito <ZXB01226 at nifty.com>
107
108 * src/ioutil.c (nstat): remove codes for windows.
109
110 * configure.ac: add AC_SYS_LARGEFILE.
111
112 2018-06-27 Hiroyuki Ito <ZXB01226 at nifty.com>
113
114 * src/ioutil.c (nstat): add codes to avoid segmentation fault on
115 Windows.
116
117 2018-06-24 Hiroyuki Ito <ZXB01226 at nifty.com>
118
119 * src/odata.c (set_const): add constants AXISX_MAX, AXISX_MIN,
120 AXISX_LEN, AXISY_MAX, AXISY_MIN and AXISY_LEN.
121
122 2018-06-15 Hiroyuki Ito <ZXB01226 at nifty.com>
123
124 * src/gtk/x11file.c (RANGE_ENTRY_WIDTH): add and use the constant.
125
126 * src/nhash.c (hash_each_sub): check returned value of the
127 function "hash_each_sub()".
128
129 * src/gra.c (GRAtextextentraw): fix calculation of the bounding
130 box of a raw-text.
131
132 2018-06-06 Hiroyuki Ito <ZXB01226 at nifty.com>
133
134 * src/gtk/x11graph.c (CmGraphNewMenu): clear all lists.
135
136 2018-03-28 Hiroyuki Ito <ZXB01226 at nifty.com>
137
138 * src/odata.c (opendata): save "f2dlocal" to "struct f2ddata".
139 (fitout): initialize and check "f2dlocal->use_drawing_func".
140
141 2018-03-25 Hiroyuki Ito <ZXB01226 at nifty.com>
142
143 * src/odata.c (draw_fit): use "fp->color" instead of "fp->fg".
144
145 2018-03-23 Hiroyuki Ito <ZXB01226 at nifty.com>
146
147 * src/odata.c (dummyout): added.
148 (fitout): use "dummyout()" when redrawing.
149
150 2018-03-20 Hiroyuki Ito <ZXB01226 at nifty.com>
151
152 * gtksourceview/create_lang.nsc: remove "%D" and "%N" from the
153 list of constrants.
154
155 2018-03-09 Hiroyuki Ito <ZXB01226 at nifty.com>
156
157 * src/gtk/ox11menu.c (mx_show_source_view_search_path): added.
158 (gtkmenu): add field "source_view_search_path".
159
160 2018-03-08 Hiroyuki Ito <ZXB01226 at nifty.com>
161
162 * src/gtk/x11menu.c (souce_view_set_search_path): renamed. check
163 language.
164
165 2018-03-04 Hiroyuki Ito <ZXB01226 at nifty.com>
166
167 * src/gtk/data/css/ngraph.css: remove unused style.
168
169 * src/gtk/x11dialg.h (MathTextDialog): remove unused member
170 "label".
171
172 * src/gtk/x11file.c (MathTextDialogSetup): don't use label but
173 window title.
174
175 2018-03-03 Hiroyuki Ito <ZXB01226 at nifty.com>
176
177 * src/gtk/x11file.c (MathTextDialogSetup): call
178 "gtk_widget_grab_focus()".
179 (math_common_widgets_create, MathTextDialogSetup): change position
180 of the tabs.
181
182 2018-03-01 Hiroyuki Ito <ZXB01226 at nifty.com>
183
184 * src/odata.c (ofile_create_math_equation): add static constants
185 definitions.
186
187 2018-02-28 Hiroyuki Ito <ZXB01226 at nifty.com>
188
189 * src/odata.c (file_draw_path, file_draw_polyline)
190 (file_draw_polygon): added.
191 (draw_polygon): add 3rd parameter. don't call "arraydel()".
192
193 2018-02-27 Hiroyuki Ito <ZXB01226 at nifty.com>
194
195 * src/gtk/x11file.c (RangeDialogSetup): update label to avoid
196 collision with the short cut to show information of a completion.
197
198 * src/odata.c (file_draw_errorbar, file_draw_errorbar2)
199 (draw_errorbar): added.
200 (errorbarout): use "draw_errorbar()".
201
202 2018-02-26 Hiroyuki Ito <ZXB01226 at nifty.com>
203
204 * src/gtk/x11file.c (math_common_widgets_create): call
205 "gtk_widget_set_vexpand()".
206
207 * src/gtk/x11menu.c (souce_view_initialize): moved from
208 "x11file.c".
209 (application): call "souce_view_initialize()".
210
211 2018-02-24 Hiroyuki Ito <ZXB01226 at nifty.com>
212
213 * src/gtk/x11opt.c (MiscDialogSetup): call
214 "souce_view_initialize()".
215
216 * src/gtk/x11file.c (souce_view_initialize): renamed.
217
218 2018-02-23 Hiroyuki Ito <ZXB01226 at nifty.com>
219
220 * src/gtk/x11file.c (set_source_style): added.
221 (MathTextDialogSetup, math_tab_setup_item): call
222 "set_source_style()".
223
224 * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup)
225 (MiscDialogClose): add source style settings.
226
227 * src/gtk/ox11menu.c (mx_show_lib_version): show version of
228 GtkSourceView.
229 (MenuConfigMisc): add "sourece_style_id" setting.
230 (menuinit): initialize "Menulocal.source_style_id".
231
232 * src/math/math_parser.c (parse_primary_expression): don't apply
233 the limitation of the length of a variable.
234
235 * src/math/math_error.c (math_err_get_error_message): show error
236 line and line-offset.
237
238 * src/math/math_equation.c (math_equation_set_parse_error): change
239 type of the 3rd parameter from "int" to "const struct math_string
240 *str".
241
242 * src/math/math_scanner.c (math_scanner_get_token): save current
243 line and line-offset.
244
245 2018-02-22 Hiroyuki Ito <ZXB01226 at nifty.com>
246
247 * src/object.c (get_localized_str): added.
248 (error2, error22): use "get_localized_str()".
249
250 2018-02-21 Hiroyuki Ito <ZXB01226 at nifty.com>
251
252 * src/gtk/x11file.c (move_cursor_to_error_line): added.
253 (MathTextDialogClose, focus_math_widget): use
254 "move_cursor_to_error_line()".
255
256 * src/math/math_error.c (math_err_get_error_message): show line number.
257 (math_err_get_recent_error_line_number): added.
258
259 * src/math/math_equation.c (math_equation_set_parse_error): add 3rd parameter.
260
261 * src/math/math_scanner.c (math_scanner_init_string): added.
262 (math_scanner_free_token): use "struct math_token *".
263
264 * src/math/math_basic_function.c (math_func_array): added.
265
266 * src/math/math_equation.c (math_equation_add_func): use
267 "math_function_get_arg_type_num()".
268
269 * src/math/math_parser.c (get_argument): use
270 "math_function_get_arg_type_num()".
271
272 * src/math/math_expression.c (math_function_get_arg_type_num): added.
273 (check_argument, call_func): use
274 "math_function_get_arg_type_num()".
275
276 2018-02-20 Hiroyuki Ito <ZXB01226 at nifty.com>
277
278 * src/gtk/x11opt.c (FontSettingDialogSetupItem)
279 (MiscDialogSetupItem): use "gtk_font_chooser_set_font()" instead
280 of "gtk_font_button_set_font_name()".
281 (FontSettingDialogAddAlternative, FontSettingDialogClose)
282 (set_font): use "gtk_font_chooser_get_font()" instead of
283 "gtk_font_button_get_font_name()".
284
285 * src/gtk/x11gui.c (message_beep): use "gdk_display_beep()".
286
287 2018-02-19 Hiroyuki Ito <ZXB01226 at nifty.com>
288
289 * src/math/math_scanner.c (math_scanner_get_token): support
290 shell-like-comment.
291
292 2018-02-17 Hiroyuki Ito <ZXB01226 at nifty.com>
293
294 * src/gtk/x11file.c (set_text_to_source_buffer): added.
295 (MathTextDialogChangeInputType, MathTextDialogSetup)
296 (copy_entry_to_text): use "set_text_to_source_buffer().
297
298 2018-02-15 Hiroyuki Ito <ZXB01226 at nifty.com>
299
300 * src/gtk/completion_info.h: added.
301
302 * src/gtk/completion_info.c: added.
303
304 * src/gtk/create_const_info.rb: added.
305
306 * src/gtk/create_func_info.rb: added.
307
308 2018-02-11 Hiroyuki Ito <ZXB01226 at nifty.com>
309
310 * src/odata.c (odata_get_functions, odata_get_constants)
311 (get_functions, get_constants): added.
312 (file2d): add fields "functions" and "constants".
313
314 2018-02-10 Hiroyuki Ito <ZXB01226 at nifty.com>
315
316 * src/gtk/x11file.c (FileDialogCloseCommon, MathTextDialogSetup)
317 (MathTextDialogClose, FileDialogSetup): save and restore
318 math-transformation intput type.
319
320 * src/gtk/ox11menu.c (menuinit): initialize
321 "Menulocal.math_input_mode".
322
323 * src/gtk/x11dialg.h (FileDialog): add member "math_input_tab".
324 (MathTextDialog): add member "input_tab".
325
326 * src/gtk/ox11menu.h (menulocal): add member "math_input_mode".
327
328 2018-02-09 Hiroyuki Ito <ZXB01226 at nifty.com>
329
330 * src/gtk/gtk_entry_completion.c (entry_completion_load): don't
331 save a string which includes line feed.
332
333 2018-02-08 Hiroyuki Ito <ZXB01226 at nifty.com>
334
335 * src/gtk/gtk_action.c (create_application_window): don't use
336 appmenu on Windows.
337
338 * src/gtk/x11file.c (set_escaped_str): added.
339 (file_list_set_val, MathDialogSetupItem): use "set_escaped_str()".
340 (MathTextDialogSetup): don't use mnemonic label.
341
342 2018-02-07 Hiroyuki Ito <ZXB01226 at nifty.com>
343
344 * src/gtk/gtk_widget.c (create_text_view_with_line_number): use
345 "GtkSourceview".
346
347 * configure.ac: ckeck "gtksourceview-3.0".
348
349 * src/gtk/x11menu.c (menu_undo_common, menu_undo_internal): added.
350 (menu_undo): use "menu_undo_common()".
351 (menu_delete_undo): check undo id.
352 (menu_save_undo_single, menu_save_undo): return undo id.
353 (undo_info_push): save undo id.
354
355 2018-02-06 Hiroyuki Ito <ZXB01226 at nifty.com>
356
357 * src/gtk/x11file.c: add multi line input feature for math-transformations.
358
359 2018-02-03 Hiroyuki Ito <ZXB01226 at nifty.com>
360
361 * src/omerge.c (get_mtime): removed.
362 (read_gra): check not only "st_mtime" but "st_size".
363
364 2018-02-02 Hiroyuki Ito <ZXB01226 at nifty.com>
365
366 * src/omerge.c (OLD_GRA_HEADER): added.
367 (USE_MERGE_CACHE): added.
368 (gra_data_new, gra_data_free, gra_cache_new, gra_cache_get)
369 (gra_cache_free, gra_cache_init, read_new_gra_file)
370 (read_old_gra_file, read_gra_file, dup_cpar, draw_gra)
371 (free_cache, read_gra, merge_cache_clear, draw_gra_data): added.
372 (mergedraw): use "read_gra()" when "USE_MERGE_CACHE" is true.
373 (gra_info): added.
374
375 2018-01-30 Hiroyuki Ito <ZXB01226 at nifty.com>
376
377 * src/gtk/x11commn.c (check_ref_axis, file_auto_scale): added.
378 (FileAutoScale): don't save undo information.
379
380 2018-01-29 Hiroyuki Ito <ZXB01226 at nifty.com>
381
382 * src/gtk/x11menu.c (application): call "CmViewerDraw()" when
383 "LoadNgpFile()" is not called.
384
385 * src/gtk/x11commn.c (file_auto_scale): added.
386 (FileAutoScale): use the function "file_auto_scale()".
387
388 2018-01-27 Hiroyuki Ito <ZXB01226 at nifty.com>
389
390 * src/math/math_basic_function.c (math_func_m, math_func_rm):
391 accepts negative index.
392 (math_func_cm): add 2nd argument.
393
394 2018-01-26 Hiroyuki Ito <ZXB01226 at nifty.com>
395
396 * src/gtk/x11gui.c (FileSelectionDialog): use
397 "gtk_file_chooser_set_extra_widget()" instead of
398 "gtk_box_pack_start()".
399
400 * src/odata.c (file_draw_line, file_draw_rect, file_draw_arc):
401 always restore current point.
402
403 2018-01-25 Hiroyuki Ito <ZXB01226 at nifty.com>
404
405 * src/gtk/x11graph.c (CmGraphShell): use "set_graph_modified()"
406 instead of "set_graph_modified_gra()".
407
408 2018-01-21 Hiroyuki Ito <ZXB01226 at nifty.com>
409
410 * src/math/math_basic_function.c (math_func_am)
411 (math_func_array_average, math_func_array_stdevp)
412 (math_func_array_stdev): added.
413
414 2018-01-20 Hiroyuki Ito <ZXB01226 at nifty.com>
415
416 * src/odata.c (file_draw_line): added.
417
418 2018-01-19 Hiroyuki Ito <ZXB01226 at nifty.com>
419
420 * src/gtk/x11file.c (set_headline_table_array)
421 (set_headline_table): check maximum column.
422
423 * src/odata.c (column_array_push, column_array_clear): added.
424 (getdataarray): use "column_array_clear()" and
425 "column_array_push()".
426
427 * src/math/math_basic_function.c (math_func_push): use
428 "math_equation_push_array_val()".
429
430 * src/math/math_equation.c (math_equation_push_array_val): added.
431
432 2018-01-18 Hiroyuki Ito <ZXB01226 at nifty.com>
433
434 * src/odata.c (getdataarray): call the function
435 "set_column_array()".
436 (set_column_array): call the function
437 "math_equation_clear_array()".
438 (set_column_array): check the parameter "id".
439
440 * src/math/math_basic_function.c (math_func_array_clear): added.
441 (math_func_array_sum): added.
442 (math_func_array_max, math_func_array_min): added.
443 (math_func_array_compact): added.
444
445 * src/math/math_equation.c (math_equation_clear_array): added.
446
447 2018-01-17 Hiroyuki Ito <ZXB01226 at nifty.com>
448
449 * src/odata.c (getposition): use "getposition2()" and
450 "_f2dtransf()".
451 (f2dtransf): use "_f2dtransf()".
452 (_f2dtransf): return integer.
453
454 2018-01-16 Hiroyuki Ito <ZXB01226 at nifty.com>
455
456 * src/odata.c (f2ddata, f2dlocal): add member "column_array_id_x"
457 and "column_array_id_y".
458 (opendata): initialize "fp->column_array_id_x" and
459 "fp->column_array_id_y".
460 (f2dputmath): check "column" array.
461 (f2dinit): initialize "f2dlocal->column_array_id_x" and
462 "f2dlocal->column_array_id_y".
463 (set_column_array): added.
464 (get_data_from_source): use the function "set_column_array()".
465 (file_draw_mark): added.
466
467 2018-01-14 Hiroyuki Ito <ZXB01226 at nifty.com>
468
469 * src/odata.c (file_draw_arc, file_draw_rect): added.
470 (FileFunc): add drawing functions.
471 (opendata): initialize "fp->GC".
472 (f2ddraw): set "fp->GC".
473 (file_draw_rect, file_draw_arc): check the variable "fp".
474
475 * src/gra.c (GRAcurrent_point): added.
476
477 * src/odraw.c (curve_expand, curve_expand_points): moved from
478 "opath.c".
479
480 * src/opath.c (curve_expand_points): change parameters.
481 (opath_curve_expand_points): added.
482 (arrowdraw, arrowbbox, point_match): use
483 "opath_curve_expand_points()".
484
485 2018-01-05 Hiroyuki Ito <ZXB01226 at nifty.com>
486
487 * addin/gimg2gra.c (gra_save, fputcolor): don't draw fully
488 transparent color information and image.
489
490 2017-12-31 Hiroyuki Ito <ZXB01226 at nifty.com>
491
492 * src/gtk/x11commn.c (FileAutoScale): save undo information.
493
494 2017-12-27 Hiroyuki Ito <ZXB01226 at nifty.com>
495
496 * src/odata.c (ofile_create_math_equation): use "STDEVPX" and
497 "STDEVPY" instead of "SGX" and "SGY".
498 (f2dstat): add fields "dstdevpx", "dstdevpyy", "dstdevx" and
499 "dstdevy".
500
501 2017-12-26 Hiroyuki Ito <ZXB01226 at nifty.com>
502
503 * src/math/math_basic_function.c (math_func_sumsq): added.
504
505 2017-12-21 Hiroyuki Ito <ZXB01226 at nifty.com>
506
507 * src/gtk/x11view.c (create_axis): use "menu_undo()" to cancel
508 creation of instances.
509
510 * src/gtk/x11merge.c (CmMergeOpen): use "menu_undo()" to cancel
511 edit.
512 (CmMergeUpdate): call "MergeWinUpdate()" only when merge objects
513 are updated.
514
515 * src/gtk/x11file.c (CmFileHistory, CmRangeAdd): use "menu_undo()"
516 instead of "menu_delete_undo()" to cancel creation of an instance.
517 (FileWinFileUpdate): don't consider "IDDELETE".
518
519 * src/gtk/x11axis.c (SectionDialogGrid): use "menu_undo()" to
520 cancel edit.
521 (CmAxisNewFrame, CmAxisNewSection, CmAxisNewCross)
522 (CmAxisNewSingle, CmAxisGridNew): use "menu_undo()" to cancel
523 creation.
524 (CmAxisUpdate): check the returned value of the function
525 "DialogExecute()" is "IDCANCEL" or not.
526
527 2017-12-20 Hiroyuki Ito <ZXB01226 at nifty.com>
528
529 * src/gtk/x11view.c (new_merge_obj, new_file_obj)
530 (create_single_axis, create_axis): don't consider "IDDELETE".
531 (ViewUpdate): remove codes related to "IDDELETE".
532
533 2017-12-19 Hiroyuki Ito <ZXB01226 at nifty.com>
534
535 * src/gtk/x11file.c (CmFileMath): check the variable
536 "modified".
537 (MathTextDialog, MathDialog): initialize "modified" member
538 variable.
539 (MathTextDialogClose, MathDialogList): set "modified" member
540 variable.
541
542 * src/gtk/x11dialg.h (MathDialog, MathTextDialog): add member
543 "modified".
544
545 2017-12-14 Hiroyuki Ito <ZXB01226 at nifty.com>
546
547 * src/gtk/x11view.c (ViewUpdate): redraw only when the graph is
548 modified.
549
550 * src/gtk/x11axis.c (select_type): redraw data object when "type"
551 field is changed.
552
553 2017-12-13 Hiroyuki Ito <ZXB01226 at nifty.com>
554
555 * src/gtk/x11file.c (CmFileNew): removed.
556 (update_file_obj_multi): "modified" is always true when "IDDELETE"
557 is returned;
558
559 2017-12-12 Hiroyuki Ito <ZXB01226 at nifty.com>
560
561 * src/gtk/x11menu.c (set_undo_menu_label): update undo and redo
562 menu label when use GtkBuilder.
563
564 * src/gtk/x11file.c (update_file_obj_multi): call
565 "data_save_undo()" befor call "DialogExecute()".
566 (update_file_obj_multi): return modified or not.
567
568 * src/gtk/x11menu.c (MODIFIED_TYPE_UNMODIFIED): added.
569 (undo_check_modified): call "set_graph_modified()" only when
570 "modified_saved"is TRUE.
571
572 * src/gtk/x11menu.h (MENU_UNDO_TYPE): add "UNDO_TYPE_DUMMY".
573
574 * src/gtk/x11view.c (CmEditMenuCB): check "Menulock" and "Globallock".
575
576 * src/gtk/gtk_subwin.c (update): call "d->undo_save" if available.
577 (update): always call "set_graph_modified()" after call
578 "DialogExecute()".
579 (update): use "menu_undo(FALSE)" instead of "menu_delete_undo()".
580
581 2017-12-11 Hiroyuki Ito <ZXB01226 at nifty.com>
582
583 * src/gtk/gtk_subwin.c (update): don't call "d->update()" if the
584 returned value of the function "DialogExecute()" is "IDCANCEL".
585
586 * src/gtk/x11file.c (FitDialogResult): use "markup_message_box()".
587 (select_type): check the returned value of the function
588 "show_fit_dialog()".
589 (FileWinFileUpdate): don't call "d->update()" if the returned
590 value of the function "DialogExecute()" is "IDCANCEL".
591
592 * src/gtk/x11gui.c (markup_message_box): added.
593 (message_box): use "markup_message_box()".
594
595 2017-12-07 Hiroyuki Ito <ZXB01226 at nifty.com>
596
597 * src/omerge.c (set_bbox): added.
598 (mergebbox, mergemove, mergezoom, mergegeometry): use
599 "set_bbox()".
600
601 2017-12-06 Hiroyuki Ito <ZXB01226 at nifty.com>
602
603 * src/omerge.c (get_mtime): added.
604 (mergedraw): check mtime.
605 (mergemove, mergegeometry): use saved bounding box.
606
607 * src/odata.c (f2dredraw): check the returned value of the function "f2ddraw()".
608
609 2017-12-05 Hiroyuki Ito <ZXB01226 at nifty.com>
610
611 * src/gtk/x11merge.c (MergeWinUpdate): call "draw_notify()".
612
613 * src/osystem.c (system_set_draw_notify_func, system_draw_notify):
614 added.
615
616 * src/omerge.c (mergeredraw): call "system_draw_notify()".
617
618 * src/odata.c (f2dredraw): call "system_draw_notify()".
619
620 * src/gtk/x11view.c (graph_dropped): don't call "CmViewerDraw()".
621
622 * src/gtk/x11menu.c (application): call "system_set_draw_notify_func()".
623 (UpdateAll2): add 2nd argment.
624 (ChangePage): call "draw_notify()".
625
626 * src/gtk/x11graph.c (CmGraphNewMenu): call "UpdateAll2()" instead
627 of "UpdateAll()".
628
629 * src/gtk/x11view.c (Draw): call "draw_notify()".
630
631 * src/gtk/x11menu.c (draw_notify): added.
632
633 * src/gtk/x11menu.h (FileDrawFlag): added.
634
635 * src/gtk/x11file.c (FileWinUpdate): call "draw_notify()".
636
637 * src/gtk/gtk_subwin.c (update): redraw flag is now "FILE_DRAW_NOTIFY".
638
639 * src/gtk/data/css/ngraph.css: add definition of "draw_notify" class.
640
641 2017-12-04 Hiroyuki Ito <ZXB01226 at nifty.com>
642
643 * src/gtk/x11file.c (CmFileHistory, CmFileNew, CmFileOpen)
644 (FileWinFileCopy, FileWinFileCopy2): don't redraw.
645
646 * src/gtk/x11lgnd.c (LegendWinUpdate): add 3rd argument.
647
648 * src/gtk/x11merge.c (MergeWinUpdate): add 3rd argument.
649
650 * src/gtk/x11file.c (FileWinUpdate): add 3rd argument.
651
652 * src/gtk/x11axis.c (AxisWinUpdate): add 3rd argument.
653
654 * src/gtk/x11lgnd.c (TextListUpdate, MarkListUpdate)
655 (RectListUpdate, ArcListUpdate, PathListUpdate): add 3rd argument.
656 (ObjListUpdate): redraw object depend on the 3rd parameter.
657
658 2017-12-02 Hiroyuki Ito <ZXB01226 at nifty.com>
659
660 * src/gtk/x11file.c (FileWinFileDraw): save undo information.
661
662 * src/gtk/x11merge.c (MergeWinUpdate): draw merge object.
663
664 * src/gtk/x11menu.c (UpdateAll): call only "UpdateAll2()".
665 (check_update_obj): added.
666 (UpdateAll2): use "check_update_obj()".
667
668 * src/gtk/x11file.c (FileWinFileDraw): don't call "CmViewerDraw()".
669 (FileWinUpdate): draw data object.
670
671 * src/gtk/x11axis.c (AxisWinUpdate): draw axis, axisgrid and data
672 objects.
673
674 2017-12-01 Hiroyuki Ito <ZXB01226 at nifty.com>
675
676 * src/gtk/x11gui.c (message_beep): call "gdk_beep()" when the
677 variable "parent" is NULL.
678
679 2017-11-30 Hiroyuki Ito <ZXB01226 at nifty.com>
680
681 * src/gtk/x11gui.c (message_beep): use "gdk_window_beep()" instead
682 of "gdk_beep()".
683 (fsok): use "message_beep()" instead of "gdk_beep()".
684
685 2017-11-29 Hiroyuki Ito <ZXB01226 at nifty.com>
686
687 * addin/timer.nsc: execute "gra::flush".
688
689 * addin/img2gra.nsc: execute "gra::flush".
690
691 2017-11-27 Hiroyuki Ito <ZXB01226 at nifty.com>
692
693 * src/gtk/x11menu.c (reset_graph_modified): call "reset_modified_info()".
694 (undo_info_push): initialize the member "modified".
695 (undo_check_modified): added.
696 (menu_undo, menu_redo): save the modified information.
697 (get_graph_modified): return "Menulocal.modified".
698 (set_graph_modified_gra, reset_modified_info): added.
699
700 * src/gtk/x11graph.c (CmGraphShell, CmGraphSwitch, CmGraphPage):
701 call "set_graph_modified_gra()" instead of "set_graph_modified()".
702
703 * src/gtk/ox11menu.c (menuinit): initialize "Menulocal.modified".
704 (mxmodified): set value to "Menulocal.modified".
705
706 2017-11-09 Hiroyuki Ito <ZXB01226 at nifty.com>
707
708 * src/math/math_parser.c (parse_primary_expression): the
709 limitation of the length is not applied when the variable is start
710 with the character '_'.
711
712 2017-10-27 Hiroyuki Ito <ZXB01226 at nifty.com>
713
714 * src/math/math_scanner.c (math_scanner_get_token): accepts '_' as
715 the first character of a symbol.
716
717 2017-10-12 Hiroyuki Ito <ZXB01226 at nifty.com>
718
719 * src/gtk/x11print.c (CmOutputPrinter): fix memory leak.
720
721 2017-10-03 Hiroyuki Ito <ZXB01226 at nifty.com>
722
723 * src/gtk/ox11menu.c (create_layer): added.
724 (init_layer): use "create_layer()".
725
726 2017-09-30 Hiroyuki Ito <ZXB01226 at nifty.com>
727
728 * src/gra.c (GRAtextextent, GRAdrawtext): use "g_strndup()"
729 instead of "g_malloc()" and "strncpy()".
730 (GRAtextextent): fix calculation of the bounding-box.
731
732 2017-09-28 Hiroyuki Ito <ZXB01226 at nifty.com>
733
734 * src/gtk/x11commn.c (get_save_opt): check source field of data
735 objects.
736
737 2017-09-25 Hiroyuki Ito <ZXB01226 at nifty.com>
738
739 * src/gtk/ox11menu.c (MenuConfigToggleView): add "show_grid" configration.
740
741 * src/gtk/x11menu.c (toggle_view): add case for MenuIdToggleGridLine.
742 (ViewMenu): agg grid menu item.
743
744 * src/gtk/x11view.c (draw_grid): added.
745
746 2017-09-22 Hiroyuki Ito <ZXB01226 at nifty.com>
747
748 * src/gtk/x11menu.c (UpdateAll2): add parameter.
749
750 * src/gtk/x11lgnd.c (LegendWinUpdate): add first parameter.
751
752 2017-09-18 Hiroyuki Ito <ZXB01226 at nifty.com>
753
754 * src/gtk/x11menu.c (UpdateAll): don't redraw legends.
755
756 2017-09-12 Hiroyuki Ito <ZXB01226 at nifty.com>
757
758 * src/gtk/x11gui.c (DialogExecute): dont connect "key-press-event"
759 signal (use CSS).
760
761 2017-09-11 Hiroyuki Ito <ZXB01226 at nifty.com>
762
763 * src/gtk/x11dialg.c (CopyDialog, SelectDialog): add "title" parameter.
764
765 * src/gtk/x11commn.c (ProgressDialogCreate): use predefined function "gtk_true()".
766
767 * src/gtk/x11gui.c (DialogExecute): remove redundant call of the
768 function "gtk_window_set_title()".
769 (DialogExecute): use predefined function "gtk_true()".
770
771 2017-09-07 Hiroyuki Ito <ZXB01226 at nifty.com>
772
773 * src/gtk/ox11menu.c (MenuConfigMisc): add custom palette support.
774 (add_color_ary_to_array, menu_config_set_custom_palette)
775 (init_custom_palette): added.
776 (menu_save_config_sub, mgtkloadconfig, menulocal_finalize)
777 (menuinit): add custom palette support.
778
779 * src/gtk/gtk_widget.c (add_default_color, add_default_gray)
780 (set_default_palette, show_color_dialog, set_custom_palette):
781 added.
782 (create_color_button, select_obj_color): add custom palette
783 support.
784
785 * src/gtk/x11opt.c (edit_custom_palette, save_custom_palette)
786 (create_custom_palette_buttons): added.
787 (MiscDialogSetup, MiscDialogClose, MiscDialogSetupItem): add
788 custom palette support.
789
790 2017-09-06 Hiroyuki Ito <ZXB01226 at nifty.com>
791
792 * src/object.c (arraycmp, arraycpy): added.
793
794 2017-09-05 Hiroyuki Ito <ZXB01226 at nifty.com>
795
796 * src/gtk/x11view.c (ViewerEvLButtonUp): don't call "UpdateAll()".
797 (check_last_insts, focus_new_insts): static function.
798 (focus_new_insts): save created objects.
799
800 * src/odata.c (f2dredraw): don't call "ignorestdio()" and "restorestdio()".
801
802 * src/gtk/ox11menu.c (mx_redraw): call "ignorestdio()" and "restorestdio()".
803
804 * src/odata.c (f2derror): use snprintf() instead of sprintf().
805
806 2017-09-04 Hiroyuki Ito <ZXB01226 at nifty.com>
807
808 * src/gtk/x11view.c (CmEditMenuCB): call the function
809 "set_focus_sensitivity()".
810
811 * src/omerge.c (mergeredraw): draw a rectangle instead of a image.
812
813 2017-09-03 Hiroyuki Ito <ZXB01226 at nifty.com>
814
815 * src/gtk/x11axis.c (axis_save_undo): save undo information of the
816 data object.
817
818 * src/gtk/ox11menu.c (mx_redraw): use the function "GRArederaw()".
819
820 * src/gra.c (_GRAredraw): now static function.
821
822 * src/gtk/x11graph.c (CmGraphShell): call "set_graph_modified()".
823
824 2017-09-02 Hiroyuki Ito <ZXB01226 at nifty.com>
825
826 * src/object.c (arraydup): bug fix: array->data can be NULL.
827
828 2017-09-01 Hiroyuki Ito <ZXB01226 at nifty.com>
829
830 * src/odata.c (f2dredraw): call "ignorestdio()" and "restorestdio()".
831
832 * src/gtk/x11lgnd.c (ObjListUpdate): set "NgraphApp.Viewer.allclear" as TRUE.
833
834 * src/gtk/x11view.c (mouse_down_move_data, Evaluate): call "UpdateAll()".
835
836 * src/gtk/x11commn.c (GetPageSettingsFromGRA): check alias name
837 and duplications.
838
839 * src/object.c (arrayuniq_all_str): added.
840
841 2017-08-30 Hiroyuki Ito <ZXB01226 at nifty.com>
842
843 * src/gtk/gtk_subwin.c (update_viewer): added.
844
845 * src/gtk/x11view.c (create_pix): dont set
846 "Menulocal.local->cairo".
847
848 * src/gtk/x11menu.c (script_exec): call "UpdateAll()" instead of
849 "UpdateAll2()".
850
851 * src/gtk/x11lgnd.c (ObjListUpdate): call "ViewerWinUpdate()".
852
853 * src/gtk/x11commn.c (LoadNgpFile): call "CmViewerDraw()".
854
855 2017-08-27 Hiroyuki Ito <ZXB01226 at nifty.com>
856
857 * src/gtk/x11view.c (create_layers): added.
858
859 * src/gtk/ogra2cairo.c (set_cairo_antialias): added.
860
861 * src/ogra.c (oGRAdrawparent, oGRAdraw): call "GRAlayer()".
862
863 * src/gra.c (GRAlayer): added.
864
865 2017-08-26 Hiroyuki Ito <ZXB01226 at nifty.com>
866
867 * src/gtk/x11view.c (ViewerEvPaint): draw background and
868 foreground images.
869 (update_bg): added.
870 (create_pix): create background image.
871 (draw_paper_frame): removed.
872
873 * src/gtk/x11opt.c (ViewerDialogClose): call "update_bg()" anf
874 "UpdateAll2()" when background color is changed.
875
876 * src/gtk/ox11menu.c (mx_clear): fill "empty" image.
877
878 * src/odata.c (file_alpha): add "break" statement.
879
880 2017-08-18 Hiroyuki Ito <ZXB01226 at nifty.com>
881
882 * src/gtk/x11view.c (get_focused_obj_array): added.
883
884 * src/gtk/x11file.c (data_save_undo): added.
885
886 * src/gtk/x11axis.c (axis_save_undo): added.
887
888 * src/gtk/x11menu.c (menu_redo, menu_undo, menu_clear_undo)
889 (menu_delete_undo, menu_save_undo): save undo informations.
890 (menu_save_undo_single): added.
891 (set_undo_menu_label): added.
892 (undo_info_pop, undo_info_push): added.
893 (menu_undo_iteration): add second parameter.
894 (menu_check_undo, menu_check_redo): check undo informations.
895
896 * src/gtk/x11menu.h (MENU_UNDO_TYPE): added.
897
898 2017-08-12 Hiroyuki Ito <ZXB01226 at nifty.com>
899
900 * src/gtk/x11axis.c (axis_check_history): added.
901
902 2017-08-11 Hiroyuki Ito <ZXB01226 at nifty.com>
903
904 * src/gtk/x11lgnd.c (legend_menu_update_object): added.
905 (CmLineUpdate, CmRectUpdate, CmArcUpdate, CmMarkUpdate)
906 (CmTextUpdate): use "legend_menu_update_object()".
907 (legend_menu_delete_object): added.
908 (CmLineDel, CmRectDel, CmArcDel, CmMarkDel, CmTextDel): use
909 "legend_menu_delete_object()".
910
911 2017-08-10 Hiroyuki Ito <ZXB01226 at nifty.com>
912
913 * src/object.c: add undo related functions.
914
915 2017-08-09 Hiroyuki Ito <ZXB01226 at nifty.com>
916
917 * src/odata.c (data_inst_dup, data_inst_free): added.
918
919 * src/omerge.c (merge_inst_dup, merge_inst_free): added.
920
921 * src/ofit.c (fit_inst_dup, fit_inst_free, create_math_equation): added.
922 (fitput): use "create_math_equation()".
923
924 2017-08-08 Hiroyuki Ito <ZXB01226 at nifty.com>
925
926 * src/gtk/x11view.c (move_objects): added.
927 (mouse_up_drag, ViewerEvKeyUp): use "move_objects()".
928
929 2017-07-25 Hiroyuki Ito <ZXB01226 at nifty.com>
930
931 * addin/gimg2gra.c (create_widgets): added.
932 (main): use create_widgets().
933 (create_widgets): use gdk_pixbuf_new_from_file() and
934 gtk_image_new_from_pixbuf() instead of gtk_image_new_from_file().
935
936 2017-06-23 Hiroyuki Ito <ZXB01226 at nifty.com>
937
938 * src/gtk/init.c (exec_console): use "system" to execute xterm on
939 macOS.
940
941 * src/otext.c (textmatch): fix point coordinates calculation.
942
943 2017-06-08 Hiroyuki Ito <ZXB01226 at nifty.com>
944
945 * src/odata.c (getdata_skip_step): bug fix: use "rstep" instead of
946 "hskip".
947
948 2017-06-07 Hiroyuki Ito <ZXB01226 at nifty.com>
949
950 * src/gtk/x11file.c (CmRangeAdd): default plot type is "line" when
951 data source is "range".
952
953 2017-05-25 Hiroyuki Ito <ZXB01226 at nifty.com>
954
955 * src/gtk/x11menu.c (create_recent_menu): use RECENT_CHOOSER_LIMIT.
956
957 * src/gtk/gtk_common.h (RECENT_CHOOSER_LIMIT): added.
958
959 2017-05-16 Hiroyuki Ito <ZXB01226 at nifty.com>
960
961 * src/gtk/ox11menu.h (paper_id): add PAPER_ID_NORMAL and
962 PAPER_ID_WIDE.
963
964
965 * src/gtk/x11graph.c (pagelist): add "normal display" and "wide
966 display".
967
968 2017-04-12 Hiroyuki Ito <ZXB01226 at nifty.com>
969
970 * src/oiarray.c (iarray_sdev): check the value befor call sqrt.
971
972 * src/odata.c (f2dstat_sub, set_const): check the value befor call
973 sqrt.
974
975 * src/odarray.c (darray_sdev): check the value befor call sqrt.
976
977 2017-03-31 Hiroyuki Ito <ZXB01226 at nifty.com>
978
979 * src/ofit.c (show_poly_equation): improve tne notation of an
980 equation.
981
982 2017-03-30 Hiroyuki Ito <ZXB01226 at nifty.com>
983
984 * src/nstring.c (get_printf_format_str): check '^' flag.
985 (str_to_pow): added.
986 (add_printf_formated_str): support '^' flag.
987
988 2017-03-03 Hiroyuki Ito <ZXB01226 at nifty.com>
989
990 * src/gtk/gtk_action.c (create_application_window): set
991 G_APPLICATION_NON_UNIQUE flag to GtkApplication.
992
993 * src/gtk/x11gui.c (FileSelectionDialog): don't use global variable.
994
995 2017-03-02 Hiroyuki Ito <ZXB01226 at nifty.com>
996
997 * src/gtk/x11menu.c (setup_toolbar): added.
998 (create_toplevel_window): call "setup_toolbar()" before realize the window.
999
1000 * src/gtk/x11commn.c (ProgressDialogCreate): don't destory existent widget.
1001 (ProgressDialogFinalize): don't destory widget.
1002
1003 2017-03-01 Hiroyuki Ito <ZXB01226 at nifty.com>
1004
1005 * src/odata.c (getdataarray, f2dcolumn_file): remove extraneous parentheses.
1006
1007 * src/math/math_parser.c (my_get_token): remove duplicate 'const'.
1008
1009 2017-02-26 Hiroyuki Ito <ZXB01226 at nifty.com>
1010
1011 * src/gtk/x11menu.c (create_toolbar, create_menu_sub): use
1012 "gtk_image_new_from_resource()".
1013
1014 * src/gtk/x11lgnd.c (LegendWinState): use
1015 "gtk_image_new_from_resource()".
1016
1017 * src/gtk/gtk_widget.c (create_image_from_file): removed.
1018
1019 * src/gtk/init.c (load_css): use
1020 "gtk_css_provider_load_from_resource()".
1021
1022 * src/gtk/gtk_subwin.c (sub_window_create): use
1023 "gdk_pixbuf_new_from_resource()".
1024
1025 * src/gtk/gtk_action.c (create_application_window): add
1026 GtkShortcutsWindow.
1027 (help_overlay_action): app menu is automatically generated by
1028 GtkApplication.
1029
1030 * src/gtk/dir_defs.h: remove "PIXMAPDIR".
1031
1032 * src/gtk/data/ngraph.resources.xml: add resource files as sources.
1033
1034 2017-02-24 Hiroyuki Ito <ZXB01226 at nifty.com>
1035
1036 * src/gtk/x11menu.c (MainMenu): show "Help" menu because appmenu
1037 can be hidden.
1038
1039 * src/gtk/gtk_action.c (AppEntries): add "preference" action (for macOS).
1040 (create_application_window): divide appmenu resource file.
1041
1042 2017-02-22 Hiroyuki Ito <ZXB01226 at nifty.com>
1043
1044 * src/gtk/x11menu.c (create_toolbar): use
1045 "gtk_menu_tool_button_set_arrow_tooltip_text()".
1046 (SaveMenu, create_save_menu): added.
1047 (create_toolbar): use GtkMenuToolButton for save tool button.
1048 (create_save_menu): use GtkAction when "USE_GTK_BUILDER" is true.
1049
1050 2017-02-21 Hiroyuki Ito <ZXB01226 at nifty.com>
1051
1052 * src/gtk/x11file.c (FileWinState): use
1053 "tree_view_set_no_expand_column()".
1054
1055 * src/gtk/x11lgnd.c (LegendWinState): use
1056 "tree_view_set_no_expand_column()".
1057
1058 * src/gtk/gtk_liststore.c (tree_view_set_no_expand_column): added.
1059
1060 2017-02-17 Hiroyuki Ito <ZXB01226 at nifty.com>
1061
1062 * src/common.h (OSX): check OSX environment.
1063
1064 2017-02-16 Hiroyuki Ito <ZXB01226 at nifty.com>
1065
1066 * configure.ac: check OSX environment.
1067
1068 * src/gtk/x11menu.c (ObjectMenu): add "Object" menu.
1069
1070 2017-02-13 Hiroyuki Ito <ZXB01226 at nifty.com>
1071
1072 * src/gtk/x11lgnd.c (create_color_combo_box): add "Stroke" and
1073 "Fill" menu items under the each submenu.
1074
1075 2017-02-10 Hiroyuki Ito <ZXB01226 at nifty.com>
1076
1077 * configure.ac: remove GTK+2 support.
1078 (GTK3_REQUIRED_VERSION): support GTK+ 3.4.0 or later.
1079
1080 2017-02-09 Hiroyuki Ito <ZXB01226 at nifty.com>
1081
1082 * src/gtk/x11menu.c (MainMenu): remove "Help" menu (integrated to
1083 the app menu).
1084
1085 2017-02-08 Hiroyuki Ito <ZXB01226 at nifty.com>
1086
1087 * src/gtk/x11lgnd.c (Mlist): change step for mark size.
1088 (Tlist): change step size for font size.
1089
1090 * src/gtk/gtk_widget.c (create_spin_entry_type): change step size for font size.
1091
1092 * src/gtk/init.c (n_initialize): don't use "g_mem_set_vtable()".
1093
1094 * src/osystem.c (system_mem_profile): removed.
1095
1096 * src/common.h (MARK_TYPE_NUM): removed.
1097
1098 * src/gtk/gtk_subwin.c (do_popup): set "d->select" before call
1099 "gtk_menu_popup_at_pointer()".
1100
1101 * src/odata.c (line_number, add_func_sub, add_basic_func): added.
1102 (add_file_func, add_fit_func): use "add_func_sub()".
1103 (ofile_create_math_equation): call "add_basic_func()".
1104
1105 * src/ntime.c (mjd2gd): fix time calculation.
1106
1107 2017-02-05 Hiroyuki Ito <ZXB01226 at nifty.com>
1108
1109 * src/gtk/ox11dlg.c (get_toplevel_window): added.
1110
1111 * addin/spellchecker.rb (NgraphSpellchecker): save and restore
1112 dialog position.
1113
1114 2017-02-02 Hiroyuki Ito <ZXB01226 at nifty.com>
1115
1116 * src/gtk/x11view.c (do_popup): call "gtk_widget_realize()" when
1117 the popup menu is not realized.
1118
1119 2017-02-01 Hiroyuki Ito <ZXB01226 at nifty.com>
1120
1121 * src/gtk/x11lgnd.c (LegendArrowDialogScale): added.
1122 (LegendArrowDialogScaleW, LegendArrowDialogScaleL): use
1123 "LegendArrowDialogScale()".
1124
1125 2017-02-01 Hiroyuki Ito <ZXB01226 at nifty.com>
1126
1127 * plugins/ruby/ngraph.c (wrap_load_script): added.
1128 (load_script): use "wrap_load_script()" with "rb_protect()"
1129 instead of "rb_load_protect()".
1130
1131 * plugins/ruby.c (require_files): added.
1132 (ngraph_plugin_open_ruby): use "require_files()" with
1133 "rb_protect()".
1134
1135 2017-01-31 Hiroyuki Ito <ZXB01226 at nifty.com>
1136
1137 * src/gtk/gtk_combo.c (set_model): "gtk_cell_renderer_text_new()"
1138 shoud be called only when the variable "renderer" is true.
1139
1140 * plugins/ruby.c (ngraph_plugin_open_ruby): use "rb_protect()" to
1141 avoid exception.
1142
1143 2017-01-27 Hiroyuki Ito <ZXB01226 at nifty.com>
1144
1145 * src/gtk/x11menu.c (set_focus_sensitivity_sub): the merge object
1146 can be deleted and duplicated.
1147
1148 * addin/spellchecker.rb (NgraphSpellchecker#spell_check): use
1149 "buttons" and "response_button" fields of the Ngraph::Dialog
1150 object.
1151
1152 * src/gtk/x11gui.c (add_buttons): added.
1153 (DialogButton, DialogCombo, DialogComboEntry, DialogSpinEntry)
1154 (DialogCheck): use "add_buttons()".
1155
1156 * src/gtk/ox11dlg.c (dlg_get_buttons): added.
1157 (dlginput, dlgradio, dlgcombo, dlgspin, dlgcheck): use
1158 "dlg_get_buttons()".
1159 (dialog): add "buttons" and "response_button" fields.
1160
1161 2017-01-26 Hiroyuki Ito <ZXB01226 at nifty.com>
1162
1163 * plugins/ruby/ngraph.c (set_ngraph_obj_class_name): added.
1164 (get_ngraph_obj, add_obj_name_const): use "set_ngraph_obj_class_name()".
1165
1166 2017-01-25 Hiroyuki Ito <ZXB01226 at nifty.com>
1167
1168 * src/odata.c (f2dlocal_array_sub, f2dstat_array, f2dstat_range): removed.
1169 (f2dstat_sub): renamed from "f2dstat_file()".
1170 (f2dstat): always use "f2dstat_sub()".
1171 (opendata): "fp->mtime" is always 1 for the source type
1172 "DATA_SOURCE_ARRAY" and "DATA_SOURCE_RANGE".
1173
1174 2017-01-23 Hiroyuki Ito <ZXB01226 at nifty.com>
1175
1176 * src/math/math_parser.c (parse_primary_expression): now accepts
1177 two character variable.
1178
1179 * src/shell.c (nsleep): use g_thread.
1180
1181 * plugins/ruby/ngraph.c (nsleep): accepts real number (not only
1182 integer).
1183
1184 * src/shellux.c (cmsleep): accepts real number (not only integer).
1185
1186 2017-01-01 Hiroyuki Ito <ZXB01226 at nifty.com>
1187
1188 * plugins/ruby/Makefile.am: use "$(MAKE)" and "$(AM_MAKEFLAGS)".
1189
1190 * src/Makefile.am (ngraph_DEPENDENCIES): set dependency.
1191
1192 2016-12-30 Hiroyuki Ito <ZXB01226 at nifty.com>
1193
1194 * src/oio.c (io_open): check security.
1195
1196 2016-12-26 Hiroyuki Ito <ZXB01226 at nifty.com>
1197
1198 * src/gtk/gtk_widget.c (set_widget_font): use PangoFontDescription
1199 to make css string.
1200
1201 2016-12-23 Hiroyuki Ito <ZXB01226 at nifty.com>
1202
1203 * src/gtk/x11menu.c (create_icon): use image file for application
1204 icon (Windows).
1205
1206 * src/gtk/gtk_subwin.c (sub_window_create): use image file instead
1207 of xpm data.
1208
1209 * pixmap/Makefile.am (dist_pixmap_DATA): add application icons and
1210 48 dot window icons.
1211
1212 2016-12-13 Hiroyuki Ito <ZXB01226 at nifty.com>
1213
1214 * mingw/windows64.sh: use mingw package for the installation.
1215
1216 * src/gtk/init.c (set_dir_defs, set_path_env): add "BINDIR" to the
1217 windows "PATH" environment.
1218
1219 2016-11-29 Hiroyuki Ito <ZXB01226 at nifty.com>
1220
1221 * src/gtk/gtk_ruler.c (_Nruler): hold widget style and foreground
1222 color.
1223
1224 * initfile/Ngraph.ini.win (font): add "Malgun Gothic".
1225
1226 * debian/control (Build-Depends): depend on "libreadline-dev".
1227
1228 2016-11-28 Hiroyuki Ito <ZXB01226 at nifty.com>
1229
1230 * src/gtk/gtk_ruler.c (nruler_get_color): use cached color to
1231 avoid busy loop in the function "AppMainLoop()".
1232
1233 * src/gtk/x11menu.c (check_pending_event): removed (redundant
1234 event check).
1235
1236 2016-11-25 Hiroyuki Ito <ZXB01226 at nifty.com>
1237
1238 * src/gtk/ogra2x11.c (gtk_evloop): use "check_pending_event()"
1239 instead of "gtk_events_pending()".
1240
1241 2016-11-01 Hiroyuki Ito <ZXB01226 at nifty.com>
1242
1243 * src/gtk/gtk_subwin.c (popup_menu_position): not used if the
1244 version of GTK+ is greater or equal to 3.22.
1245
1246 * src/gtk/x11view.c (popup_menu_position): not used if the version
1247 of GTK+ is greater or equal to 3.22.
1248
1249 2016-10-26 Hiroyuki Ito <ZXB01226 at nifty.com>
1250
1251 * src/gtk/x11menu.c (defaultwindowconfig)
1252 (create_toplevel_window): use "gdk_monitor_get_geometry();" if the
1253 version of GTK+ is greater or equal to 3.22.
1254
1255 * src/gtk/x11lgnd.c (LegendArrowDialogScaleL)
1256 (LegendArrowDialogScaleW): use "gdk_window_invalidate_rect()" if
1257 the version of GTK+ is greater or equal to 3.22.
1258
1259 * src/gtk/x11view.c (do_popup): use "gtk_menu_popup_at_pointer()"
1260 if the version of GTK+ is greater or equal to 3.22.
1261 (mouse_down_zoom2): don't use "show_zoom_animation()" if the
1262 version of GTK+ is greater or equal to 3.22.
1263
1264 * src/gtk/gtk_subwin.c (do_popup): use
1265 "gtk_menu_popup_at_pointer()" if the version of GTK+ is greater or
1266 equal to 3.22.
1267
1268 2016-09-07 Hiroyuki Ito <ZXB01226 at nifty.com>
1269
1270 * src/gtk/x11menu.c (check_pending_event): added.
1271 (AppMainLoop, reset_event, ChkInterrupt): use "check_pending_event()".
1272
1273 2016-08-01 Hiroyuki Ito <ZXB01226 at nifty.com>
1274
1275 * src/gtk/gtk_widget.c (create_text_view_with_line_number): call
1276 "gtk_widget_set_margin_end()".
1277
1278 2016-07-29 Hiroyuki Ito <ZXB01226 at nifty.com>
1279
1280 * addin/cal.nsc: use "ncal" instead of "cal".
1281
1282 * src/gtk/gtk_widget.c (set_widget_font): us "*" as a selector.
1283
1284 * initfile/ngraph.css: fix selector and style.
1285
1286 2016-07-28 Hiroyuki Ito <ZXB01226 at nifty.com>
1287
1288 * src/shell.c (ngraphenvironment): check returned value of the
1289 function "g_strdup_printf()".
1290
1291 * src/oshell.c (cmdshell): functions "shellsavestdio()" and
1292 "shellrestorestdio()" must be called always.
1293
1294 2016-01-05 Hiroyuki Ito <ZXB01226 at nifty.com>
1295
1296 * debian/control (Build-Depends): depend on "libgsl-dev".
1297
1298 2016-01-01 Hiroyuki Ito <ZXB01226 at nifty.com>
1299
1300 * src/gtk/x11menu.c (create_toolbar): set label for radio tool
1301 buttons.
1302 (show_recent_dialog): check "Menulock" and "Globallock".
1303
1304 * src/gtk/gtk_subwin.c (spin_button_size_allocated)
1305 (start_editing): don't change allocated size.
1306
1307 * src/gtk/x11file.c (FileDialogClose): save range parameters.
1308
1309 2015-09-21 Hiroyuki Ito <ZXB01226 at nifty.com>
1310
1311 * src/math/math_expression.c: fix typo.
1312
1313 * src/math/math_expression.h (MATH_EXPRESSION_TYPE_DOUBLE): fix typo.
1314
1315 * src/math/math_equation.c (optimize_func_cb, check_const_sub): fix typo.
1316
1317 2015-08-19 Hiroyuki Ito <ZXB01226 at nifty.com>
1318
1319 * initfile/Ngraph.nsc: unset used variables.
1320
1321 * src/gtk/x11gui.c (FileSelectionDialog): call
1322 "gtk_file_chooser_set_local_only()".
1323
1324 * src/gtk/x11graph.c (DirectoryDialogSetup): call
1325 "gtk_file_chooser_set_local_only()".
1326
1327 2015-08-03 Hiroyuki Ito <ZXB01226 at nifty.com>
1328
1329 * src/gtk/gtk_action.c (ViewSidebarAction_activated)
1330 (ViewStatusbarAction_activated, ViewRulerAction_activated)
1331 (ViewScrollbarAction_activated)
1332 (ViewCommandToolbarAction_activated)
1333 (ViewToolboxAction_activated, ViewCrossGaugeAction_activated):
1334 check returned value of the function "toggle_view()".
1335 (ViewToggleSingleWindowModeAction_activated): check
1336 "Menulocal.single_window_mode".
1337
1338 * src/gtk/x11menu.c (toggle_view, CmReloadWindowConfig)
1339 (CmToggleSingleWindowMode): check "Menulock" and "Globallock".
1340 (toggle_view): return success or false.
1341
1342 2015-07-30 Hiroyuki Ito <ZXB01226 at nifty.com>
1343
1344 * src/osystem.c (WEB): The repository is moved from SourceForge to
1345 GitHub.
1346
1347 2015-07-15 Hiroyuki Ito <ZXB01226 at nifty.com>
1348
1349 * src/shell.c (expand): remove "WILD_PERIOD" flag.
1350
1351 * src/nconfig.c (replaceconfig, removeconfig): free "fil" when the
1352 variable "fptmp" is NULL.
1353
1354 * src/gtk/init.c (load_css): this function is used only when the
1355 vertsion of the GTK+ is greater or equal to 3.16.
1356
1357 * src/gtk/ox11menu.c (mx_show_lib_version): check
1358 "RL_VERSION_MAJOR" instead of "HAVE_READLINE_READLINE_H".
1359
1360 2015-07-14 Hiroyuki Ito <ZXB01226 at nifty.com>
1361
1362 * src/gtk/x11menu.c (create_cursor): use
1363 "gdk_cursor_new_for_display()" instead of "gdk_cursor_new()".
1364
1365 * src/gtk/x11info.c (InfoWinSetFont): use "set_widget_font()".
1366
1367 * src/gtk/x11file.c (HEADLINE_FONT_COLUMN): added.
1368 (create_preview_table): add font column.
1369 (update_table_visibility, set_headline_table_array)
1370 (set_headline_table): set font.
1371 (FileDialogSetup, ArrayDialogSetup): dont setup font.
1372
1373 * src/gtk/x11cood.c (CoordWinSetFont): use "set_widget_font()".
1374
1375 * src/gtk/ogra2x11.c (gtkwait_action): use
1376 "gdk_cursor_new_for_display()" instead of "gdk_cursor_new()".
1377
1378 * src/gtk/init.c (load_css): added.
1379 (n_initialize): use "load_css()".
1380
1381 * src/gtk/gtk_widget.c (set_widget_font): added.
1382 (text_view_with_line_number_set_font): use "set_widget_font()".
1383
1384 * src/gtk/gtk_ruler.c (nruler_get_color): remove 3rd parameter.
1385 (nruler_draw_ticks): use "gtk_render_background()".
1386
1387 2015-07-06 Hiroyuki Ito <ZXB01226 at nifty.com>
1388
1389 * src/gtk/init.c (n_initialize): load css file.
1390
1391 * initfile/ngraph.css: added.
1392
1393 * initfile/Makefile.am (dist_ngraphui_DATA): add "ngraph.css"
1394
1395 2015-07-05 Hiroyuki Ito <ZXB01226 at nifty.com>
1396
1397 * src/gtk/gtk_widget.c (set_linumber_color): not used if the
1398 vertsion of the GTK+ is greater or equal to 3.16.
1399
1400 * src/gtk/gtk_common.h (LINE_NUMBER_WIDGET_NAME): added.
1401
1402 2015-07-04 Hiroyuki Ito <ZXB01226 at nifty.com>
1403
1404 * src/math/math_expression.h: remove unnecessary definition of a
1405 variable "function_argument".
1406
1407 * src/gtk/gtk_widget.c (set_button_icon): do nothing when the
1408 vertsion of the GTK+ is greater or equal to 3.12.
1409 (set_linumber_color): use "GTK_STATE_FLAG_*" instead of
1410 "GTK_STATE_*".
1411
1412 2015-07-01 Hiroyuki Ito <ZXB01226 at nifty.com>
1413
1414 * src/gtk/gtk_liststore.c (add_line_style_item_to_cbox): use
1415 "g_strcmp0()" instead of "strcmp()".
1416
1417 2015-06-03 Hiroyuki Ito <ZXB01226 at nifty.com>
1418
1419 * src/gtk/init.c (n_save_shell_history): "HistoryFile" is not
1420 declared when "HAVE_READLINE_READLINE_H" is false.
1421
1422 2015-05-09 Hiroyuki Ito <ZXB01226 at nifty.com>
1423
1424 * use "void *" instead of "GtkAction *".
1425
1426 2015-04-03 Hiroyuki Ito <ZXB01226 at nifty.com>
1427
1428 * src/shell.c (cmdexec): don't call "check_interrupt()" and
1429 "reset_interrupt()".
1430
1431 2015-03-13 Hiroyuki Ito <ZXB01226 at nifty.com>
1432
1433 * src/shell.h: the function "set_signal()"is not used in Windows.
1434
1435 * src/oshell.c (cmdshell): signal is not used in Windows.
1436
1437 2015-03-06 Hiroyuki Ito <ZXB01226 at nifty.com>
1438
1439 * src/odata.c (set_data_progress): check not only "ninterrupt()"
1440 but "fp->interrupt".
1441 (file_calculate): "fp->interrupt" is true when "val->type" is
1442 "MATH_VALUE_INTERRUPT".
1443 (getdata_sub1): check "fp->interrupt".
1444
1445 * src/math/math_expression.c (math_expression_calculate): retain
1446 "val->type" when the type is "MATH_VALUE_INTERRUPT".
1447
1448 * src/math/math_basic_function.c (math_func_for)
1449 (math_func_while): return "MATH_VALUE_INTERRUPT" when interrupted.
1450
1451 * src/math/math_equation.h (MATH_VALUE_INTERRUPT): added.
1452
1453 * src/gtk/x11view.c (check_paint_lock): added.
1454
1455 * src/gtk/x11menu.h (NgraphApp): remove member "Interrupt".
1456
1457 * src/gtk/x11menu.c (kill_signal_handler): call "set_interrupt()".
1458 (AppMainLoop): don't reset interruption.
1459 (ChkInterrupt): call "check_interrupt()" when "DrawLock !=
1460 DrawLockDraw".
1461
1462 * src/gtk/x11commn.c (stop_btn_clicked): use "set_interrupt()".
1463 (ProgressDialogCreate): call "reset_interrupt()".
1464
1465 * src/gtk/x11axis.c (pos_edited_common, axis_prm_edited_common):
1466 call "menu_lock(FALSE)".
1467 (pos_y_edited, pos_x_edited): don't call "menu_lock(FALSE)".
1468
1469 2015-03-04 Hiroyuki Ito <ZXB01226 at nifty.com>
1470
1471 * src/oshell.c (int_handler): added.
1472 (cmdshell): save, set and restore signal handler for the "SIGINT"
1473 signal.
1474
1475 * src/shell.c (nsleep): use "reset_interrupt()" and
1476 "check_interrupt()".
1477 (set_signal): add 4th parameter.
1478 (set_interrupt, reset_interrupt, check_interrupt): added.
1479 (cmdexec): use "reset_interrupt()" and "check_interrupt()".
1480
1481 2015-02-28 Hiroyuki Ito <ZXB01226 at nifty.com>
1482
1483 * src/math/math_function.h.in: add function "while".
1484
1485 * src/math/math_basic_function.c (math_func_while): added.
1486 (math_func_for): check interruption.
1487
1488 2015-01-22 Hiroyuki Ito <ZXB01226 at nifty.com>
1489
1490 * doc/html/ja/math.html (特殊関数): update document.
1491
1492 * src/math/math_function.h.in: add function "mjd2unix".
1493
1494 * src/math/math_basic_function.c (math_func_mjd2unix): added.
1495
1496 2014-12-24 Hiroyuki Ito <ZXB01226 at nifty.com>
1497
1498 * src/gtk/x11axis.c (scale_tab_create): change label fron "File"
1499 to "Data".
1500
1501 2014-12-17 Hiroyuki Ito <ZXB01226 at nifty.com>
1502
1503 * addin/fitrslt.c (savescript, create_format_frame) :add "shadow"
1504 check button.
1505 (frame_toggled): added.
1506
1507 * addin/legend.c (savescript, create_option_frame): add "shadow"
1508 check button.
1509 (frame_toggled): added.
1510
1511 2014-12-13 Hiroyuki Ito <ZXB01226 at nifty.com>
1512
1513 * addin/fitrslt.nsc: use "get" command.
1514
1515 * addin/fitrslt.c (set_parameter): check variable "i".
1516 (set_parameter): use "data" object.
1517
1518 2014-11-20 Hiroyuki Ito <ZXB01226 at nifty.com>
1519
1520 * src/gtk/gtk_widget.c (_create_spin_entry)
1521 (create_direction_entry): call "gtk_entry_set_max_width_chars()".
1522
1523 2014-11-13 Hiroyuki Ito <ZXB01226 at nifty.com>
1524
1525 * src/gtk/x11view.c (graph_dropped): don't call "LoadDialog()".
1526
1527 * src/gtk/x11graph.c (LoadDialog): free "data->exdir" if
1528 necessary.
1529 (CmGraphLoad, CmGraphHistory): don't call "LoadDialog()".
1530
1531 * src/gtk/x11dialg.c (initdialog): initialize "DlgLoad.exdir".
1532
1533 * src/gtk/x11commn.c (LoadNgpFile): call "LoadDialog()".
1534
1535 2014-11-12 Hiroyuki Ito <ZXB01226 at nifty.com>
1536
1537 * src/oprm.c (addfontcontrol, remarkconv, prmload): support recent
1538 Ngraph objects.
1539
1540 * src/gtk/x11view.c (graph_dropped): don't load PRM file.
1541
1542 * src/gtk/x11menu.c (check_instance): call
1543 "set_axis_undo_button_sensitivity()".
1544 (application): don't load PRM file.
1545
1546 * src/gtk/x11graph.c (PrmDialogSetup, PrmDialogClose, PrmDialog):
1547 removed.
1548 (CmGraphLoad): don't load PRM file.
1549
1550 * src/gtk/x11dialg.c (initdialog): remove "PrmDialog".
1551
1552 * src/gtk/x11commn.c (GraphSave): don't consider PRM file.
1553 (LoadPrmFile): removed.
1554
1555 * src/gtk/ox11dlg.c (dlgconfirm, dlgmessage, dlginput)
1556 (dlgbutton, dlgradio, dlgcombo, dlgspin, dlgcheck): update title
1557 of the window.
1558
1559 * addin/load_prm.nsc: added.
1560
1561 2014-10-26 Hiroyuki Ito <ZXB01226 at nifty.com>
1562
1563 * src/gtk/x11menu.c (create_toolbar): use gettext to show
1564 tooltips.
1565
1566 2014-10-05 Hiroyuki Ito <ZXB01226 at nifty.com>
1567
1568 * src/gtk/x11menu.c (set_widget_visibility): call
1569 "set_toggle_action_widget_state()" twice when "USE_GTK_BUILDER" is
1570 false.
1571
1572 2014-10-03 Hiroyuki Ito <ZXB01226 at nifty.com>
1573
1574 * src/gtk/x11menu.c (create_toplevel_window): call
1575 "set_widget_visibility()" only once.
1576
1577 2014-10-02 Hiroyuki Ito <ZXB01226 at nifty.com>
1578
1579 * debian/rules (override_dh_auto_configure): add
1580 "--with-versioned-symbol" option.
1581
1582 * src/Makefile.am (libngraph_ldflags): use "vsymldflags".
1583
1584 * configure.ac (vsymldflags): add "--with-versioned-symbol" option.
1585
1586 2014-09-27 Hiroyuki Ito <ZXB01226 at nifty.com>
1587
1588 * src/gtk/x11view.c (ViewerWinSetup): check "d->popup".
1589
1590 * src/gtk/x11menu.c (setupwindow): check "NgraphApp.Viewer.popup".
1591 (create_menu_sub): don't call "gtk_application_add_accelerator()".
1592 (create_toplevel_window): don't call
1593 "gtk_window_set_has_resize_grip()".
1594
1595 * src/gtk/x11file.c (RangeDialogSetup): change width of numeric
1596 entries.
1597
1598 * src/gtk/gtk_action.c (create_application_window): create popup
1599 menu.
1600
1601 2014-09-05 Hiroyuki Ito <ZXB01226 at nifty.com>
1602
1603 * debian/libngraph0.install: added.
1604
1605 * debian/libngraph0-dev.install: added (renamed from "ngraph-gtk-dev").
1606
1607 * src/gtk/gtk_action.c (DataAddRecentFileAction_activated)
1608 (GraphRecentAction_activated): added.
1609
1610 * src/gtk/x11menu.c (create_recent_filter, show_recent_dialog):
1611 added.
1612 (create_recent_menu): use "create_recent_filter()".
1613
1614 2014-08-26 Hiroyuki Ito <ZXB01226 at nifty.com>
1615
1616 * src/gtk/x11menu.c (ActionWidget): add member "action".
1617 (ToolItem, MenuItem): add member "action_name".
1618 (add_addin_menu): added.
1619 (create_addin_menu): call "add_addin_menu()".
1620 (set_window_action_visibility): call "g_simple_action_set_enabled()".
1621 (clipboard_changed, unref_entry_history, get_subwindow_state):
1622 added.
1623 (save_entry_history): dont call "g_object_unref()".
1624 (toggle_view): added.
1625 (toggle_view_cb): use "toggle_view()".
1626 (set_toggle_action_widget_state): use "g_action_change_state()".
1627 (create_toolbar): call "gtk_actionable_set_action_name()".
1628 (create_menu_sub): initialize GActionMap.
1629 (create_toplevel_window): added.
1630 (application): use "create_toplevel_window()" and destroy
1631 "TopLevel" only when terminate signal is received.
1632 (script_exec, CmToggleSingleWindowMode): not static.
1633 (CmToggleSingleWindowMode): the variable "state" is given from the
1634 parameter "client_data" when the first parameter is NULL.
1635
1636 * src/gtk/ox11menu.c (mx_get_accel_map): use GtkApplication if necessary.
1637
1638 * src/gtk/x11view.c (ViewerWinClose): don't call "CloseGC()" and
1639 "CloseGRA()".
1640 (ViewerEvKeyDown): add case for "GDK_KEY_Return".
1641
1642 * src/gtk/x11menu.h (NgraphApp): remove members "ghistory" and
1643 "fhistory", add member "recent_manager".
1644
1645 * src/gtk/ox11menu.h (menulocal): remove member "ngpfilelist".
1646
1647 * src/gtk/gtk_action.h: added.
1648
1649 * src/gtk/gtk_action.c: added.
1650
1651 * initfile/menus.ui: added.
1652
1653 2014-08-18 Hiroyuki Ito <ZXB01226 at nifty.com>
1654
1655 * src/odata.c (getdata_skip_step): always return 0 when data
1656 source is "DATA_SOURCE_ARRAY" or "DATA_SOURCE_RANGE".
1657 (get_data_from_source): return 2 when remarked line.
1658 (getdata_sub1): call "getdata_sub2()" only when
1659 "get_data_from_source()" returns 0.
1660 (getdata2, getdataraw): continue loop when
1661 "get_data_from_source()" returns non zero.
1662
1663 2014-08-07 Hiroyuki Ito <ZXB01226 at nifty.com>
1664
1665 * addin/fft.c (read_data): use "fgets()" and "sscanf()" instead of
1666 "fscanf()".
1667
1668 2014-07-31 Hiroyuki Ito <ZXB01226 at nifty.com>
1669
1670 * src/gtk/x11menu.c (PlotAddMenu): add "recent data" menu item.
1671 (recent_filter): static function.
1672 (create_recent_menu): not static function.
1673
1674 * src/gtk/x11file.c (add_menu_list): add "recent data" menu item.
1675 (file_setup_item): check source type.
1676 (FileDialogSetupItem): remove third parameter.
1677 (FileDialogSetupCommon): check source type.
1678 (RangeDialogSetup): renamed from "FuncDialogSetup()".
1679 (ArrayDialogClose, FuncDialogClose): removed.
1680 (FileDialog): always "0FileDialogClose" is used.
1681 (FileDefDialog): initialize "source" member.
1682 (draw_type_pixbuf, start_editing_type): don't check the "source"
1683 field.
1684 (create_type_color_combo_box): remove fifth parameter.
1685
1686 * src/shell.c (gettok): second argument "len" is always
1687 initialized.
1688
1689 * src/oplot.c (ERR_INVALID_RANGE): added.
1690 (f2ddata): add members "range_min", "range_max" and "range_div".
1691 (opendata): initialize members "range_min", "range_max" and
1692 "range_div".
1693 (put_func): don't use the variable "is_fuinc".
1694 (f2dinit): initialize fields "range_min", "range_max" and
1695 "range_div".
1696 (hskipdata, getdata_skip_step, get_data_from_source): handle case
1697 for "PLOT_SOURCE_RANGE".
1698 (get_func_prm, get_func_value, funcout): removed.
1699 (f2dcolumn_range): added.
1700 (f2dopendata, f2dgetdata, f2dopendataraw): don't check the
1701 "source" field.
1702 (f2dstat_range): added.
1703 (f2dstat): use "f2dstat_range()".
1704 (f2dboundings_func, save_data_func): removed.
1705 (solve_equation, calc_fit_equation, get_fit_parameter): don't
1706 check the "source" field.
1707
1708 2014-07-30 Hiroyuki Ito <ZXB01226 at nifty.com>
1709
1710 * addin/fft.c (save_data): change numerical format of the output.
1711
1712 * src/gtk/gtk_subwin.c (create_popup_menu_sub): add case for
1713 "POP_UP_MENU_ITEM_TYPE_RECENT_DATA".
1714
1715 * src/gtk/x11commn.c (PlotFileArrayCB): removed.
1716
1717 * src/odarray.c (darray_modified): added.
1718 (odarray): "darray_modified()" is called for the "@" field.
1719
1720 * addin/fft.c (main, save_data, read_data): fix order of
1721 arguments.
1722
1723 2014-06-30 Hiroyuki Ito <ZXB01226 at nifty.com>
1724
1725 * src/oplot.c (f2ddraw): call "GRAview()".
1726
1727 2014-06-08 Hiroyuki Ito <ZXB01226 at nifty.com>
1728
1729 * src/oplot.c (open_array): check maximum value of the id.
1730
1731 * src/gtk/x11commn.c (del_darray): added.
1732 (DeleteDrawable): call "del_darray()".
1733 (store_file, save_array, save_merge, save_plot): added.
1734 (SaveParent): use "save_plot()" and "save_merge()".
1735
1736 2014-06-05 Hiroyuki Ito <ZXB01226 at nifty.com>
1737
1738 * debian/rules (XDG_RUNTIME_DIR): set environment variable
1739 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750043).
1740
1741 2014-06-02 Hiroyuki Ito <ZXB01226 at nifty.com>
1742
1743 * src/gtk/x11menu.h (obj_list_data): remove member "ev_button".
1744
1745 * src/gtk/gtk_subwin.c (do_popup): "button" argument is always
1746 zero because this function is called from "button-release-event"
1747 or "key-press-event".
1748
1749 2014-05-27 Hiroyuki Ito <ZXB01226 at nifty.com>
1750
1751 * src/oplot.c (f2dstat_file): add parameter "field".
1752
1753 2014-05-24 Hiroyuki Ito <ZXB01226 at nifty.com>
1754
1755 * src/oplot.c (f2ddraw): add label "FinishDrawing" and use "goto"
1756 instead of "return 0".
1757 (f2dredraw): check "source" field.
1758
1759 * src/gtk/x11file.c (copy_file_obj_field): ignore not only "file"
1760 but also "array" field.
1761
1762 2014-05-22 Hiroyuki Ito <ZXB01226 at nifty.com>
1763
1764 * src/gtk/x11axis.c (Popup_list): add "_Add" sub menu.
1765
1766 * src/gtk/x11file.c (popup_show_cb): check "source" field.
1767
1768 2014-05-21 Hiroyuki Ito <ZXB01226 at nifty.com>
1769
1770 * src/gtk/x11merge.c (Popup_list): use "_Delete" instead of
1771 "_Close".
1772
1773 * src/gtk/x11file.c (Popup_list): use "_Delete" instead of
1774 "_Close".
1775
1776 * src/gtk/x11menu.c (create_recent_menu): call "g_signal_connect()".
1777 (create_toolbar): handle "TOOL_TYPE_RECENT_GRAPH" and
1778 "TOOL_TYPE_RECENT_GRAPH".
1779 (create_menu_sub): don't call "g_signal_connect()" for
1780 "GtkRecentChooserMenu".
1781
1782 * src/gtk/x11merge.c (MergeWinState): use "tree_view_set_tooltip_column()".
1783
1784 * src/gtk/x11lgnd.c (LegendWinState): use "tree_view_set_tooltip_column()".
1785
1786 * src/gtk/x11file.c (FileWinState): use "tree_view_set_tooltip_column()".
1787
1788 * src/gtk/x11axis.c (AxisWinState): use "tree_view_set_tooltip_column()".
1789
1790 * src/gtk/gtk_liststore.c (tree_view_set_tooltip_column)
1791 (tree_view_set_tooltip_query_cb): added.
1792
1793 2014-05-14 Hiroyuki Ito <ZXB01226 at nifty.com>
1794
1795 * src/oplot.c (save_data_func): don't check returned value of the
1796 function "math_equation_calculate()".
1797
1798 * addin/fitrslt.c (loaddatalist): get and check "source" and
1799 "array" fields.
1800
1801 * addin/text-in.nsc: use "plot" object and check "source" field.
1802
1803 * addin/legend.nsc: use "plot" object and save "source" and
1804 "array" fields.
1805
1806 * addin/legend.c (loaddatalist): get and check "source" and
1807 "array" fields.
1808 (set_parameter): set 3rd column based on "source" field.
1809
1810 * addin/fitrslt.nsc: use "plot" object and save "source" and
1811 "array" fields.
1812
1813 * addin/fft.nsc: use "plot" object.
1814
1815 * addin/append.nsc: use "plot" object.
1816
1817 * addin/Makefile.am (addins, pkglibexec_PROGRAMS): remove "calc"
1818 addin.
1819
1820 2014-05-13 Hiroyuki Ito <ZXB01226 at nifty.com>
1821
1822 * src/oplot.c (file_fit_calc, file_fit_prm): use "plot" object.
1823 (add_file_prm): added.
1824 (opendata): check "src" and use "add_file_prm()".
1825 (f2dputmath): strip math string.
1826 (f2dinit): initialize "max", "min" and "div" field.
1827 (draw_fit): check "code->exp".
1828 (draw_fit): check "val.type" instead of the returned value of the
1829 function "math_equation_calculate()".
1830 (get_func_value): check "f2dlocal->codex[0]->exp" and
1831 "f2dlocal->codey[0]->exp".
1832 (funcout): initialize cnstant of the equation.
1833 (save_data_func): check "val.type", "f2dlocal->codex[0]->exp" and
1834 "f2dlocal->codey[0]->exp".
1835 (solve_equation): check "eq->exp".
1836
1837 * src/ofit.c (fituser): check "var.type" instead of the returned
1838 value of the function "math_equation_calculate()".
1839
1840 * src/math/math_equation.c (math_equation_calculate): check and
1841 initalize the parmetar "val".
1842
1843 * src/gtk/x11file.c (add_menu_list): added.
1844 (move_tab_copy, mask_tab_copy): use "PlotFileArrayCB".
1845 (load_tab_setup_item): check "d->source".
1846 (load_tab_copy): use "PlotFileArrayCB".
1847 (load_tab_create, load_tab_set_value): check "d->source".
1848 (math_tab_copy): use "PlotFileArrayCB".
1849 (math_common_widgets_create): added.
1850 (math_tab_create): use "math_common_widgets_create()".
1851 (math_set_value_common): added.
1852 (math_tab_set_value): use "math_set_value_common()".
1853 (set_axis_combo_box, plot_axis_setup_item): added.
1854 (file_setup_item): use "plot_axis_setup_item()".
1855 (FileDialogSetupItem): check "d->source".
1856 (plot_tab_copy, file_settings_copy): use "PlotFileArrayCB".
1857 (FileDialogSetupCommon): use default width for the deta clumn
1858 entries.
1859 (CHECK_VISIBILITY_ARRAY): added.
1860 (set_headline_table_array): added.
1861 (update_table_visibility): check "d->source".
1862 (FileDialogSetup): change title of the dialog.
1863 (ArrayDialogSetup, FuncDialogSetupItem, FuncDialogSetup)
1864 (ArrayDialogClose, FuncDialogClose): added.
1865 (FileDialog): check "d->source".
1866 (CmFileHistory): use "data->dialog" instead of "&DlgFile".
1867 (CmFileNew): use "plot" object.
1868 (CmFileNew): use "data->dialog" instead of "&DlgFile".
1869 (CmFuncAdd): added.
1870 (CmFileOpen): use "plot" object.
1871 (update_file_obj_multi): use "data->dialog" instead of "&DlgFile".
1872 (CmFileUpdate): use "plot" object.
1873 (check_plot_obj_file): added.
1874 (CmFileEdit): use "plot" object, "PlotFileCB" and
1875 "check_plot_obj_file()".
1876 (CmOptionFileDef): use "plot" object.
1877 (get_plot_info_str): added.
1878 (file_list_set_val): use "get_plot_info_str()".
1879 (CmFileMath, GetDrawFiles, CmFileSaveData, select_type)
1880 (start_editing_type, FileWinState): use "plot" object.
1881
1882 2014-05-12 Hiroyuki Ito <ZXB01226 at nifty.com>
1883
1884 * src/gtk/x11menu.c (create_toolbar): add 3rd parameter.
1885 (check_instance): use "plot" object.
1886 (PlotAddMenu): added.
1887
1888 * src/gtk/x11dialg.h (FileDialog): add members "min", "max, "div"
1889 and "sourece".
1890
1891 * src/gtk/x11dialg.c: add "DlgFunc" and "DlgArray".
1892
1893 * src/gtk/x11commn.c (AxisDel2, AxisMove, FitClear)
1894 (DeleteDrawable, SaveParent, get_save_opt, FileAutoScale)
1895 (SetFileHidden): use "plot" object.
1896 (field_obj_del, get_plot_cb_str, ArrayDel, PlotFileCB)
1897 (PlotFileArrayCB): added.
1898 (FileCB): use "get_plot_cb_str()".
1899 (FitDel): use "field_obj_del()".
1900
1901 * src/gtk/x11view.c (ViewerWinFileUpdate, Evaluate)
1902 (mouse_down_move_data, data_dropped): use "plot" object.
1903 (ViewerWinSetup): call "gtk_menu_attach_to_widget()".
1904
1905 * src/gtk/x11opt.c (CmOptionSaveNgp): use "plot" object.
1906
1907 * src/gtk/gtk_subwin.c (create_popup_menu_sub): added.
1908 (sub_win_create_popup_menu): use "create_popup_menu_sub()".
1909
1910 2014-05-11 Hiroyuki Ito <ZXB01226 at nifty.com>
1911
1912 * src/shell.c (shprintfstdout, shprintfstderr): type of the first
1913 parameter is "const char *".
1914
1915 * src/ogra.c (set_progress_val): type of the last parameter is
1916 "const char *".
1917
1918 * src/object.c (vnprintf, seprintf): type of the first parameter
1919 is "const char *".
1920 (registerevloop): type of the first and second parameters are
1921 "const char *".
1922
1923 * src/ngraph_api.c (ngraph_get_object_alias): added.
1924
1925 * src/gtk/ox11menu.c (mgtkprintfstdout, mgtkprintfstderr): type of
1926 the first parameter is "const char *".
1927
1928 * src/gtk/init.c (printfconsole): type of the first parameter is
1929 "const char *".
1930
1931 * src/gra.c (_GRAopen, GRAopen, GRAaddlist, GRAinslist): type of
1932 some parameters are "const char *".
1933
1934 * plugins/ruby/create_objs.rb (NgraphObj): now "alias" name can be
1935 used as an object.
1936
1937 * src/gtk/x11axis.c (AxisDialogFile, file_button_show): use "plot"
1938 object.
1939
1940 2014-05-03 Hiroyuki Ito <ZXB01226 at nifty.com>
1941
1942 * src/oaxis.c (get_reference_parameter): keep original axis type
1943 when the typeboth axis are linear or MJD.
1944
1945 2014-05-01 Hiroyuki Ito <ZXB01226 at nifty.com>
1946
1947 * src/oaxis.c (calc_numbering_value, get_axis_math)
1948 (alloc_axis_math, free_axis_math, num_put_math): added.
1949 (numformat): use "calc_numbering_value()".
1950 (axisdraw, axis_get_numbering): use "alloc_axis_math()" and
1951 "free_axis_math()".
1952 (axis): add field "num_math".
1953 (axisdraw): don't call "get_axis_parameter()" twice when
1954 "aconf.code" is not NULL.
1955
1956 * src/gtk/x11axis.c (Alist): add "num_math" column.
1957 (numbering_tab_set_value): save "num_math"field.
1958 (numbering_tab_setup_item): setup "num_math".
1959 (numbering_tab_create): add widget to set "num_math" field.
1960 (axis_list_set_val): set style depend on "num_math" field.
1961 (AxisWinState): min, max and inc column refer "num_math" column as
1962 the font style.
1963
1964 * src/gtk/x11file.c (FileWinState): use "set_cell_attribute_source()".
1965 (set_source_attribute): removed.
1966
1967 * src/gtk/gtk_subwin.c (set_cell_attribute_source): added.
1968
1969 2014-04-25 Hiroyuki Ito <ZXB01226 at nifty.com>
1970
1971 * addin/spellchecker.rb: add "About" button.
1972
1973 2014-04-23 Hiroyuki Ito <ZXB01226 at nifty.com>
1974
1975 * addin/spellchecker.rb: usr "Ruby/GTK3" if available.
1976
1977 2014-04-22 Hiroyuki Ito <ZXB01226 at nifty.com>
1978
1979 * initfile/20append_addins_ruby.nsc: added.
1980
1981 * initfile/Makefile.am (init_scripts): install "20append_addins_ruby.nsc".
1982
1983 * src/osystem.c (get_basename): renemed from "get_plugin_name()".
1984 (get_plugin_name): added.
1985 (load_plugin_sub): use "get_plugin_name()".
1986 (system_plugin_check): added.
1987 (nsystem): add field "plugin_check".
1988
1989 * addin/Makefile.am (ruby_addins): added.
1990
1991 * addin/legend.c (main): change order of buttons.
1992
1993 * addin/fitrslt.c (main): change order of buttons.
1994 (my_create_spin_button): use "gtk_widget_set_margin_end()" when
1995 the version of GTK+ is greater or equal to 3.12.
1996
1997 * addin/calc.c (main): change order of buttons.
1998
1999 2014-04-19 Hiroyuki Ito <ZXB01226 at nifty.com>
2000
2001 * addin/spell_check.rb: handle "LoadError".
2002
2003 2014-04-18 Hiroyuki Ito <ZXB01226 at nifty.com>
2004
2005 * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup)
2006 (MiscDialogClose): don't use "Menulocal.browser" when ter version
2007 of GTK+ is greater or equal to "3.0.0".
2008
2009 * src/gtk/x11gui.c (message_box): change order ob buttons in the
2010 case of "RESPONS_YESNOCANCEL".
2011
2012 * debian/ruby-ngraph.install: install "usr/lib/*/ruby/*".
2013
2014 2014-04-16 Hiroyuki Ito <ZXB01226 at nifty.com>
2015
2016 * src/gtk/x11lgnd.c (Tlist): add "bgcolor" column.
2017 (text_list_set_val, LegendWinState): set background color of the
2018 text column.
2019
2020 * src/gtk/gtk_common.h (USE_HEADER_BAR): added.
2021
2022 2014-04-15 Hiroyuki Ito <ZXB01226 at nifty.com>
2023
2024 * src/gtk/x11opt.c (MiscDialogSetup, ExViewerDialogSetup)
2025 (ViewerDialogSetup): use "GTK_RESPONSE_CANCEL" instead of
2026 "IDCANCEL".
2027
2028 * src/gtk/x11gui.c (DialogExecute): use
2029 "gtk_dialog_new_with_buttons()" instead of "gtk_dialog_new()".
2030 (DialogInput, DialogRadio, DialogCombo, DialogComboEntry)
2031 (DialogSpinEntry, DialogCheck): add "GTK_DIALOG_USE_HEADER_BAR"
2032 flag.
2033
2034 2014-04-10 Hiroyuki Ito <ZXB01226 at nifty.com>
2035
2036 * src/gtk/x11menu.c (create_toolbar, create_menu_sub): use
2037 "create_image_from_file()".
2038
2039 * src/gtk/x11lgnd.c (LegendWinState): use "create_image_from_file()".
2040
2041 * src/gtk/gtk_widget.c (create_image_from_file): added.
2042
2043 2014-04-04 Hiroyuki Ito <ZXB01226 at nifty.com>
2044
2045 * src/gtk/x11file.c (MarkDialogSetup): use
2046 "gtk_widget_set_margin_start()" and "gtk_widget_set_margin_end()"
2047 when the version of GTK+ is greater or equal to 3.12.
2048
2049 * src/gtk/gtk_widget.c (set_widget_margin): use
2050 "gtk_widget_set_margin_start()" and "gtk_widget_set_margin_end()"
2051 when the version of GTK+ is greater or equal to 3.12.
2052
2053 * plugins/Makefile.am (RUBY_ARCH_INCLUDEDIR): added.
2054
2055 2014-04-03 Hiroyuki Ito <ZXB01226 at nifty.com>
2056
2057 * src/gtk/x11lgnd.c (LegendWinState): show "text::text" field as a
2058 tool-tip.
2059
2060 * src/gtk/x11file.c (FileWinState, file_list_set_val): show
2061 "file::file" field as a tool-tip.
2062
2063 * src/gtk/x11view.c (AlignFocusedObj): swap "VIEW_ALIGN_HCENTER"
2064 and "VIEW_ALIGN_VCENTER".
2065 (ViewerEvLButtonDblClk, ViewerEvKeyDown): use "set_pointer_mode()"
2066 instead of "gtk_radio_action_set_current_value()".
2067
2068 * src/gtk/x11merge.c (MergeWinState): renamed from "CmMergeWindow".
2069
2070 * src/gtk/x11menu.c (set_pointer_mode, init_action_widget_list)
2071 (set_action_widget_sensitivity, set_subwin_state)
2072 (set_toggle_action_widget_state, create_toolbar)
2073 (create_menu_sub, create_menu, create_popup, toggle_subwindow)
2074 (set_subwindow_state): added.
2075 (CmViewerButtonArm): moved from "x11view.c".
2076 (set_axis_undo_button_sensitivity): use
2077 "set_action_widget_sensitivity()".
2078 (create_addin_menu): don't use "gtk_ui_manager_get_widget()".
2079 (set_action_sensitivity): removed.
2080 (set_focus_sensitivity_sub, set_window_action_visibility): don't
2081 use "GtkAction".
2082 (multi_to_single, destroy_sub_windows): call
2083 "set_subwindow_state()" instead of "window_action_set_active()".
2084 (setupwindow): don't use "GTkUIManager".
2085 (init_ngraph_app_struct): initialize member valiables
2086 "action_widget_id" and "state_func".
2087 (create_sub_windows): use "set_subwindow_state()".
2088 (set_modified_state): use set_action_widget_sensitivity()".
2089 (toggle_view_cb): inhibit recursive call.
2090 (set_widget_visibility): use "set_toggle_action_widget_state()".
2091 (check_instance): use "set_action_widget_sensitivity()".
2092 (application): don't use "GTkUIManager" and "GtkAction".
2093 (CmReloadWindowConfig): use "set_subwindow_state()" instead of
2094 "window_action_set_active()".
2095 (CmToggleSingleWindowMode): use "gtk_check_menu_item_get_active()"
2096 instead of "gtk_toggle_tool_button_get_active()".
2097
2098 * src/gtk/x11lgnd.c (LegendWinState): renamed from "CmLegendWindow".
2099
2100 * src/gtk/x11info.c (InfoWinState): renamed from "CmInformationWindow".
2101
2102 * src/gtk/x11file.c (FileWinState): renamed from "CmFileWindow".
2103
2104 * src/gtk/x11cood.c (CoordWinState): renamed from "CmCoordinateWindow".
2105
2106 * src/gtk/x11axis.c (AxisWinState): renamed from "CmAxisWindow".
2107
2108 * src/gtk/ox11menu.c (mx_show_win, mx_hide_win, mx_toggle_win):
2109 call "set_subwindow_state()" instead of
2110 "window_action_set_active()".
2111 (mx_get_ui): removed.
2112 (gtkmenu): remove field "get_ui".
2113
2114 * src/gtk/init.c (n_initialize): use "rl_completion_func_t *"
2115 instead of "CPPFunction *".
2116
2117 * src/gtk/gtk_subwin.c (sub_window_hide, sub_window_show): set
2118 "visible" member variable and call
2119 "set_toggle_action_widget_state()".
2120 (cb_del, ev_sub_win_key_down): call "set_subwindow_state()"
2121 instead of "window_action_set_active()".
2122
2123 2014-04-02 Hiroyuki Ito <ZXB01226 at nifty.com>
2124
2125 * src/gtk/x11menu.c (create_ui_from_file, set_toolbar_caption)
2126 (set_btn_press_cb, get_toolbar, create_action_group)
2127 (create_action_widget, init_action_widget_list): removed.
2128
2129 2014-04-01 Hiroyuki Ito <ZXB01226 at nifty.com>
2130
2131 * src/gtk/x11menu.c (window_action_toggle)
2132 (window_action_set_active, set_toggle_action): removed.
2133
2134 2014-03-27 Hiroyuki Ito <ZXB01226 at nifty.com>
2135
2136 * src/gtk/x11menu.c (set_gdk_color): removed.
2137
2138 2014-03-01 Hiroyuki Ito <ZXB01226 at nifty.com>
2139
2140 * src/gtk/gtk_widget.h (NUM_ENTRY_WIDTH): change width from 11 to
2141 12.
2142
2143 * src/gtk/x11axis.c (font_tab_create): use
2144 "gtk_check_button_new_with_mnemonic()" instead of
2145 "gtk_check_button_new_with_label()".
2146
2147 2014-02-28 Hiroyuki Ito <ZXB01226 at nifty.com>
2148
2149 * src/gtk/x11view.c (EvalDialogSetup): use
2150 "gtk_check_button_new_with_mnemonic()" and "set_button_icon()"
2151 instead of "gtk_button_new_from_stock()".
2152 (EvalDialogSetup): don't use "GtkStockItem".
2153
2154 * src/gtk/x11opt_proto.h (CREATE_NAME): use
2155 "gtk_check_button_new_with_mnemonic()" and "set_button_icon()"
2156 instead of "gtk_button_new_from_stock()".
2157 (CREATE_NAME): don't use "GtkStockItem".
2158
2159 * src/gtk/x11opt.c (PrefScriptDialogSetup)
2160 (PrefDriverDialogSetup, PrefFontDialogSetup, MiscDialogSetup)
2161 (ExViewerDialogSetup, ViewerDialogSetup): don't use
2162 "GtkStockItem".
2163 (FontSettingDialogSetup): use
2164 "gtk_check_button_new_with_mnemonic()" and "set_button_icon()"
2165 instead of "gtk_button_new_from_stock()".
2166
2167 * src/gtk/x11merge.c (Popup_list): don't use "GtkStockItem".
2168
2169 * src/gtk/x11menu.c (ActionEntry): don't use "GtkStockItem".
2170 (create_action_group): use "gtk_action_set_icon_name()";
2171
2172 * src/gtk/x11lgnd.c (Popup_list): don't use "GtkStockItem".
2173 (points_setup, legend_dialog_setup_sub): use
2174 "gtk_check_button_new_with_mnemonic()" and "set_button_icon()"
2175 instead of "gtk_button_new_from_stock()".
2176 (LegendTextDialogSetup, LegendArrowDialogSetup)
2177 (LegendRectDialogSetup, LegendArcDialogSetup)
2178 (LegendMarkDialogSetup): don't use "GtkStockItem".
2179
2180 * src/gtk/x11gui.c (DialogExecute, message_box, DialogInput)
2181 (DialogRadio, DialogCombo, DialogComboEntry, DialogSpinEntry)
2182 (DialogCheck, nGetOpenFileNameMulti, nGetSaveFileName): don't use
2183 "GtkStockItem".
2184
2185 * src/gtk/x11graph.c (SwitchDialogSetup): use
2186 "gtk_check_button_new_with_mnemonic()" and "set_button_icon()"
2187 instead of "gtk_button_new_from_stock()".
2188
2189 * src/gtk/x11file.c (Popup_list): don't use "GtkStockItem."
2190 (MathDialogSetup, FitDialogSetup)
2191 (move_tab_create,mask_tab_create): use
2192 "gtk_check_button_new_with_mnemonic()" and "set_button_icon()"
2193 instead of "gtk_button_new_from_stock()".
2194 (MathDialogSetup, FitSaveDialogSetup, FitDialogSetup): don't use
2195 "GtkStockItem".
2196
2197 * src/gtk/x11dialg.c (SelectDialogSetup): use
2198 "gtk_check_button_new_with_mnemonic()" and "set_button_icon()"
2199 instead of "gtk_button_new_from_stock()".
2200
2201 * src/gtk/x11commn.c (ProgressDialogCreate): use
2202 "gtk_check_button_new_with_mnemonic()" and "set_button_icon()"
2203 instead of "gtk_button_new_from_stock()".
2204
2205 * src/gtk/x11axis.c (Popup_list): don't use "GtkStockItem".
2206 (scale_tab_create): use "gtk_button_new_with_mnemonic()" instead
2207 of "gtk_button_new_from_stock()".
2208 (font_tab_create): use "gtk_check_button_new_with_mnemonic()" and
2209 "set_button_icon()" instead of "gtk_check_button_new_with_label()"
2210 and "gtk_button_set_use_stock()".
2211
2212 * src/gtk/gtk_widget.c (set_button_icon): added.
2213 (create_file_entry_with_cb, create_direction_entry): use
2214 "gtk_entry_set_icon_from_icon_name()" instead of
2215 "gtk_entry_set_icon_from_stock()".
2216
2217 * src/gtk/gtk_subwin.h (subwin_popup_list): remove member
2218 "use_stock".
2219
2220 * src/gtk/gtk_subwin.c (start_editing): use
2221 "gtk_entry_set_icon_from_icon_name()" instead of
2222 "gtk_entry_set_icon_from_stock()".
2223 (sub_win_create_popup_menu): use
2224 "gtk_menu_item_new_with_mnemonic()" instead of
2225 "gtk_image_menu_item_new_from_stock()".
2226
2227 * initfile/NgraphUI.xml: remove preview tool button.
2228
2229 * initfile/Ngraph.ini.in (browser): don't use "yelp".
2230
2231 * addin/legend.c (main): don't use "GtkStockItem".
2232
2233 * addin/fitrslt.c (main): don't use "GtkStockItem".
2234
2235 * addin/calc.c (main): don't use "GtkStockItem".
2236
2237 2014-02-25 Hiroyuki Ito <ZXB01226 at nifty.com>
2238
2239 * src/gtk/x11menu.c (single_to_multi): set
2240 "Menulocal.single_window_mode" true before call
2241 "CmReloadWindowConfig()".
2242
2243 * src/gtk/gtk_subwin.c (sub_window_set_visibility): check
2244 "Menulocal.single_window_mode".
2245
2246 2014-02-15 Hiroyuki Ito <ZXB01226 at nifty.com>
2247
2248 * plugins/Makefile.am (libruby_ldflags): don't link aginst libngraph.
2249
2250 * configure.ac: use "AC_CHECK_LIB" to check libm.
2251
2252 2014-02-14 Hiroyuki Ito <ZXB01226 at nifty.com>
2253
2254 * src/gtk/x11file.c (file_list_set_val)
2255 (create_type_color_combo_box, select_type, select_axis): support
2256 sourece type.
2257 (set_source_attribute): added.
2258
2259 2014-02-13 Hiroyuki Ito <ZXB01226 at nifty.com>
2260
2261 * doc/html/ja/text.html: update document.
2262
2263 * src/gtk/x11file.c (draw_type_pixbuf, file_list_set_val): support
2264 sourece type "function" and "array".
2265
2266 * src/oplot.c (set_array): added.
2267 (open_array): return non zero when failed.
2268 (ERR_INVALID_OBJ): added.
2269
2270 * src/gra.c (GRAdrawtext, GRAtextextent): add space between the
2271 lines setting.
2272
2273 2014-02-11 Hiroyuki Ito <ZXB01226 at nifty.com>
2274
2275 * src/oplot.h: added.
2276
2277 * src/oplot.c: added.
2278
2279 * src/gtk/x11view.c (ViewerEvLButtonUp): call
2280 "gtk_widget_queue_draw()".
2281
2282 2014-02-02 Hiroyuki Ito <ZXB01226 at nifty.com>
2283
2284 * src/odarray.c (calc_sum, calc_square_sum): removed.
2285 (cache_data): added.
2286 (darray_sum, darray_average, darray_rms, darray_sdev)
2287 (darray_min, darray_max): use "cache_data()".
2288
2289 2014-02-01 Hiroyuki Ito <ZXB01226 at nifty.com>
2290
2291 * src/object.c (obj_do_tighten_all): added.
2292
2293 2014-01-28 Hiroyuki Ito <ZXB01226 at nifty.com>
2294
2295 * addin/fft.c (save_data, read_data): added.
2296 (main): use "save_data()" and "read_data()".
2297 (MAXP): changed from 16 to 24.
2298
2299 2013-12-15 Ito Hiroyuki <ZXB01226 at nifty.com>
2300
2301 * addin/legend.c (create_geometry_frame): use
2302 "create_spin_button()".
2303
2304 * addin/fitrslt.c (my_create_spin_button, create_position_frame):
2305 use "create_spin_button()".
2306
2307 * addin/addin_common.c (create_spin_button): added.
2308 (create_font_frame): use "create_spin_button()".
2309
2310 2013-12-07 Ito Hiroyuki <ZXB01226 at nifty.com>
2311
2312 * plugins/ruby/ngraph.c (load_script): use File#expand_path to get
2313 full path name of the script.
2314
2315 * plugins/ruby.c (ngraph_plugin_open_ruby): check returned value
2316 of th function "rb_require()".
2317
2318 2013-12-01 Hiroyuki Ito <ZXB01226 at nifty.com>
2319
2320 * plugins/ruby/lib/ngraph/ngp2.rb: added.
2321
2322 2013-11-29 Ito Hiroyuki <ZXB01226 at nifty.com>
2323
2324 * plugins/ruby/create_objs.rb: don't add '?' to some methods.
2325
2326 * plugins/ruby.c (ngraph_plugin_exec_ruby): removed.
2327
2328 * src/osystem.h: added.
2329
2330 * src/osarray.c (sarrayerrorlist): bug fix: add ',' as the needed.
2331
2332 * src/osystem.c (syserrorlist): bug fix: add ',' as the needed.
2333 (close_module, get_symbol, get_plugin_name, load_plugin_sub)
2334 (get_plugin_from_name, load_plugin, system_plugin_load)
2335 (free_argv, allocate_argv, system_plugin_exec)
2336 (system_plugin_get_module): added (moved from "oplugin.c").
2337 (sysdone): unload modules.
2338
2339 * src/oplugin.c: removed.
2340
2341 * plugins/ruby/ngraph.c (load_script): added.
2342 (ruby_ngraph_init): the function "ngraph_set_exec_func()" is
2343 always called.
2344
2345 2013-11-28 Ito Hiroyuki <ZXB01226 at nifty.com>
2346
2347 * src/osystem.c (ext_shell_exec, system_check_prohibited_plugin)
2348 (system_set_ext_shell): added.
2349 (nsystem): add fields "ext_shell", "ext_shell_name" and
2350 "prohibited_plugin".
2351 (addsystem): initialize "ProhibitedPlugins".
2352
2353 * src/oplugin.c (load_plugin): check prohibited plugins.
2354
2355 * src/ngraph_api.c (ngraph_set_exec_func): added.
2356
2357 * plugins/ruby/ngraph.c (ruby_ngraph_exec_loginshell): use
2358 "ALLOCA_N()" and "strcpy()" instead of "strdup()".
2359 (ruby_ngraph_init): add 3rd parameter and call
2360 "ngraph_set_ext_shell()" ic necessary.
2361
2362 2013-11-27 Ito Hiroyuki <ZXB01226 at nifty.com>
2363
2364 * plugins/ruby/ngraph.c (ruby_ngraph_init): set "Initialized".
2365 (Init_ngraph): check "Initialized".
2366
2367 * src/ngraph_api.c (ngraph_exec_loginshell): return returned valu
2368 of the function "exeobj()" or "sexeobj()".
2369
2370 * plugins/ruby/ngraph.c (ruby_ngraph_exec_loginshell)
2371 (ruby_ngraph_init_file): added.
2372 (Init_ngraph): add singleton methods "get_initialize_file" and
2373 "execute_loginshell".
2374
2375 2013-11-26 Ito Hiroyuki <ZXB01226 at nifty.com>
2376
2377 * plugins/ruby/ngraph.c (ruby_ngraph_init): added.
2378 (Init_ngraph): add singleton method "ngraph_initialize".
2379
2380 * plugins/ruby/extconf.rb: check first argument.
2381
2382 * plugins/ruby/Makefile.am (ruby_ext): use "RUBY_DLEXT."
2383
2384 * debian/ruby-ngraph.install: added.
2385
2386 * debian/control (Package): add ruby-ngraph package.
2387
2388 * configure.ac: set "RUBY_DLEXT".
2389
2390 * plugins/ruby/lib/ngraph.rb.win: added.
2391
2392 * plugins/ruby/lib/ngraph.rb: added.
2393
2394 * plugins/ruby/lib/Makefile.am: added.
2395
2396 2013-11-25 Ito Hiroyuki <ZXB01226 at nifty.com>
2397
2398 * plugins/ruby.c: many functions are moved to
2399 "plugins/ruby/ngraph.c".
2400 (get_ext_name): added.
2401 (ngraph_plugin_exec_ruby): use "get_ext_name()" on Windows.
2402
2403 * plugins/ruby/ngraph.c: added.
2404
2405 * plugins/ruby/getobj.nsc: moved from "plugins/".
2406
2407 * plugins/ruby/extconf.rb: added.
2408
2409 * plugins/ruby/create_objs.rb: moved from "plugins/".
2410
2411 * plugins/ruby/Makefile.am: added.
2412
2413 2013-11-24 Hiroyuki Ito <ZXB01226 at nifty.com>
2414
2415 * src/ngraph_api.c (ngraph_save_shell_history): added.
2416
2417 * src/gtk/init.c (n_save_shell_history): added.
2418 (n_finalize): use "n_save_shell_history()".
2419 (n_initialize): check already initialized or not.
2420
2421 * plugins/ruby.c (ngraph_save_hist): added.
2422 (ngraph_plugin_open_ruby): add singleton method
2423 "save_shell_history".
2424
2425 2013-11-23 Ito Hiroyuki <ZXB01226 at nifty.com>
2426
2427 * Makefile.am (AM_CFLAGS): added.
2428
2429 * src/shell.c (cmdexec, system_bg): use "g_thread_new()" instead
2430 of "g_thread_create()" when the version of glib is greater or
2431 equal to 2.32.
2432
2433 2013-11-22 Hiroyuki Ito <ZXB01226 at nifty.com>
2434
2435 * src/gtk/Makefile.am (libngraphui_la_LDFLAGS): removed.
2436
2437 * src/math/Makefile.am (libmath_la_LDFLAGS): removed.
2438
2439 2013-11-21 Ito Hiroyuki <ZXB01226 at nifty.com>
2440
2441 * src/oplugin.c (ngraph_plugin_set_user_data)
2442 (ngraph_plugin_get_user_data): removed.
2443
2444 * src/gtk/x11view.c (create_axis, ViewCopyAxis): use
2445 "g_strdup_printf()".
2446
2447 * src/gtk/x11commn.c (axis_move_each_obj): use
2448 "g_strdup_printf()".
2449
2450 * src/gtk/x11axis.c (SectionDialogGrid, CmAxisNewSection): use
2451 "g_strdup_printf()".
2452
2453 * src/gtk/ox11menu.c (add_str_with_int_to_array)
2454 (add_child_geometry_to_array, add_geometry_to_array)
2455 (add_color_to_array): use "g_strdup_printf()".
2456
2457 * src/gtk/init.c (my_sprintf): removed.
2458 (get_file_list): use "g_strdup_printf()".
2459
2460 * plugins/ruby.c (str2inst_ensure, obj_del_from_str)
2461 (inst_get_obj, inst_put_obj): use "ngraph_free()".
2462 (obj_get): don't use "ngraph_object_free()".
2463
2464 * src/main.c: added.
2465
2466 * src/ngraph_api.c: added.
2467
2468 * src/ntime.c (ndate, ntime): use "g_strdup_printf()".
2469
2470 * src/oaxis.c (axisinit, axisdone, set_group, axis_default_set):
2471 use "g_strdup_printf()".
2472
2473 * src/object.c (getvaluestr): add case for "NVOID", "NPOINTER" and
2474 "NVFUNC".
2475
2476 * src/odraw.c: include "mathfn.h".
2477
2478 * src/oplugin.c: api functions are moved to "ngraph_api.c".
2479
2480 * src/oroot.c (obj_save_config_numeric, obj_save_config_string):
2481 use "g_strdup_printf()".
2482
2483 * src/math/math_basic_function.c (math_func_fmod): remove unused
2484 variables.
2485
2486 * debian/ngraph-gtk.install: install "libngraph".
2487
2488 * mingw/windows.sh: now some processes are automatically done.
2489
2490 * src/gtk/init.c: added (renamed from main.c).
2491
2492 * src/gtk/init.h: added (renamed from main.h).
2493
2494 * configure.ac: add "LIBNGRAPH_VERSION" and "AC_CANONICAL_HOST",
2495 check OS type.
2496
2497 * acinclude.m4: remove macro.
2498
2499 * Makefile.am (libtool): added.
2500
2501 * test/: now "del system" is not necessary to end interpreter.
2502
2503 2013-11-20 Ito Hiroyuki <ZXB01226 at nifty.com>
2504
2505 * plugins/libruby.def: moved from "mingw/"
2506
2507 * plugins/libruby_resource.rc: added
2508
2509 * src/ngraph_resource.rc: moved from "mingw/windows_resource.rc".
2510
2511 * src/libngraph_resource.rc: added.
2512
2513 2013-11-15 Ito Hiroyuki <ZXB01226 at nifty.com>
2514
2515 * mingw/windows.sh (DEFS): define "_USE_32BIT_TIME_T".
2516
2517 * src/gtk/x11gui.c (fsok): use "GStatBuf" instead of "struct
2518 stat".
2519
2520 * src/omerge.c (mergetime, mergedate): use "GStatBuf" instead of
2521 "struct stat".
2522 (mergestore, mergestoredum): use default date and time if the date
2523 and time are not available.
2524
2525 * src/shellux.c (testexpand): use "GStatBuf" instead of "struct
2526 stat".
2527
2528 * src/ofile.c (f2dtime, f2ddate, get_mtime): use "GStatBuf"
2529 instead of "struct stat".
2530 (f2dstat, f2dstat2): use "g_strdup_printf()" instead of
2531 "snprintf()".
2532 (f2dstore, f2dstoredum): use default date and time if the date and
2533 time are not available.
2534
2535 * src/nconfig.c (openconfig, writecheckconfig, copyconfig): use
2536 "GStatBuf" instead of "struct stat".
2537
2538 * src/ioutil.c (getfilename, findfilename): type of all parameters
2539 are "cost char *".
2540 (findfilename): use "GStatBuf" instead of "struct stat".
2541 (nstat): type of the second parameter is "GStatBuf *".
2542
2543 * acinclude.m4: save "CFLAGS".
2544
2545 2013-11-11 Ito Hiroyuki <ZXB01226 at nifty.com>
2546
2547 * src/otext.c (text): add field "hsb".
2548
2549 * src/orect.c (rect): add fields "fill_hsb" and "stroke_hsb".
2550
2551 * src/opath.c (arrow): add fields "fill_hsb" and "stroke_hsb".
2552
2553 * src/omark.c (mark): add fields "hsb" and "hsb2".
2554
2555 * src/ofile.c (file2d): add fields "hsb" and "hsb2".
2556
2557 * src/odraw.c (put_hsb_color, put_fill_hsb, put_stroke_hsb)
2558 (put_hsb, put_hsb2): added.
2559
2560 * src/oaxis.c (put_gauge_hsb, put_num_hsb): added.
2561 (axis): add fields "gauge_hsb", "num_hsb" and "hsb".
2562
2563 * src/oarc.c (arc): add fields "fill_hsb" and "stroke_hsb".
2564
2565 * src/oagrid.c (agrid): add field "hsb".
2566
2567 * src/math/math_basic_function.c (math_func_fmod): added.
2568
2569 2013-11-10 Ito Hiroyuki <ZXB01226 at nifty.com>
2570
2571 * src/gtk/x11axis.c (gauge_tab_create): use
2572 "gtk_entry_set_width_chars()".
2573
2574 * src/gtk/gtk_widget.c (create_direction_entry)
2575 (create_text_entry, _create_spin_entry):use
2576 "gtk_entry_set_width_chars()".
2577
2578 * src/gtk/x11lgnd.c (style_setup): use
2579 "combo_box_entry_set_width()".
2580
2581 * src/gtk/x11file.c (FitSaveDialogSetup, plot_tab_create)
2582 (FileDialogSetupCommon): use "combo_box_entry_set_width()".
2583
2584 * src/gtk/x11axis.c (scale_tab_create, position_tab_create): use
2585 "combo_box_entry_set_width()".
2586
2587 * src/gtk/gtk_combo.c (combo_box_entry_set_width): added.
2588
2589 2013-11-06 Ito Hiroyuki <ZXB01226 at nifty.com>
2590
2591 * src/oplugin.c (ngraph_get_obj_field_type): type of the returned
2592 value is "enum ngraph_object_field_type".
2593 (ngraph_putobj): free allocated string when the returned value of
2594 the function "putobj()" is negative.
2595
2596 * src/ngraph.h (ngraph_object_field_type): added.
2597
2598 2013-11-05 Ito Hiroyuki <ZXB01226 at nifty.com>
2599
2600 * src/gtk/ogra2x11.c (gtkclose): always returns "TRUE".
2601
2602 2013-11-02 Ito Hiroyuki <ZXB01226 at nifty.com>
2603
2604 * src/oplugin.c (get_plugin_name, get_plugin_from_name): added.
2605 (load_plugin, plugin_open): use "get_plugin_name()".
2606 (get_plugin, plugin_open): use "get_plugin_from_name()".
2607
2608 2013-11-01 Ito Hiroyuki <ZXB01226 at nifty.com>
2609
2610 * src/math/math_basic_function.c (math_func_dif): returned value
2611 is 0 if the type of saved value is not "MATH_VALUE_NORMAL".
2612
2613 2013-10-30 Hiroyuki Ito <ZXB01226 at nifty.com>
2614
2615 * plugins/ruby.c (ngraph_plugin_open_ruby): set default encodings
2616 and require some libraries.
2617
2618 * plugins/create_objs.rb (NgraphObj#create_str_func_with_args)
2619 (NgraphObj#create_str_func_with_argv)
2620 (NgraphObj#add_str_array_func): use "tainted_utf8_str_new()".
2621
2622 * plugins/ruby.c (tainted_utf8_str_new): added.
2623 (inst_get_str, inst_get_sarray, obj_func_obj, get_str_func_argv):
2624 use "tainted_utf8_str_new()".
2625
2626 2013-10-29 Hiroyuki Ito <ZXB01226 at nifty.com>
2627
2628 * configure.ac: use "AC_SEARCH_LIBS" instead of "AC_CHECK_LIB" to
2629 find math functions in "AC_CHECK_FUNCS".
2630
2631 2013-10-28 Hiroyuki Ito <ZXB01226 at nifty.com>
2632
2633 * configure.ac: check linker option.
2634
2635 * acinclude.m4: added.
2636
2637 2013-10-27 Hiroyuki Ito <ZXB01226 at nifty.com>
2638
2639 * plugins/create_objs.rb (NgraphObj#create_str_func_with_argv):
2640 use "create_val_func_with_argv()".
2641
2642 2013-10-26 Ito Hiroyuki <ZXB01226 at nifty.com>
2643
2644 * src/oplugin.c (Plugin): remove field "_local" and add field
2645 "lock".
2646
2647 * src/Makefile.am (ngraph_LDFLAGS): added.
2648
2649 * src/ngraph_export.map: added.
2650
2651 2013-10-25 Ito Hiroyuki <ZXB01226 at nifty.com>
2652
2653 * src/gtk/ogra2emf.c (check_fonts): use "EnumFontFamiliesEx()"
2654 instead of "EnumFontFamiliesExW()" befcase the program is crashed
2655 when call "EnumFontFamiliesExW()" on Windows8 64bit.
2656
2657 * mingw/windows.sh: create ruby plugin.
2658
2659 * mingw/libruby.def: added.
2660
2661 2013-10-23 Ito Hiroyuki <ZXB01226 at nifty.com>
2662
2663 * src/Makefile.am (noinst_LTLIBRARIES): use convenience library.
2664
2665 * plugins/ruby.c (ngraph_plugin_exec_ruby): check "argc".
2666
2667 2013-10-21 Ito Hiroyuki <ZXB01226 at nifty.com>
2668
2669 * mingw/windows_make.sed: change "$(pkglibdir)".
2670
2671 * configure.ac: add "AC_LIBTOOL_WIN32_DLL".
2672
2673 2013-10-19 Hiroyuki Ito <ZXB01226 at nifty.com>
2674
2675 * plugins/ruby.c (ngraph_plugin_exec_ruby): check error string.
2676
2677 2013-10-19 Ito Hiroyuki <ZXB01226 at nifty.com>
2678
2679 * plugins/ruby.c (get_array_arg): added.
2680 (allocate_iarray, allocate_darray, allocate_sarray): use
2681 "get_array_arg()".
2682
2683 2013-10-16 Ito Hiroyuki <ZXB01226 at nifty.com>
2684
2685 * src/oplugin.c (load_plugin): check interrupt function.
2686 (plugin_done): call interrupt function when the plugin is locked.
2687
2688 * plugins/ruby.c (obj_get_from_str, obj_del_from_str): use
2689 "rb_sprintf()".
2690 (ngraph_plugin_exec_ruby): show detail information aobut the
2691 error.
2692 (ngraph_plugin_interrupt_ruby): added.
2693
2694 * src/gtk/ogra2x11.c (gra2gtk): argument of the "fullscreen" field
2695 is boolean.
2696
2697 2013-10-15 Ito Hiroyuki <ZXB01226 at nifty.com>
2698
2699 * src/ngraph_plugin.h: renamed to "ngraph.h".
2700
2701 * src/ngraph.h: definitions are moved to "common.h".
2702
2703 * plugins/ruby.c (obj_del_from_str): added.
2704
2705 2013-10-11 Ito Hiroyuki <ZXB01226 at nifty.com>
2706
2707 * src/oplugin.c (ngraph_plugin_copy): added.
2708
2709 * plugins/ruby.c (ngraph_inst_method_copy, obj_copy): added.
2710 (ngraph_plugin_open_ruby): call "ruby_sysinit()" and
2711 "rb_enc_find_index()".
2712
2713 2013-10-10 Ito Hiroyuki <ZXB01226 at nifty.com>
2714
2715 * src/oplugin.c (allocate_iarray, allocate_darray)
2716 (allocate_sarray): check if the "arg" is NULL or not.
2717 (ngraph_plugin_get_instances_by_str, ngraph_plugin_sleep)
2718 (ngraph_plugin_get_obj_root): added.
2719 (ngraph_plugin_get_inst): removed.
2720
2721 * test/sarray_test.nsc: add test for "put" and "ins" fields.
2722
2723 * addin/timer.nsc: fix name of text object and field name of color
2724 of rectanble object.
2725
2726 * addin/text-in.nsc: fix horizontal alignment.
2727
2728 * addin/fig2gra.rb (Fig2Gra): added.
2729
2730 * src/shellux.c (cmsleep): use "nsleep()".
2731
2732 * src/shell.c (nsleep, cmsleeptimeout, SleepThread): added.
2733
2734 * src/object.c (arrayadd, arrayins, arrayput): type of the second
2735 parameter is "const void *".
2736 (arrayadd2, arrayins2, arrayput2): type of the second parameter is
2737 "const char *".
2738
2739 2013-10-06 Ito Hiroyuki <ZXB01226 at nifty.com>
2740
2741 * src/oplugin.c (Plugin): type of the fields "open" and "exec" are
2742 NIFUNC.
2743
2744 2013-10-05 Ito Hiroyuki <ZXB01226 at nifty.com>
2745
2746 * src/osystem.c (nsystem): add field "plugin_dir".
2747
2748 * src/oplugin.c (plugin_file, plugin_name): added.
2749 (plugin_open): check multiple loading.
2750
2751 * src/gtk/ox11menu.c (menuinit): check "OpenApplication()" first.
2752
2753 * src/gtk/main.c (set_dir_defs, main): initialize "PLUGINDIR"
2754 settings.
2755
2756 * src/gtk/dir_defs.h.in: add "PLUGINDIR" definition.
2757
2758 * plugins/ruby.c (ngraph_plugin_close_ruby): 0
2759 (ngraph_plugin_open_ruby): added.
2760 (ngraph_plugin_exec_ruby): change name.
2761
2762 * plugins/create_objs.rb (NgraphObj): add instants variable
2763 "singleton".
2764
2765 * pathconv.sh (LIBDIR): add "LIBDIR" definition.
2766
2767 2013-10-04 Ito Hiroyuki <ZXB01226 at nifty.com>
2768
2769 * plugins/Makefile.am (ngraphplugindir): change install directory.
2770
2771 * initfile/Ngraph.nsc: check "${NGRAPHCONF}/init.d".
2772
2773 * initfile/10append_addins.nsc: mobed from "Ngraph.nsc".
2774
2775 2013-09-25 Hiroyuki Ito <ZXB01226 at nifty.com>
2776
2777 * src/gtk/ox11dlg.c: include "mathfn.h".
2778
2779 2013-09-24 Hiroyuki Ito <ZXB01226 at nifty.com>
2780
2781 * src/gtk/ox11menu.c (mx_show_lib_version): the first argument of
2782 the field means indent width.
2783
2784 2013-09-20 Hiroyuki Ito <ZXB01226 at nifty.com>
2785
2786 * plugins/Makefile.am: check develop environment of Ruby.
2787
2788 * initfile/save_ui_file.nsc: use "get" commend to get
2789 informations.
2790
2791 * initfile/Ngraph.nsc (NULL_DEVICE): use "get" commend to show
2792 version of the libraries.
2793
2794 * configure.ac: call LT_INIT, check develop environment of Ruby.
2795
2796 * src/plugins.c (plugin_shell_exec): check security.
2797 (ngraph_plugin_shell_err_puts, ngraph_plugin_shell_puts)
2798 (ngraph_plugin_shell_get_inst): added.
2799
2800 * src/otext.c (test): type of argument of the field "save_config"
2801 is "void".
2802
2803 * src/osystem.c (nsystem): type of argument of the field
2804 "temp_file" is "void".
2805
2806 * src/ostring.c (ostring): type of argument of some fields are
2807 "void".
2808
2809 * src/osarray.c (osarray): type of argument of some fields are
2810 "void".
2811
2812 * src/oregexp.c (oregexp): type of argument of some fields are
2813 "void".
2814
2815 * src/oprm.c (prm): type of argument of the field "load" is
2816 "void".
2817
2818 * src/omerge.c (merge): type of argument of some fields are
2819 "void".
2820
2821 * src/omath.c (math): type of argument of the field "clear" is
2822 "void".
2823
2824 * src/oiarray.c (oiarray): type of argument of some fields are
2825 "void".
2826
2827 * src/ofile.c (file2d): type of argument of some fields are
2828 "void".
2829
2830 * src/odarray.c (odarray): type of argument of some fields are
2831 "void".
2832
2833 * src/oaxis.c (draw_numbering, numbering): type of the last
2834 parameter is "struct narray *".
2835 (draw_numbering): use "g_strdup_printf()" when the parameter
2836 "array" is not NULL.
2837 (axis_get_numbering): type of field is "NSAFUNC".
2838 (axis): type of the argument of fields "scale_push", "scale_pop",
2839 "clear", "adjust", "tight", "group_manager" and "get_numbering"
2840 are "void".
2841
2842 * src/oagrid.c (agrid): type of "tight" field is "void (void)".
2843
2844 * src/gtk/x11menu.c (get_ui_definition): name is changed from
2845 "show_ui_definition()".
2846
2847 * src/gtk/x11gui.c (DialogInput, DialogRadio, DialogCombo)
2848 (DialogComboEntry, DialogSpinEntry, DialogCheck): chang order of
2849 buttons.
2850
2851 * src/gtk/ox11menu.c (mx_get_ui, mx_get_accel_map)
2852 (mx_show_lib_version, mx_get_locale): type of the fields is
2853 changed from "NVFUNC" to "NSFUNC".
2854 (mx_get_active): added.
2855 (gtkmenu): add "active" field, change type of some fields from
2856 "NVFUNC" to "NSFUNC".
2857
2858 2013-09-18 Hiroyuki Ito <ZXB01226 at nifty.com>
2859
2860 * src/gtk/ox11dlg.c (dlgspin): fix case for "double_entry".
2861 (dialog): type of "double_entry" and "integer_entry" is "NDFUNC"
2862 and "NIFUNC" respectively.
2863
2864 2013-09-16 Hiroyuki Ito <ZXB01226 at nifty.com>
2865
2866 * src/plugins.c (ngraph_plugin_shell_exeobj): check type of the
2867 field.
2868
2869 * src/shellcm.c (dispfield): the macro "NLABEL" is not used.
2870
2871 * src/object.c (addobject, _putobj, putobj, _getobj, getobj)
2872 (copyobj): the macro "NLABEL" is not used.
2873
2874 * src/object.h: macro for field type and permission definitions
2875 are moved to the file "ngraph_plugin_shell.h".
2876
2877 2013-09-14 Hiroyuki Ito <ZXB01226 at nifty.com>
2878
2879 * plugins/: added.
2880
2881 * src/shellcm.c (dispfield): fix representation of "char*" and
2882 "void*".
2883
2884 2013-08-28 Ito Hiroyuki <ZXB01226 at nifty.com>
2885
2886 * src/ofile.c (f2dstore, f2dstoredum): bug fix: use
2887 "g_strdup_printf()" instead of "g_malloc()" and "sprintf()".
2888
2889 * src/omerge.c (mergestore, mergestoredum): bug fix: use
2890 "g_strdup_printf()" instead of "g_malloc()" and "sprintf()".
2891
2892 2013-07-26 Hiroyuki Ito <ZXB01226 at nifty.com>
2893
2894 * src/object.c (chkobjarglist): type of the returned value "const
2895 char *".
2896 (getargument, freeargument): type of second parameter is "const
2897 char *".
2898
2899 2013-07-25 Ito Hiroyuki <ZXB01226 at nifty.com>
2900
2901 * src/plugins.h: added (experimental).
2902
2903 * src/plugins.c: added (experimental).
2904
2905 * src/shell.c (get_security): added.
2906 (cmdtable): add "load_plugin" command.
2907
2908 2013-07-24 Ito Hiroyuki <ZXB01226 at nifty.com>
2909
2910 * src/gtk/x11merge.c (MergeDialogSetup): call
2911 "gtk_widget_show_all()".
2912
2913 * src/gtk/x11axis.c (GridDialogSetup, SectionDialogSetup)
2914 (CrossDialogSetup, ZoomDialogSetup, AxisDialogSetup): call
2915 "gtk_widget_show_all()".
2916
2917 * src/gtk/gtk_widget.c (set_widget_visibility_with_label): added.
2918 (set_scroll_visibility): use "gtk_widget_set_visible()" instead of
2919 "gtk_widget_show()" and "gtk_widget_hide()".
2920
2921 * src/gtk/x11print.c (DriverDialogSetup, OutputDataDialogSetup)
2922 (OutputImageDialogSetup): call "gtk_widget_show_all()".
2923 (OutputImageDialogSetupItem): hide unused widgets and reset window
2924 size.
2925
2926 * src/gtk/x11lgnd.c (LegendArrowDialogSetup)
2927 (LegendRectDialogSetup, LegendArcDialogSetup)
2928 (LegendMarkDialogSetup, LegendTextDialogSetup)
2929 (LegendTextDefDialogSetup): call "gtk_widget_show_all()".
2930
2931 * src/gtk/x11menu.c (toggle_view_cb): use
2932 "gtk_widget_set_visible()" instead of "gtk_widget_show()" and
2933 "gtk_widget_hide()".
2934 (InputYN): use "get_current_window()".
2935
2936 * src/gtk/x11graph.c (PageDialogSetup, SwitchDialogSetup)
2937 (DirectoryDialogSetup, LoadDialogSetup, PrmDialogSetup)
2938 (SaveDialogSetup): call "gtk_widget_show_all()".
2939
2940 * src/gtk/x11lgndx.c (LegendGaussDialogSetup): call
2941 "gtk_widget_show_all()".
2942
2943 * src/gtk/x11dialg.c (SelectDialogSetup, CopyDialogSetup): call
2944 "gtk_widget_show_all()".
2945
2946 * src/gtk/x11file.c (MathTextDialogSetup, MathDialogSetup)
2947 (FitLoadDialogSetup, FitSaveDialogSetup, FitDialogSetup)
2948 (MarkDialogSetup, FileDialogSetup, FileDefDialogSetup): call
2949 "gtk_widget_show_all()".
2950
2951 * src/gtk/x11view.c (EvalDialogSetup): call
2952 "gtk_widget_show_all()".
2953
2954 * src/gtk/x11opt.c (DefaultDialogSetup, SetScriptDialogSetup)
2955 (PrefScriptDialogSetup, SetDriverDialogSetup)
2956 (PrefDriverDialogSetup, FontSettingDialogSetup)
2957 (PrefFontDialogSetup, MiscDialogSetup, ExViewerDialogSetup)
2958 (ViewerDialogSetup): call "gtk_widget_show_all()".
2959 (DefaultDialogSetup): use "gtk_widget_set_visible()" instead of
2960 "gtk_widget_set_sensitive()".
2961
2962 * src/gtk/x11gui.c (DialogExecute): use "gtk_widget_show()"
2963 instead of "gtk_widget_show_all()".
2964
2965 2013-07-24 Koichi Akabe <vbkaisetsu at gmail.com>
2966
2967 * misc/ngraph.desktop (Keywords): added.
2968
2969 2013-07-18 Ito Hiroyuki <ZXB01226 at nifty.com>
2970
2971 * src/gra.h (GRA_FILL_MODE): added.
2972
2973 * src/gra.c (GRAdrawpoly): type of the 4th parameter is "enum
2974 GRA_FILL_MODE".
2975
2976 2013-07-17 Ito Hiroyuki <ZXB01226 at nifty.com>
2977
2978 * src/gtk/x11lgnd.c (LegendArrowDialogSetup): use
2979 "set_scale_mark()".
2980 (points_setup, LegendArrowDialogSetup, LegendRectDialogSetup)
2981 (LegendArcDialogSetup): use "set_widget_margin()".
2982 (create_color_combo_box, select_type): the field "line_join" can
2983 be modified from a combo-box.
2984 (create_mark_color_combo_box): call
2985 "add_line_style_item_to_cbox()".
2986
2987 * src/gtk/x11lgndx.c (LegendGaussDialogSetup): use
2988 "set_scale_mark()".
2989
2990 * src/gtk/gtk_widget.h (WIDGET_MARGIN): added.
2991
2992 * src/gtk/gtk_widget.c (set_widget_margin, set_scale_mark): added.
2993
2994 * src/gtk/gtk_subwin.c (spin_button_size_allocated): use variable
2995 "new_allocation".
2996
2997 * src/gtk/x11file.c (move_tab_create, mask_tab_create)
2998 (load_tab_create, math_tab_create): use "set_widget_margin()".
2999 (create_type_color_combo_box, select_type): the field "line_join"
3000 can be modified from the combo-box.
3001
3002 * src/gtk/x11axis.c (scale_tab_create, baseline_tab_create)
3003 (gauge_tab_create, numbering_tab_create, font_tab_create)
3004 (position_tab_create): use "set_widget_margin()".
3005
3006 * src/gra.h (GRA_LINE_JOIN, GRA_LINE_CAP): added.
3007
3008 * src/gra.c (GRAlinestyle): type of 5th and 6th parameters are
3009 "enum GRA_LINE_CAP" and "enum GRA_LINE_JOIN" respectively.
3010
3011 2013-07-13 Hiroyuki Ito <ZXB01226 at nifty.com>
3012
3013 * src/gtk/x11lgnd.c (create_character_view): don't set the number
3014 of columns when the version of GTK+ is greater or equal to
3015 "3.8.0".
3016 (create_character_view): call
3017 "gtk_icon_view_set_activate_on_single_click()" when the version of
3018 GTK+ is greater or equal to "3.8.0".
3019
3020 2013-07-12 Ito Hiroyuki <ZXB01226 at nifty.com>
3021
3022 * src/gtk/x11file.c (create_user_fit_frame): use
3023 "gtk_container_add()" instead of
3024 "gtk_scrolled_window_add_with_viewport()" when the version of GTK+
3025 is greater or equal to "3.8.0".
3026
3027 * src/gtk/ogra2x11.c (gtkinit): use "gtk_container_add()" instead
3028 of "gtk_scrolled_window_add_with_viewport()" when the version of
3029 GTK+ is greater or equal to "3.8.0".
3030
3031 * src/gtk/gtk_subwin.c (label_sub_window_create): use
3032 "gtk_container_add()" instead of
3033 "gtk_scrolled_window_add_with_viewport()" when the version of GTK+
3034 is greater or equal to "3.8.0".
3035
3036 * src/gtk/gtk_ruler.c (nruler_get_color): use "TopLevel" to get
3037 the default color.
3038
3039 2013-07-05 Hiroyuki Ito <ZXB01226 at nifty.com>
3040
3041 * src/gtk/x11menu.c (application): check the state of
3042 "ViewToggleSingleWindowModeAction".
3043
3044 * src/gtk/main.c (main): the "-i" option with no filename means
3045 to execute a console.
3046
3047 * src/gtk/gtk_subwin.c (start_editing): the function
3048 "spin_button_size_allocated()" is connected to the "size-allocate"
3049 signal.
3050 (spin_button_size_allocated): added.
3051
3052 2013-06-27 Ito Hiroyuki <ZXB01226 at nifty.com>
3053
3054 * src/gtk/x11view.c (PasteObjectsFromClipboard): check "d->Win".
3055 (PasteObjectsFromClipboard, ShowCrossGauge, show_zoom_animation)
3056 (show_move_animation, mouse_move_scroll, ViewerEvMouseMove)
3057 (popup_menu_position, SetHRuler, SetVRuler, create_pix): use
3058 "gtk_widget_get_window()".
3059 (move_focus_frame, ViewerEvVScroll, ViewerEvHScroll)
3060 (ViewerWinUpdate, ChangeDPI, Draw): use "main_window_redraw()".
3061
3062 2013-06-26 Ito Hiroyuki <ZXB01226 at nifty.com>
3063
3064 * src/gtk/ogra2cairo.c (gra2cairo_draw_path): check
3065 "local->cairo".
3066
3067 * src/gtk/x11file.c (draw_type_pixbuf): use
3068 "gra2cairo_draw_path()".
3069 (CmFileSaveData): use "main_window_redraw()".
3070
3071 * src/gtk/x11lgnd.c (draw_color_pixbuf): use
3072 "gra2cairo_draw_path()".
3073
3074 * src/gtk/ogra2gtkprint.c (gra2gtkprint_done): use
3075 "gra2cairo_draw_path()".
3076
3077 * src/gtk/ox11menu.c (main_window_redraw): added.
3078 (mx_redraw, mxdpi, mxclear): use "gra2cairo_draw_path()".
3079 (mxflush): use "gra2cairo_draw_path()".
3080
3081 * src/gtk/ogra2x11.c (gtklocal): remove member "win".
3082 (redraw_window): added.
3083 (gtkclear, gtkflush, gtkredraw): use "redraw_window()".
3084
3085 * src/gtk/x11menu.h (Viewer): remove member "gdk_win".
3086
3087 * src/gtk/x11menu.c (NSetCursor): check "NgraphApp.Viewer.Win" and
3088 use "gtk_widget_get_window()".
3089 (script_exec): use "main_window_redraw()".
3090
3091 * src/gtk/x11print.c (draw_gra): use "main_window_redraw()".
3092
3093 2013-06-05 Ito Hiroyuki <ZXB01226 at nifty.com>
3094
3095 * src/object.h (objlist): type of the member "root" and "root2"
3096 should be "N_VALUE *".
3097
3098 2013-06-05 Hiroyuki Ito <ZXB01226 at nifty.com>
3099
3100 * src/gtk/ogra2x11.c (gtkwait_action): renamed from "wait_key()".
3101 (action_type, button_released, scrolled): added.
3102 (gtklocal): use "struct action_type".
3103 (gtkinit): add event handler for signals "button-release-event"
3104 and "scroll-event".
3105
3106 2013-06-04 Ito Hiroyuki <ZXB01226 at nifty.com>
3107
3108 * src/gra.c (GRAcolor): don't change the color when an argument is
3109 negative.
3110 (GRAdrawtext, GRAtextextent): add "C" and "A" parameter.
3111
3112 * src/gtk/ogra2x11.c (gtklocal): add member "blank_cursor".
3113 (cursor_moved): added.
3114 (gtkinit): initialize "gtklocal->blank_cursor".
3115 (gtkinit): the "motion-notify-event" signal is connected to the
3116 function "cursor_moved()".
3117 (gtkdone): unref "gtklocal->blank_cursor" if necessary.
3118 (gtk_wait_key): set mouse cursor invisible.
3119
3120 * src/gtk/gtk_common.h (SE_ENTRY_ICON): removed.
3121
3122 * configure.in (GTK2_REQUIRED_VERSION, GLIB_REQUIRED_VERSION):
3123 changed from "2.14.0" to "2.16.0".
3124
3125 2013-06-02 Hiroyuki Ito <ZXB01226 at nifty.com>
3126
3127 * src/ofile.c (f2dredraw): redraw when the variable "dmax" equal
3128 to zero.
3129
3130 * src/gtk/ogra2x11.c (ev_key_down): save "e->keyval".
3131 (ev_key_down): use "gtkclose()" to close the window.
3132 (gtk_wait_key): added.
3133 (gra2gtk): add "wait_key" field.
3134
3135 * src/gtk/x11menu.c (application): call "multi_to_single()" if
3136 necessary.
3137
3138 * src/omerge.c (mergeredraw): redraw when the variable "dmax"
3139 equal to zero.
3140
3141 2013-05-31 Ito Hiroyuki <ZXB01226 at nifty.com>
3142
3143 * src/gtk/ox11dlg.c (dlgbutton): set "rval->str".
3144
3145 2013-05-29 Ito Hiroyuki <ZXB01226 at nifty.com>
3146
3147 * src/ogra.c (close_gc): added.
3148 (oGRAclose): use "close_gc()".
3149 (oGRAopen): call "close_gc()" when "GRAinit()" returns non-zero
3150 value.
3151 (oGRAopen): bug fix: initialize the variable "robj" and check
3152 before call the function "GRAopen()".
3153
3154 * src/gtk/ogra2cairo.c (addgra2cairo): use
3155 "CAIRO_STATUS_LAST_STATUS" to generate error messages.
3156
3157 * src/gtk/ox11dlg.c (dlgbutton): added.
3158 (dialog): add "button" field.
3159
3160 * src/gtk/x11gui.c (DialogButton): added.
3161
3162 * src/gtk/x11view.c (Draw, Clear): don't use "Menulocal.GRAinst".
3163
3164 * src/gtk/ogra2x11.c (size_allocate, gtkfullscreen, gtk_set_fit)
3165 (gtk_set_frame): added.
3166 (gtkinit): initialize "fit" and "frame" fields.
3167 (gtkinit): the "GtkDrawingArea" is located center of the window.
3168 (gtkinit): the function "size_allocate()" is connected to the
3169 "size-allocate" signal.
3170 (gtkchangedpi): use function "cairo_surface_destroy()" instead of
3171 "g_object_unref()".
3172 (gtkMakeRuler): check "gtklocal->frame".
3173 (gtk_set_dpi): set "fit" field as FALSE.
3174 (gra2gtk): add fields "fit", "frame" and "fullscreen".
3175
3176 * src/gtk/x11commn.c (OpenGRA): remove redundant call of the
3177 function "chkobjinstoid()".
3178 (OpenGRA, CheckPage, CloseGRA, ChangeGRA): don't use
3179 "Menulocal.GRAinst".
3180 (SetPageSettingsToGRA): bug fix: the last argument of the function
3181 "_putobj()" is not "&drawable" but "drawable".
3182
3183 2013-05-24 Ito Hiroyuki <ZXB01226 at nifty.com>
3184
3185 * doc/html/ja/math.html: update document.
3186
3187 * src/math/math_basic_function.c (math_func_for): use variables
3188 "start", "stop" and "step".
3189
3190 * src/gtk/x11file.c (set_headline_table_header): fix title of the
3191 table.
3192
3193 2013-05-20 Ito Hiroyuki <ZXB01226 at nifty.com>
3194
3195 * src/math/math_parser.c (create_variable_assign_expression):
3196 initialize the variable "bin".
3197
3198 * src/math/math_scanner.c (math_scanner_get_token, get_ope): EOEQ
3199 is treated as an operator.
3200
3201 * src/math/math_operator.h.in: add operators ":=", "==", ">=",
3202 "<=", "!=", "-=", "+=", "*=", "/=", "\=" and "^=". EOEQ is treated
3203 as an operator.
3204
3205 * src/math/math_operator.rb: accept multiple representations for
3206 one operator.
3207
3208 * src/osarray.c (ERROUTBOUND): added
3209 (sarrayerrorlist): add error message for the error "ERROUTBOUND".
3210 (sarrayget, sarrayput, sarraysns, sarraydel): show error message
3211 for the error "ERROUTBOUND".
3212
3213 * src/odarray.c (ERROUTBOUND): added
3214 (darrayerrorlist): add error message for the error "ERROUTBOUND".
3215 (darrayget, darrayput, darraydns, darraydel): show error message
3216 for the error "ERROUTBOUND".
3217
3218 * src/oiarray.c (ERROUTBOUND): added.
3219 (iarrayerrorlist): add error message for the error "ERROUTBOUND".
3220 (iarrayget, iarrayput, iarrayins, iarraydel): show error message
3221 for the error "ERROUTBOUND".
3222
3223 2013-05-16 Ito Hiroyuki <ZXB01226 at nifty.com>
3224
3225 * src/math/math_expression.c (optimize_div_expression): check if
3226 the right hand side of the operator is zero or not.
3227 (calc): compare with "0.0" (not "0").
3228
3229 * src/gtk/x11file.c (set_headline_table): remark character is
3230 located at the top of a line.
3231
3232 2013-05-09 Ito Hiroyuki <ZXB01226 at nifty.com>
3233
3234 * debian/patches/series: remove "01_replace_to_free_fonts.patch".
3235
3236 * initfile/Ngraph.ini.in: use "Liberation" fonts as default.
3237
3238 * src/gtk/x11view.c (ViewerEvKeyDown): initialize the variable "d"
3239 first.
3240
3241 2013-04-13 Ito Hiroyuki <ZXB01226 at nifty.com>
3242
3243 * src/ofile.c (get_value_from_str): accepts space character around
3244 the value.
3245
3246 2013-04-11 Ito Hiroyuki <ZXB01226 at nifty.com>
3247
3248 * src/gtk/x11file.c (check_add_str): use "〓" if the character is
3249 not printable.
3250 (set_headline_table): use "g_ascii_isprint()" and
3251 "g_ascii_isspace()".
3252
3253 * src/ofile.c (get_value_from_str): added.
3254 (getdataarray): use 'get_value_from_str()'.
3255
3256 2013-04-06 Ito Hiroyuki <ZXB01226 at nifty.com>
3257
3258 * src/gtk/x11file.c (decode_ifs_text): accepts ascii character only.
3259 (check_add_str): added.
3260 (parse_data_line): use "check_add_str()".
3261 (set_headline_table): only ascii character can be accepted as
3262 mark.
3263
3264 2013-04-05 Ito Hiroyuki <ZXB01226 at nifty.com>
3265
3266 * src/gtk/x11view.c (ViewerEvLButtonUp): call
3267 "set_focus_sensitivity()".
3268
3269 2013-04-04 Ito Hiroyuki <ZXB01226 at nifty.com>
3270
3271 * src/gtk/x11file.c (set_headline_table, create_preview_table)
3272 (update_table_visibility): don't use "GtkTreeModelFilter".
3273 (set_headline_table_header): check space of the cilumn header.
3274
3275 2013-04-03 Ito Hiroyuki <ZXB01226 at nifty.com>
3276
3277 * src/gtk/x11file.c (parse_data_line): remove 6th parameter.
3278 (create_preview_table): use "GtkTreeModelFilter".
3279 (update_table_visibility): added.
3280
3281 * src/ofile.c (getdataarray): set terminator at the end of the
3282 column.
3283
3284 2013-03-31 Ito Hiroyuki <ZXB01226 at nifty.com>
3285
3286 * src/gtk/x11dialg.h (FileDialog): add member "head_linese."
3287
3288 * src/gtk/x11file.c (set_headline_table_header, update_table)
3289 (update_table_header): added.
3290 (FileDialogSetup): use "set_headline_table_header()".
3291
3292 2013-03-29 Ito Hiroyuki <ZXB01226 at nifty.com>
3293
3294 * src/gtk/x11dialg.h (FileDialog): add members "comment_table" and
3295 "initialized".
3296
3297 * src/gtk/x11file.c (decode_ifs_text, set_headline_table)
3298 (create_preview_table): added.
3299 (load_tab_set_value): use "decode_ifs_text()".
3300 (FileDialogSetupCommon): use "GtkGrid" when the version of GTK+ is
3301 greater or equal to "3.0.0".
3302 (FileDialogSetup): add table preview.
3303 (FileDialogClose, FileDialog): set "d->initialize" as FALSE.
3304
3305 2013-03-15 Ito Hiroyuki <ZXB01226 at nifty.com>
3306
3307 * src/gtk/x11view.c (ViewerEvKeyDown): call
3308 "set_focus_sensitivity()" when the signal is propagated further.
3309 (add_focus_obj, clear_focus_obj): don't call
3310 "set_focus_sensitivity()".
3311
3312 * src/gtk/gtk_subwin.c (start_editing): the function "UnFocus()"
3313 don't have to be called before "menu_lock()".
3314 (list_unfocused): removed.
3315
3316 * src/gtk/x11menu.c (menu_lock): don't call
3317 "set_focus_insensitive()" and "set_focus_sensitivity()".
3318 (edit_menu_shown): added.
3319 (setupwindow): "edit_menu_shown()" is connected to the
3320 "show"signal of the popup menu and edit menu.
3321
3322 2013-03-12 Ito Hiroyuki <ZXB01226 at nifty.com>
3323
3324 * src/gtk/x11menu.c (menu_lock): call "set_focus_insensitive()" or
3325 "set_focus_sensitivity()".
3326 (set_focus_sensitivity_sub): set sensitivity of "EditPasteAction".
3327
3328 * src/gtk/gtk_subwin.c (start_editing): call "UnFocus()" before
3329 call "menu_lock()".
3330 (list_unfocused): call "set_focus_sensitivity()" only when
3331 "Menulock" is false.
3332
3333 2013-03-11 Ito Hiroyuki <ZXB01226 at nifty.com>
3334
3335 * src/gtk/x11axis.c (type_edited): removed.
3336 (CmAxisWindow): the 5th argument of the function
3337 "set_combo_cell_renderer_cb()" is "NULL".
3338
3339 * src/gtk/x11lgnd.c (select_type): call "gtk_widget_grab_focus()".
3340 (edited_line_type, edited_font): removed.
3341 (CmLegendWindow): the 5th argument of the function
3342 "set_combo_cell_renderer_cb()" is "NULL".
3343
3344 * src/gtk/gtk_subwin.c (cancel_editing, enum_cb): call
3345 "gtk_widget_grab_focus()".
3346 (set_cell_renderer_cb): the 4th argument of the function
3347 "g_signal_connect()" for the "editing-canceled" signal is "d" when
3348 tha case is "G_TYPE_ENUM".
3349 (combo_edited_cb): added.
3350 (set_combo_cell_renderer_cb): use "combo_edited_cb()" as the
3351 default call-back for the signal "edited".
3352 (set_combo_cell_renderer_cb, set_obj_cell_renderer_cb): the 4th
3353 argument of the function "g_signal_connect()" for the
3354 "editing-canceled" signal is "d"
3355
3356 * src/gtk/x11file.c (select_type, edited_axis): call
3357 "gtk_widget_grab_focus()".
3358
3359 2013-03-08 Ito Hiroyuki <ZXB01226 at nifty.com>
3360
3361 * src/gtk/x11file.c (MARK_PIX_LINE_WIDTH, set_line_style)
3362 (CURVE_POINTS_MAX, draw_curve): added.
3363 (draw_type_pixbuf): use "MARK_PIX_LINE_WIDTH", "set_line_style()",
3364 "CURVE_POINTS_MAX" and "draw_curve()".
3365 (draw_type_pixbuf): update image.
3366 (select_type): check if the graph is modified or not after call
3367 the function "chk_sputobjfield()".
3368
3369 2013-03-06 Ito Hiroyuki <ZXB01226 at nifty.com>
3370
3371 * src/gtk/x11file.c (select_type): add "break" statement for the
3372 case "FILE_COMBO_ITEM_LINESTYLE:".
3373
3374 * src/gtk/x11commn.c (FitClear): fix indent.
3375
3376 2013-03-04 Ito Hiroyuki <ZXB01226 at nifty.com>
3377
3378 * src/gtk/x11file.c (select_type): add case for
3379 "FILE_COMBO_ITEM_CLIP".
3380 (create_type_color_combo_box): add "clip" combo-item.
3381
3382 2013-03-02 Ito Hiroyuki <ZXB01226 at nifty.com>
3383
3384 * src/gtk/gtk_widget.c (select_obj_color): change type of the
3385 return value.
3386
3387 * src/gtk/x11lgnd.c (select_type): check returned value of the
3388 function "select_obj_color()"
3389
3390 * src/gtk/x11axis.c (AxisCB): initialize the variable "s".
3391 (AxisHistoryCB): use "AxisCB()".
3392
3393 * src/gtk/ox11menu.c (menuinit): fix initial value of
3394 "Menulocal.side_pane1_pos" and "Menulocal.side_pane2_pos".
3395
3396 2013-03-01 Ito Hiroyuki <ZXB01226 at nifty.com>
3397
3398 * src/gtk/x11axis.c (select_type): use "OBJECT_COLUMN_TYPE_ENUM".
3399
3400 * src/gtk/x11file.c (select_type): use "OBJECT_COLUMN_TYPE_ENUM".
3401
3402 * src/gtk/x11lgnd.c (select_type, select_line_type): use
3403 "OBJECT_COLUMN_TYPE_ENUM".
3404
3405 * src/gtk/gtk_liststore.c (add_text_combo_item_to_cbox): use
3406 "TOGGLE_TYPE". add parameter "enum_id".
3407 (add_enum_combo_item_to_cbox, add_bool_combo_item_to_cbox)
3408 (add_line_style_item_to_cbox, add_font_style_combo_item_to_cbox):
3409 use "add_text_combo_item_to_cbox()".
3410
3411 * src/gtk/gtk_liststore.h (TOGGLE_TYPE): added.
3412 (OBJECT_COLUMN_TYPE): add "OBJECT_COLUMN_TYPE_ENUM".
3413
3414 2013-02-28 Ito Hiroyuki <ZXB01226 at nifty.com>
3415
3416 * src/gtk/x11lgnd.c (points_setup): check the version of GTK+ to
3417 avoid the bug (Bug 691592).
3418
3419 * src/gtk/gtk_liststore.c (create_column): check the version of
3420 GTK+ to avoid the bug (Bug 691592).
3421
3422 2013-02-26 Ito Hiroyuki <ZXB01226 at nifty.com>
3423
3424 * src/shellcm.c (cmget): check returned value via 3rd argument of
3425 the function "sgetobjfield()".
3426
3427 * src/gtk/gtk_liststore.c (add_line_style_item_to_cbox): don't
3428 duplicate returned value via 3rd argument of the function
3429 "sgetobjfield()".
3430
3431 * src/gtk/x11axis.c (Popup_list): remove "Show" item from the
3432 pop-up menu.
3433 (popup_show_cb): remove case for "POPUP_ITEM_HIDE".
3434 (AxisCB, AxisHistoryCB, GridDialogSetupItem)
3435 (scale_tab_setup_item, position_tab_setup_item)
3436 (axis_list_set_val): check returned value via 3rd argument of the
3437 function "sgetobjfield()".
3438
3439 * src/gtk/x11merge.c (Popup_list): remove "Show" item from the
3440 pop-up menu.
3441 (popup_show_cb): remove case for "POPUP_ITEM_HIDE".
3442
3443 * src/gtk/x11lgnd.c (Popup_list): remove "Show" item from the
3444 pop-up menu.
3445 (legend_dialog_setup_item, path_list_set_val): check returned
3446 value via 3rd argument of the function "sgetobjfield()".
3447 (popup_show_cb): remove case for "POPUP_ITEM_HIDE".
3448
3449 * src/gtk/x11file.c (Flist): remove "Show" and "Fit" items from
3450 the pop-up menu.
3451 (FitCB, load_tab_setup_item, file_setup_item)
3452 (FileDialogSetupItem, get_axis_obj_str): check returned value via
3453 3rd argument of the function "sgetobjfield()".
3454 (FileDialogSetupItem): remove 4th parameter.
3455 (show_fit_dialog): added.
3456 (FileDialogFit): use "show_fit_dialog()".
3457 (file_fit_popup_func): removed.
3458 (popup_show_cb): remove cases for "POPUP_ITEM_HIDE" and
3459 "POPUP_ITEM_FIT".
3460 (start_editing): don't show radio buttom on the combo-box.
3461 (add_fit_combo_item_to_cbox): added.
3462 (create_type_color_combo_box): use "add_fit_combo_item_to_cbox()".
3463 (select_type): show fitting dialog when the plot type fit is
3464 selected and the fit field of the file instance is not set.
3465 (select_type): add case for "FILE_COMBO_ITEM_FIT".
3466
3467 * src/gtk/gtk_subwin.c (start_editing): check returned value via
3468 3rd argument of the function "sgetobjfield()".
3469
3470 2013-02-24 Ito Hiroyuki <ZXB01226 at nifty.com>
3471
3472 * src/gtk/gtk_widget.c (combo_box_create_mark): removed.
3473 (select_obj_color): handle case for
3474 "OBJ_FIELD_COLOR_TYPE_AXIS_BASE",
3475 "OBJ_FIELD_COLOR_TYPE_AXIS_GAUGE" and
3476 "OBJ_FIELD_COLOR_TYPE_AXIS_NUM".
3477
3478 * src/gtk/x11lgnd.c (text_list_set_val): set color of the text
3479 column.
3480 (create_mark_color_combo_box): use "add_text_combo_item_to_cbox()"
3481 and "add_mark_combo_item_to_cbox()".
3482 (create_fill_rule_combo_box): removed.
3483 (create_color_combo_box): use "add_bool_combo_item_to_cbox()",
3484 "add_line_style_item_to_cbox()", "add_text_combo_item_to_cbox()"
3485 and "add_enum_combo_item_to_cbox()".
3486 (select_type): dant handle the case "LEGEND_COMBO_ITEM_COLOR_0".
3487 (select_line_type): now the ComboBox use "GtkTreeStore".
3488 (start_editing_line_type): use "init_object_combo_box()".
3489 (select_font): added.
3490 (start_editing_font): use "init_object_combo_box()".
3491 (edited_font): only call "menu_lock()".
3492 (CmLegendWindow): set "foreground" column.
3493
3494 * src/gtk/gtk_liststore.c (combo_box_separator_func)
3495 (init_object_combo_box, create_object_tree_model)
3496 (add_separator_combo_item_to_cbox, add_font_combo_item_to_cbox)
3497 (add_font_style_combo_item_to_cbox, add_text_combo_item_to_cbox)
3498 (add_mark_combo_item_to_cbox, add_enum_combo_item_to_cbox)
3499 (add_bool_combo_item_to_cbox, add_line_style_item_to_cbox): added.
3500 (create_object_cbox): use "create_object_tree_model()".
3501 (create_column): use "create_object_tree_model()" for the case
3502 "G_TYPE_PARAM".
3503
3504 * src/gtk/x11dialg.c (SetFontListFromObj): type of the lase
3505 parameter is "const char *".
3506
3507 * src/gtk/x11file.c (create_type_color_combo_box): use
3508 "create_type_combo_item()" and "add_text_combo_item_to_cbox()".
3509 (create_type_combo_item): use "add_text_combo_item_to_cbox()".
3510 (create_type_combo_item): added.
3511 (create_type_combo_box): removed.
3512 (select_axis): use "gtk_tree_model_get()" to get active item.
3513 (start_editing): use "init_object_combo_box()" and
3514 "add_text_combo_item_to_cbox()".
3515
3516 * src/gtk/x11axis.c (AXIS_COMBO_ITEM, create_base_combo_item)
3517 (create_gauge_combo_item, create_num_combo_item)
3518 (create_type_combo_box, select_type, start_editing_type)
3519 (type_edited): added.
3520 (CmAxisWindow): call "set_combo_cell_renderer_cb()".
3521
3522 2013-02-21 Ito Hiroyuki <ZXB01226 at nifty.com>
3523
3524 * src/gtk/x11view.c (ViewerWinClose): assign NULL to freed member.
3525
3526 * src/gtk/gtk_liststore.c (create_object_cbox): use
3527 "OBJECT_COLUMN_TYPE_NUM" for the function "gtk_tree_store_new()".
3528 (add_line_style_item_to_cbox): add 3rd, 5th, 6rh and 7th
3529 parameters.
3530
3531 * src/gtk/gtk_liststore.h (OBJECT_COLUMN_TYPE): add
3532 "OBJECT_COLUMN_TYPE_TOGGLE_IS_RADIO" and "OBJECT_COLUMN_TYPE_NUM".
3533
3534 * src/gtk/x11file.c (FileDialogType): set sensitivity of the
3535 widgets to set "line style" and "line width".
3536 (create_type_color_combo_box): add 4th parameter.
3537 (create_type_combo_box): add 3rd parameter.
3538
3539 * src/gtk/gtk_widget.c (combo_box_create_mark): add 4th parameter.
3540
3541 * src/gtk/x11lgnd.c (LEGEND_COMBO_ITEM): add
3542 "LEGEND_COMBO_ITEM_FILL_EVEN_ODD" and
3543 "LEGEND_COMBO_ITEM_FILL_WINDING".
3544 (create_mark_color_combo_box): add 3rd parameter.
3545 (create_fill_rule_combo_box): added.
3546 (create_color_combo_box): some menus are placed as a child menu.
3547 (set_bool_field, set_stroke, set_fill): added.
3548 (select_type): use "set_stroke()" and "set_fill()". set
3549 "fill_rule" field.
3550
3551 2013-02-20 Ito Hiroyuki <ZXB01226 at nifty.com>
3552
3553 * src/gtk/x11file.c (create_type_color_combo_box): use
3554 "add_line_style_item_to_cbox()".
3555 (select_type): add case for "FILE_COMBO_ITEM_LINESTYLE".
3556
3557 * src/gtk/gtk_liststore.c (add_line_style_item_to_cbox): added.
3558
3559 * src/gtk/x11lgnd.c (select_color, select_line_style): removed.
3560 (create_mark_color_combo_box, create_color_combo_box): use
3561 "add_line_style_item_to_cbox()".
3562 (select_type): handle all legend objects.
3563 (start_editing_color): use "select_type()" as a callback function.
3564
3565 * addin/fitrslt.c (set_parameter): use "file::fit_prm".
3566 (ACCURACY): defined as 7
3567
3568 2013-02-19 Ito Hiroyuki <ZXB01226 at nifty.com>
3569
3570 * src/gtk/x11lgnd.c (add_line_style_item): added.
3571 (create_mark_color_combo_box, create_color_combo_box): use
3572 "add_line_style_item()".
3573 (select_line_style): added.
3574 (select_type, select_color): use "select_line_style()".
3575
3576 * mingw/windows.sh: create "$PKG_DIR/lib".
3577
3578 * mingw/gtkrc (msw-combobox-thickness): set
3579 "GtkComboBox::appears-as-list" as 0.
3580
3581 2013-02-18 Ito Hiroyuki <ZXB01226 at nifty.com>
3582
3583 * addin/ps2gra.nsc: use "get" command to obtain returned value of
3584 "dialog::yesno".
3585
3586 * src/ofit.c (fitput, fitcalc): use
3587 "ofile_create_math_equation()".
3588
3589 * src/ofile.c (file_fit_calc, file_fit_prm): don't use
3590 "math_equation_get_user_data()".
3591 (FitFunc, add_fit_func): added.
3592 (ofile_create_math_equation): add 7th parameter "use_fit_func".
3593 (ofile_create_math_equation): 2nd parameter represents the digit
3594 of prm.
3595 (ofile_calc_fit_equation): added.
3596
3597 2013-02-12 Ito Hiroyuki <ZXB01226 at nifty.com>
3598
3599 * src/ofit.c (fitlocal): add member "result_code".
3600 (fitinit): initialize "fitlocal->result_code".
3601 (fitdone): free "fitlocal->result_code".
3602 (set_equation, fitequation): added.
3603 (fitput, fitfit): use "set_equation()".
3604 (fitfit): check case "FitError_Interrupt".
3605 (fitcalc): use "fitlocal->result_code".
3606 (fitcalc): returned value is not string but double.
3607
3608 * src/ofile.c (MATH_CONST_MASK): add "MATH_CONST_FILE_OBJ",
3609 "MATH_CONST_PATH_OBJ", MATH_CONST_RECT_OBJ, "MATH_CONST_ARC_OBJ",
3610 "MATH_CONST_MARK_OBJ" and "MATH_CONST_TEXT_OBJ".
3611 (FIT_FIELD_PREFIX, file_obj_color_alpha, file_objcolor)
3612 (file_objalpha): added.
3613 (file_color): now first argument of the "COLOR()" function accepts
3614 "8" and "9".
3615 (file_fit_calc, file_fit_prm): added.
3616 (file_func): add functions "FIT_CALC", "FIT_PRM", "OBJ_COLOR" and
3617 "OBJ_ALPHA".
3618 (ofile_create_math_equation): add constants "FILE_OBJ",
3619 "PATH_OBJ", "RECT_OBJ", "ARC_OBJ", "MARK_OBJ" and "TEXT_OBJ".
3620 (set_const): initialize constants "FILE_OBJ", "PATH_OBJ",
3621 "RECT_OBJ", "ARC_OBJ", "MARK_OBJ" and "TEXT_OBJ".
3622 (newton): don't check the number of the iteration is 1 or not ("i
3623 = 1").
3624 (solve_equation): add prefix to the fields.
3625 (solve_equation): the error message is not set to the returned
3626 string.
3627 (calc_fit_equation): added.
3628 (calc_equation): use "calc_fit_equation()".
3629 (calc_equation): the error message is not set to the returned
3630 string.
3631 (get_fit_parameter): added.
3632 (file2d): add fields "fit_prm". change name of the fields
3633 "newton", "bisection" and "calc".
3634
3635 * src/gtk/x11file.c (MathDialogSetup): initialize "d->Mode" whine
3636 "makewidget" is true
3637 (MathDialog): don't modify "data->Mode".
3638
3639 * src/gtk/x11view.c (Draw): call "FitClear()" after call
3640 "FileAutoScale()".
3641
3642 * src/object.c (addobject): object id is start from 1.
3643
3644 2013-01-24 Ito Hiroyuki <ZXB01226 at nifty.com>
3645
3646 * initfile/NgraphUI.xml.win: add "Sidebar" menu.
3647
3648 * initfile/NgraphUI.xml: add "Sidebar" menu.
3649
3650 * src/gtk/ox11menu.h (menulocal): add member "sidebar".
3651
3652 * src/gtk/x11menu.h (MenuID): add id "MenuIdToggleSidebar".
3653
3654 * src/gtk/x11menu.c (ActionEntry): add "ViewSidebarAction".
3655 (ActionEntry): change shortcut key of "cross bar" menu from "+" to
3656 "^g",
3657 (set_window_action_visibility): set visibility of
3658 "ViewSidebarAction".
3659 (multi_to_single): check "Menulocal.sidebar".0
3660 (toggle_view_cb): handle "MenuIdToggleSidebar".
3661 (application): hide only "NgraphApp.Viewer.side_pane1".
3662
3663 * src/gtk/ox11menu.c (MenuConfigToggleView): add sidebar setting.
3664 (menuinit): initialize "Menulocal.sidebar".
3665
3666 2013-01-23 Ito Hiroyuki <ZXB01226 at nifty.com>
3667
3668 * src/gtk/x11file.c (FileWinFit): use "list_store_get_selected_int()".
3669 (filewin_ev_key_down): check "GDK_CONTROL_MASK" for the case "GDK_KEY_f".
3670
3671 2013-01-22 Ito Hiroyuki <ZXB01226 at nifty.com>
3672
3673 * src/gtk/gtk_subwin.c (copy, delete, move_top, move_last)
3674 (move_up, move_down, hidden): call "UnFocus()".
3675 (list_focused, list_unfocused): added.
3676 (list_widget_create): use "focus-in-event" and "focus-in-event" to
3677 improve behavior of single window mode.
3678
3679 * src/gtk/x11file.c (FitDialogSetup): add delete button to the
3680 dialog.
3681 (filewin_ev_key_down): call "UnFocus()".
3682
3683 * src/gtk/x11view.c (ShowFocusFrame): don't call
3684 "set_focus_sensitivity()".
3685 (ViewerEvKeyDown): "DGK_KEY_Insert" is not handled.
3686 (Focus): don't call "gtk_widget_grab_focus()".
3687 (CmEditMenuCB): add case "MenuIdEditDuplicate".
3688
3689 * src/gtk/x11axis.c (axiswin_delete_axis): call "UnFocus()".
3690
3691 * src/gtk/x11menu.c (set_action_sensitivity)
3692 (set_focus_sensitivity_sub, set_focus_insensitive): added.
3693 (set_focus_sensitivity): use "set_focus_sensitivity_sub()".
3694
3695 * initfile/NgraphUI.xml.win: add "EditDuplicate" item.
3696
3697 * initfile/NgraphUI.xml: add "EditDuplicate" item.
3698
3699 2013-01-18 Ito Hiroyuki <ZXB01226 at nifty.com>
3700
3701 * src/gtk/gtk_subwin.c (swin_realized): type of the "user_data" is
3702 "struct obj_list_data *".
3703 (list_widget_create): "realize" signal is connected to the
3704 function "swin_realized()".
3705 (sub_window_create): don't call "g_signal_connect()" to the
3706 variable "swin".
3707 (tree_sub_window_create): remove redundant cast to "struct SubWin *".
3708
3709 2013-01-14 Ito Hiroyuki <ZXB01226 at nifty.com>
3710
3711 * src/gtk/gtk_liststore.c (create_column): don't use
3712 GtkCellRendererSpin while the GTK+ bug is not fixed.
3713
3714 * src/gtk/x11lgnd.c (points_setup): don't use GtkCellRendererSpin
3715 while the GTK+ bug is not fixed.
3716
3717 2013-01-11 Ito Hiroyuki <ZXB01226 at nifty.com>
3718
3719 * src/gtk/x11view.c (ZOOM_SPEED_LITTLE, ZOOM_SPEED_NORMAL)
3720 (mouse_down_zoom_little, mouse_down_zoom2): added.
3721 (ViewerEvScroll): use "mouse_down_zoom_little()".
3722
3723 * src/gtk/ogra2emf.c (enum_font_cb): check argument "FontType" and
3724 return with 0 if necessary.
3725
3726 2013-01-09 Ito Hiroyuki <ZXB01226 at nifty.com>
3727
3728 * src/gtk/x11view.c (PasteObjectsFromClipboard): check source
3729 device.
3730
3731 2013-01-08 Ito Hiroyuki <ZXB01226 at nifty.com>
3732
3733 * addin/legend.c (loaddatalist): check "hidden" field of data
3734 instances.
3735
3736 2013-01-07 Ito Hiroyuki <ZXB01226 at nifty.com>
3737
3738 * addin/legend.c (create_file_frame): not set hight of tree view
3739 but scrolled window.
3740 (create_file_frame): sensitivity of columns are depend on the
3741 state of the top column.
3742 (create_control): setting frames are expandable.
3743
3744 * addin/fitrslt.c (create_spin_button): set margin of spin button
3745 widget.
3746 (create_control): setting frames are expandable.
3747
3748 * addin/addin_common.c (create_font_frame): table widget is
3749 expandable
3750
3751 * src/gtk/gtk_subwin.c (list_widget_create): sensitivity of
3752 columns are depend of the state of top column.
3753
3754 * src/gtk/gtk_liststore.c (create_column): expand some editable
3755 columns.
3756
3757 * src/gtk/x11lgnd.c (CmLegendWindow): don't expand some columns.
3758
3759 2013-01-04 Ito Hiroyuki <ZXB01226 at nifty.com>
3760
3761 * addin/fitrslt.c (get_opt): check "argv[i]".
3762
3763 * addin/legend.c (get_opt): check "argv[i]".
3764
3765 2013-01-01 Ito Hiroyuki <ZXB01226 at nifty.com>
3766
3767 * addin/fitrslt.c (savescript, caption_toggled, set_parameter):
3768 use GtkTreeModel.
3769 (text_edited, caption_edited, value_edited): added.
3770 (create_caption_frame): use GtkTreeView widgret.
3771 (VERSION): 1.00.02
3772
3773 2012-12-28 Ito Hiroyuki <ZXB01226 at nifty.com>
3774
3775 * src/gtk/x11menu.c (application): call "CheckIniFile()" before
3776 save configurations.
3777
3778 2012-12-27 Ito Hiroyuki <ZXB01226 at nifty.com>
3779
3780 * src/gtk/ox11menu.c (mx_show_win, mx_hide_win, mx_toggle_win):
3781 check "Menulocal.single_window_mode".
3782
3783 2012-12-21 Ito Hiroyuki <ZXB01226 at nifty.com>
3784
3785 * src/gtk/gtk_subwin.c (tree_sub_window_create): call
3786 "gtk_notebook_popup_enable()".
3787 (tree_sub_window_create): set text label of the popup menu.
3788
3789 2012-12-20 Ito Hiroyuki <ZXB01226 at nifty.com>
3790
3791 * src/gtk/x11lgnd.c (CmLegendWindow): use icon file macros.
3792 (CmLegendWindow): add data for the key "ngraph_object_data" to
3793 widgets of inside of tabs.
3794
3795 * src/gtk/x11menu.c (ActionEntry, window_to_tab, multi_to_single):
3796 use icon file macros.
3797 (window_to_tab): add parameter "tip".
3798 (tab_info_compare, init_tab_info, save_tab_position_sub)
3799 (save_tab_position): added.
3800 (multi_to_single): restore tab positions.
3801 (single_to_multi): call function "save_tab_position()".
3802 (single_to_multi): enable popup of tabs.
3803 (create_action_group): use icon file macros.
3804 (application): call function "save_tab_position()".
3805
3806 * src/gtk/ox11menu.h (menulocal): add member related to tabs used
3807 in the single window mode.
3808
3809 * src/gtk/ox11menu.c (MenuConfigOthers): add settings related to
3810 tabs used in the single window mode.
3811 (menuinit): initialize settings related to tabs used in the single
3812 window mode.
3813
3814 * src/gtk/gtk_subwin.c (file_select, update): parent window is
3815 depend on the setting "Menulocal.single_window_mode".
3816 (swin_realized): added.
3817 (sub_window_create): connect "realize" signal to the function
3818 "swin_realized()".
3819 (sub_window_set_visibility): don't update content in this
3820 function.
3821
3822 * src/gtk/x11file.c (FileWinFileUpdate, FileWinFit): parent window
3823 is depend on the setting "Menulocal.single_window_mode".
3824
3825 * src/gtk/x11bitmp.h: add macros for icon files.
3826
3827 * src/ioutil.h (DIRSEP_STR): added.
3828
3829 2012-12-18 Ito Hiroyuki <ZXB01226 at nifty.com>
3830
3831 * src/gtk/gtk_ruler.c (nruler_destroy): destroy or unref
3832 "ruler->backing_store".
3833
3834 2012-12-17 Ito Hiroyuki <ZXB01226 at nifty.com>
3835
3836 * src/gtk/x11view.c (popup_menu_position): use the function
3837 "gdk_window_get_origin()" to get the position.
3838 (ViewerWinSetup): the function "ev_popup_menu()" is connect to the
3839 signal "popup-menu".
3840 (ev_popup_menu): added.
3841
3842 * src/gtk/gtk_subwin.c (popup_menu_position): use the function
3843 "gdk_window_get_origin()" to get the position.
3844 (do_popup): data for the positon function is "d->text".
3845
3846 2012-12-16 Ito Hiroyuki <ZXB01226 at nifty.com>
3847
3848 * src/gtk/x11file.c (init_dnd): destination of DnD is listsore
3849 widget.
3850
3851 * src/gtk/x11merge.c (init_dnd): destination of DnD is listsore
3852 widget.
3853
3854 * src/gtk/x11cood.c (CoordWinSetCoord): the variable "str" should
3855 be initialized as "NULL".
3856 (CoordWinSetCoord): don't check visibility of the widget "d->Win".
3857 (CoordWinSetCoord): show date and time in new line.
3858
3859 * src/gtk/ox11menu.c (MenuConfigOthers): add pane and single
3860 window mode settings.
3861 (menuinit): initialize pane and single window mode settings.
3862
3863 * src/gtk/x11opt.c (DefaultDialogSetup): set widget sensitivity
3864 depend on "Menulocal.single_window_mode".
3865
3866 * src/gtk/gtk_subwin.c (sub_window_save_geometry): check
3867 "Menulocal.single_window_mode".
3868 (sub_window_create, text_sub_window_create)
3869 (label_sub_window_create, list_sub_window_create)
3870 (tree_sub_window_create): type of the second parameter is "const
3871 char *".
3872
3873 * src/gtk/x11menu.c (SIDE_PANE_TAB_ID): added.
3874 (ActionEntry): add "ViewToggleSingleWindowModeAction".
3875 (menu_lock): check "NgraphApp.Viewer.menu", lock
3876 "NgraphApp.Viewer.menu" and the first child of the widget
3877 "NgraphApp.Viewer.main_pane".
3878 (set_window_action_visibility, OBJ_ID_KEY, window_to_tab)
3879 (tab_to_window, get_pane_position, set_pane_position)
3880 (multi_to_single, check_move_widget, check_move_legend_widget)
3881 (single_to_multi): added.
3882 (setupwindow): add paned widget for the single window mode.
3883 (create_sub_windows): check "Menulocal.single_window_mode".
3884 (set_toggle_action): added.
3885 (window_action_set_active): use the function
3886 "set_toggle_action()".
3887 (application): call "gtk_window_set_has_resize_grip()".
3888 (application): check "Menulocal.single_window_mode".
3889 (CmToggleSingleWindowMode): added.
3890
3891 * initfile/NgraphUI.xml: add single window mode menu item.
3892
3893 * initfile/NgraphUI.xml.win: add single window mode menu item.
3894
3895 2012-12-11 Ito Hiroyuki <ZXB01226 at nifty.com>
3896
3897 * src/gtk/x11menu.c (setupwindow): remove redundant call of the
3898 function "gtk_menu_bar_new()".
3899
3900 2012-12-04 Ito Hiroyuki <ZXB01226 at nifty.com>
3901
3902 * src/gtk/x11view.c (draw_paper_frame): the origin of the
3903 rectangle is 0 is the version of GTK+ is less than "2.22".
3904
3905 * src/gtk/gtk_common.h (CAIRO_COORDINATE_OFFSET): always defined as "1".
3906
3907 * src/gtk/gtk_ruler.c (_Nruler): add member "widget" and "parent".
3908 (nruler_new): change name from "ruler_new".
3909 (nruler_new): use "GtkFrame".
3910 (nruler_make_pixmap): add argument "parent".
3911 (nruler_draw_ticks): don't draw frame.
3912
3913 * src/gtk/x11menu.c (setupwindow): use "nruler_new()".
3914
3915 2012-12-03 Ito Hiroyuki <ZXB01226 at nifty.com>
3916
3917 * src/gtk/gtk_ruler.c (nruler_get_preferred_width)
3918 (nruler_get_preferred_height, nruler_size_request, hruler_new)
3919 (vruler_new): removed.
3920
3921 2012-12-01 Ito Hiroyuki <ZXB01226 at nifty.com>
3922
3923 * src/gtk/gtk_ruler.c (nruler_set_style, nruler_parent_set):
3924 removed.
3925 (nruler_get_color): added.
3926 (nruler_draw_pos, nruler_draw_ticks): use "nruler_get_color()".
3927
3928 * src/gtk/main.c (main): dan't call "gdk_threads_init()" and
3929 "gdk_threads_enter()".
3930
3931 2012-11-30 Ito Hiroyuki <ZXB01226 at nifty.com>
3932
3933 * src/gtk/gtk_ruler.c (nruler_set_style): added.
3934 (nruler_parent_set): connect the function "nruler_set_style" to
3935 the signal "changed".
3936 (nruler_draw_ticks, nruler_draw_pos): always use the color
3937 correspond to "GTK_STATE_NORMAL".
3938
3939 * src/gtk/x11file.c (Flist): type of the "masked" column is now
3940 "G_TYPE_INT".
3941 (file_list_set_val): set style instead of color to distinguish
3942 masked or mobed data.
3943 (CmFileWindow): "masked" column is correspond to "style" property.
3944
3945 2012-11-29 Ito Hiroyuki <ZXB01226 at nifty.com>
3946
3947 * src/gtk/gtk_ruler.c (ruler_new): connect the function
3948 "nruler_parent_set()" to the signal "parent-set".
3949 (nruler_parent_set): added.
3950
3951 * src/gtk/gtk_widget.c (create_text_view_with_line_number): call "gtk_text_buffer_new()".
3952
3953 * src/gtk/gtk_subwin.c (text_sub_window_create): call "gtk_text_buffer_new()".
3954
3955 2012-11-10 Ito Hiroyuki <ZXB01226 at nifty.com>
3956
3957 * src/ofit.c (show_poly_equation, show_poly_result)
3958 (show_user_result, show_user_equation): added.
3959 (fitpoly): use "show_poly_equation()" and "show_poly_result()".
3960 (fituser): use "show_user_equation()" and "show_user_result()".
3961
3962 2012-11-06 Ito Hiroyuki <ZXB01226 at nifty.com>
3963
3964 * src/ofit.c (fitpoly, fituser): use "GString" to show fitting
3965 results.
3966
3967 2012-11-04 Ito Hiroyuki <ZXB01226 at nifty.com>
3968
3969 * src/ofit.c (fitpoly, fituser): use "GString" to show calclated
3970 equation.
3971
3972 2012-11-03 Ito Hiroyuki <ZXB01226 at nifty.com>
3973
3974 * src/gtk/x11bitmp.c (ICON_WIDTH, ICON_HEIGHT): removed.
3975
3976 * src/gtk/x11commn.c (MESSAGE_BUF_SIZE): removed.
3977
3978 * src/gtk/x11opt.c (BUF_SIZE): removed.
3979
3980 * src/gtk/x11file.c (CB_BUF_SIZE): removed.
3981
3982 * src/gtk/x11axis.c (CB_BUF_SIZE): removed.
3983
3984 * src/gtk/x11lgnd.c (CmLegendWindow): use ""struct legend_data
3985 legend_data[]".
3986 (CB_BUF_SIZE): removed.
3987
3988 2012-11-02 Ito Hiroyuki <ZXB01226 at nifty.com>
3989
3990 * src/gtk/x11lgnd.c (CmLegendWindow): add tooltip to icons.
3991
3992 2012-10-31 Ito Hiroyuki <ZXB01226 at nifty.com>
3993
3994 * src/ofile.c (getdataarray): 'D' can be used as a prefix for a
3995 decimal exponent. Accept hexadecimal number.
3996
3997 * src/otext.c (USE_UTF8): removed.
3998 (text_set_text): remove code for shift-jis.
3999
4000 2012-10-28 Ito Hiroyuki <ZXB01226 at nifty.com>
4001
4002 * src/gtk/gtk_subwin.c (get_cell_renderer_from_tree_view): added.
4003 (set_combo_cell_renderer_cb, set_obj_cell_renderer_cb)
4004 (set_editable_cell_renderer_cb): use
4005 "get_cell_renderer_from_tree_view()".
4006
4007 * src/gtk/x11lgnd.c (select_line_type): remove redundant call of
4008 the function "g_object_get_data()".
4009 (select_text, start_editing_text): added.
4010 (CmLegendWindow): connect the function "start_editing_text()"
4011 to the signal "editing-started".
4012
4013 2012-10-20 Ito Hiroyuki <ZXB01226 at nifty.com>
4014
4015 * doc/html/ja/math.html: add explanation of the functions "eq",
4016 "neq", "ge", "gt", "le" and "lt".
4017
4018 * test/math_test_new.dat: add tests for the functions "eq", "neq",
4019 "ge", "gt", "le" and "lt".
4020
4021 * doc/html/ja/math.html: update explanation of the functions "eq",
4022 "neq", "ge", "gt", "le" and "lt".
4023
4024 * src/math/math_function.rb: fix invarid expression for case
4025 statement.
4026
4027 * src/math/math_function.h.in: increase number of arguments for
4028 the functions "ge", "gt", "le" and "lt".
4029
4030 * src/math/math_basic_function.c (math_func_lt, math_func_le)
4031 (math_func_ge, math_func_gt): use "compare_double_with_prec()".
4032 (compare_double_with_prec): use "long double".
4033
4034 * configure.in (AC_CHECK_FUNCS): check functions "log10l", "fabsl"
4035 and "floorl".
4036
4037 2012-10-19 Ito Hiroyuki <ZXB01226 at nifty.com>
4038
4039 * src/math/math_constant.c: include "config.h".
4040
4041 * src/math/math_operator.rb: convert integer to string (for Ruby 1.9).
4042
4043 * src/math/math_expression.c: include "config.h".
4044
4045 * src/math/math_parser.c: include "config.h".
4046
4047 * src/math/math_equation.c: include "config.h".
4048
4049 * src/math/math_error.c: include "config.h".
4050
4051 * src/math/math_scanner.c: include "config.h".
4052
4053 * src/math/math_equation.c: include "config.h".
4054
4055 * src/math/math_constant.rb: include "config.h".
4056
4057 2012-10-18 Ito Hiroyuki <ZXB01226 at nifty.com>
4058
4059 * test/math_test_new.dat: add tests for the functions "EQ()" and
4060 "NEQ()".
4061
4062 * src/math/math_basic_function.c (compare_double_with_prec): fix
4063 calculation.
4064
4065 2012-10-17 Ito Hiroyuki <ZXB01226 at nifty.com>
4066
4067 * initfile/Ngraph.ini.win: change initial size of main-window.
4068
4069 * initfile/Ngraph.ini.in: set initial size of sub-windows.
4070
4071 2012-10-16 Ito Hiroyuki <ZXB01226 at nifty.com>
4072
4073 * src/gtk/gtk_subwin.c (set_geometry): don't save state.
4074 (set_visibility, sub_window_save_visibility)
4075 (get_window_visibility): added.
4076 (sub_window_save_geometry): check return value of the function
4077 "get_window_visibility()".
4078
4079 * src/gtk/x11gui.c (get_window_geometry): don't call
4080 "gdk_window_get_state()".
4081
4082 * src/gtk/ox11menu.c (add_child_geometry_to_array): call
4083 "sub_window_save_visibility()".
4084
4085 * src/gtk/x11menu.c (destroy_sub_windows): hide window before destroy.
4086
4087 2012-10-09 Ito Hiroyuki <ZXB01226 at nifty.com>
4088
4089 * src/gtk/x11graph.c (PageDialogSetup): left and top margin can be
4090 nagative.
4091
4092 2012-10-08 Ito Hiroyuki <ZXB01226 at nifty.com>
4093
4094 * src/gra.c (GRAinit, GRAreopen): "GRAClist[GC].width" and
4095 "GRAClist[GC].height" is as same as paper width.
4096 (GRAregion): remove unused parameters.
4097 (GRAregion): calculate width and height depend on
4098 "GRAClist[GC].topm" and "GRAClist[GC].leftm".
4099
4100 2012-09-21 Ito Hiroyuki <ZXB01226 at nifty.com>
4101
4102 * src/gtk/x11lgnd.c (start_editing_common, start_editing_font):
4103 call "menu_lock()" if the variable "sel" is negative.
4104 (start_editing_mark): the function "start_editing_common()" is
4105 failed if the return value is nagative.
4106
4107 2012-09-07 Ito Hiroyuki <ZXB01226 at nifty.com>
4108
4109 * src/gtk/x11graph.c (LoadDialogSetup): remove redundant call of
4110 the function "gtk_box_pack_start()".
4111
4112 2012-09-04 Ito Hiroyuki <ZXB01226 at nifty.com>
4113
4114 * src/gtk/x11opt.c (MiscDialogSetup): use "LoadPathStr".
4115
4116 * src/gtk/x11commn.c (LoadNgpFile): use "LOAD_PATH_FULL" and
4117 "LOAD_PATH_BASE".
4118
4119 * src/gtk/x11graph.h (LOAD_PATH_TYPE): added.
4120
4121 * src/gtk/x11graph.c (LoadPathStr): added.
4122 (LoadDialogSetup): use "LoadPathStr".
4123
4124 2012-08-24 Ito Hiroyuki <ZXB01226 at nifty.com>
4125
4126 * src/gtk/x11view.c (graph_dropped): use "loadpath" instead of
4127 "ignorepath".
4128
4129 * src/gtk/x11menu.c (application): use "loadpath" instead of
4130 "ignorepath".
4131
4132 * src/gtk/x11commn.c (LoadNgpFile): use "loadpath" instead of
4133 "ignorepath" and "expandtofullpath".
4134
4135 * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup)
4136 (MiscDialogClose): use "loadpath" instead of "ignorepath".
4137
4138 * src/gtk/x11graph.c (LoadDialogSetup, LoadDialogClose)
4139 (CmGraphLoad, CmGraphHistory): use "load_path" instead of
4140 "ignore_path".
4141
4142 2012-08-23 Ito Hiroyuki <ZXB01226 at nifty.com>
4143
4144 * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup)
4145 (MiscDialogClose): add UI for "Menulocal.select_data".
4146
4147 * src/gtk/x11view.c (Draw): call "FileWinUpdate()".
4148
4149 * src/gtk/x11dialg.h (MiscDialog): add member "select_data".
4150
4151 * src/gtk/ox11menu.h (menulocal): add member "select_data".
4152
4153 * src/gtk/ox11menu.c (menuinit): initialize
4154 "Menulocal.select_data".
4155
4156 * src/gtk/x11print.c (CmOutputPrinter, CmOutputDriver)
4157 (CmPrintGRAFile, CmOutputImage, CmOutputEMF): call
4158 "FileWinUpdate()".
4159 (CmOutputDriver, CmPrintGRAFile, CmOutputImage, CmOutputEMF):
4160 check "Menulocal.select_data".
4161
4162 * src/gtk/x11commn.c (SetFileHidden): call "set_graph_modified()"
4163 if necessary.
4164
4165 2012-08-21 Ito Hiroyuki <ZXB01226 at nifty.com>
4166
4167 * src/gtk/x11gui.c (get_filename_with_ext): added.
4168 (FileSelectionDialog): use "get_filename_with_ext()".
4169
4170 2012-08-16 Ito Hiroyuki <ZXB01226 at nifty.com>
4171
4172 * src/gtk/x11cood.c (CmCoordinateWindow): don't call functions
4173 "sub_window_show_all()", "sub_window_set_geometry()".
4174
4175 * src/gtk/x11file.c (CmFileWindow): don't call functions
4176 "sub_window_show_all()", "sub_window_set_geometry()" and
4177 "FileWinUpdate()".
4178
4179 * src/gtk/x11axis.c (CmAxisWindow): don't call functions
4180 "sub_window_show_all()", "sub_window_set_geometry()" and
4181 "AxisWinUpdate()".
4182
4183 * src/gtk/x11merge.c (CmMergeWindow): don't call functions
4184 "sub_window_show_all()", "sub_window_set_geometry()" and
4185 "MergeWinUpdate()".
4186
4187 * src/gtk/x11lgnd.c (CmLegendWindow): don't call functions
4188 "sub_window_show_all()", "sub_window_set_geometry()" and
4189 "LegendWinUpdate()".
4190
4191 * src/gtk/gtk_subwin.c (sub_window_show_all): static function.
4192 (sub_window_set_visibility): realize a window when the window is
4193 not realized.
4194
4195 * src/gtk/x11menu.c (create_sub_windows): call
4196 "CmInformationWindow()", "CmCoordinateWindow()", "CmMergeWindow",
4197 "CmLegendWindow()", "CmAxisWindow()" and "CmFileWindow()".
4198
4199 * src/gtk/x11info.c (create_win): removed.
4200 (InfoWinDrawInfoText, CmInformationWindow): don't use
4201 "create_win()".
4202
4203 2012-08-15 Ito Hiroyuki <ZXB01226 at nifty.com>
4204
4205 * src/gtk/x11file.c (FileWinFileEdit, FileWinFileDelete)
4206 (file_obj_copy, FileWinFileCopy2, FileWinFileUpdate)
4207 (FileWinFileDraw, FileWinFit, popup_show_cb): use
4208 "chkobjlastinst()".
4209
4210 * src/gtk/x11axis.c (axiswin_scale_clear, popup_show_cb)
4211 (axis_prm_edited_common, axiswin_delete_axis, AxisWinAxisTop)
4212 (AxisWinAxisLast, AxisWinAxisUp, AxisWinAxisDown): use
4213 "chkobjlastinst()".
4214
4215 * src/gtk/x11merge.c (popup_show_cb): use "chkobjlastinst()".
4216
4217 * src/gtk/x11lgnd.c (rect_size_edited): use "chkobjlastinst()".
4218
4219 * src/gtk/gtk_subwin.c (file_select, copy, delete, move_top)
4220 (move_last, move_up, move_down, update, focus, toggle_boolean)
4221 (modify_numeric, modify_string, hidden, set_hidden_state)
4222 (list_sub_window_set): use "chkobjlastinst()".
4223
4224 * src/gtk/x11menu.h (obj_list_data): remove member "num".
4225
4226 2012-08-14 Ito Hiroyuki <ZXB01226 at nifty.com>
4227
4228 * src/terminal.c (sig_handler, my_signal): not used if the os is
4229 Windows.
4230
4231 2012-08-13 Ito Hiroyuki <ZXB01226 at nifty.com>
4232
4233 * src/gtk/ogra2emf.c (open_emf): call "SaveDC()".
4234 (close_emf): call "RestoreDC()".
4235 (select_font): "id_font.lfOutPrecision" is "OUT_TT_ONLY_PRECIS".
4236
4237 * src/gtk/main.c (interruptconsole, reset_fifo, consolesave)
4238 (consolefd): not used if the os is Windows.
4239
4240 2012-08-12 Ito Hiroyuki <ZXB01226 at nifty.com>
4241
4242 * src/shell.c (set_shell_args): added.
4243
4244 * src/oshell.c (cmdshell): use "set_shell_args()".
4245
4246 * src/shellcm.c (cmset): use "set_shell_args()".
4247 (cmset): options "--" and "-" work as same as bash.
4248
4249 2012-08-11 Ito Hiroyuki <ZXB01226 at nifty.com>
4250
4251 * src/shellcm.c (cmset): "--" means the last argument.
4252
4253 2012-08-10 Ito Hiroyuki <ZXB01226 at nifty.com>
4254
4255 * src/gtk/ogra2cairo.c (CompatibleFont): "Mincho" should be
4256 corresponded to "Seril" and "Gothic" should be corresponded to
4257 "Sans-serif".
4258
4259 2012-08-09 Ito Hiroyuki <ZXB01226 at nifty.com>
4260
4261 * src/gtk/ogra2emf.c (gra2emf_local): add members
4262 "update_pen_attribute", "update_brush_attribute", "line",
4263 "null_pen", "the_pen" and "the_brush".
4264 (gra2emf_init): initialize "null_pen" and "line".
4265 (gra2emf_done): finalize "null_pen" and "line".
4266 (open_emf): initialize "update_pen_attribute",
4267 "update_brush_attribute", "null_pen", "the_pen" and "the_brush".
4268 (close_emf): finalize "update_pen_attribute",
4269 "update_brush_attribute", "null_pen", "the_pen" and "the_brush".
4270 (create_pen): create object only when
4271 "local->update_pen_attribute" is TRUE.
4272 (create_brush): added.
4273 (draw_polygon, draw_polyline, draw_lines): added.
4274 (gra2emf_output): use "draw_polygon()", "draw_polyline()" and
4275 "draw_lines()".
4276
4277 * src/gtk/main.c (check_console): remove unused variable "menu".
4278
4279 * src/shell.c (cmdexec): remove unused variable "r" (Windows
4280 only).
4281
4282 * mingw/windows.sh (DEFS, CCOPT): add compile options.
4283
4284 * src/gtk/x11menu.c (create_sub_windows): file window, axis
4285 window, legend window and merge window must be created in this
4286 function.
4287 (kill_signal_handler, term_signal_handler): not used when the OS
4288 is Windows.
4289
4290 2012-08-08 Ito Hiroyuki <ZXB01226 at nifty.com>
4291
4292 * src/gtk/ogra2emf.c (draw_text_rect, draw_rectangle): added.
4293 (draw_str_sub): don't call "SetBkMode()".
4294 (draw_str_sub): call "draw_text_rect()".
4295 (check_font_indices): check return value of the function
4296 "GetGlyphIndicesW()".
4297 (gra2emf_output): use "SelectClipPath()" instead of
4298 "SelectClipRgn()".
4299 (gra2emf_output): use "draw_rectangle()".
4300 (gra2emf_output): call "SetPolyFillMode()" before drawing path.
4301
4302 * initfile/Ngraph.ini.win (font): use "batangche" instead of
4303 "gulimche" for "Serif" font.
4304
4305 2012-08-07 Ito Hiroyuki <ZXB01226 at nifty.com>
4306
4307 * driver/ngp2.in: remove EMF output.
4308
4309 * src/gtk/ogra2emf.c (gra2emf_fontmap, enum_font_cb)
4310 (get_char_set, fontmap_append, check_fonts, free_fontmap_sub)
4311 (free_fontmap, add_fontmap, check_font_indices, draw_str_sub)
4312 (set_alternative_font): added.
4313 (gra2emf_init): create dumy hdc.
4314 (gra2emf_done): delete dumy hdc and fontmaps.
4315
4316 2012-08-06 Ito Hiroyuki <ZXB01226 at nifty.com>
4317
4318 * src/gtk/ogra2cairo.c (gra2cairo_get_fontmap)
4319 (gra2cairo_remove_fontmap, gra2cairo_get_compatible_font_info):
4320 type of the argument is "const char *".
4321
4322 2012-07-29 Ito Hiroyuki <ZXB01226 at nifty.com>
4323
4324 * src/gtk/ogra2cairo.c (add_font_map): added.
4325 (create_font_map): use "add_font_map()".
4326
4327 2012-07-28 Ito Hiroyuki <ZXB01226 at nifty.com>
4328
4329 * src/gtk/ogra2emf.c (gra2emf_output): call "SetPolyFillMode()" to
4330 set fill mode.
4331
4332 2012-07-28 Ito Hiroyuki <ZXB01226 at nifty.com>
4333
4334 * initfile/NgraphUI.xml.win: add "GraphExportEMFFileAction" and
4335 "GraphExportEMFClipboardAction", remove "GraphExportEMFAction" and
4336 "GraphExportClipboardAction".
4337
4338 * src/gtk/ogra2emf.c: added.
4339
4340 * src/gtk/Makefile.am (libngraph_la_SOURCES): add "ogra2emf.c".
4341
4342 * src/gtk/x11print.c (OutputImageDialogSetupItem)
4343 (OutputImageDialogSetup, OutputImageDialogClose, CmOutputImage):
4344 don't handle "MenuIdOutputEMFFile" and "MenuIdOutputEMFClipboard".
4345 (CmOutputEMF): added.
4346
4347 * src/gtk/x11menu.h (MenuID): add "MenuIdOutputCairoEMFFile",
4348 "MenuIdOutputEMFFile" and "MenuIdOutputEMFClipboard", remove
4349 "MenuIdOutputClipboard".
4350
4351 * src/gtk/x11menu.c (NgraphActionEntry): change name from
4352 "GraphExportEMFAction" to "GraphExportCairoEMFAction", add
4353 "GraphExportEMFFileAction" and "GraphExportEMFClipboardAction".
4354
4355 * src/gtk/main.c (obj_add_func_ary): add function "addgra2emf".
4356
4357 2012-07-27 Ito Hiroyuki <ZXB01226 at nifty.com>
4358
4359 * src/gtk/ogra2cairofile.c (surface_type, open_emf, close_emf)
4360 (create_cairo): remove clipboard output.
4361
4362 * src/gra.c (GRAreopen): width and height of the paper should be
4363 "GRAClist[GC].width+GRAClist[GC].leftm" and
4364 "GRAClist[GC].height+GRAClist[GC].topm" respectively.
4365 (GRAinit): width and height of the drawing region should be
4366 "width-leftm" and "height-topm" respectively.
4367
4368 2012-07-26 Ito Hiroyuki <ZXB01226 at nifty.com>
4369
4370 * src/gtk/ox11menu.c (mxflush): call "cairo_surface_flush()".
4371
4372 * src/gtk/ogra2cairo.c (gra2cairo_flush): call
4373 "cairo_surface_flush()".
4374 (gra2cairo_output): fix typo ("tmp2" to "tmp").
4375
4376 2012-07-23 Ito Hiroyuki <ZXB01226 at nifty.com>
4377
4378 * src/gtk/ogra2cairo.c (gra2cairo_get_utf8_str): added.
4379 (gra2cairo_output): use "gra2cairo_get_utf8_str()".
4380
4381 * src/gtk/ox11menu.c (menuinit): set default dpi of an EMF file as
4382 576.
4383
4384 2012-07-18 Ito Hiroyuki <ZXB01226 at nifty.com>
4385
4386 * pathconv.sh (LC_ALL): set as "C" and export.
4387
4388 * src/math/math_scanner.c (get_dec): use function "powl()" only if
4389 "HAVE_POWL" is defined.
4390
4391 * src/gtk/ox11menu.c (graph_modified_sub): don't call
4392 "SetCaption()" and "set_modified_state()".
4393 (mxmodified): call "set_modified_state()".
4394
4395 * configure.in (AC_CHECK_HEADERS): check "readline.h".
4396
4397 2012-07-10 Ito Hiroyuki <ZXB01226 at nifty.com>
4398
4399 * src/gtk/ogra2cairofile.c (open_emf): remove parameters "fname"
4400 and "clipboard".
4401 (close_emf): change second parameter from "clipboard" to "fname".
4402 (gra2cairofile_output): check return value of the function
4403 "close_emf()".
4404
4405 2012-07-09 Ito Hiroyuki <ZXB01226 at nifty.com>
4406
4407 * src/gtk/ox11menu.c (menuinit): set default dpi of an EMF file as
4408 600.
4409
4410 * src/gtk/ogra2cairofile.c (create_reference_dc): removed.
4411 (open_emf): use display device as referencs DC. use
4412 "SetWorldTransform()" to scale image.
4413
4414 2012-07-06 Ito Hiroyuki <ZXB01226 at nifty.com>
4415
4416 * src/gtk/x11lgnd.c (path_list_set_val): set columns
4417 "PATH_LIST_COL_X", "PATH_LIST_COL_Y" and "PATH_LIST_COL_POINTS" at
4418 once.
4419
4420 * src/gtk/ogra2cairofile.c (open_emf, close_emf): added.
4421 (create_cairo): use "open_emf()".
4422 (gra2cairofile_output): use "close_emf()".
4423
4424 2012-07-05 Ito Hiroyuki <ZXB01226 at nifty.com>
4425
4426 * src/gtk/ogra2cairofile.h (surface_type_id): add "TYPE_CLIPBOARD".
4427
4428 * src/gtk/ogra2cairofile.c (surface_type, create_cairo)
4429 (gra2cairofile_output): support clipboard.
4430
4431 * src/gtk/x11menu.h (MenuID): add "MenuIdOutputClipboard".
4432
4433 * src/gtk/x11menu.c (ActionEntry): add clipboard action.
4434
4435 * src/gtk/x11print.c (OutputImageDialogSetupItem)
4436 (OutputImageDialogSetup, OutputImageDialogClose)
4437 (CmOutputImage, CmOutputMenu): support clipboard.
4438
4439 * initfile/NgraphUI.xml.win: add clipboard menu.
4440
4441 2012-07-03 Ito Hiroyuki <ZXB01226 at nifty.com>
4442
4443 * src/gtk/x11lgnd.c (create_mark_color_combo_box)
4444 (create_color_combo_box): change order of items.
4445
4446 * src/gtk/x11file.c (create_type_color_combo_box): change order of
4447 items.
4448
4449 012-07-02 Ito Hiroyuki <ZXB01226 at nifty.com>
4450
4451 * src/gtk/x11file.c (create_type_combo_box): use
4452 "combo_box_create_mark()".
4453 (create_type_combo_box): set visibility of toggle and pixbudf
4454 column.
4455 (select_type): use "select_obj_color()".
4456 (start_editing_type, start_editing): use
4457 "tree_view_get_selected_row_int_from_path()".
4458 (CmFileWindow): set "foreground" attribute column.
4459
4460 * src/gtk/gtk_liststore.h (_list_store): the member "color" is
4461 removed.
4462
4463 * src/gtk/gtk_liststore.c (create_object_cbox): add columns to
4464 show toggle item and set visibility of toggle and pixbuf column.
4465 (create_tree_view): don't create invisible column.
4466 (tree_view_get_selected_row_int_from_path): added.
4467
4468 * src/gtk/gtk_widget.h (OBJ_FIELD_COLOR_TYPE): added.
4469
4470 * src/gtk/gtk_widget.c (combo_box_create_mark, select_obj_color):
4471 added.
4472
4473 * src/gtk/x11lgnd.c (get_points): get number of points.
4474 (draw_color_pixbuf): added.
4475 (path_list_set_val): support type of interpolation.
4476 (path_list_set_val): show number of points.
4477 (rect_list_set_val, arc_list_set_val): line type is shown as
4478 image.
4479 (draw_mark_pixbuf): added.
4480 (mark_list_set_val): use "draw_mark_pixbuf()".
4481 (rect_size_edited): use
4482 "tree_view_get_selected_row_int_from_path()".
4483 (LEGEND_COMBO_ITEM, create_mark_color_combo_box)
4484 (create_color_combo_box, select_type, select_color)
4485 (start_editing_common, start_editing_mark, start_editing_color)
4486 (select_line_type, start_editing_line_type, edited_line_type)
4487 (start_editing_font, edited_font): added.
4488 (CmLegendWindow): set callback functions to columns.
4489
4490 2012-07-01 Ito Hiroyuki <ZXB01226 at nifty.com>
4491
4492 * src/gtk/x11file.c (select_color): removed.
4493
4494 * src/gtk/x11lgnd.c (mark_list_set_property)
4495 (legend_list_set_color): removed.
4496
4497 2012-07-01 Ito Hiroyuki <ZXB01226 at nifty.com>
4498
4499 * src/ofile.c (nstrrchr, get_filename_last_index): added.
4500 (f2dload_sub): use "get_filename_last_index()" instead of
4501 "getitok2()".
4502
4503 2012-06-24 Ito Hiroyuki <ZXB01226 at nifty.com>
4504
4505 * src/gtk/x11lgnd.c (get_points): only get first point.
4506 (path_list_set_property, text_list_set_property): removed.
4507 (path_list_set_val): support "PATH_LIST_COL_TYPE" and
4508 "PATH_LIST_COL_ARROW".
4509 (text_list_set_val): support "TEXT_LIST_COL_TEXT" and
4510 "TEXT_LIST_COL_FONT".
4511
4512 * src/gtk/gtk_subwin.c (select_enum, start_editing_enum, enum_cb):
4513 added.
4514 (start_editing, set_cell_renderer_cb): support G_TYPE_ENUM.
4515 (set_combo_cell_renderer_cb): check and save "list[i].edited_id".
4516
4517 * src/gtk/x11file.c (Flist): change type of the columns "ax" and
4518 "ay" from G_TYPE_ENUM to G_TYPE_PARAM.
4519
4520 * src/gtk/gtk_liststore.c (create_column, create_tree_view): check
4521 "G_TYPE_PARAM".
4522
4523 * src/gtk/x11axis.c (start_editing, select_type, edited): removed.
4524 (CmAxisWindow): don't call "set_combo_cell_renderer_cb()".
4525
4526 * src/gtk/x11view.c (ViewerEvLButtonDown, ViewerEvLButtonUp)
4527 (ViewerEvMouseMove): treat "MOUSESCROLLE".
4528
4529 * src/gtk/x11menu.h (MouseMode): add "MOUSESCROLLE".
4530
4531 2012-06-23 Ito Hiroyuki <ZXB01226 at nifty.com>
4532
4533 * src/gtk/gtk_subwin.c (sub_window_get_nth_content)
4534 (tree_get_selected, tree_copy, tree_delete, tree_move_top)
4535 (tree_move_last, tree_move_up, tree_move_down, tree_update)
4536 (tree_focus, tree_hidden, tree_set_hidden_state)
4537 (ev_key_down_tree): removed.
4538 (start_editing): accepts legend window.
4539 (toggle_cb): use "g_object_get_data()" and "toggle_boolean()".
4540 (set_cell_renderer_cb, set_editable_cell_renderer_cb)
4541 (set_combo_cell_renderer_cb, set_obj_cell_renderer_cb): change
4542 type of the firest parameter from "struct SubWin *" to "struct
4543 obj_list_data *".
4544 (cb_destroy): free data.data member of the "SubWin" struct.
4545 (copy, delete, move_top, move_last, move_up, move_down, update)
4546 (focus, modify_numeric, modify_string, hidden, set_hidden_state):
4547 change type of the firest parameter from "struct SubWin *" to
4548 "struct obj_list_data *".
4549 (toggle_boolean): added.
4550 (do_popup): change type of the second parameter from "struct
4551 SubWin *" to "struct obj_list_data *".
4552 (do_popup): accepts legend window.
4553 (sub_window_create): remove last parameter.
4554 (sub_window_create): don't create scrolled window.
4555 (text_sub_window_create, label_sub_window_create): create scrolled
4556 window.
4557 (list_widget_create): added.
4558 (list_sub_window_create, tree_sub_window_create): use
4559 "list_widget_create()".
4560 (list_sub_window_must_rebuild, list_sub_window_build)
4561 (list_sub_window_set, sub_win_create_popup_menu): change type of
4562 the second parameter from "struct SubWin *" to "struct
4563 obj_list_data *".
4564
4565 * src/gtk/x11axis.c (AxisDialog): change type of the firest
4566 parameter from "void *" to "struct obj_list_data *" and remove
4567 second parameter.
4568 (AxisWinUpdate): add parameter "struct obj_list_data *".
4569 (AxisDelCB): added.
4570 (axis_list_set_val, pos_edited_common, axis_prm_edited_common)
4571 (axiswin_delete_axis): change type of the firest parameter from
4572 "struct SubWin *" to "struct obj_list_data *".
4573 (CmAxisWindow): use "AxisDelCB" instead of
4574 "AxisDel".
4575
4576 * src/gtk/x11lgnd.c (Plist, Alist, Rlist, Mlist, Tlist): added.
4577 (Llist): removed.
4578 (LegendWinPathUpdate, LegendWinRectUpdate, LegendWinArcUpdate)
4579 (LegendWinMarkUpdate, LegendWinTextUpdate): added.
4580 (LegendWinLegendUpdate): removed.
4581 (ObjListUpdate, PathListUpdate, ArcListUpdate, RectListUpdate)
4582 (MarkListUpdate, TextListUpdate): added.0
4583 (legend_list_set_color): change type of the firest parameter from
4584 "struct LegendWin *" to "struct obj_list_data *" and remove second
4585 parameter.
4586 (path_list_set_property, mark_list_set_property)
4587 (text_list_set_property, path_list_set_val, rect_list_set_val)
4588 (arc_list_set_val, mark_list_set_val, text_list_set_val): added.
4589 (legend_list_set_val): removed.
4590 (popup_show_cb): use "list_store_get_selected_int()" instead of
4591 "tree_store_get_selected_nth()".
4592 (pos_edited): get column number from the "title" member of
4593 "n_list_store".
4594 (pos_edited): use "gtk_tree_model_get_iter_from_string()" to get
4595 current row instead of "gtk_tree_path_new_from_string()".
4596 (rect_size_edited, rect_width_edited, rect_height_edited): added.
4597 (width_edited): removed.
4598
4599 * src/gtk/x11file.c (FileDialog): change type of the firest
4600 parameter from "void *" to "struct obj_list_data *" and remove
4601 second parameter.
4602 (FileWinFileEdit, file_obj_copy, FileWinFileCopy)
4603 (FileWinFileUpdate, FileWinFileDraw, FileWinFit)
4604 (file_list_set_val): change type of the firest parameter from
4605 "struct SubWin *" to "struct obj_list_data *".
4606 (delete_file_obj, FileWinUpdate): add parameter "struct
4607 obj_list_data *".
4608
4609 * src/gtk/x11menu.h (obj_list_data): added.
4610 (SubWin): use "struct obj_list_data *".
4611 (LegendWin): removed.
4612
4613 * src/gtk/gtk_liststore.c (create_column): set "user-data" to
4614 "GtkCellRendererToggle" when the column is editable.
4615
4616 * src/gtk/x11merge.c (merge_list_set_val): change type of the
4617 firest parameter from "struct SubWin *" to "struct obj_list_data *".
4618 (MergeDialog): change type of the firest parameter from "void *"
4619 to "struct obj_list_data *".
4620 (MergeWinUpdate): add parameter "struct obj_list_data *".
4621
4622 * src/omark.c (marktype): moved to "oroot.c".
4623
4624 * src/oroot.c (oputmarktype): moved and renamed from "omark.c".
4625
4626 * src/ofile.c (file_marktype): use "MARK_TYPE_NUM".
4627 (file2d): check argument of the field "mark_type".
4628
4629 2012-06-20 Ito Hiroyuki <ZXB01226 at nifty.com>
4630
4631 * src/gtk/main.c (HAVE_READLINE_READLINE_H): used instead of
4632 "HAVE_LIBREADLINE".
4633
4634 * src/gtk/ox11menu.c (HAVE_READLINE_READLINE_H): used instead of
4635 "HAVE_LIBREADLINE".
4636
4637 * src/shell.c (getcmdline): use global valuable "Multiline" only
4638 when "HAVE_READLINE_READLINE_H" is defined.
4639 (HAVE_READLINE_READLINE_H): used instead of "HAVE_LIBREADLINE".
4640
4641 * configure.in (READLINE_LIBS): defined when readline library is
4642 installed.
4643 (AC_CHECK_HEADERS): check "readline/readline.h"
4644
4645 2012-06-16 Ito Hiroyuki <ZXB01226 at nifty.com>
4646
4647 * src/gtk/x11opt.c (SetScriptDialogSetupItem): addin selection
4648 combobox is always available.
4649
4650 * addin/fig2gra.rb: support Ruby 1.9.
4651
4652 2012-06-15 Ito Hiroyuki <ZXB01226 at nifty.com>
4653
4654 * src/gtk/x11axis.c (baseline_tab_create): don't call
4655 "gtk_widget_set_size_request()".
4656
4657 * src/gtk/x11menu.c (setupwindow): call "gtk_toolbar_set_style()"
4658 when the version of GTK+ is greater or equal to 3.4.0.
4659
4660 2012-06-14 Ito Hiroyuki <ZXB01226 at nifty.com>
4661
4662 * addin/text-in.nsc: vertical offset of text can be changed.
4663
4664 2012-06-13 Ito Hiroyuki <ZXB01226 at nifty.com>
4665
4666 * driver/ngp2.in: accepts "-emf" option if EMF output is
4667 supported.
4668
4669 * src/gtk/ox11dlg.c (dlginput): argument of the field is used as
4670 initial string of the text entry.
4671
4672 * src/gtk/x11gui.c (DialogInput): add parameter "init_str".
4673
4674 * addin/math.nsc: retry when error will be occurred.
4675
4676 * src/gtk/ogra2cairo.c (gra2cairo_output): don't call
4677 "cairo_save()" on the 'I' command.
4678
4679 2012-06-12 Ito Hiroyuki <ZXB01226 at nifty.com>
4680
4681 * driver/ngp2.in (save_gra): copy field of "gra:viewer".
4682
4683 * src/gtk/ox11menu.c (mx_clear): call "cairo_reset_clip()" before
4684 call "cairo_paint()".
4685
4686 2012-06-11 Ito Hiroyuki <ZXB01226 at nifty.com>
4687
4688 * zsh/Makefile.am (dist_zsh_DATA): use "dist_" prefix.
4689
4690 * pixmap/Makefile.am (dist_pixmap_DATA): use "dist_" prefix.
4691
4692 * initfile/Makefile.am (dist_ngraphconf_DATA): use "dist_" prefix.
4693
4694 * doc/html/ja/tutorial/Makefile.am (dist_htmltutorial_DATA): use "dist_" prefix.
4695
4696 * doc/html/ja/dialogs/Makefile.am (dist_htmldialog_DATA): use "dist_" prefix.
4697
4698 * doc/html/img/Makefile.am (dist_htmlimg_DATA): use "dist_" prefix.
4699
4700 * doc/html/Makefile.am (dist_html_DATA): use "dist_" prefix.
4701
4702 * demo/Makefile.am (.ngp.in.ngp): use suffix rule.
4703
4704 2012-06-09 Ito Hiroyuki <ZXB01226 at nifty.com>
4705
4706 * src/gtk/x11view.c (show_move_animation, mouse_down_zoom)
4707 (ViewerEvMButtonDown): disable move animation.
4708
4709 2012-06-07 Ito Hiroyuki <ZXB01226 at nifty.com>
4710
4711 * addin/ps2gra.nsc (gra_file): check overwrite.
4712
4713 2012-06-06 Ito Hiroyuki <ZXB01226 at nifty.com>
4714
4715 * addin/ps2gra.nsc: add import pdf menu.
4716
4717 * addin/fig2gra.rb: print creator comment.
4718
4719 * addin/fig2gra.nsc (fig2gra): print creator comment.
4720
4721 2012-06-06 Koichi Akabe <vbkaisetsu at gmail.com>
4722
4723 * demo/Makefile.am (CLEANFILES): add "demo6.ngp"
4724
4725 2012-06-05 Koichi Akabe <vbkaisetsu at gmail.com>
4726
4727 * debian/ngraph-gtk.install: add scalable icons.
4728
4729 * misc/ngraph.desktop (Icon): add scalable icons.
4730
4731 * configure.in: add scalable icons.
4732
4733 * icons/scalable/mimetypes/application-x-ngraph.svg: added.
4734
4735 * icons/scalable/mimetypes/application-x-ngraph-script.svg: added.
4736
4737 * icons/scalable/mimetypes/application-x-ngraph-graphic.svg: added.
4738
4739 * icons/scalable/mimetypes/Makefile.am: added.
4740
4741 * icons/scalable/apps/ngraph.svg: added.
4742
4743 * icons/scalable/apps/Makefile.am: added.
4744
4745 * icons/scalable/Makefile.am: added.
4746
4747 2012-06-03 Ito Hiroyuki <ZXB01226 at nifty.com>
4748
4749 * addin/fig2gra.nsc (fig2gra): accepts dummy option "-dummy".
4750
4751 * addin/tex_equation.nsc: addin scripts are installed not in the
4752 directory "$NGRAPHLIB" but "${system::data_dir}/addin".
4753
4754 * addin/ps2gra.nsc: addin scripts are installed not in the
4755 directory "$NGRAPHLIB" but "${system::data_dir}/addin".
4756
4757 2012-05-30 Ito Hiroyuki <ZXB01226 at nifty.com>
4758
4759 * src/gtk/x11print.c (CmOutputViewerB): set "width" and "height"
4760 fields of the "gra2dtk" object.
4761
4762 * src/gtk/ox11menu.h (SAVE_CONFIG_TYPE_X11MENU): add
4763 "SAVE_CONFIG_TYPE_EXTERNAL_VIEWER".
4764
4765 * src/gtk/ox11menu.c (exwinloadconfig): removed.
4766 (MenuConfigExiView): added.
4767 (MenuConfigArrray): add "MenuConfigExiView".
4768 (menu_save_config): check "SAVE_CONFIG_TYPE_EXTERNAL_VIEWER".
4769 (menuinit): initialize "Menulocal.exwindpi",
4770 "Menulocal.exwinwidth" and "Menulocal.exwinheight".
4771
4772 * src/gtk/x11lgnd.c (format_value_percent, format_value_degree):
4773 added.
4774 (LegendArrowDialogSetup): connect "format_value_degree" and
4775 "format_value_percent" to the "format-value" signal.
4776
4777 * src/gtk/ogra2x11.c (gtkloadconfig): removed.
4778 (gra2gtk): add fields "width" and "height".
4779 (gtkinit): use "gtk_window_set_default_size()" instead of
4780 "gtk_widget_set_size_request()".
4781 (gtk_set_size): added.
4782
4783 * src/gtk/x11opt.c (add_str_with_int_to_array)
4784 (save_ext_viewer_config): removed.
4785 (ViewerDialogSetup): change layout.
4786
4787 2012-05-26 Ito Hiroyuki <ZXB01226 at nifty.com>
4788
4789 * addin/fitrslt.c: don't use deprecated functions.
4790
4791 * addin/addin_common.c: don't use deprecated functions.
4792
4793 * addin/calc.c (create_control): don't use deprecated functions.
4794
4795 * addin/legend.c: don't use deprecated functions.
4796
4797 * src/gtk/gtk_subwin.c (label_sub_window_create): use
4798 "gtk_widget_set_halign()" and "gtk_widget_set_valign()" instead of
4799 "gtk_misc_set_alignment()".
4800
4801 * src/gtk/x11lgndx.c (LegendGaussDialogSetup): don't use
4802 deprecated functions.
4803
4804 * src/gtk/ogra2x11.c (gtkinit): don't use deprecated functions.
4805
4806 * src/gtk/x11axis.c (GridDialogSetup, SectionDialogSetup)
4807 (CrossDialogSetup, ZoomDialogSetup, scale_tab_create)
4808 (baseline_tab_create, gauge_tab_create, numbering_tab_create)
4809 (font_tab_create, position_tab_create): don't use deprecated
4810 functions.
4811
4812 * src/gtk/gtk_widget.c (add_widget_to_table_sub)
4813 (add_copy_button_to_box, item_setup)
4814 (create_text_view_with_line_number): don't use deprecated
4815 functions.
4816
4817 * src/gtk/x11print.c (DriverDialogSetup, OutputDataDialogSetup):
4818 don't use deprecated functions.
4819
4820 * src/gtk/x11lgnd.c (points_setup): call
4821 "gtk_tree_view_column_set_expand()".
4822 (points_setup, LegendArrowDialogSetup, LegendRectDialogSetup)
4823 (LegendArcDialogSetup, LegendMarkDialogSetup)
4824 (legend_dialog_setup_sub, LegendTextDialogSetup)
4825 (LegendTextDefDialogSetup): don't use deprecated functions.
4826
4827 * src/gtk/x11dialg.c (SelectDialogSetup): don't use deprecated
4828 functions.
4829
4830 * src/gtk/x11file.c (MathTextDialogSetup, MathDialogSetup)
4831 (FitSaveDialogSetup, create_user_fit_frame, FitDialogSetup)
4832 (move_tab_create, mask_tab_create, load_tab_create)
4833 (math_tab_create, button_set_mark_image, MarkDialogSetup)
4834 (plot_tab_create, FileDialogSetupCommon, FileDialogSetup): don't
4835 use deprecated functions.
4836 (set_fitdialog_sensitivity): set sensitivity of initial value
4837 input for user function.
4838 (FitDialogSetSensitivity): call "check_fit_func()".
4839
4840 * src/gtk/x11view.c (EvalDialogSetup): don't use deprecated
4841 functions.
4842
4843 * src/gtk/x11commn.c (ProgressDialogCreate): don't use deprecated
4844 functions.
4845
4846 * src/gtk/x11menu.c (create_message_box, setupwindow): don't use
4847 deprecated functions.
4848
4849 * src/gtk/x11opt.c (SetScriptDialogSetup, SetDriverDialogSetup)
4850 (FontSettingDialogSetup, PrefFontDialogSetup, MiscDialogSetup)
4851 (ExViewerDialogSetup, ViewerDialogSetup): don't use deprecated
4852 functions.
4853
4854 * src/gtk/x11graph.c (PageDialogSetup, SwitchDialogSetup)
4855 (DirectoryDialogSetup, LoadDialogSetup, PrmDialogSetup)
4856 (SaveDialogSetup): don't use deprecated functions.
4857
4858 * src/gtk/x11merge.c (MergeDialogSetup): don't use deprecated
4859 functions.
4860
4861 2012-05-23 Ito Hiroyuki <ZXB01226 at nifty.com>
4862
4863 * src/shell.c (set_shellevloop, nreadline): use "g_thread_new()"
4864 instead of "g_thread_create()" when the version of glib is greater
4865 or equal to 2.32.
4866
4867 * src/gtk/main.c (main): don't use duplicate function
4868 "g_thread_init()" if the version of glib is greater or equal to
4869 2.32.
4870
4871 * src/gtk/x11view.c (draw_cairo_arc): check if radius is not less
4872 than 1.
4873 (ViewerEvScroll): check "e->state" when "e->direction" is
4874 "GDK_SCROLL_SMOOTH".
4875
4876 2012-05-22 Ito Hiroyuki <ZXB01226 at nifty.com>
4877
4878 * src/gtk/x11view.c (scrollbar_scroll_cb): handle
4879 "GDK_SCROLL_SMOOTH".
4880 (ViewerEvScroll): multiply "x" and "y" by "SCROLL_INC" when the
4881 direction is "GDK_SCROLL_SMOOTH".
4882
4883 * src/gtk/gtk_widget.c (set_adjustment): added.
4884 (text_view_scroll_event): handle "GDK_SCROLL_SMOOTH".
4885 (text_view_scroll_event): use "set_adjustment()".
4886
4887 2012-05-16 Ito Hiroyuki <ZXB01226 at nifty.com>
4888
4889 * src/gtk/x11menu.c (detach_toolbar, create_toolbar_box): not used
4890 if the version of GTK+ is greater or equal to 3.4.
4891 (setupwindow): don't use GtkHandleBox.
4892
4893 * src/gtk/gtk_widget.c (show_color_sel, create_color_button): set
4894 tool-tip.
4895
4896 * src/gtk/x11file.c (select_color): use GtkColorChooserDialog when
4897 the version of GTK+ is greater or equal to 3.4.
4898
4899 * src/gtk/x11view.c (EvalDialogSetup): change default width of the
4900 window.
4901 (show_zoom_animation, show_move_animation): call
4902 "cairo_set_source()" only once.
4903
4904 2012-05-11 Ito Hiroyuki <ZXB01226 at nifty.com>
4905
4906 * src/gtk/gtk_widget.h (NUM_ENTRY_WIDTH): change width of entries.
4907
4908 * src/gtk/gtk_widget.c (create_direction_entry): change width of
4909 the entry.
4910 (show_color_sel, color_button_key_event): not used if the version
4911 of GTK+ is greater or equal to 3.4.
4912
4913 * src/gtk/ox11menu.c (get_palette, set_palette): not used if the
4914 version of GTK+ is greater or equal to 3.4.
4915
4916 * src/gtk/x11dialg.c (_set_color, _putobj_color): use
4917 "GtkColorChooser" if the version of GTK+ is greater or equal to
4918 3.4.
4919
4920 * src/gtk/x11axis.c (position_tab_create): change width of the
4921 "Adjust:" entry.
4922
4923 * src/gtk/x11opt.c (ViewerDialogSetupItem, ViewerDialogClose): use
4924 "GtkColorChooser" if the version of GTK+ is greater or equal to
4925 3.4.
4926
4927 * src/gtk/x11view.c (PasteObjectsFromClipboard): use
4928 "gdk_window_get_device_position()" instead of
4929 "gtk_widget_get_pointer()" if the version of GTK+ is greater or
4930 equal to 3.4.
4931 (ViewerWinSetup): add "GDK_SCROLL_MASK" and
4932 "GDK_SMOOTH_SCROLL_MASK".
4933 (ViewerEvScroll): add case for "GDK_SCROLL_SMOOTH".
4934
4935 2012-05-09 Ito Hiroyuki <ZXB01226 at nifty.com>
4936
4937 * src/gtk/x11view.c (calc_mouse_x, calc_mouse_y): added.
4938 (text_dropped, mouse_up_point, mouse_up_drag, mouse_up_change)
4939 (mouse_up_lgend1, mouse_up_lgend2, update_frame_rect)
4940 (mouse_move_drag, mouse_move_change, ViewerEvMouseMove)
4941 (SetVRuler, SetHRuler): use "calc_mouse_x()" and/or
4942 "calc_mouse_y()".
4943
4944 2012-05-08 Ito Hiroyuki <ZXB01226 at nifty.com>
4945
4946 * src/math/math_basic_function.c (math_func_rand): use
4947 "g_random_double()".
4948 (math_func_srand): use "g_random_set_seed()".
4949 (create_random_buf): removed.
4950
4951 2012-05-01 Ito Hiroyuki <ZXB01226 at nifty.com>
4952
4953 * src/gtk/x11view.c (show_zoom_animation, show_move_animation):
4954 don't call "gdk_window_invalidate_rect()".
4955 (ViewerEvPaint): check "ZoomLock".
4956
4957 2012-04-27 Ito Hiroyuki <ZXB01226 at nifty.com>
4958
4959 * src/gtk/x11view.c (mouse_down_zoom): now cursor position is
4960 static.
4961 (ViewerEvScroll): control + wheel works as zoom.
4962 (get_range_max): added.
4963 (ChangeDPI): use "get_range_max()".
4964 (show_zoom_animation, show_move_animation): added.
4965 (mouse_down_zoom): use "show_zoom_animation()" and
4966 "show_move_animation()".
4967 (ViewerEvMButtonDown): use "show_move_animation()".
4968
4969 * src/gtk/x11menu.h (Viewer): remove members "hupper" and
4970 "vupper".
4971
4972 2012-04-26 Ito Hiroyuki <ZXB01226 at nifty.com>
4973
4974 * src/gtk/x11view.c (ChangeDPI): use "nround()" to avoid floating
4975 point error when calculating scroll position.
4976
4977 2012-04-22 Ito Hiroyuki <ZXB01226 at nifty.com>
4978
4979 * src/shell.c (remove_duplicate_history): added.
4980 (shget): combine multi-line input.
4981 (getcmdline, checkcmd): set "MultiLine" state.
4982
4983 2012-04-20 Ito Hiroyuki <ZXB01226 at nifty.com>
4984
4985 * src/shell.c (checkcmd, gettok): accepts here-document "<<-".
4986
4987 2012-04-19 Ito Hiroyuki <ZXB01226 at nifty.com>
4988
4989 * src/shellux.c (SleepThread): argument of the function "Sleep()"
4990 is milliseconds.
4991
4992 2012-04-14 Ito Hiroyuki <ZXB01226 at nifty.com>
4993
4994 * misc/ngraph.keys: filename is changed from "ngraph.key".
4995
4996 * misc/ngraph.desktop (Exec): special field code "%f" is added.
4997
4998 2012-04-11 Ito Hiroyuki <ZXB01226 at nifty.com>
4999
5000 * addin/ps2gra.nsc: fix error message.
5001
5002 * src/ofile.c (rectout): use "GRAdrawpoly()" instead of
5003 "GRArectangle()".
5004 (draw_rect): added.
5005 (barout): use "draw_rect()" instead of "GRAdrawpoly()" when draw
5006 outline of the bar.
5007
5008 2012-04-07 Ito Hiroyuki <ZXB01226 at nifty.com>
5009
5010 * src/ofile.c (poly_add_elements): fix calculation to avoid
5011 influence of floating point error.
5012
5013 2012-04-06 Ito Hiroyuki <ZXB01226 at nifty.com>
5014
5015 * src/math/math_scanner.c (get_dec): fix calculation to reduce
5016 floating point error.
5017
5018 2012-04-05 Ito Hiroyuki <ZXB01226 at nifty.com>
5019
5020 * src/ofile.c (file_color, file_alpha, file_rgb_sub)
5021 (file_hsb_sub, file_marksize, file_marktype): check parameters are
5022 normal value or not.
5023 (draw_polygon): added.
5024 (polyout): use "draw_polygon()".
5025 (accept_ascii_only): added.
5026 (file2d): "ifs" and "remark" fields are accepts only printable
5027 ascii character.
5028 (check_ifs_init): check if the index of the array is positive.
5029
5030 2012-04-04 Ito Hiroyuki <ZXB01226 at nifty.com>
5031
5032 * demo/Makefile.am: add settings for demo#6.
5033
5034 * demo/demo.ngp.in: add demo#6.
5035
5036 * demo/demo6.dat: added.
5037
5038 * demo/demo6.ngp.in: added.
5039
5040 * src/ofile.c (uniq_points): fix index pf the array.
5041
5042 2012-04-03 Ito Hiroyuki <ZXB01226 at nifty.com>
5043
5044 * src/ofile.c (poly_add_point, poly_add_clip_point)
5045 (poly_pos_sort_cb, poly_set_pos, poly_add_elements): added.
5046 (polyout): remove parameters related to line attributes.
5047
5048 * src/gtk/x11file.c (FileWinUpdate): don't use "FileWinExpose()".
5049 (FileWinExpose): removed.
5050 (CmFileWindow): don't connect "draw" or "expose-event" signal.
5051 (CmFileWindow): call "FileWinUpdate()".
5052
5053 * src/gtk/x11axis.c (AxisWinUpdate): don't use "AxisWinExpose()".
5054 (AxisWinExpose): removed.
5055 (CmAxisWindow): don't connect "draw" or "expose-event" signal.
5056 (CmAxisWindow): call "AxisWinUpdate()".
5057
5058 * src/gtk/x11merge.c (MergeWinUpdate): don't use "MergeWinExpose()".
5059 (MergeWinExpose): removed.
5060 (CmMergeWindow): don't connect "draw" or "expose-event" signal.
5061 (CmMergeWindow): call "MergeWinUpdate()".
5062
5063 * src/gtk/x11lgnd.c (LegendWinUpdate): don't use "LegendWinExpose()".
5064 (LegendWinExpose): removed.
5065 (CmLegendWindow): don't connect "draw" or "expose-event" signal.
5066 (CmLegendWindow): call "LegendWinUpdate()".
5067
5068 2012-03-30 Ito Hiroyuki <ZXB01226 at nifty.com>
5069
5070 * addin/legend.c (makescript): add condition to check plot type
5071 "polygon_solid_fill".
5072
5073 * src/ofile.h (FILE_OBJ_PLOT_TYPE): add plot type
5074 "polygon_solid_fill".
5075
5076 * src/ofile.c (f2dtypechar): add plot type "polygon_solid_fill".
5077 (add_polygon_point, remove_same_points, polyout): added.
5078 (f2ddraw): add case "PLOT_TYPE_POLYGON_SOLID_FILL".
5079
5080 * src/gtk/x11file.c (FileDialogType): add case
5081 "PLOT_TYPE_POLYGON_SOLID_FILL".
5082 (draw_type_pixbuf): simplify conditions.
5083 (create_type_combo_box): suffix of the array "curvelist" is not
5084 "i" but "j".
5085
5086 2012-03-29 Ito Hiroyuki <ZXB01226 at nifty.com>
5087
5088 * src/ofile.c (f2dgetcoord): call "arraydel()" when the number of
5089 elements is greater than zero.
5090
5091 2012-03-28 Ito Hiroyuki <ZXB01226 at nifty.com>
5092
5093 * addin/fitrslt.nsc: use int object to count number of fitting
5094 plots.
5095
5096 * addin/text-in.nsc: an id of a file instance can be selected. use
5097 "dialog::integer_entry" to specify column number. use color of the
5098 file object as text color.
5099
5100 * doc/html/ja/addin.html: update document.
5101
5102 * doc/html/ja/script.html.in: update document.
5103
5104 * doc/html/ja/object.html.in: add link to title of each object.
5105
5106 * doc/html/objlist.nsc: add link to title of each object.
5107
5108 * initfile/Ngraph.nsc (append_addin_list): check size of the
5109 sarray object.
5110
5111 * src/gtk/ox11menu.c (mx_addin_list_append): check return value of
5112 the function "getobj()".
5113 (mx_addin_list_append): don't modify sarray object.
5114
5115 2012-03-27 Ito Hiroyuki <ZXB01226 at nifty.com>
5116
5117 * src/gtk/main.c (set_dir_defs): use function "g_locale_to_utf8()"
5118 instead of "g_locale_from_utf8()".
5119
5120 * src/gtk/ox11menu.c (mx_addin_list_append): check if strings are
5121 valid UTF-8.
5122
5123 * src/gtk/x11opt.c (remove_char): added.
5124 (SetScriptDialogSetupItem): use "remove_char()".
5125
5126 2012-03-25 Ito Hiroyuki <ZXB01226 at nifty.com>
5127
5128 * src/gtk/x11opt.c (SetScriptDialogSetupItem): use basename of the
5129 add-ins as add-in combo-box.
5130
5131 2012-03-23 Ito Hiroyuki <ZXB01226 at nifty.com>
5132
5133 * src/gtk/x11dialg.h (SetScriptDialog): add member "assins".
5134
5135 * src/gtk/ox11menu.h (menulocal): add member "addin_list".
5136
5137 * src/gtk/ox11menu.c (gtkmenu): add field "addin_list_append".
5138 (mx_addin_list_append, free_script_list): added.
5139 (menulocal_finalize): use "free_script_list()".
5140
5141 * src/gtk/x11opt.c (active_script_changed): added.
5142 (SetScriptDialogSetupItem): initialize addin combo box.
5143 (SetScriptDialogSetup): add addin combo box.
5144
5145 * initfile/Ngraph.nsc (append_addin_list): added.
5146
5147 2012-03-16 Ito Hiroyuki <ZXB01226 at nifty.com>
5148
5149 * src/math/math_expression.c (math_expression_calculate, calc):
5150 "val->type" is always "MATH_VALUE_ERROR" when an error is occurred
5151 during calculation.
5152 (FACT_MAX): added.
5153 (calc): the operator "!" accepts a number lesser then "FACT_MAX".
5154
5155 * src/math/math_basic_function.c (math_func_choose): added.
5156 (create_random_buf): added.
5157 (math_func_rand, math_func_srand): use functions included in GSL
5158 if available.
5159
5160 * src/shellcm.c (cmdexpr): use "%.0f" instead of "%d" for "iexpr"
5161 command.
5162 (cmdexpr): use "round()" instead of "nround()" for "iexpr"
5163 command.
5164
5165 2012-03-14 Ito Hiroyuki <ZXB01226 at nifty.com>
5166
5167 * debian/control (Build-Depends): add "libreadline6-dev".
5168
5169 2012-03-07 Ito Hiroyuki <ZXB01226 at nifty.com>
5170
5171 * addin/addin_common.c (fgets_str): return NULL instead of 0.
5172
5173 2012-02-28 Ito Hiroyuki <ZXB01226 at nifty.com>
5174
5175 * src/gtk/x11print.c (init_print): removed.
5176
5177 2012-02-22 Ito Hiroyuki <ZXB01226 at nifty.com>
5178
5179 * src/gtk/x11lgnd.c (LegendArrowDialogSetup)
5180 (LegendRectDialogSetup, LegendMarkDialogSetup)
5181 (LegendTextDialogSetup, LegendArcDialogSetup): add delete button
5182 again.
5183
5184 * src/ofile.c (set_data_progress): consider "fp->bufnum".
5185 (getdata_skip_step): call "set_data_progress()".
5186 (getdata_sub1): check return value of the function
5187 "getdata_sub2()".
5188
5189 * addin/fitrslt.c (savescript): width of the frame is now a
5190 multiple of 100.
5191
5192 * addin/legend.c (savescript): width of the frame is now a
5193 multiple of 100.
5194
5195 2012-02-21 Ito Hiroyuki <ZXB01226 at nifty.com>
5196
5197 * src/gtk/x11file.c (FitDialogSetupItem)
5198 (FitDialogSetSensitivity): set "user_func" field aftr setting of
5199 "derivative".
5200 (check_fit_func): added.
5201 (create_user_fit_frame): connect "changed" signal to the function
5202 "check_fit_func()".
5203 (create_user_fit_frame): connect "focus-in" signal to the function
5204 "func_entry_focused()".
5205 (FitDialogResult): 4th argument of the function
5206 "math_equation_add_parameter()" should be 2.
5207 (func_entry_focused): use parameter "user_data" as a instance of
5208 the "GtkEntryCompletion".
5209 (FitDialogApply): save user fitting function to the history.
5210
5211 * src/gtk/x11menu.h (NgraphApp): add member "fit_list".
5212
5213 * src/gtk/x11menu.c (FIT_HISTORY): added.
5214 (load_hist, save_entry_history): load and save history of user
5215 fitting functions.
5216
5217 2012-02-16 Ito Hiroyuki <ZXB01226 at nifty.com>
5218
5219 * mingw/windows_make.sed: update install path.
5220
5221 * initfile/Ngraph.ini.win: the first line should be blank or
5222 comment.
5223
5224 * src/gtk/main.c: add global variable "ADDINDIR"(only for
5225 Windows).
5226
5227 2012-02-15 Ito Hiroyuki <ZXB01226 at nifty.com>
5228
5229 * doc/html/index.html: remove English documents from the package.
5230
5231 * doc/html/Makefile.am: remove English documents from the package.
5232
5233 * src/gtk/x11graph.c (check_help_file): default language of the
5234 help file is Japanese.
5235
5236 * configure.in: remove English documents from the package.
5237
5238 * src/gtk/gtk_entry_completion.c (add_completion): check if the
5239 string is valid UTF8.
5240
5241 2012-02-14 Ito Hiroyuki <ZXB01226 at nifty.com>
5242
5243 * src/gtk/gtk_entry_completion.c (add_completion): use
5244 "g_strchomp()".
5245
5246 * misc/debian/ngraph-gtk.install: update install directory of
5247 demonstration files.
5248
5249 * misc/debian/ngraph-gtk-addins.install: update install directory.
5250
5251 * misc/debian/watch (http): fix URL.
5252
5253 * misc/debian/rules: remove rule "override_dh_compress".
5254
5255 * misc/debian/control (Description): fix description of addin package.
5256
5257 * mingw/windows_make.sed: change "pkgdatadir".
5258
5259 * addin/Makefile.am (addindir): added.
5260
5261 * src/osystem.c (sysinit): free string set to the field "doc_dir".
5262 (nsystem): add field "doc_dir".
5263
5264 * src/shell.c (ngraphenvironment): add "addin" to the "PATH"
5265 environment instead of "data".
5266
5267 * src/gtk/dir_defs.h.in (ADDINDIR): added.
5268
5269 * src/gtk/main.c (set_dir_defs): initialize "ADDINDIR".
5270 (set_path_env): add "ADDINDIR" to the "PATH" environment instead
5271 of "DATADIR".
5272 (main): initialize "doc_dir" field of the system object.
5273
5274 * demo/Makefile.am (demodir): change install directory to "pkgdatadir".
5275
5276 2012-02-13 Ito Hiroyuki <ZXB01226 at nifty.com>
5277
5278 * mingw/associate.bat: change line feed code.
5279
5280 * mingw/echo.nsc: show program neme and version.
5281
5282 2012-02-10 Ito Hiroyuki <ZXB01226 at nifty.com>
5283
5284 * src/gtk/dir_defs.h.in: add global variable "NDATADIR" when
5285 "WINDOWS" is teue.
5286
5287 * src/shell.c (ngraphenvironment): set "data_dir" of the system
5288 object to the "PATH" environment.
5289
5290 * src/gtk/main.c (main): don't call "set_path_env()".
5291 (main): initialize the "data_dir" field of the system object.
5292
5293 * src/osystem.c (nsystem): add field "data_dir".
5294 (sysdone): free string set to the field "data_dir".
5295
5296 * pathconv.sh: number of the argument is fixed.
5297
5298 * addin/Makefile.am (dist_pkgdata_DATA): addins are installed in
5299 "pkgdatadir".
5300
5301 * misc/debian/ngraph-gtk-addins.install: addins are installed in
5302 "pkgdatadir".
5303
5304 * mingw/windows_make.sed: replace "pkglibexecdir" and "pkgdatadir"
5305 to bin directory and lib directory respectively.
5306
5307 * mingw/windows.sh: don't move addins to the bin directory. copy
5308 hicolor icons to share/icons if exist.
5309
5310 2012-02-09 Ito Hiroyuki <ZXB01226 at nifty.com>
5311
5312 * misc/debian/ngraph-gtk.install: update path of "pkglibexedir".
5313
5314 * misc/debian/ngraph-gtk-addins-base.install: update path of "pkglibexedir".
5315
5316 * misc/debian/ngraph-gtk-addins.install: update path of "pkglibexedir".
5317
5318 * misc/debian/control (Build-Depends): use debhelper version 9.
5319
5320 * misc/debian/compat: use version 9.
5321
5322 * addin/Makefile.am (calc_CFLAGS, fitrslt_CFLAGS): remove option "-D_FORTIFY_SOURCE".
5323 (dist_pkglibexec_SCRIPTS, pkglibexec_PROGRAMS): installed in pkglibexedir.
5324
5325 * doc/html/ja/Makefile.am (intro.html): use "pkglibexecdir" instead of "libexecdir".
5326
5327 * doc/html/en/Makefile.am (intro.html): use "pkglibexecdir" instead of "libexecdi5D5D5Dr".
5328
5329 * initfile/Makefile.am (Ngraph.ini): use "pkglibexecdir" instead of "libexecdir".
5330
5331 * src/Makefile.am (ngraph_CFLAGS): remove option "-D_FORTIFY_SOURCE".
5332 (pkglibexec_PROGRAMS): installed in pkglibexedir.
5333
5334 * src/math/Makefile.am (libmath_la_CFLAGS): remove option "-D_FORTIFY_SOURCE".
5335
5336 * src/gtk/Makefile.am (libngraph_la_CFLAGS): remove option "-D_FORTIFY_SOURCE".
5337
5338 2012-02-09 Ito Hiroyuki <ZXB01226 at nifty.com>
5339
5340 * addin/legend.c (savescript): add font style setting.
5341
5342 2012-01-31 Ito Hiroyuki <ZXB01226 at nifty.com>
5343
5344 * src/gtk/x11file.c (button_set_mark_image): check return value of
5345 "gtk_image_new_from_pixbuf()" or "gtk_image_new_from_pixmap()".
5346
5347 2012-01-27 Ito Hiroyuki <ZXB01226 at nifty.com>
5348
5349 * mingw/windows.sh: add "--libexecdir" option for "configure"
5350 script.
5351
5352 * addin/Makefile.am (dist_libexec_SCRIPTS): used instead of
5353 "pkglib_DATA".
5354 (libexec_PROGRAMS): used instead of "pkglib_PROGRAMS".
5355 (pkglib_SCRIPTS, EXTRA_DIST): removed.
5356
5357 * doc/html/en/Makefile.am (dist_html_DATA): used instead of
5358 "html_DATA".
5359 (nodist_html_DATA, CLEANFILES): added
5360
5361 * doc/html/ja/Makefile.am (dist_html_DATA): used instead of
5362 "html_DATA".
5363 (nodist_html_DATA, CLEANFILES): added
5364
5365 * initfile/Makefile.am (nodist_ngraphconf_DATA): added.
5366 (Ngraph.ini): now install directory of the
5367 "terminal" command is not "lib" but "libexec".
5368 (CLEANFILES): added.
5369
5370 * driver/Makefile.am (CLEANFILES): added.
5371
5372 * src/Makefile.am (libexec_PROGRAMS): now install directory of the
5373 "terminal" command is not "lib" but "libexec".
5374
5375 * src/math/Makefile.am (BUILT_SOURCES): added.
5376
5377 * src/gtk/Makefile.am (nodist_libngraph_la_SOURCES)
5378 (BUILT_SOURCES, CLEANFILES): added.
5379
5380 * demo/Makefile.am (nodist_demo_DATA): files "demo[1-4].ngp" are
5381 not included in tarball.
5382
5383 2012-01-23 Ito Hiroyuki <ZXB01226 at nifty.com>
5384
5385 * src/gtk/x11lgnd.c (set_sensitive_with_label): removed.
5386 (legend_dialog_set_sensitive): use
5387 "set_widget_sensitivity_with_label()".
5388
5389 * src/gtk/x11print.c (OutputImageDialogSetupItem): use functions
5390 "set_widget_sensitivity_with_label()" and "get_mnemonic_label()".
5391
5392 * src/gtk/x11opt.c (use_external_toggled, load_file_toggled): use
5393 function "set_widget_sensitivity_with_label()".
5394
5395 * src/gtk/x11graph.c (PageDialogPage): use function
5396 "set_widget_sensitivity_with_label()".
5397
5398 * src/gtk/x11file.c (set_fitdialog_sensitivity)
5399 (set_user_fit_sensitivity, FitDialogSetSensitivity)
5400 (FileDialogType): use function
5401 "set_widget_sensitivity_with_label()".
5402
5403 * src/gtk/x11axis.c (bg_button_toggled, num_direction_changed):
5404 use function "set_widget_sensitivity_with_label()".
5405
5406 * src/gtk/gtk_widget.c (get_mnemonic_label)
5407 (set_widget_sensitivity_with_label): added.
5408 (get_widget): removed.
5409
5410 2012-01-22 Ito Hiroyuki <ZXB01226 at nifty.com>
5411
5412 * src/gtk/x11file.c (FileDialogType): set sensitivity of widgets
5413 "d->fit" and "d->fit_label".
5414 (plot_tab_create): initialize "d->fit_label".
5415
5416 * src/gtk/x11dialg.h (FileDialog): add member "fit_label".
5417
5418 2012-01-21 Ito Hiroyuki <ZXB01226 at nifty.com>
5419
5420 * src/gtk/x11dialg.h (FitDialog): add member "usr_def_prm_tbl".
5421
5422 * src/gtk/x11file.c (set_fitdialog_sensitivity)
5423 (FitDialogSetSensitivity): set sensitivity of the widget
5424 "usr_def_prm_tb".
5425 (create_user_fit_frame): initialize "usr_def_prm_tbl".
5426
5427 2012-01-20 Ito Hiroyuki <ZXB01226 at nifty.com>
5428
5429 * src/gtk/x11lgnd.c (text_dialog_show_tab): removed.
5430 (LegendTextDialogSetup): don't connect "show" signal.
5431
5432 * src/gtk/x11axis.c (scale_tab_create): use "map" signal instead
5433 of "show" signal.
5434 (TIME_FORMAT_STR): added.
5435 (numbering_tab_create): add tool tip for "Date/time format" entry.
5436 (axis_dialog_show_tab): removed.
5437 (AxisDialogSetup): don't connect "show" signal.
5438
5439 * src/gtk/x11file.c (file_dialog_show_tab): removed.
5440 (FileDialogSetupCommon): don't connect "show" signal.
5441
5442 * src/gtk/gtk_widget.c (add_copy_button_to_box): use "map" signal
5443 instead of "show" signal.
5444
5445 2012-01-19 Ito Hiroyuki <ZXB01226 at nifty.com>
5446
5447 * src/gtk/x11dialg.h (AxisDialog): remove member "del_btn" and "CanDel".
5448
5449 * src/gtk/x11view.c (ViewerAlignType): added.
5450 (ViewerEvKeyDown): actions related to delete and change order of
5451 objects are managed in "GtkAction".
5452 (ViewerPopupMenu): removed.
5453 (ViewerUpdateCB): added.
5454 (CmEditMenuCB): manage actions related to change order of an
5455 object.
5456
5457 * src/gtk/x11axis.c (AxisDialogSetup): remove redundant call of
5458 the function "gtk_widget_set_sensitive()".
5459 (AxisDialog): the parameter "candel" is not used.
5460
5461 * src/gtk/x11menu.c (ActionEntry): "Edit/drow Order" menu item is added.
5462
5463 * addin/timer.nsc (rectangle): use "dup" command.
5464
5465 * src/shell.c (cmdtable): add internal command "dup".
5466
5467 * src/shellcm.c (cmdup): added.
5468
5469 2012-01-13 Ito Hiroyuki <ZXB01226 at nifty.com>
5470
5471 * src/gtk/gtk_subwin.c (cell_focus_out, start_editing): connect
5472 "cell_focus_out()" to "focus-out-event" only when the version of
5473 GTK+ is 3.0.
5474
5475 * src/gtk/gtk_ruler.c (get_thickness): added.
5476 (nruler_size_request, nruler_draw_ticks, nruler_draw_pos): use "get_thickness()".
5477
5478 2012-01-06 Ito Hiroyuki <ZXB01226 at nifty.com>
5479
5480 * src/gtk/ox11menu.c (mx_get_locale): added.
5481 (gtkmenu): add field "locale".
5482
5483 * src/gtk/main.c (n_getlocale): added.
5484 (main): get locale string.
5485
5486 * src/gtk/x11graph.c (check_help_file): added.
5487 (CmHelpHelp): use "check_help_file()" to get full-path of help
5488 file.
5489
5490 2011-12-22 Ito Hiroyuki <ZXB01226 at nifty.com>
5491
5492 * addin/legend.c (caption_edited, caption_toggled): remove unused
5493 variables.
5494
5495 * addin/addin_common.h (gtk_hbox_new, gtk_vbox_new): don't use
5496 deprecated functions.
5497
5498 * src/gtk/gtk_common.h (gtk_hbox_new, gtk_vbox_new)
5499 (gtk_hbutton_box_new, gtk_hseparator_new, gtk_hscrollbar_new)
5500 (gtk_vscrollbar_new, gtk_hscale_new_with_range): don't use
5501 deprecated functions.
5502
5503 * src/gtk/x11opt.c (FontSettingDialogAddAlternative): use
5504 "GtkFontChooserDialog" when the version of GTK+ library is greater
5505 or equal to 3.2.
5506
5507 * src/gtk/gtk_widget.c (set_linumber_color): use
5508 "gtk_widget_override_color()" to set color of text. initialize
5509 "alpha" member of the structure "GdkRGBA". The range of each
5510 member of the structure "GdkRGBA" is from 0.0 to 1.0.
5511
5512 2011-12-18 Ito Hiroyuki <ZXB01226 at nifty.com>
5513
5514 * addin/fitrslt.c (makescript, savescript): use "iarray" object to
5515 calculate the maximum length of the text.
5516
5517 * addin/legend.c (caption_toggled, caption_edited): use
5518 "gtk_tree_model_get()" to get file id.
5519 (COLUMN_CHECK, COLUMN_ID): added.
5520 (COLUMN_CAPTION): change name.
5521 (savescript): use "iarray" object to calculate the maximum length
5522 of the text.
5523
5524 2011-12-14 Ito Hiroyuki <ZXB01226 at nifty.com>
5525
5526 * addin/legend.c (savescript): fix font setting.
5527
5528 2011-12-14 Ito Hiroyuki <ZXB01226 at nifty.com>
5529
5530 * addin/tex_equation.nsc: add quotation mark around the variable "$NGRAPHLIB".
5531
5532 * addin/ps2gra.nsc: add quotation mark around the variable "$NGRAPHLIB".
5533
5534 * addin/legend.nsc: add quotation mark around the variable "$NGRAPHLIB".
5535
5536 * addin/fitrslt.nsc: add quotation mark around the variable "$NGRAPHLIB".
5537
5538 * addin/fft.nsc: add quotation mark around the variable "$NGRAPHLIB".
5539
5540 * addin/calc.nsc: add quotation mark around the variable "$NGRAPHLIB".
5541
5542 2011-12-07 Ito Hiroyuki <ZXB01226 at nifty.com>
5543
5544 * initfile/NgraphUI.xml: remove "View Clear" button.
5545
5546 * initfile/NgraphUI.xml.win: remove "View Clear" button.
5547
5548 2011-12-06 Ito Hiroyuki <ZXB01226 at nifty.com>
5549
5550 * misc/ngraph.1: escape '-'.
5551
5552 * misc/ngraph.desktop (Encoding): removed.
5553
5554 * debian/control (Description): add text.
5555
5556 * src/gtk/x11menu.c (ActionEntry): change menu strings from "Open"
5557 to "Add".
5558
5559 * initfile/NgraphUI.xml: chang name of action from
5560 "DataOpenAction" and "MergeOpenAction" to "DataAddAction" and
5561 "MergeAddAction" respectively.
5562
5563 2011-12-05 Ito Hiroyuki <ZXB01226 at nifty.com>
5564
5565 * src/gtk/x11file.c (FitDialogSetup, FileDialogSetup): remove
5566 "Delete" button from dialog.
5567
5568 * src/gtk/x11merge.c (MergeDialogSetup): remove "Delete" button
5569 from dialog.
5570
5571 * src/gtk/x11axis.c (GridDialogSetup, SectionDialogSetup)
5572 (CrossDialogSetup, AxisDialogSetup): remove "Delete" button from
5573 dialog.
5574
5575 * src/gtk/x11lgnd.c (LegendArrowDialogSetup)
5576 (LegendRectDialogSetup, LegendArcDialogSetup)
5577 (LegendMarkDialogSetup, LegendTextDialogSetup): remove "Delete"
5578 button from dialog.
5579
5580 2011-12-05 Ito Hiroyuki <ZXB01226 at nifty.com>
5581
5582 * debian/ngraph-gtk.manpages: added.
5583
5584 * configure.in: change name of the package from "Ngraph-gtk" to
5585 "ngraph-gtk".
5586
5587 * src/gtk/main.c (set_path_env): change order of "PATH"
5588 environment.
5589
5590 2011-11-23 Ito Hiroyuki <ZXB01226 at nifty.com>
5591
5592 * misc/ngp2.1: added.
5593
5594 * misc/ngraph.1: added.
5595
5596 2011-11-21 Ito Hiroyuki <ZXB01226 at nifty.com>
5597
5598 * configure.in (GTK2_REQUIRED_VERSION, GTK3_REQUIRED_VERSION):
5599 added.
5600
5601 * configure.in: use GTK+3 if available.
5602
5603 * icons/application-x-ngraph.xpm: added.
5604
5605 * configure.in (AC_CONFIG_FILES): add "icons/Makefile" and
5606 "misc/Makefile".
5607
5608 * MAKEFILE.am (SUBDIRS): add "icons" and "misc".
5609
5610 2011-11-21 Koichi Akabe <vbkaisetsu at gmail.com>
5611
5612 * debian/rules: updated for debian repository.
5613
5614 * debian/control: updated for debian repository.
5615
5616 * debian/install: added.
5617
5618
5619 2011-11-21 Ito Hiroyuki <ZXB01226 at nifty.com>
5620
5621 * addin/timer.nsc: remove shebang.
5622
5623 * addin/tex_equation.nsc: remove shebang.
5624
5625 * addin/ps2gra.nsc: remove shebang.
5626
5627 * addin/fig2gra.nsc: remove shebang.
5628
5629 * addin/cal.nsc: remove shebang.
5630
5631 2011-11-20 Ito Hiroyuki <ZXB01226 at nifty.com>
5632
5633 * src/gtk/Makefile.am (libngraph_la_CFLAGS): remove settingis
5634 -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1
5635 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1
5636 -DGTK_DISABLE_SINGLE_INCLUDES=1 -DG_DISABLE_SINGLE_INCLUDES=1
5637 -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES=1 -DGSEAL_ENABLE=1
5638
5639
5640 * src/Makefile.am (ngraph_CFLAGS): remove settingis
5641 -DG_DISABLE_DEPRECATED=1 -DG_DISABLE_SINGLE_INCLUDES=1
5642
5643 * addin/Makefile.am (APP_CFLAGS): remove settingis
5644 -DGTK_DISABLE_DEPRECATED=1 -DGDK_DISABLE_DEPRECATED=1
5645 -DGDK_PIXBUF_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1
5646 -DGTK_DISABLE_SINGLE_INCLUDES=1 -DG_DISABLE_SINGLE_INCLUDES=1 \
5647 -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES=1 -DGSEAL_ENABLE=1
5648
5649 * debian/copyright: specify GPL version.
5650
5651 2011-11-14 Ito Hiroyuki <ZXB01226 at nifty.com>
5652
5653 * addin/Makefile.am (pkglib_DATA): add "timer.nsc".
5654
5655 * addin/timer.nsc: added.
5656
5657 2011-11-08 Ito Hiroyuki <ZXB01226 at nifty.com>
5658
5659 * src/gtk/x11menu.c (recent_filter): use "g_ascii_strncasecmp()"
5660 and "g_ascii_strcasecmp()" instead of "g_strcmp0()".
5661
5662 * src/gtk/main.h (NGRAPH_TEXT_MIME): added.
5663
5664 2011-11-04 Ito Hiroyuki <ZXB01226 at nifty.com>
5665
5666 * src/gtk/main.h (NGRAPH_GRAPH_MIME, NGRAPH_DATA_MIME): added.
5667
5668 * src/gtk/x11dialg.h (MiscDialog): remove member "history".
5669
5670 * src/gtk/ox11menu.c (menu_save_config_sub, mgtkloadconfig)
5671 (menulocal_finalize, menuinit): remove codes related to data file history.
5672
5673 * src/gtk/x11file.c (CmFileHistory): use "GtkRecentChooser".
5674
5675 * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup)
5676 (MiscDialogClose): remove codes related to data file history.
5677
5678 * src/gtk/x11commn.c (add_hist): added.
5679 (AddNgpFileList, AddDataFileList): use "add_hist()".
5680
5681 * src/gtk/ox11menu.h (menulocal): remove member "datafilelist".
5682
5683 * src/gtk/x11menu.c (SaveHistory, create_recent_data_menu)
5684 (add_underscore): removed.
5685 (recent_filter): added.
5686 (create_action_group): use "gtk_recent_filter_add_custom()"
5687 instead of "gtk_recent_filter_add_mime_type()".
5688
5689 2011-11-02 Ito Hiroyuki <ZXB01226 at nifty.com>
5690
5691 * addin/calc.c (load_settings): set maximum length of a string of
5692 "%s" parameter for the function "sscanf()".
5693
5694 * addin/fft.c (MAXP, MAXDATA): increase maximum data number.
5695
5696 * src/gtk/main.h (APP_MIME): added.
5697
5698 * src/gtk/x11menu.c (create_action_group): use
5699 "gtk_recent_filter_add_mime_type()" instead of
5700 "gtk_recent_filter_add_application()" and
5701 "gtk_recent_filter_add_pattern()".
5702
5703 * src/gtk/x11commn.c (AddNgpFileList): use "APP_MIME".
5704
5705 2011-11-01 Ito Hiroyuki <ZXB01226 at nifty.com>
5706
5707 * addin/fitrslt.c: move some functions to "addin_common.c".
5708
5709 * addin/legend.c: added.
5710
5711 * src/gtk/x11menu.c (application): call "SaveHistory()" before
5712 call "gtk_ui_manager_remove_ui()".
5713
5714 2011-10-24 Ito Hiroyuki <ZXB01226 at nifty.com>
5715
5716 * initfile/Ngraph.ini.win (script): add fft add-in.
5717
5718 * src/gtk/main.c (set_dir_defs): "LIBDIR" is now "app_path/bin".
5719
5720 * mingw/windows.sh: add-in programs are now installed in
5721 "$PKG_DIR/bin".
5722
5723 * addin/Makefile.am (pkglib_SCRIPTS): remove "calc.tcl" and "fitrslt.tcl".
5724 (pkglib_PROGRAMS): add "calc" and "fitrslt".
5725
5726 * addin/addin_common.h: added.
5727
5728 * addin/addin_common.c: added.
5729
5730 * addin/calc.c: added.
5731
5732 * addin/fitrslt.c: added.
5733
5734 2011-10-07 Ito Hiroyuki <ZXB01226 at nifty.com>
5735
5736 * debian/control (Recommends): add pstoedit.
5737
5738 * addin/calc.tcl (savedata, savescript): remove white space in the
5739 formula.
5740
5741 2011-09-26 Ito Hiroyuki <ZXB01226 at nifty.com>
5742
5743 * debian/ngraph.bash: add "-V" and "--VERSION" option. add "MJD"
5744 to the parameter of the "-ex" and "-ey" option.
5745
5746 * zsh/_ngraph: add "-V" and "--VERSION" option. add "MJD" to the
5747 parameter of the "-ex" and "-ey" option.
5748
5749 2011-09-16 Ito Hiroyuki <ZXB01226 at nifty.com>
5750
5751 * src/gtk/gtk_subwin.c (sub_window_show): use
5752 "gtk_window_present()" instead of "gtk_widget_show()".
5753
5754 * src/gtk/x11commn.c: fix typo.
5755
5756 2011-09-14 Ito Hiroyuki <ZXB01226 at nifty.com>
5757
5758 * src/gtk/main.c: "License" is defined when the version of GTK+ is
5759 less than 3.
5760
5761 2011-09-13 Ito Hiroyuki <ZXB01226 at nifty.com>
5762
5763 * src/ofile.c (set_data_progress): consider "d->hskip".
5764
5765 * src/gtk/x11lgnd.c (width_edited, pos_edited): the argument of
5766 the function "LegendWinUpdate()" is "TRUE".
5767
5768 2011-09-12 Ito Hiroyuki <ZXB01226 at nifty.com>
5769
5770 * src/gtk/x11commn.c (ProgressDialogCreate): call
5771 "gtk_progress_bar_set_show_text()" when the version of GTK+ is 3.
5772
5773 * src/gtk/x11graph.c (CmHelpAbout): use "license-type" instead of
5774 "license" when the version of GTK+ is 3.
5775
5776 2011-09-09 Ito Hiroyuki <ZXB01226 at nifty.com>
5777
5778 * src/gtk/ogra2cairo.h (gra2cairo_local): use "cairo_region_t"
5779 instead of "GdkRegion" when the version of GTK+ is 3.
5780
5781 * src/gtk/ogra2cairo.c (gra2cairo_clip_region): use
5782 "cairo_region_t" instead of "GdkRegion" when the version of GTK+
5783 is 3.
5784
5785 * src/gtk/ox11menu.h (menulocal): type of "pix" is not "GdkPixmap"
5786 but "cairo_surface_t".
5787 (menulocal): use "cairo_region_t" instead of "GdkRegion" when the
5788 version of GTK+ is 3.
5789
5790 * src/gtk/x11dialg.h (DIALOG_PROTOTYPE): type of "vbox" is not
5791 "GtkVBox" but "GtkBox".
5792 (LegendDialog): type of "arrow_pixmap" is not "GdkPixmap" but
5793 "cairo_surface_t".
5794
5795 * src/gtk/x11gui.c (DialogInput, DialogRadio, DialogCombo)
5796 (DialogComboEntry, DialogSpinEntry, DialogCheck): type of "vbox"
5797 is not "GtkVBox" but "GtkBox".
5798
5799 * src/gtk/ox11menu.c (mx_clear): use "cairo_region_t" instead of
5800 "GdkRegion" when the version of GTK+ is 3.
5801
5802 * src/gtk/x11file.c (button_set_mark_image, draw_type_pixbuf)
5803 (create_type_combo_box): use "cairo_surface_t" instead of
5804 "GdkPixmap" when the version of GTK+ is 3.
5805
5806 * src/gtk/x11view.c (region): use "cairo_region_t" instead of
5807 "GdkRegion" when the version of GTK+ is 3.
5808 (paste_cb, mouse_move_scroll): use "gdk_window_get_width()" and
5809 "gdk_window_get_height()" instead of "gdk_window_get_geometry()"
5810 when the version of GTK+ is greater than 2.24.
5811 (ViewerWinSetup, ShowCrossGauge, SetHRuler, SetVRuler): use
5812 "gdk_window_get_width()" and "gdk_window_get_height()" instead of
5813 "gdk_drawable_get_size()" when the version of GTK+ is greater than
5814 2.24.
5815 (popup_menu_position): use "gdk_window_get_position()" instead of
5816 "gdk_window_get_geometry()" when the version of GTK+ is greater
5817 than 2.24.
5818 (ViewerEvPaint): use "cairo_set_source_surface()" instead of
5819 "gdk_cairo_set_source_pixmap()."
5820 (ViewerEvPaint): added codes for GTK+ 3.
5821 (create_pix): use "cairo_surface_t" instead of "GdkPixmap".
5822 (OpenGC): added codes for GTK+ 3.
5823
5824 * src/gtk/ogra2x11.c (gtkevpaint): added codes for GTK+ 3.
5825 (gtklocal): use "cairo_surface_t" instead of "GdkPixmap" when the
5826 version of GTK+ is 3.
5827
5828 * src/gtk/ogra2gdk.c (gra2gdk_create_pixmap): use
5829 "cairo_surface_t" instead of "GdkPixmap" when the version of GTK+
5830 is 3.
5831
5832 * src/gtk/gtk_widget.c (text_view_size_allocate): fix typo.
5833 (set_linumber_color): use "gtk_widget_override_background_color()"
5834 instead of "gtk_widget_modify_base()" when the version of GTK+ is
5835 3.
5836 (get_preferred_width, get_preferred_height): added for GTK+ 3.
5837 (create_text_view_with_line_number): added codes for GTK+ 3.
5838 (text_view_with_line_number_set_font): use
5839 "gtk_widget_override_font()" instead of "gtk_widget_modify_font()"
5840 when the version of GTK+ is 3.
5841
5842 * src/gtk/x11lgnd.c (LegendArrowDialogPaint)
5843 (LegendArrowDialogScaleL, LegendArrowDialogSetup)
5844 (create_character_view, LegendWinExpose, CmLegendWindow): add
5845 codes for GTK+ 3.
5846
5847 * src/gtk/x11menu.h (NgraphApp): use "cairo_surface_t" instead of
5848 "GdkPixmap" when the version of GTK+ is 3.
5849
5850 * src/gtk/gtk_common.h: add "GDK_KEY_*" definitions.
5851
5852 * src/gtk/x11menu.c (create_markpixmap, free_markpixmap): use
5853 "cairo_surface_t" instead of "GdkPixmap" when the version of GTK+
5854 is 3.
5855
5856 * src/gtk/gtk_liststore.c (start_editing_obj): add "const" to the
5857 5th parameter when the version of GTK+ is 3.
5858
5859 * src/gtk/x11info.c (InfoWinSetFont): use
5860 "gtk_widget_override_font()" instead of "gtk_widget_modify_font()"
5861 when the version of GTK+ is 3.
5862
5863 * src/gtk/gtk_subwin.c (cell_focus_out): added for GTK+ 3.
5864 (start_editing): add codes for GTK+ 3.
5865
5866 * src/gtk/x11lgndx.c (LegendGaussDialogPaint)
5867 (LegendGaussDialogSetup): add codes for GTK+ 3.
5868
5869 * src/gtk/gtk_ruler.c (ruler_new): add codes for GTK+ 3.
5870 (nruler_get_preferred_width, nruler_get_preferred_height): added
5871 for GTK+ 3.
5872 (nruler_size_request, nruler_expose, nruler_make_pixmap)
5873 (nruler_draw_ticks, nruler_draw_pos): add codes for GTK+ 3.
5874
5875 2011-08-15 Ito Hiroyuki <ZXB01226 at nifty.com>
5876
5877 * initfile/NgraphUI.xml.win: fix typo.
5878
5879 * initfile/NgraphUI.xml: fix typo.
5880
5881 * src/gtk/x11menu.c (ActionEntry): fix typo.
5882
5883 2011-08-09 Ito Hiroyuki <ZXB01226 at nifty.com>
5884
5885 * src/math/math_equation.c (check_const_sub): check
5886 "exp->u.assign.right" instead of "exp->u.bin.right" when type of
5887 the expression is "MATH_EXPRESSION_TYPE_ASSIGN".
5888
5889 2011-08-08 Ito Hiroyuki <ZXB01226 at nifty.com>
5890
5891 * src/gtk/gtk_subwin.c (sub_window_minimize)
5892 (sub_window_restore_state): removed.
5893
5894 2011-08-07 Ito Hiroyuki <ZXB01226 at nifty.com>
5895
5896 * src/gtk/gtk_subwin.c (ev_sub_win_key_down): use
5897 "window_action_set_active()" instead of "gtk_widget_hide()".
5898
5899 * src/gtk/x11file.c (execute_fit_dialog): added.
5900 (FileDialogFit, FileWinFit): use "execute_fit_dialog()".
5901
5902 2011-07-31 Ito Hiroyuki <ZXB01226 at nifty.com>
5903
5904 * src/shellcm.c (cmwhich): check built-in command.
5905
5906 2011-07-29 Ito Hiroyuki <ZXB01226 at nifty.com>
5907
5908 * src/gtk/x11lgnd.c (LegendWinLegendUpdate): save "d->select" and
5909 "d->legend_type" when "ret" is equal to "IDOK".
5910
5911 2011-07-28 Ito Hiroyuki <ZXB01226 at nifty.com>
5912
5913 * src/ofile.c (getdata2, getminmaxdata, f2dgetdataraw): use stack
5914 instead of heap for the data buffer.
5915 (getdata, getdata2, getminmaxdata, f2dgetdataraw): size of the
5916 data buffer is "FILE_OBJ_MAXCOL + 3" (for error-bar plot).
5917
5918 2011-07-27 Ito Hiroyuki <ZXB01226 at nifty.com>
5919
5920 * src/gtk/x11gui.c (message_box): increase maximum length of a
5921 message.
5922
5923 * src/ofile.c (getminmaxdata): bug fix: update "fp->maxy.val"
5924 instead of "fp->maxx.val".
5925 (getdataraw): bug fix: set value to not "fp->d3" but "d3".
5926
5927 2011-07-22 Ito Hiroyuki <ZXB01226 at nifty.com>
5928
5929 * addin/ps2gra.nsc: change name of functions.
5930
5931 * addin/fig2gra.nsc: change name of functions.
5932
5933 * addin/fig2gra.rb (set_line_attribute): fix typo.
5934
5935 * addin/tex_equation.nsc: change name of functions.
5936
5937 * src/nstring.c (nstrncat): this function is not used.
5938
5939 2011-07-21 Ito Hiroyuki <ZXB01226 at nifty.com>
5940
5941 * addin/tex_equation.nsc: fix typo.
5942
5943 2011-07-20 Ito Hiroyuki <ZXB01226 at nifty.com>
5944
5945 * addin/fig2gra.nsc: added.
5946
5947 * addin/tex_equation.nsc: use "fig2gra.nsc" when ruby is not
5948 available.
5949
5950 * addin/ps2gra.nsc: use "fig2gra.nsc" when ruby is not available.
5951
5952 * src/object.c (get_array_argument): call "g_strfreev()" when the
5953 function "g_shell_parse_argv()" returns false.
5954
5955 * src/oregexp.c (regexp_match): call "g_match_info_free()" when
5956 the function "g_regex_match()" returns false.
5957
5958 2011-07-18 Ito Hiroyuki <ZXB01226 at nifty.com>
5959
5960 * src/oiarray.c (oarray_get_index, oarray_create_math)
5961 (iarray_map): added.
5962 (iarrayget, iarrayput, iarrayins, iarraydel): use
5963 "oarray_get_index()".
5964 (oiarray): add field "map".
5965
5966 * src/odarray.c (darrayget, darrayput, darrayins, darraydel): use
5967 "oarray_get_index()".
5968 (odarray): add field "map".
5969
5970 * src/osarray.c (sarrayget, sarrayput, sarrayins, sarraydel): use
5971 "oarray_get_index()".
5972
5973 * test/sarray_test.nsc: add tests for "get" and "map" fields.
5974
5975 * test/iarray_test.nsc: add tests for "get" and "map" fields.
5976
5977 * test/darray_test.nsc: add tests for "get" and "map" fields.
5978
5979 2011-07-16 Ito Hiroyuki <ZXB01226 at nifty.com>
5980
5981 * src/oint.c (int_times, int_inc, int_dec): added.
5982 (oint): add fields "times", "inc" and "dec".
5983
5984 2011-07-13 Ito Hiroyuki <ZXB01226 at nifty.com>
5985
5986 * addin/ps2gra.nsc: remove automatically created files.
5987
5988 * addin/fig2gra.rb (#draw_poly_line, #uniq_pos): close path when
5989 start and end points are same position.
5990
5991 * initfile/Ngraph.ini.in (script): add "import PS" and "import
5992 EPS" addin.
5993
5994 * addin/ps2gra.nsc: added.
5995
5996 * addin/Makefile.am: add ps2gra.nsc
5997
5998 * src/gtk/x11view.c (ncopyobj): don't copy "name" field.
5999
6000 2011-07-12 Ito Hiroyuki <ZXB01226 at nifty.com>
6001
6002 * src/osystem.c (nsystem): type of the field "pid" is "NINT".
6003
6004 2011-07-12 Ito Hiroyuki <ZXB01226 at nifty.com>
6005
6006 * src/osystem.c (nsystem): add field "pid".
6007 (syspid): added.
6008
6009 * src/math/math_basic_function.c (math_func_srand): added.
6010
6011 * src/math/math_function.h.in: add function "srand()".
6012
6013 * src/gtk/x11menu.h (SubWinType): change order.
6014
6015 2011-07-11 Ito Hiroyuki <ZXB01226 at nifty.com>
6016
6017 * src/shellcm.c (cmwhich): added.
6018
6019 * src/shell.c (cmdtable): add internal command "which".
6020
6021 * doc/html_ja/addin.html: update document.
6022
6023 * addin/Makefile.am (pkglib_SCRIPTS): add "fig2gra.rb".
6024 (pkglib_DATA): add "tex_equation.nsc".
6025
6026 * addin/fig2gra.rb: added.
6027
6028 * addin/tex_equation.nsc: added.
6029
6030 * initfile/Ngraph.ini.in (script): add "TeX equation" addin.
6031
6032 * src/math/math_expression.c (math_func_call_expression_new):
6033 "buf" is NULL when argc is less than 1.
6034
6035 * src/math/math_basic_function.c (math_func_time): added.
6036
6037 * src/math/math_function.h.in: add function "time()".
6038
6039 2011-07-10 Ito Hiroyuki <ZXB01226 at nifty.com>
6040
6041 * src/object.c (add_arg_object, getargument): accept character ","
6042 as a string of an id list.
6043
6044 * src/gtk/ox11menu.c (mx_focus_obj, mx_unfocus_obj): added.
6045 (gtkmenu): add fields "focus" and "unfocus".
6046
6047 2011-07-05 Ito Hiroyuki <ZXB01226 at nifty.com>
6048
6049 * src/omerge.c (ZOOM_MAX): added.
6050 (mergezoom): do nothing if "zm * zoom" is larger than "ZOOM_MAX".
6051 (mergegeometry): upper limit of the field "zoom" is "ZOOM_MAX".
6052
6053 * src/gtk/x11view.c (calc_zoom, set_zoom_prm): added.
6054 (init_zoom, mouse_move_zoom): use "calc_zoom()" and
6055 "set_zoom_prm()".
6056 (mouse_up_zoom): use "calc_zoom()".
6057 (ViewUpdate): set "d->ShowRect" as FALSE.
6058
6059 * src/gtk/gtk_widget.h (SPIN_ENTRY_MAX): change limit to 1000000.
6060
6061 2011-07-02 Ito Hiroyuki <ZXB01226 at nifty.com>
6062
6063 * src/gtk/x11gui.c (message_box): limit length of an error
6064 message.
6065
6066 * src/gra.c (GRAlines): fix argument number.
6067 (GRAinputdraw): fix check of the argument number.
6068
6069 2011-06-23 Ito Hiroyuki <ZXB01226 at nifty.com>
6070
6071 * src/ofile.c (f2dhead): don't add line number.
6072
6073 * src/gtk/x11dialg.h (FileDialog):remove members "comment" and
6074 "comment_num_tag".
6075
6076 * src/gtk/x11file.c (count_line_number_str, set_line_number_tag)
6077 (create_text_tag, set_file_preview): removed.
6078 (set_headlines): use "text_view_with_line_number_set_text()".
6079 (FileDialogSetup): use "create_text_view_with_line_number()".
6080 (CmFileWindow): call "gtk_tree_view_set_enable_search()",
6081 "gtk_tree_view_set_search_column()" and
6082 "gtk_tree_view_set_tooltip_column()".
6083
6084 * src/gtk/x11merge.c (CmMergeWindow): call
6085 "gtk_tree_view_set_enable_search()",
6086 "gtk_tree_view_set_search_column()" and
6087 "gtk_tree_view_set_tooltip_column()".
6088
6089 * src/gtk/x11axis.c (CmAxisWindow): call
6090 "gtk_tree_view_set_enable_search()",
6091 "gtk_tree_view_set_search_column()" and
6092 "gtk_tree_view_set_tooltip_column()".
6093
6094 * src/gtk/gtk_widget.c (text_view_scroll_event)
6095 (set_scroll_visibility, text_view_size_alocate)
6096 (set_linumber_color, create_text_view_with_line_number)
6097 (text_view_with_line_number_set_text)
6098 (text_view_with_line_number_set_font): added.
6099
6100 * src/gtk/gtk_common.h: remove macros for Gtk+ which version is
6101 lesser than 2.14.
6102
6103 * configure.in: "GTK_REQUIRED_VERSION" is now 2.14.0.
6104
6105 2011-06-20 Ito Hiroyuki <ZXB01226 at nifty.com>
6106
6107 * src/gtk/x11merge.c (MergeDialogSetupItem): cursor will be set
6108 after the last character.
6109
6110 * src/gtk/x11file.c (FileDialogSetupItem): cursor will be set
6111 after the last character.
6112
6113 2011-06-15 Shijo Nagao <shijo.nagao at ntnu.no>
6114
6115 * src/gtk/ox11menu.c (mx_show_lib_version): use macro
6116 "GSL_VERSION" if available.
6117
6118 2011-06-14 Ito Hiroyuki <ZXB01226 at nifty.com>
6119
6120 * initfile/Ngraph.nsc: open dummy "gra2cairofile" object when save
6121 "GRA" file to render strings corectry.
6122
6123 * src/ogra2nul.c (g2nul_chardescent): remove unused variable
6124 "font".
6125
6126 * src/oaxis.c (draw_numbering_normalize): add "default" in the
6127 "case" statement.
6128
6129 * src/oprm.c (prmload): remove unused variables "scauto" and
6130 "scperiod".
6131
6132 * src/math/math_expression.c (register_arg): remove unused
6133 variable "i".
6134 (call_func): remove unused variable "use_array".
6135
6136 * src/math/math_scanner.c (get_dec): remove unused variable "ptr".
6137
6138 * src/object.c (getvaluestr): remove unused variable "len".
6139
6140 * src/otext.c (textmatch): calculate margin.
6141
6142 * src/shell.c (puts_localized): return "r".
6143
6144 * src/ofile.c (put_func): remove unused variables "default_func"
6145 and "fname".
6146 (getdata_sub2): remove unused variables "data2" and "data3".
6147 (f2doutputfile): return "r".
6148
6149 * src/orect.c (rectrotate): remove unused variables "nx1", "ny1",
6150 "nx2" and "ny2".
6151
6152 * src/gra.c (GRAdrawtext): remove unused variable "j".
6153
6154 * src/gtk/ogra2cairo.c (loadconfig): remove unused variables
6155 "fontcashsize" and "fontcashsize, fontcashdirfontcashdir".
6156
6157 * src/gtk/ox11dlg.c (dlgmessage): remove unused variable "rcode".
6158
6159 * src/gtk/x11cood.c (CmCoordinateWindow): remove unused variable
6160 "dlg".
6161
6162 * src/gtk/x11file.c (FitSaveDialogSetup): remove unused variable
6163 "j".
6164 (func_entry_focused): remove unused variable "d".
6165 (FileDialogSetup): remove unused variable "rcode".
6166 (start_editing_type): remove unused variable "list".
6167
6168 * src/gtk/x11view.c (CutFocusedObjects): remove unused variable
6169 "text".
6170 (EvalDialogSetupItem): initialize variable "n".
6171 (scrollbar_scroll_cb, AddList, AddInvalidateRect): remove unused
6172 variable "d".
6173 (mouse_down_point): remove unused variable "zoom".
6174 (calc_integer_ratio): check variable "po2" (not "pow").
6175
6176 * src/gtk/x11opt.c (SetScriptDialogBrowse): remove unused variable
6177 "d".
6178
6179 * src/gtk/ogra2x11.c (gtk_output): remove unused variables
6180 "cstr"and "local".
6181
6182 * src/gtk/x11axis.c (GridDialogAxis): remove unused variable "d".
6183 (AxisDialogFile): remove unused variable "room".
6184 (CmAxisScaleUndo): remove unused variable "d".
6185
6186 * src/gtk/x11print.c (print_obj): remove unused member "g2wid".
6187 (draw_page): remove unused variable "g2wid".
6188
6189 * src/gtk/x11lgnd.c (LegendWinLegendUpdate): remove unused
6190 variable "num".
6191
6192 * src/gtk/x11commn.c (FileAutoScale): remove unused variable
6193 "room".
6194
6195 * src/gtk/x11graph.c (SwitchDialogUp): remove unused variable
6196 "num".
6197 (SaveDialogSetup): remove unused variable "hbox".
6198
6199 * src/gtk/ogra2cairofile.c (gra2cairofile_output): remove unused
6200 variable "cstr".
6201
6202 2011-06-11 Ito Hiroyuki <ZXB01226 at nifty.com>
6203
6204 * demo/demo.ngp.in (dialog): don't clear graph before exit
6205 demonstration.
6206
6207 * src/gtk/x11print.c (DriverDialogSelectCB): type of variables "l"
6208 and "n"is now "int".
6209
6210 * initfile/Ngraph.nsc: add option "-V".
6211
6212 * src/oaxis.c (axis): add field "auto_scale_margin". remove 2nd
6213 argument for "auto_scale" and "get_auto_scale" fields.
6214 (axisautoscale_margin): added.
6215 (axisinit): initialize "auto_scale_margin" field.
6216 (axisadjust, axischangescale, axiscoordinate): use "AXIS_TYPE_",
6217 "AXIS_TYPE_LOG" and "AXIS_TYPE_LOG" instead of 1 and 2.
6218 (axischangescale): now parameter "room" means margin of the scale.
6219 (axisautoscale, axisgetautoscale): remove 2nd argument.
6220
6221 * src/oagrid.c (agrid): add fields "grid_x" and "grid_y".
6222 (agridinit): initialize "grid_x" and "grid_y" fields.
6223 (agriddraw): check "grid_x" and "grid_y" fields.
6224
6225 * src/shellcm.c (dispfield): "NCHAR" and "NCFUNC" are not used now.
6226
6227 * src/object.c (check_arglist): added.
6228 (addobject): call "check_arglist()".
6229 (chkobjarglist, _putobj, putobj, _getobj, getobj, copyobj)
6230 (getvaluestr): "NCHAR" and "NCFUNC" are not used now.
6231 (add_arg_object, add_arg_int, add_arg_double, add_arg_bool)
6232 (add_arg_num, add_arg_sarray, add_arg_iarray, add_arg_darray)
6233 (set_arg_enum, get_array_argument): added.
6234 (getargument): use "set_arg_enum()", "g_shell_parse_argv()",
6235 "get_array_argument()", "add_arg_num()" and "add_arg_object()".
6236
6237 * src/oio.c (io): add "mode" field. remove 2nd argument for "open"
6238 and "popen" field.
6239 (io_init): initialize "mode" field.
6240 (io_open): use "mode" filed instead of 2nd argument.
6241
6242 * src/mathfn.c (nround): use "G_MAXINT" and "G_MAXINT" instead of
6243 "LANG_MIN" and "LONG_MAX" .
6244
6245 * src/ofile.c (barout): use "case" statement instead of "if".
6246 (f2dboundings): minimum or maximum value for bar plot is now 0.
6247
6248 * src/gtk/x11dialg.h (AAxisDialog): add member "margin".
6249 (GridDialog): add members "draw_x" and "draw_y".
6250
6251 * src/gtk/x11axis.c (GridDialogSetupItem): get "grid_x" and
6252 "grid_y" fields.
6253 (GridDialogSetup): add widgets to set "grid_x" and "grid_y" fields.
6254 (GridDialogClose): set "grid_x" and "grid_y" fields.
6255 (scale_tab_setup_item): remove redundant function call "getobj()"
6256 for "div" fields.
6257 (scale_tab_setup_item): get "auto_scale_margin" field.
6258 (AxisDialogFile): remove second argument for "get_auto_scale" field.
6259 (scale_tab_create): add widget to set "auto_scale_margin" field.
6260 (scale_tab_set_value): set "auto_scale_margin" field.
6261 (CmAxisZoom): now 3rd argument for "scale" field is 0.
6262
6263 * src/gtk/x11commn.c (FileAutoScale): remove second argument for
6264 "auto_scale" field.
6265
6266 * demo/demo.ngp (dialog): don't clear graph before exit
6267 demonstration.
6268
6269 * demo/demo4.ngp.in: use "axisgrid" instead of "path" to show grid
6270 line.
6271
6272 * src/math/math_basic_function.c (mjd): check parameters "m" and
6273 "d".
6274
6275 * src/gtk/ox11menu.c (get_palette): initialize variable "palette"
6276 as NULL.
6277
6278 2011-06-10 Ito Hiroyuki <ZXB01226 at nifty.com>
6279
6280 * src/gtk/ox11menu.c (gtkmenu): add argument for the field
6281 "lib_version".
6282 (mx_show_lib_version): add prefix for the output strings.
6283
6284 * src/gtk/x11view.c (ViewerPopupMenu, CmEditMenuCB)
6285 (CmViewerButtonArm): use "GPOINTER_TO_INT()" to get data.
6286
6287 * src/gtk/x11print.c (CmOutputMenu): use "GPOINTER_TO_INT()" to
6288 get data.
6289
6290 * src/gtk/x11menu.c (toggle_view_cb, detach_toolbar): use
6291 "GPOINTER_TO_INT()" to get data.
6292
6293 * src/gtk/x11graph.c (CmGraphNewMenu): use "GPOINTER_TO_INT()" to
6294 get data.
6295
6296 2011-06-08 Ito Hiroyuki <ZXB01226 at nifty.com>
6297
6298 * src/gtk/x11commn.c (get_new_axis_id): add argument "aobj".
6299
6300 2011-05-20 Ito Hiroyuki <ZXB01226 at nifty.com>
6301
6302 * src/ostring.c (utf8_string_slice, string_slice, string_match)
6303 (string_rindex, string_index, string_replace): added.
6304 (ostring): add field "slice", "replace", "index", "rindex" and
6305 "match".
6306
6307 * src/oregexp.c (regexp_replace): added.
6308 (oregexp): add field "replace".
6309
6310 * test/string_test.nsc: added.
6311
6312 * src/math/math_basic_function.c (compare_double_with_prec):
6313 added.
6314 (math_func_eq, math_func_neq): add 3rd argument. use
6315 "compare_double_with_prec()".
6316
6317 2011-05-19 Ito Hiroyuki <ZXB01226 at nifty.com>
6318
6319 * src/math/math_parser.c (parse_argument_list): update "*buf"
6320 after call the function "g_realloc()".
6321
6322 * src/object.c (array_reverse): added.
6323
6324 * src/odarray.c (odarray): add field "reverse", "sum", "average",
6325 "RMS", "sdev", min", "max" and "slice".
6326 (calc_sum, calc_square_sum, darray_sum, darray_average)
6327 (darray_rms, darray_sdev, darray_min, darray_max): added.
6328
6329 * src/oiarray.c (oarray_reverse, oarray_slice): added.
6330 (oiarray): add field "reverse", "sum", "average", "RMS", "sdev",
6331 min", "max" and "slice".
6332 (calc_sum, calc_square_sum, iarray_sum, iarray_average)
6333 (iarray_rms, iarray_sdev, iarray_min, iarray_max): added.
6334
6335 * src/mathfn.c (bsearch_int): add braces after "if" statements.
6336
6337 * src/osarray.c (osarray): add field "reverse" and "slice".
6338 (sarray_slice): added.
6339
6340 2011-05-18 Ito Hiroyuki <ZXB01226 at nifty.com>
6341
6342 * src/ofit.c (fituser): "MSERR" is not used.
6343
6344 * src/ofile.c (errordisp, errordisp2): "MSERR" is not used.
6345
6346 * src/oregexp.c (regexp_get): return 1 when failed.
6347
6348 2011-05-17 Ito Hiroyuki <ZXB01226 at nifty.com>
6349
6350 * test/iarray_test.nsc: added.
6351
6352 * test/darray_test.nsc: added.
6353
6354 * test/sarray_test.nsc: added.
6355
6356 * test/regexp_test.nsc: added.
6357
6358 * initfile/save_ui_file.nsc: don't use external programs.
6359
6360 * src/shellcm.c (cmecho): length of the output strings is now not
6361 limited.
6362
6363 * src/object.c (cmp_func_int_r, arrayrsort_int, cmp_func_double)
6364 (cmp_func_double_r, arraysort_double, arrayrsort_double)
6365 (arrayuniq_double, cmp_func_str, cmp_func_str_r, arraysort_str)
6366 (arrayrsort_str, arrayuniq_str): added.
6367 (getvaluestr): use "g_string_append_printf()" instead of
6368 "sprintf()".
6369
6370 * src/oio.c (io_eof): return value is depend on the return value
6371 of the function "feof()".
6372
6373 * src/gtk/main.c (obj_add_func_ary): add "addregexp".
6374
6375 * src/oiarray.c (oarray_get_array, oarray_num, oarray_seq)
6376 (iarraypop, iarrayunshift, iarrayshift, iarraysort, iarrayrsort)
6377 (iarrayuniq, iarrayjoin, oarray_reverse_seq): added
6378 (iarrayadd, iarrayins): use "oarray_get_array()".
6379 (oiarray): add fields "push", "pop", "unshift", "shift", "sort",
6380 "rsort", "uniq", "join", "seq" and "rseq".
6381
6382 * src/odarray.c (darrayadd, darrayins): use "oarray_get_array()".
6383 (darraypop, darrayunshift, darrayshift, darraysort, darrayrsort)
6384 (darrayuniq, darrayjoin): added.
6385 (odarray): add fields "push", "pop", "unshift", "shift", "sort",
6386 "rsort", "uniq", "join", "seq" and "rseq".
6387
6388 * src/osarray.c (sarrayadd, sarrayins): use "oarray_get_array()".
6389 (sarraypop, sarrayunshift, sarrayshift, sarraysort, sarrayrsort)
6390 (sarrayuniq): added.
6391 (osarray): add fields "push", "pop", "unshift", "shift", "sort",
6392 "rsort" and "uniq".
6393
6394 * src/oregexp.c: added.
6395
6396 2011-05-16 Ito Hiroyuki <ZXB01226 at nifty.com>
6397
6398 * src/ostring.c (string_strip, set_length, string_upcase)
6399 (string_downcase, string_reverse): added.
6400 (ostring): add field "byte", "length", "strip", "upcase",
6401 "downcase" and "reverse".
6402
6403 * src/odarray.c (odarray): add field "seq" and "rseq".
6404 (odarray): use "oarray_num()", "oarray_seq()" and
6405 "oarray_reverse_seq()".
6406
6407 * src/oiarray.c (oarray_num): change name from "iarraunum()".
6408 (oarray_seq, oarray_rseq): added.
6409 (oiarray): add field "seq"and "rseq".
6410 (oiarray): use "oarray_num()", "oarray_seq()" and
6411 "oarray_reverse_seq()".
6412
6413 * src/osarray.c (ERRREGEXP, set_delimiter, sarraysplit)
6414 (sarrayjoin): added.
6415 (sarrayinit): initialize field "_local".
6416 (sarraydone): finalize field "_local".
6417 (osarray): add fields "delimiter", "split", "seq", "rseq" and
6418 "join".
6419 (osarray): use "oarray_num()", "oarray_seq()" and
6420 "oarray_reverse_seq()".
6421
6422 * src/object.c (arrayins2, arrayput2): use "g_strdup()" instead of
6423 "g_malloc()" and "strcpy()".
6424
6425 2011-05-13 Ito Hiroyuki <ZXB01226 at nifty.com>
6426
6427 * src/gtk/x11menu.c (ActionEntry): fix callback function (from
6428 "CmOutputMenu()" to "CmViewerClear()").
6429
6430 * src/gtk/x11opt.c (CmOptionSaveNgp): fix window title.
6431
6432 2011-05-10 Ito Hiroyuki <ZXB01226 at nifty.com>
6433
6434 * initfile/Ngraph.ini.win (palette): added.
6435
6436 * initfile/Ngraph.ini.in (palette): added.
6437
6438 * src/gtk/ox11menu.h (menulocal): add member "Palette".
6439
6440 * src/gtk/ox11menu.c (MenuConfigOthers): change name from
6441 "MenuConfigExportImage". Add setting "palette".
6442 (get_palette, set_palette): added.
6443 (menu_save_config): call "get_palette()" before call
6444 "menu_save_config_sub()" when "type & SAVE_CONFIG_TYPE_OTHERS" is
6445 true.
6446 (menuinit): call "set_palette()".
6447
6448 2011-05-09 Ito Hiroyuki <ZXB01226 at nifty.com>
6449
6450 * src/gtk/x11dialg.c: add braces after "if" statements.
6451
6452 2011-05-01 Ito Hiroyuki <ZXB01226 at nifty.com>
6453
6454 * src/gtk/x11view.c (UnFocus): use "gtk_widget_queue_draw()"
6455 instead of "gdk_window_invalidate_rect()".
6456
6457 2011-04-29 Ito Hiroyuki <ZXB01226 at nifty.com>
6458
6459 * src/gtk/x11view.c (UnFocus): call
6460 "gdk_window_invalidate_rect()".
6461
6462 2011-04-28 Ito Hiroyuki <ZXB01226 at nifty.com>
6463
6464 * src/gtk/x11file.c (CmFileNew, CmFileOpen, CmFileClose)
6465 (CmFileUpdate, CmFileEdit, CmFileMath): add parameters "GtkAction
6466 *w" and "gpointer client_data".
6467 (FileWinFileDraw): call "CmViewerDraw()" instead of
6468 "CmViewerDrawB()".
6469 (CmFileMenu): removed.
6470 (GetDrawFiles, CmFileSaveData): moved from "x11print.c".
6471
6472 * src/gtk/x11view.c (ViewerEvKeyUp): call "reset_drag_info()" only
6473 when "CLEAR_DRAG_INFO" is true.
6474 (graph_dropped, ViewerEvKeyDown): call "CmViewerDraw()" instead of
6475 "CmViewerDrawB()".
6476 (CmViewerDraw, CmViewerClear): add parameters "GtkAction *w" and
6477 "gpointer client_data".
6478 (CmViewerDraw): second parameter represents if select files before
6479 drawing or not.
6480
6481 * src/gtk/x11opt.c (CmOptionSaveNgp, CmOptionViewer)
6482 (CmOptionExtViewer, CmOptionPrefFont, CmOptionScript)
6483 (CmOptionMisc, CmOptionSaveDefault): add parameters "GtkAction *w"
6484 and "gpointer client_data".
6485 (CmOptionMenu): removed.
6486
6487 * src/gtk/x11merge.c (CmMergeOpen, CmMergeClose, CmMergeUpdate):
6488 add parameters "GtkAction *w" and "gpointer client_data".
6489 (CmMergeMenu, MergeWinMergeOpen): removed.
6490
6491 * src/gtk/x11axis.c (CmAxisNewFrame, CmAxisNewSection)
6492 (CmAxisNewCross, CmAxisNewSingle, CmAxisDel, CmAxisUpdate)
6493 (CmAxisZoom, CmAxisClear, CmAxisGridNew, CmAxisGridDel)
6494 (CmAxisGridUpdate, CmAxisScaleUndo): add parameters "GtkAction *w"
6495 and "gpointer client_data".
6496 (CmAxisMenu, CmGridMenu): removed.
6497
6498 * src/gtk/x11print.c (CmOutputViewer): removed.
6499 (CmOutputViewerB): merged with the function "CmOutputViewer()".
6500 (CmOutputViewerB): never call "SetFileHidden()".
6501 (CmPrintGRAFile, CmOutputImage): static function.
6502 (CmOutputMenu): remove unused case.
6503
6504 * src/gtk/x11lgnd.c (CmLineDel, CmLineUpdate, CmRectDel)
6505 (CmRectUpdate, CmArcDel, CmArcUpdate, CmMarkDel, CmMarkUpdate)
6506 (CmTextDel, CmOptionTextDef): add parameters
6507 "GtkAction *w" and "gpointer client_data".
6508 (CmLineMenu, CmRectangleMenu, CmArcMenu, CmMarkMenu, CmTextMenu):
6509 removed.
6510
6511 * src/gtk/x11menu.h (MenuID): remove unused items.
6512
6513 2011-04-23 Ito Hiroyuki <ZXB01226 at nifty.com>
6514
6515 * src/gtk/main.c (main): call "g_mem_set_vtable()" when
6516 "USE_MEM_PROFILE" is true.
6517
6518 * src/osystem.c (system_mem_profile): added.
6519 (nsystem): add field "mem_profile" when "USE_MEM_PROFILE" is true.
6520
6521 * src/common.h (USE_MEM_PROFILE): added.
6522
6523 2011-04-21 Ito Hiroyuki <ZXB01226 at nifty.com>
6524
6525 * src/gtk/main.c (obj_member_completion_function)
6526 (my_completion_function): use "strdup()" to create return value.
6527
6528 * src/gtk/gtk_ruler.c (nruler_destroy): remove unused parameter
6529 "event".
6530 (ruler_new): function "nruler_destroy()" is now connected to the
6531 "unrealize" signal.
6532
6533 2011-04-20 Ito Hiroyuki <ZXB01226 at nifty.com>
6534
6535 * src/object.c (arrayadd): check if the parameter "val" is NULL or
6536 not.
6537
6538 * src/oroot.c (oputstyle): when size of the array is 1, it is as
6539 same as the array has the same two elements.
6540
6541 * src/gtk/x11dialg.c (SetObjPointsFromText)
6542 (SetObjFieldFromStyle): call "gtk_widget_grab_focus()" when an
6543 error is occurred.
6544
6545 2011-04-15 Ito Hiroyuki <ZXB01226 at nifty.com>
6546
6547 * src/gtk/x11menu.c (setupwindow, create_message_box): exchange
6548 position of messages.
6549
6550 * src/gtk/x11view.c (move_focus_frame, viewer_key_scroll): added.
6551 (ViewerEvKeyDown): use "move_focus_frame()" and
6552 "viewer_key_scroll()".
6553 (set_drag_info, reset_drag_info): added.
6554 (SetPoint, move_focus_frame): use "set_drag_info()".
6555 (ViewerEvKeyUp): call "reset_drag_info()"
6556
6557 * pixmap/Makefile.am (EXTRA_DIST): add pixmaps ngraph_align_b.png,
6558 ngraph_align_hc.png, ngraph_align_l.png, ngraph_align_r.png,
6559 ngraph_align_t.png and ngraph_align_vc.png
6560
6561 2011-04-11 Ito Hiroyuki <ZXB01226 at nifty.com>
6562
6563 * src/gtk/x11menu.c (ActionEntry): fix typo (from "_Right" to
6564 "_Bottom").
6565
6566 2011-04-06 Ito Hiroyuki <ZXB01226 at nifty.com>
6567
6568 * src/gtk/x11gui.c (check_overwrite): moved from x11commn.c.
6569
6570 * src/gtk/x11view.c (SetPoint): moved from x11menu.c.
6571 (CmViewerClearB): removed.
6572
6573 * src/gtk/x11axis.c (check_axis_history): static function.
6574
6575 * src/gtk/x11print.c (GetDrawFiles): moved from x11commn.c.
6576 (CmOutputDriverB): removed.
6577
6578 * src/gtk/x11menu.c (SaveHistory): moved from x11commn.c.
6579
6580 * src/gtk/x11lgndx.c (get_radio_index): moved from x11dialg.c.
6581
6582 2011-04-03 Ito Hiroyuki <ZXB01226 at nifty.com>
6583
6584 * src/ofile.c (f2dsettings): fix infinite loop.
6585
6586 * src/gtk/gtk_common.h (CAIRO_COORDINATE_OFFSET): always 0.
6587
6588 * src/gtk/main.c (main): don't call "gtk_set_locale()" when
6589 version of the GTK+ is greater than 2.24.
6590
6591 * src/gtk/x11gui.c (DialogExecute): use "gtk_widget_hide()"
6592 instead of "gtk_widget_hide_all()".
6593
6594 * src/gtk/x11dialg.c (SetObjFieldFromWidget)
6595 (SetWidgetFromObjField): use "gtk_combo_box_get_has_entry()" when
6596 version of the GTK+ is greater than 2.24.
6597
6598 * src/gtk/x11view.c (ViewerWinSetup, ShowCrossGauge, SetHRuler)
6599 (SetVRuler): use "gdk_window_get_width()" and
6600 "gdk_window_get_height()" when version of the GTK+ is greater than
6601 2.24.
6602 (ChangeDPI, draw_paper_frame): use "gdk_pixmap_get_size()" when
6603 version of the GTK+ is greater than 2.24.
6604
6605 * src/gtk/ogra2x11.c (gtkchangedpi): use "gdk_pixmap_get_size()"
6606 when version of the GTK+ is greater than 2.24.
6607
6608 * src/gtk/x11graph.c (CmHelpAbout): don't call
6609 "gtk_about_dialog_set_url_hook()" when version of the GTK+ is
6610 greater than 2.24.
6611
6612 * src/gtk/gtk_subwin.c (sub_window_minimize): use
6613 "gtk_widget_hide()" instead of "gtk_widget_hide_all()".
6614
6615 * src/gtk/gtk_combo.c (combo_box_entry_create): use
6616 "gtk_combo_box_new_with_entry()" and
6617 "gtk_combo_box_set_entry_text_column()" when version of the GTK+
6618 is greater than 2.24.
6619
6620 * src/gtk/gtk_ruler.c (nruler_make_pixmap): use
6621 "gdk_pixmap_get_size()" when version of the GTK+ is greater than
6622 2.24.
6623
6624 2011-04-01 Ito Hiroyuki <ZXB01226 at nifty.com>
6625
6626 * src/gtk/x11menu.h (Viewer): change type of members "VRuler" and
6627 "HRuler".
6628
6629 * src/gtk/gtk_ruler.c (_Nruler): remove member "widget".
6630 (ruler_new): call "g_object_set_data()" to save data.
6631 (nruler_set_range, nruler_set_position): use "g_object_get_data()"
6632 to get data.
6633 (nruler_make_pixmap, nruler_draw_ticks): add parameter "widget".
6634 (nruler_draw_ticks): remove redundant call of the function
6635 "pango_layout_get_extents()".
6636
6637 * src/gtk/gtk_common.h (CAIRO_COORDINATE_OFFSET): always 1.
6638
6639 * src/gtk/x11view.c (coord_conv_x, coord_conv_y): add
6640 CAIRO_COORDINATE_OFFSET.
6641
6642 * src/gtk/ogra2x11.c (clear_pixmap): use "cairo_paint()" instead
6643 of "cairo_rectangle()" and "cairo_fill()".
6644
6645 * src/gtk/x11lgnd.c (draw_arrow_pixmap, LegendArrowDialogPaint):
6646 use "cairo_paint()" instead of "cairo_rectangle()" and
6647 "cairo_fill()".
6648
6649 * src/gtk/ogra2cairofile.c (create_cairo): use "cairo_paint()"
6650 instead of "cairo_rectangle()" and "cairo_fill()".
6651
6652 * src/gtk/x11lgndx.c (LegendGaussDialogPaint): use "cairo_paint()"
6653 instead of "cairo_rectangle()" and "cairo_fill()".
6654
6655 2011-03-31 Ito Hiroyuki <ZXB01226 at nifty.com>
6656
6657 * src/gtk/x11view.c (mouse_down_zoom): improve calculation of dpi.
6658 (ChangeDPI): remove parameter.
6659 (create_legend1, create_path, create_legend3, create_legendx)
6660 (create_single_axis, create_axis): call "UpdateAll()".
6661 (ViewerEvLButtonDblClk): don't call "UpdateAll()".
6662
6663 * src/gtk/x11opt.c (CmOptionViewer): simplify condition.
6664
6665 2011-03-30 Ito Hiroyuki <ZXB01226 at nifty.com>
6666
6667 * src/gtk/Makefile.am (libngraph_la_SOURCES): add "gtk_ruler.c"
6668 and "gtk_ruler.h".
6669
6670 * src/gtk/gtk_ruler.h: added.
6671
6672 * src/gtk/gtk_ruler.c: added.
6673
6674 * src/gtk/ox11menu.h (menulocal): remove unused members "scrollx",
6675 "scrolly", "pixel_dot", "offsetx" and "offsety".
6676
6677 * src/gtk/ox11menu.c (mx_redraw): call "draw_paper_frame()" after
6678 call "mxflush()".
6679 (mx_clear): use "Menulocal.local->cairo".
6680 (mx_clear): use "cairo_paint()" when clear whole drawing area.
6681
6682 * src/gtk/x11view.c (ViewerEvSize): remove unused codes.
6683 (ViewerEvPaint): use "nround()" to get coordinate.
6684 (SetHRuler, SetVRuler): use "nruler_set_range()" instead of
6685 "gtk_ruler_set_range()".
6686 (create_pix): size of the pixmap is now "(w + 1) x (h + 1)".
6687 (create_pix): use "cairo_paint()" instead of "cairo_rectangle()"
6688 and "cairo_fill()".
6689 (create_pix): don't call "draw_paper_frame()".
6690 (ChangeDPI): size of drawing area is now "(w - 1) x (h - 1)".
6691 (draw_paper_frame): use "gdk_drawable_get_size()" to get size of
6692 the pixmap.
6693 (draw_paper_frame): call "cairo_reset_clip()" before drawing.
6694
6695 * src/gtk/x11menu.h (Viewer): change type of members "VRuler" and
6696 "HRuler". remove unused members "width" and "height".
6697
6698 * src/gtk/x11menu.c (setupwindow): use "hruler_new()" and
6699 "vruler_new()".
6700 (SetPoint): use "nruler_set_position()" instead of
6701 "g_object_set()".
6702
6703 * src/gtk/ogra2gdk.c (gra2gdk_create_pixmap): use "cairo_paint()"
6704 instead of "cairo_rectangle()" and "cairo_fill()".
6705
6706 2011-03-28 Ito Hiroyuki <ZXB01226 at nifty.com>
6707
6708 * src/gtk/x11view.c (SetHRuler, SetVRuler): keep position of the
6709 ruler.
6710
6711 2011-03-25 Ito Hiroyuki <ZXB01226 at nifty.com>
6712
6713 * src/gtk/x11view.c (ViewerWinSetup): initialize "d->KeyMask".
6714 (Evaluate, Trimming, Match, DelList, GetLargeFrame)
6715 (coord_conv_x, coord_conv_y, GetFocusFrame, ShowFocusFrame)
6716 (show_focus_line_arc, draw_frame_rect, draw_focus_line)
6717 (ShowFocusLine, ShowPoints, ShowFrameRect, ShowCrossGauge): add
6718 parameter "struct Viewer *" or "const struct Viewer *".
6719 (mouse_down_move_data): remove unused parameter "TPoint *dpoint".
6720 (ViewerWinUpdate): remove unused parameter "int clear".
6721 (ShowFocusLine, show_focus_line_arc): remove unused parameter "int
6722 clear" and "unsigned int state".
6723 (show_focus_line_arc): remove unused variable "clear".
6724 (ViewerEvMouseMove, ViewerEvButtonDown, ViewerEvButtonUp): save
6725 "d->KeyMask".
6726
6727 * src/gtk/x11menu.h (struct Viewer): add member "KeyMask".
6728
6729 * src/gtk/x11menu.c (set_focus_sensitivity): change type of the
6730 parameter to "const struct Viewer *".
6731
6732 2011-03-24 Ito Hiroyuki <ZXB01226 at nifty.com>
6733
6734 * src/gtk/ox11menu.c (mx_show_lib_version): show version of the
6735 readline library and GSL.
6736
6737 * src/gtk/x11print.c (CmPrintDataFile): update progress dialog.
6738
6739 2011-03-23 Ito Hiroyuki <ZXB01226 at nifty.com>
6740
6741 * src/gtk/x11print.c (CmOutputViewer): execute "present" field of
6742 the "gra2gtk" object.
6743
6744 * src/gtk/ox11menu.c (menuinit): use "gra2cairo_set_antialias()"
6745 to set antialias.
6746 (mx_show_lib_version): added.
6747 (gtkmenu): add field "lib_version", remove fields
6748 "GTK_compile_version" and "GTK_runtime_version".
6749
6750 * src/gtk/x11view.c (draw_paper_frame): use
6751 "CAIRO_COORDINATE_OFFSET".
6752 (ViewerEvLButtonDown, ViewerEvRButtonDown, CmViewerButtonArm): call
6753 "gtk_widget_queue_draw()".
6754 (ViewerEvMouseMove): call "gtk_widget_queue_draw()" when "d->Mode
6755 & POINT_TYPE_DRAW_ALL"is true.
6756 (create_pix): use "gra2cairo_set_antialias()" to set antialias.
6757
6758 * src/gtk/x11lgndx.c (LegendGaussDialogPaint): use
6759 "CAIRO_COORDINATE_OFFSET".
6760
6761 * src/gtk/x11lgnd.c (draw_arrow_pixmap, LegendArrowDialogPaint):
6762 use "CAIRO_COORDINATE_OFFSET".
6763
6764 * src/gtk/gtk_common.h (CAIRO_COORDINATE_OFFSET): added.
6765
6766 * src/gtk/ogra2x11.c (gtkpresent): added.
6767 (gra2gtk): add field "present".
6768 (gtkMakeRuler): use "CAIRO_COORDINATE_OFFSET".
6769
6770 2011-03-22 Ito Hiroyuki <ZXB01226 at nifty.com>
6771
6772 * src/gtk/x11print.c (CmOutputViewer): range of color is 0.0 to
6773 1.0.
6774
6775 * src/gtk/ox11menu.h (menulocal): remove members "win", "gc" and
6776 "do_not_use_arc_for_draft".
6777 (menulocal): change type of members "bg_r", "bg_g" and "bg_b" from
6778 int to double.
6779
6780 * src/gtk/x11lgnd.c (draw_arrow_pixmap, LegendArrowDialogPaint):
6781 use cairo to draw graphics.
6782
6783 * src/gtk/ox11menu.c (MenuConfigViewer): remove setting
6784 "do_not_use_arc_for_draft".
6785 (add_color_to_array, menu_config_set_bgcolor): range of color is
6786 0.0 to 1.0.
6787 (mx_redraw): call "draw_paper_frame()" before call "GRAredraw()".
6788 (mx_redraw, mxdpi, mxclear): use "NgraphApp.Viewer.gdk_win"
6789 instead of "Menulocal.win".
6790 (mx_clear): use cairo to draw graphics.
6791
6792 * src/gtk/x11view.c (GRAY, DOT_LENGTH, create_cairo)
6793 (draw_cairo_arc): added.
6794 (paste_cb, text_dropped, mouse_down_point, init_zoom)
6795 (mouse_down_move, mouse_up_point, mouse_up_drag, mouse_up_zoom)
6796 (mouse_up_change, mouse_up_lgend1, mouse_up_lgend2)
6797 (update_frame_rect, mouse_move_drag, mouse_move_zoom)
6798 (mouse_move_change, mouse_move_draw, ViewerEvMouseMove)
6799 (ViewerEvKeyDown, ViewerEvKeyUp, UnFocus, Draw, ViewUpdate)
6800 (ViewCopy, ViewCross): don't call "ShowFocusFrame()",
6801 "ShowPoints()", "ShowFocusLine()", "ShowFrameRect()" or
6802 "ShowCrossGauge()".
6803 (ShowFocusFrame, show_focus_line_arc, draw_frame_rect)
6804 (draw_focus_line, ShowFocusLine, ShowPoints, ShowFrameRect)
6805 (ShowCrossGauge, ViewerEvPaint, create_pix, draw_paper_frame): use
6806 cairo to draw graphics.
6807 (ViewerEvPaint): always redraw pixmap.
6808 (ViewerEvMouseMove): call "gtk_widget_queue_draw()" if necessary.
6809 (show_focus_line_arc, draw_focus_line): call "cairo_close_path()"
6810 if necessary.
6811 (draw_focus_line): add parameter "close_path".
6812 (ViewDelete): fix memory leak.
6813
6814 * src/gtk/gtk_common.h: include "cairo/cairo.h".
6815
6816 * src/gtk/x11opt.c (ViewerDialogSetupItem, ViewerDialogClose):
6817 range of color is 0.0 to 1.0.
6818
6819 * src/gtk/x11lgndx.c (LegendGaussDialogPaint): use cairo to draw
6820 graphics.
6821 (LegendGaussDialogPaint): change background color depend on the
6822 setting.
6823
6824 * src/gtk/ogra2x11.c (gtklocal): change type of members "bg_r",
6825 "bg_g" and "bg_b" from int to double.
6826 (gtklocal): remove member "gc".
6827 (gtkevpaint, gtkMakeRuler): use cairo.
6828 (clear_pixmap): added.
6829 (gtkclear, gtkchangedpi): use "clear_pixmap()".
6830 (get_color): return 0.0 to 1.0 instead of 0 to 255.
6831
6832 * src/gtk/ogra2gdk.c (gra2gdk_create_pixmap): change type of
6833 parameters "r", "g" and "b" from int to double.
6834
6835 2011-03-15 Ito Hiroyuki <ZXB01226 at nifty.com>
6836
6837 * src/ofit.c (fitpoly, fituser): use enumerate for return code.
6838
6839 2011-03-14 Ito Hiroyuki <ZXB01226 at nifty.com>
6840
6841 * src/ofile.c (get_axis_prm): added.
6842 (opendata, f2dgetcoord): use "get_axis_prm()".
6843 (ofile_create_math_equation, set_const): add constants "AXISX",
6844 "AXISY" and "FLINE".
6845
6846 * src/gtk/x11commn.c (AxisDel2): use "g_strdup_printf()" instead
6847 of "snprintf()".
6848
6849 2011-03-11 Ito Hiroyuki <ZXB01226 at nifty.com>
6850
6851 * src/gtk/x11view.c (search_axis_group): added.
6852 (ViewUpdate, ViewCopyAxis): use "search_axis_group()".
6853
6854 * src/gtk/x11commn.c (get_new_axis_id): added.
6855 (AxisDel2): use "get_new_axis_id()".
6856
6857 2011-03-10 Ito Hiroyuki <ZXB01226 at nifty.com>
6858
6859 * src/gtk/x11commn.c (AxisDel2): use "get_axis_id()".
6860
6861 * src/gtk/x11view.c (ViewUpdate, ViewCopyAxis): use
6862 "get_axis_id()".
6863 (ViewUpdate): bug fix: id of the axis object to delete is not
6864 "aid" but "id" when "type == 'c'".
6865
6866 * src/ofile.c (get_axis_id): added.
6867 (opendata, f2dgetcoord, f2dsettings, f2dbounding): use
6868 "get_axis_id()".
6869
6870 2011-03-09 Ito Hiroyuki <ZXB01226 at nifty.com>
6871
6872 * src/gtk/x11view.c (mouse_up_drag): invert logic and fix indent.
6873 (ViewerWinUpdate): set and restore "PaintLock".
6874 (ViewerWinUpdate): don't check "region" when "d->allclear" is
6875 true.
6876
6877 2011-03-08 Ito Hiroyuki <ZXB01226 at nifty.com>
6878
6879 * src/ofile.c (ofile_create_math_equation, set_const): add
6880 constants "COLX", "COLY", "HSKIP" and "RSTEP".
6881
6882 2011-03-04 Ito Hiroyuki <ZXB01226 at nifty.com>
6883
6884 * src/gtk/x11menu.c (ActionEntry): add callback to actions
6885 "GraphDrawOrderAction" and "GraphPageSetupAction".
6886
6887 * src/gtk/gtk_subwin.h (NgraphActionEntry): moved from "x11menu.c".
6888
6889 * src/gtk/x11graph.c (CmGraphLoadB, CmGraphSaveB, CmGraphMenu)
6890 (CmHelpMenu): removed.
6891
6892 2011-03-02 Ito Hiroyuki <ZXB01226 at nifty.com>
6893
6894 * src/gtk/x11menu.c (application): call
6895 "gtk_ui_manager_ensure_update()" after add ui.
6896
6897 2011-03-01 Ito Hiroyuki <ZXB01226 at nifty.com>
6898
6899 * src/gtk/x11cood.c (CoordWinUpdate): don't set type to the
6900 variable "d->type."
6901
6902 * src/gtk/x11lgnd.c (CmLegendWindow): don't set type to the
6903 variable "d->type."
6904
6905 * src/gtk/x11merge.c (CmMergeWindow): don't set type to the
6906 variable "d->type."
6907
6908 * src/gtk/x11info.c (create_win, InfoWinUpdate): don't set type to the
6909 variable "d->type."
6910
6911 * src/gtk/x11axis.c (CmAxisWindow): don't set type to the variable
6912 "d->type."
6913
6914 * src/math/math_parser.c (parse_argument_list): reallocate memory
6915 for arguments if necessary.
6916
6917 * src/gtk/x11file.c (CmFileHistory, CmFileNew): call
6918 "AddDataFileList()" only when the file is really opened.
6919 (update_file_obj_multi): call "AddDataFileList()" when "new_file"
6920 is TRUE and the file is really opened.
6921 (CmFileOpen): don't call "AddDataFileList()".
6922 (CmFileWindow): don't set type to the variable "d->type."
6923
6924 * src/gtk/x11view.c (new_file_obj): call "AddDataFileList()" only
6925 when the file is really opened.
6926
6927 * src/gtk/x11opt.c (PrefScriptDialogClose): call
6928 "create_addin_menu()".
6929
6930 * src/gtk/x11commn.c (AddDataFileList): check if the file name is
6931 valid UTF-8 string or not.
6932 (AddDataFileList): call "create_recent_data_menu()".
6933
6934 * src/gtk/x11menu.c (show_graph_menu, show_data_menu): removed.
6935 (application): call "create_addin_menu()" and
6936 "create_recent_data_menu()" after create UI.
6937 (create_addin_menu, create_recent_data_menu): remove parameter.
6938 (init_ngraph_app_struct): initialize "type" member of each struct.
6939
6940 2011-02-25 Ito Hiroyuki <ZXB01226 at nifty.com>
6941
6942 * addin/cal.nsc: fix argument for "menu::show_window".
6943
6944 * src/gtk/x11menu.c (ActionEntry): fix callback functions.
6945
6946 2011-02-24 Ito Hiroyuki <ZXB01226 at nifty.com>
6947
6948 * src/gtk/x11menu.c (show_ui_definition): use "printfstdout()".
6949
6950 * src/gtk/ox11menu.c (mx_get_accel_map): use "putstderr()" and
6951 "printfstdout()".
6952
6953 * initfile/save_ui_file.nsc: NgraphUI.xml.win is automatically
6954 generated.
6955
6956 2011-02-23 Ito Hiroyuki <ZXB01226 at nifty.com>
6957
6958 * src/gtk/ox11menu.c (mx_get_ui, mx_get_accel_map): added.
6959 (gtkmenu): add fields "get_ui" and "get_accel_map".
6960
6961 * src/gtk/x11menu.c (read_keymap_file): read keymap file in the
6962 "CONFDIR".
6963 (show_ui_definition): added.
6964
6965 * initfile/Makefile.am (update_ui_file): add rule.
6966
6967 * initfile/save_ui_file.nsc: added.
6968
6969 * initfile/NgraphUI.xml.win: added.
6970
6971 2011-02-22 Ito Hiroyuki <ZXB01226 at nifty.com>
6972
6973 * initfile/NgraphUI.xml: added.
6974 * src/object.c (set_newobj_cb, set_delobj_cb): added.
6975 (newobj_alias): call "NewObjCB()" when "NewObjCB" is not NULL.
6976 (delobj): call "DelObjCB()" when "DelObjCB" is not NULL.
6977
6978 * src/gtk/main.c (set_dir_defs): add setting for "PIXMAPDIR".
6979
6980 * src/gtk/x11lgnd.c (CmLegendWindow): type of the first argument
6981 is "GtkToggleAction *".
6982 (CmLegendWindow): visibility is depend on the state of the action.
6983
6984 * src/gtk/x11cood.c (CmCoordinateWindow): type of the first argument
6985 is "GtkToggleAction *".
6986 (CmCoordinateWindow): visibility is depend on the state of the action.
6987
6988 * src/gtk/ox11menu.c (subwindow_show, subwindow_hide): removed.
6989 (mx_show_win, mx_hide_win): use "window_action_set_active()".
6990 (mx_toggle_win): use "window_action_toggle()".
6991
6992 * src/gtk/x11file.c (CmFileHistory): get identifier of the history
6993 entry from second argument.
6994 (CmFileOpen): check number of instances.
6995 (update_file_obj_multi): don't call "set_graph_modified()" when
6996 "new_file" is TRUE and "ret" is "IDDELETE".
6997 (CmFileWindow): type of the first argument is "GtkToggleAction *".
6998 (CmFileWindow): visibility is depend on the state of the action.
6999
7000 * src/gtk/x11view.c (ViewerEvPopupMenu, ViewerPopupMenu)
7001 (create_menu, create_popup_menu): removed.
7002 (ShowFocusFrame): call "set_focus_sensitivity()".
7003 (clear_focus_obj): type of the argument is "struct Viewer *".
7004 (clear_focus_obj): call "set_focus_sensitivity()".
7005 (ViewerPopupMenu): remove unused case.
7006 (CmViewerButtonArm): data point button can be default.
7007
7008 * src/gtk/x11menu.h (Viewer): remove members "PToolbar",
7009 "CToolbar" and "popup_item".
7010
7011 * src/gtk/x11menu.c (ActionEntry, create_action_group)
7012 (reate_ui_from_file): added.
7013 (application): use "GtkUIManager" to make the menu and toolbars.
7014 (set_focus_sensitivity, set_btn_press_cb, get_toolbar)
7015 (set_toolbar_caption, show_graph_menu, show_data_menu)
7016 (check_instance, check_exist_instances)
7017 (window_action_set_active, window_action_toggle)
7018 (create_action_group): added.
7019 (CmReloadWindowConfig): use "window_action_set_active".
7020
7021 * src/gtk/x11opt.c (PrefScriptDialogClose): don't update "add-in"
7022 menu.
7023
7024 * src/gtk/x11graph.c (CmGraphHistory): check "uri" is NULL or not.
7025
7026 * src/gtk/x11merge.c (CmMergeWindow): type of the first argument
7027 is "GtkToggleAction *".
7028 (CmMergeWindow): visibility is depend on the state of the action.
7029
7030 * src/gtk/x11info.c (InfoWinUpdate): type of the first argument is
7031 "GtkToggleAction *".
7032 (InfoWinUpdate): visibility is depend on the state of the action.
7033
7034 * src/gtk/dir_defs.h.in (PIXMAPDIR): added.
7035
7036 * src/gtk/gtk_subwin.c (sub_window_hide, sub_window_show): static
7037 function.
7038 (sub_window_set_visibility): added.
7039 (sub_window_toggle_visibility): removed.
7040 (cb_del): use "window_action_set_active()".
7041
7042 * src/gtk/Makefile.am (pixmapdir): added.
7043 (dir_defs.h): add pixmapdir setting.
7044
7045 * src/gtk/x11axis.c (CmAxisWindow): type of the first argument is
7046 "GtkToggleAction *".
7047 (CmAxisWindow): visibility is depend on the state of the action.
7048
7049 * pixmap/Makefile.am: added.
7050
7051 * mingw/windows_make.sed: add command for pixmap directory.
7052
7053 * configure.in (AC_CONFIG_FILES): add "pixmap/Makefile".
7054
7055 * Makefile.am (SUBDIRS): add directory "pixmap".
7056
7057 2011-02-08 Ito Hiroyuki <ZXB01226 at nifty.com>
7058
7059 * src/math/math_basic_function.c (math_func_for): don't set first
7060 argument to the memory when the argument is negative value.
7061
7062 * src/gtk/ox11menu.c (menuinit): initialize fields
7063 "GTK_compile_version" and "GTK_runtime_version".
7064 (gtkmenu): add fields "GTK_compile_version" and
7065 "GTK_runtime_version".
7066
7067 * src/gtk/x11print.c (CmOutputPrinter): use "GTK_CHECK_VERSION()".
7068
7069 * src/gtk/x11menu.c (create_graphmenu, create_toolbar): use
7070 "GTK_CHECK_VERSION()".
7071
7072 * src/gtk/x11lgnd.c (create_character_view): use
7073 "GTK_CHECK_VERSION()".
7074
7075 * src/gtk/x11dialg.c: use "GTK_CHECK_VERSION()".
7076
7077 * src/gtk/gtk_common.h: use "GTK_CHECK_VERSION()".
7078
7079 2011-02-04 Ito Hiroyuki <ZXB01226 at nifty.com>
7080
7081 * src/math/math_function.rb: add comment after case labels.
7082
7083 * src/math/math_function.h.in: fix indent.
7084
7085 2011-02-03 Ito Hiroyuki <ZXB01226 at nifty.com>
7086
7087 * src/gtk/gtk_subwin.c (hide_minimize_menu_item): use
7088 "GTK_WIDGET_GET_WINDOW()".
7089
7090 * src/gtk/Makefile.am (libngraph_la_CFLAGS): add option
7091 "-DGSEAL_ENABLE=1".
7092
7093 * src/gtk/ogra2gdk.c (gra2gdk_create_pixmap): check if the
7094 variable "drawable" is NULL or not.
7095
7096 * src/gtk/x11axis.c (AxisPosDialogRef): removed.
7097 (position_tab_create): use "AxisDialogRef()" for "changed" signal.
7098 (AxisDialogRef): set empty text when the index of the active item
7099 is 0.
7100 (position_tab_setup_item, scale_tab_setup_item): add item "none"
7101 to the GtkComboBoxEntry widget.
7102
7103 * src/gtk/gtk_widget.c (show_color_sel): use
7104 "GTK_COLOR_SELECTION_DIALOG_GET_COLOR_SELECTION()".
7105
7106 * src/gtk/x11gui.c (DialogExecute, DialogInput, DialogRadio)
7107 (DialogCombo, DialogComboEntry, DialogSpinEntry, DialogCheck)
7108 (FileSelectionDialog): use "GTK_DIALOG_GET_CONTENT_AREA()".
7109
7110 * src/gtk/x11view.c (paste_cb, ViewerWinSetup, create_pix)
7111 (OpenGC): use "GTK_WIDGET_GET_WINDOW()".
7112
7113 * src/gtk/x11menu.c (create_markpixmap): use
7114 "GTK_WIDGET_GET_WINDOW()".
7115
7116 * src/gtk/x11lgndx.c (clear_view, LegendGaussDialogPaint): use
7117 "GTK_WIDGET_GET_WINDOW()".
7118
7119 * src/gtk/x11lgnd.c (draw_arrow_pixmap, LegendArrowDialogPaint):
7120 use "GTK_WIDGET_GET_WINDOW()".
7121
7122 * src/gtk/x11gui.c (get_window_geometry): use
7123 "GTK_WIDGET_GET_WINDOW()".
7124
7125 * src/gtk/x11file.c (select_color): use
7126 "GTK_COLOR_SELECTION_DIALOG_GET_COLOR_SELECTION()".
7127 (draw_type_pixbuf): use "GTK_WIDGET_GET_WINDOW()".
7128
7129 * src/gtk/ogra2x11.c (gtkinit): use "GTK_WIDGET_GET_WINDOW()".
7130
7131 * src/gtk/gtk_subwin.c (sub_window_save_geometry)
7132 (sub_window_minimize): use "GTK_WIDGET_GET_WINDOW()".
7133
7134 * src/gtk/x11view.c (ViewerWinSetup): use
7135 "GTK_WIDGET_SET_CAN_FOCUS()".
7136
7137 * src/gtk/gtk_common.h (GTK_WIDGET_GET_WINDOW)
7138 (GTK_DIALOG_GET_CONTENT_AREA, GTK_WIDGET_SET_CAN_FOCUS)
7139 (GTK_COLOR_SELECTION_DIALOG_GET_COLOR_SELECTION): added.
7140
7141 2011-02-02 Ito Hiroyuki <ZXB01226 at nifty.com>
7142
7143 * src/gtk/x11dialg.c (SetObjFieldFromWidget)
7144 (SetWidgetFromObjField, SetObjFieldFromStyle)
7145 (SetStyleFromObjField): use "gtk_bin_get_child()".
7146
7147 * src/gtk/gtk_combo.c (combo_box_entry_create)
7148 (combo_box_entry_set_text, combo_box_entry_get_text): use
7149 "gtk_bin_get_child()".
7150
7151 2011-02-01 Ito Hiroyuki <ZXB01226 at nifty.com>
7152
7153 * zsh/Makefile.am (zsh_DATA): remove settings for gra2ps and
7154 gra2wmf.
7155
7156 * driver/Makefile.am (ngraphconf_DATA): remove settings for gra2ps
7157 and gra2wmf.
7158
7159 * debian/ngraph.bash: remove settings for gra2ps and gra2wmf.
7160
7161 2011-01-31 Ito Hiroyuki <ZXB01226 at nifty.com>
7162
7163 * test/math_test.nsc: don't create io object every time.
7164
7165 * mingw/install.txt: update document.
7166
7167 2011-01-28 Ito Hiroyuki <ZXB01226 at nifty.com>
7168
7169 * src/ofile.c (set_data_progress): variable "msgbuf" is not static
7170 now.
7171 (solve_equation): variable "eq" is not static now.
7172
7173 * src/gtk/ox11menu.c (mx_cat): variable "buf" is not static now.
7174
7175 * src/gtk/x11view.c (check_focused_obj_type): check variables
7176 "axis", "merge", "legend" and "text" are NULL or not.
7177
7178 * src/gtk/x11menu.c (find_gra2gdk_inst): remove first parameter.
7179 (find_gra2gdk_inst): variable "inxt" is not static now.
7180 (find_gra2gdk_inst): remove variable "local" and "onamek".
7181
7182 2011-01-27 Ito Hiroyuki <ZXB01226 at nifty.com>
7183
7184 * src/gtk/x11cood.c (CoordWinSetCoord): this function is now reentrant.
7185
7186 2011-01-26 Ito Hiroyuki <ZXB01226 at nifty.com>
7187
7188 * src/oaxis.c (get_axis_gauge_num_str): use "GString" to create
7189 format string.
7190 (get_axis_gauge_num_str): numbering string is now well formated
7191 such as "5.0×10^-7@".
7192
7193 * src/gtk/x11cood.c (CoordWinSetCoord): use static variable to
7194 create information strings.
7195 (CoordWinSetCoord, CoordWinUpdate): type of the coordinate window
7196 is "SubWin".
7197
7198 * src/gtk/x11commn.c (FileAutoScale): use "GString" to create
7199 argument string for "auto_scale" field.
7200
7201 * src/gtk/x11menu.h (NgraphApp): the type of members "InfoWin" and
7202 "CoordWin" is "struct SubWin *".
7203
7204 * src/gtk/x11menu.c (application): now "NgraphApp.InfoWin" and
7205 "NgraphApp.CoordWin" don't have the member "str".
7206
7207 * src/gtk/x11info.c (create_win, InfoWinUpdate): type of the
7208 information window is "SubWin".
7209
7210 * src/gtk/x11axis.c (AxisDialogFile): use "GString" to create
7211 argument string for "get_auto_scale" field.
7212 (set_num_format): added.
7213 (numbering_tab_set_value): use "set_num_format()".
7214 (axis_list_set_val): variable "len" is not used.
7215
7216 2011-01-24 Ito Hiroyuki <ZXB01226 at nifty.com>
7217
7218 * src/gra.c (GRAC, _GRAopencallback): use "directfunc".
7219
7220 * src/gra.h (directfunc): typedefed.
7221
7222 * src/ogra2nul.c (g2nuldone): call "_exeparent()".
7223
7224 * src/ogra2.c (gra2done): check number of element of "sarray" when
7225 "GC" is not equal to -1.
7226
7227 * src/ogra.c (oGRAopen): fix indent.
7228 (oGRAdrawparent): add parameter "oGRAargv".
7229 (oGRAdraw): "oGRAargv" is local variable now.
7230
7231 2011-01-21 Ito Hiroyuki <ZXB01226 at nifty.com>
7232
7233 * src/gtk/x11graph.c (SwitchDialogSetupItem)
7234 (switch_dialog_top_cb, switch_dialog_last_cb, SwitchDialogUp)
7235 (SwitchDialogDown, SwitchDialogClose): use "arraynget_int()".
7236 (SwitchDialogSetup): use "arraynget_str()".
7237
7238 * src/gtk/x11axis.c (AxisDialogFile): use "arraynget_double()".
7239
7240 * src/gtk/x11view.c (mouse_down_move_data, ViewUpdate)
7241 (ViewCopyAxis): use "arraylast_int()".
7242 (focus_new_insts, mask_selected_data, mouse_down_move_data): use
7243 "arraynget_int()".
7244 (Evaluate): use "arraynget_double()".
7245
7246 * src/gtk/x11file.c (FileDialogFit, FileWinFit): use
7247 "arraylast_int()".
7248 (move_tab_setup_item): use "arraynget_int()" and
7249 "arraynget_double()".
7250 (move_tab_set_value, mask_tab_setup_item): use "arraynget_int()".
7251
7252 * src/gtk/x11commn.c (AxisDel2, axis_move_each_obj, FitDel)
7253 (FitCopy, FitClear, FileAutoScale): use "arraylast_int()".
7254
7255 * src/gtk/ox11dlg.c (dlgradio, dlgcombo): use "arraylast_int()".
7256 (get_sarray_argument): use "arraynget_int()".
7257
7258 * src/ofile.c (opendata, get_fit_obj_id, f2dgetcoord)
7259 (f2dsettings, f2dbounding, f2dsave): use "arraylast_int()".
7260
7261 * src/oagrid.c (get_grid_prm): use "arraylast_int()".
7262
7263 * src/otext.c (textmatch): use "arraynget_int()".
7264
7265 * src/oroot.c (obj_save_config_line_style): use "arraynget_int()".
7266
7267 * src/orect.c (rectmatch): use "arraynget_int()".
7268
7269 * src/opath.c (curvematch): use "arraynget_int()".
7270
7271 * src/omerge.c (mergematch): use "arraynget_int()".
7272
7273 * src/omark.c (markmatch): use "arraynget_int()".
7274
7275 * src/olegend.c (legendmatch): use "arraynget_int()".
7276
7277 * src/ogra2.c (gra2done, gra2disconnect): use "arraynget_str()".
7278
7279 * src/ogra.c (oGRAdisconnect, oGRAopen): use "arraynget_str()".
7280 (oGRAopen): bug fix: use "arraylast_int()" instead of "*(char *)".
7281
7282 * src/oaxis.c (get_axis_box, axismatch2, axisautoscalefile): use
7283 "arraynget_int()" and "arraynget_double()".
7284 (get_reference_parameter, axisadjust): use "arraylast_int()".
7285
7286 * src/oarc.c (arcmatch): use "arraynget_int()".
7287
7288 * src/nconfig.c (replaceconfig_match, replaceconfig): use
7289 "arraynget_int()".
7290
7291 * src/object.c (arraynget_int, arraynget_double, arraynget_str)
7292 (arraylast_int): added.
7293 (getvaluestr): use "arraynget_int()", "arraynget_double()" and
7294 "arraynget_str()".
7295 (obj_do_tighten): use "arraylast_int()".
7296
7297 2011-01-20 Ito Hiroyuki <ZXB01226 at nifty.com>
7298
7299 * src/gtk/gtk_widget.c (show_color_sel): set tooltip text.
7300
7301 * src/gtk/x11lgnd.c (LegendMarkCB): added.
7302 (CmMarkDel, CmMarkUpdate): use "LegendMarkCB".
7303 (legend_dialog_setup_item, LegendMarkDialogMark): use
7304 "button_set_mark_image()".
7305 (CmLineUpdate, CmRectUpdate, CmArcUpdate, CmMarkUpdate)
7306 (CmTextUpdate): don't use the variable "ret".
7307
7308 * src/gtk/x11dialg.c (_set_color): set tooltip text.
7309
7310 * src/gtk/x11file.c (button_set_mark_image): added.
7311 (MarkDialogSetup, plot_tab_setup_item, FileDialogMark): use
7312 "button_set_mark_image()".
7313 (MarkDialog): check "type".
7314
7315 * src/gtk/x11commn.c (SetFileHidden): add braces after "for"
7316 statement.
7317
7318 * src/gtk/x11merge.c (CmMergeUpdate): don't use the variable
7319 "ret".
7320
7321 2011-01-19 Ito Hiroyuki <ZXB01226 at nifty.com>
7322
7323 * src/object.h (n_value, N_VALUE): added.
7324
7325 * src/object.h: use "N_VALUE *" instead of "char *" for an
7326 instance of an Ngraph object and return value of an object field.
7327
7328 * src/gtk/ogra2gdk.c: ditto.
7329
7330 * src/gtk/ogra2x11.c: ditto.
7331
7332 * src/gtk/ogra2gdk.h: ditto.
7333
7334 * src/gtk/x11lgndx.c: ditto.
7335
7336 * src/gtk/ogra2cairofile.c: ditto.
7337
7338 * src/gtk/x11graph.c: ditto.
7339
7340 * src/gtk/ogra2gtkprint.c: ditto.
7341
7342 * src/gtk/x11menu.c: ditto.
7343
7344 * src/gtk/x11menu.h: ditto.
7345
7346 * src/gtk/x11commn.c: ditto.
7347
7348 * src/gtk/x11view.c: ditto.
7349
7350 * src/gtk/x11file.c: ditto.
7351
7352 * src/gtk/ox11menu.c: ditto.
7353
7354 * src/gtk/ox11dlg.c: ditto.
7355
7356 * src/gtk/ox11menu.h: ditto.
7357
7358 * src/gtk/main.c: ditto.
7359
7360 * src/gtk/x11print.c: ditto.
7361
7362 * src/gtk/ogra2cairo.c: ditto.
7363
7364 * src/gtk/ogra2cairo.h: ditto.
7365
7366 * src/gra.c: ditto.
7367
7368 * src/orect.c: ditto.
7369
7370 * src/olegend.c: ditto.
7371
7372 * src/gra.h: ditto.
7373
7374 * src/osarray.c: ditto.
7375
7376 * src/olegend.h: ditto.
7377
7378 * src/ngraph.h: ditto.
7379
7380 * src/ofile.c: ditto.
7381
7382 * src/oroot.c: ditto.
7383
7384 * src/oroot.h: ditto.
7385
7386 * src/oint.c: ditto.
7387
7388 * src/ogra2.c: ditto.
7389
7390 * src/opath.c: ditto.
7391
7392 * src/omerge.c: ditto.
7393
7394 * src/ostring.c: ditto.
7395
7396 * src/oio.c: ditto.
7397
7398 * src/oshell.c: ditto.
7399
7400 * src/ofit.c: ditto.
7401
7402 * src/otext.c: ditto.
7403
7404 * src/osystem.c: ditto.
7405
7406 * src/object.c: ditto.
7407
7408 * src/oiarray.c: ditto.
7409
7410 * src/omath.c: ditto.
7411
7412 * src/omark.c: ditto.
7413
7414 * src/odraw.c: ditto.
7415
7416 * src/odraw.h: ditto.
7417
7418 * src/oarc.c: ditto.
7419
7420 * src/ogra.c: ditto.
7421
7422 * src/odouble.c: ditto.
7423
7424 * src/ogra2prn.c: ditto.
7425
7426 * src/odarray.c: ditto.
7427
7428 * src/ogra2fil.c: ditto.
7429
7430 * src/oagrid.c: ditto.
7431
7432 * src/oprm.c: ditto.
7433
7434 * src/oaxis.c: ditto.
7435
7436 * src/ogra2nul.c: ditto
7437
7438 2011-01-17 Ito Hiroyuki <ZXB01226 at nifty.com>
7439
7440 * test/math_test_new.dat: add test for the the functions "push",
7441 "pop", "unshift" and "shift".
7442
7443 * doc/html_ja/math.html: add documents about the functions "push",
7444 "pop", "unshift" and "shift".
7445
7446 * src/math/math_basic_function.c (math_func_unshift)
7447 (math_func_shift, math_func_pop)
7448 (math_func_push): added.
7449
7450 * src/math/math_function.h.in: add "push", "pop", "unshift" and
7451 "shift".
7452
7453 * src/math/math_operator.rb: check coments.
7454
7455 2011-01-14 Ito Hiroyuki <ZXB01226 at nifty.com>
7456
7457 * src/opath.c (arrowdraw): check if the path should be closed or
7458 not.
7459 (draw_stroke): last parameter represents that the path should be
7460 closed or not.
7461
7462 * src/ofile.c (draw_fit, curveoutfile): initialize variable "a".
7463 (curveout, curveoutfile): use "FREE_INTP_BUF()".
7464 (UPDATE_PROGRESS_LINE_NUM): added.
7465 (hskipdata, getdata_sub1, getdataraw): use
7466 "UPDATE_PROGRESS_LINE_NUM".
7467
7468 2010-12-24 Ito Hiroyuki <ZXB01226 at nifty.com>
7469
7470 * src/gtk/gtk_widget.c (color_button_key_event): added.
7471 (create_color_button): the function "color_button_key_event()" is
7472 connected to "key-press-event" and "key-release-event".
7473
7474 2010-12-23 Ito Hiroyuki <ZXB01226 at nifty.com>
7475
7476 * src/osystem.c (WEB): change url (sourceforge).
7477
7478 * src/gtk/x11file.c (FitDialogSetSensitivity): show simple
7479 equation when the "type" is FIT_TYPE_POLY and "dim == 1".
7480
7481 2010-10-20 Ito Hiroyuki <ZXB01226 at nifty.com>
7482
7483 * src/ntime.c (append_date_str): format string for "%y" is "%02d".
7484
7485 * src/gtk/x11lgnd.c (insert_selcted_char): focus entry widget
7486 after insert character.
7487
7488 2010-10-19 Ito Hiroyuki <ZXB01226 at nifty.com>
7489
7490 * src/object.c (error): add braces after "if" statements.
7491
7492 2010-10-15 Ito Hiroyuki <ZXB01226 at nifty.com>
7493
7494 * src/ofile.c (f2dredraw): check the "type" is "PLOT_TYPE_FIT" or
7495 not.
7496
7497 2010-10-14 Ito Hiroyuki <ZXB01226 at nifty.com>
7498
7499 * src/gtk/x11gui.c (DialogExecute): don't use "data->show_buttons".
7500
7501 * src/gtk/x11file.c (MarkDialogSetup): show number of the mark as a
7502 tooltip.
7503
7504 2010-10-13 Ito Hiroyuki <ZXB01226 at nifty.com>
7505
7506 * addin/legend.tcl (savescript): don't set "fill_A" field.
7507
7508 * src/gtk/x11file.c (draw_type_pixbuf): add braces after "if"
7509 statement.
7510 (create_type_color_combo_box): renamed from
7511 "create_type_combo_box()" .
7512 (create_type_combo_box): create only "type", "mark" and
7513 "interpolation" item.
7514 (start_editing_type): use "create_type_color_combo_box()".
7515
7516 * src/gtk/gtk_liststore.c (create_object_cbox): added.
7517 (start_editing_obj): use "create_object_cbox()".
7518
7519 2010-10-07 Ito Hiroyuki <ZXB01226 at nifty.com>
7520
7521 * src/gtk/x11file.c (create_type_combo_box): change order of
7522 columns.
7523 (create_type_combo_box): use "OBJECT_COLUMN_TYPE_STRING",
7524 "OBJECT_COLUMN_TYPE_PIXBUF" and "OBJECT_COLUMN_TYPE_INT".
7525 (select_color): use "OBJECT_COLUMN_TYPE_INT".
7526
7527 * src/gtk/gtk_liststore.h (OBJECT_COLUMN_TYPE_STRING)
7528 (OBJECT_COLUMN_TYPE_PIXBUF, OBJECT_COLUMN_TYPE_INT): added.
7529
7530 * src/gtk/gtk_liststore.c (start_editing_obj): change order of
7531 columns.
7532 (start_editing_obj): use "OBJECT_COLUMN_TYPE_STRING",
7533 "OBJECT_COLUMN_TYPE_PIXBUF" and "OBJECT_COLUMN_TYPE_INT".
7534
7535 2010-10-06 Ito Hiroyuki <ZXB01226 at nifty.com>
7536
7537 * src/gtk/x11file.c (create_type_combo_box): show number of a merk
7538 type.
7539
7540 2010-09-22 Ito Hiroyuki <ZXB01226 at nifty.com>
7541
7542 * src/gtk/x11file.c (file_list_set_val): unref pixbuf.
7543
7544 * src/gtk/x11commn.c (ProgressDialogFinalize): set NULL to
7545 "ProgressBar2".
7546
7547 * src/gtk/x11menu.h (NgraphApp):remove members "swin" and
7548 "iconpix".
7549
7550 * src/gtk/x11menu.c (create_icon): renamed from "createicon()".
7551 (create_icon): unref pixbufs. free "list".
7552
7553 * src/gtk/gtk_subwin.c (sub_window_create): unref pixbufs. free
7554 "list".
7555
7556 * src/ofit.c (fitput): use "math_equation_free()" instead of
7557 "g_free()".
7558
7559 2010-09-15 Ito Hiroyuki <ZXB01226 at nifty.com>
7560
7561 * src/gtk/gtk_widget.c (direction_icon_released): change direction
7562 from 360 to 0 or 0 to 360 when an icon is released.
7563
7564 * src/gtk/x11lgnd.c (LegendArcDialogSetup): use
7565 "create_direction_entry()" instead of "create_spin_entry_type()".
7566
7567 2010-09-13 Ito Hiroyuki <ZXB01226 at nifty.com>
7568
7569 * src/ofile.c (put_func, rectout): fix indent.
7570
7571 2010-09-09 Ito Hiroyuki <ZXB01226 at nifty.com>
7572
7573 * src/math/math_function.h.in: add functions "cm".
7574
7575 * src/math/math_basic_function.c (math_func_rm): added.
7576
7577 2010-09-08 Ito Hiroyuki <ZXB01226 at nifty.com>
7578
7579 * src/ntime.c (get_iso_8601_week): added.
7580
7581 * src/gtk/main.c (main): don't set "LC_TIME".
7582
7583 * src/math/math_basic_function.c (math_func_mjd2year)
7584 (math_func_mjd2month, math_func_mjd2day): use "mjd2gd()" in
7585 "ntime.c".
7586 (math_func_mjd2wday, math_func_mjd2yday): added.
7587
7588 2010-09-07 Ito Hiroyuki <ZXB01226 at nifty.com>
7589
7590 * src/oaxis.c (mjd_to_date_str): use "nstrftime()" instead of
7591 "strftime()".
7592 (get_axis_gauge_num_str): added.
7593 (numformat): use "get_axis_gauge_num_str()".
7594
7595 * src/oprm.c (gettimeval2): meved from "ntime.c".
7596
7597 * src/ntime.c (mjd2gd, append_date_str, nstrftime): added.
7598
7599 * src/gtk/x11cood.c (CoordWinSetCoord): use "nstrftime()" instead
7600 of "strftime()".
7601
7602 2010-09-03 Ito Hiroyuki <ZXB01226 at nifty.com>
7603
7604 * src/ofile.c (lineout, curveout, stairout, draw_fit): set line
7605 style attribute when "EXPAND_DOTTED_LINE" is false.
7606
7607 * src/gra.c (GRAreopen, _GRAclose, GRAclose, GRAcurvefirst):
7608 allocate , free and initialize "gdashlist" and so on only when
7609 "EXPAND_DOTTED_LINE" is treu.
7610 (GRAdashlinetod): expand dotted line only when
7611 "EXPAND_DOTTED_LINE" is treu.
7612
7613 * src/gra.h (EXPAND_DOTTED_LINE): added.
7614
7615 2010-09-02 Ito Hiroyuki <ZXB01226 at nifty.com>
7616
7617 * src/nstring.c (get_printf_format_str): call "g_strdup()" after
7618 check the strings.
7619
7620 * src/ofile.c (rectout): initialize "emig" and "emng".
7621
7622 * src/gtk/gtk_widget.c (show_color_sel, create_color_button):
7623 check "Menulocal.use_opacity".
7624
7625 * src/gtk/ogra2cairo.c (gra2cairo_init): initialize "local->use_opacity".
7626 (gra2cairo_output): check "local->use_opacity".
7627 (use_opacity): added.
7628 (gra2cairo): add field "use_opacity".
7629
7630 * src/gtk/x11print.c (OutputImageDialogSetupItem): setup "d->use_opacity".
7631 (OutputImageDialogSetup): add widget to set "Use opacity".
7632 (OutputImageDialogClose): save setting of "d->use_opacity".
7633 (CmOutputImage): set opacity setting to "g2wobj".
7634 (CmOutputPrinter, CmOutputViewer): save setting of "Menulocal.use_opacity".
7635
7636 * src/gtk/ox11menu.h (menulocal): add member "use_opacity".
7637
7638 * src/gtk/x11dialg.h (MiscDialog, OutputImageDialog): add member
7639 "use_opacity".
7640
7641 * src/gtk/ox11menu.c (menuinit): initialize opacity setting.
7642 (mxuse_opacity): added.
7643 (gtkmenu): add field "use_opacity".
7644
7645 * src/gtk/x11dialg.c (_set_color, _putobj_color): check
7646 "Menulocal.use_opacity".
7647
7648 * src/gtk/x11file.c (select_color): use opacity settings when
7649 "Menulocal.use_opacity" is treu.
7650
7651 * src/gtk/x11opt.c (MiscDialogSetupItem): setup "d->use_opacity".
7652 (MiscDialogSetup): add widget to set "Use opacity".
7653 (MiscDialogClose): save setting of "d->use_opacity".
7654
7655 * debian/control (Depends): use "${shlibs:Depends}".
7656
7657 2010-09-01 Ito Hiroyuki <ZXB01226 at nifty.com>
7658
7659 * src/nstring.c (add_printf_formated_str): free "format2".
7660
7661 2010-08-31 Ito Hiroyuki <ZXB01226 at nifty.com>
7662
7663 * src/gtk/x11file.c (select_color): set opacity.
7664
7665 2010-08-30 Ito Hiroyuki <ZXB01226 at nifty.com>
7666
7667 * src/ofile.c (f2ddata_buf, f2ddata): use "struct rgba" instead of
7668 "int".
7669 (file_alpha): added.
7670 (file_func): add function "ALPHA".
7671 (opendata): use fields "A" and "A2".
7672 (dataadd): add parameters "fa" and "a".
7673
7674 * src/oaxis.c (axis): rename fields from "gauge_alpha" to
7675 "gauge_A" end "num_alpha" to "num_A".
7676
7677 * src/oagrid.c (agridinit): initialize field "BA".
7678 (draw_background, agriddraw): remove parameter "alpha".
7679 (draw_background): use field "BA".
7680 (agriddraw): use field "A".
7681 (agrid): add field "BA".
7682
7683 * src/oarc.c (arcinit): initialize field "stroke_A" and "fill_A".
7684 (arcdraw): use field "stroke_A" and "fill_A".
7685 (arc): add field "stroke_A" and "fill_A".
7686
7687 * src/omark.c (markinit): initialize field "A2".
7688 (markdraw): use field "A" and "A2".
7689 (mark): add field "A2".
7690
7691 * src/opath.c (arrowinit): initialize field "stroke_A" and "fill_A".
7692 (draw_stroke, draw_fill): remove parameter "alpha".
7693 (draw_stroke): use field "stroke_A".
7694 (draw_fill): use field "fill_A".
7695 (arrow): add field "stroke_A" and "fill_A".
7696
7697 * src/olegend.c (put_color_for_backward_compatibility): set opacity.
7698
7699 * src/orect.c (rectinit): initialize field "stroke_A" and "fill_A".
7700 (rectdraw): use field "stroke_A" and "fill_A".
7701 (rect): add field "stroke_A" and "fill_A".
7702
7703 * src/gra.c (GRAmark): remove parameter "alpha". add parameter
7704 "fa" and "ba".
7705
7706 * src/gtk/gtk_widget.c (show_color_sel, create_color_button): use
7707 opacity control.
7708
7709 * src/gtk/x11dialg.c (_set_color, _putobj_color): setup opacity.
7710
7711 * src/gtk/x11axis.c (opacity_setup): removed.
7712
7713 2010-08-27 Ito Hiroyuki <ZXB01226 at nifty.com>
7714
7715 * src/oaxis.c (axisinit): initialize field "gauge_alpha" and
7716 "num_alpha".
7717 (AxisConfig): add data "alpha", "gauge_alpha" and "num_alpha".
7718 (numbering): use field "num_alpha".
7719 (draw_gauge): use field "gauge_alpha".
7720 (axisdraw): use field "alpha".
7721 (axis): add fields "num_alpha" and "gauge_alpha".
7722
7723 * src/oarc.c (arcdraw): use field "alpha".
7724
7725 * src/omark.c (markdraw): use field "alpha".
7726
7727 * src/otext.c (textdraw): use field "alpha".
7728 (TextConfig): add data "alpha".
7729
7730 * src/opath.c (draw_stroke, draw_fill): add parameter "alpha".
7731 (arrowdraw): use field "alpha".
7732
7733 * src/ofile.c (f2ddata): add member "alpha".
7734 (opendata): use field "alpha".
7735 (markout, lineout, curveout, rectout, errorbarout, stairout)
7736 (barout, draw_fit): use "fp->alpha".
7737 (FileConfig): add data "alpha".
7738
7739 * src/oagrid.c (draw_background): add parameter "alpha".
7740 (agriddraw): use field "alpha".
7741
7742 * src/odraw.c (drawinit): initialize field "alpha".
7743 (draw): add field "alpha".
7744
7745 * src/orect.c (rectdraw): use field "alpha".
7746
7747 * src/gra.c (GRAmark): add parameter "alpha".
7748
7749 * src/gtk/x11lgnd.c (init_legend_dialog_widget_member): initialize
7750 "d->opacity".
7751 (legend_dialog_setup_item): setup "d->opacity".
7752 (legend_dialog_close): save opacity.
7753 (opacity_setup): added.
7754 (LegendArrowDialogSetup, LegendRectDialogSetup)
7755 (LegendArcDialogSetup, LegendMarkDialogSetup)
7756 (legend_dialog_setup_sub): add widget to set opacity.
7757
7758 * src/gtk/x11file.c (plot_tab_setup_item): setup "d->opacity".
7759 (plot_tab_create): add widget to set opacity.
7760 (plot_tab_set_value): save opacity.
7761
7762 * src/gtk/x11lgndx.c (LegendGaussDialogSetupItem): setup "d->opacity".
7763 (LegendGaussDialogSetup): add widget to set opacity.
7764 (LegendGaussDialogClose): save opacity.
7765
7766 * src/gtk/x11axis.c (opacity_setup): added.
7767 (GridDialogSetupItem, baseline_tab_setup_item)
7768 (gauge_tab_setup_item, font_tab_setup_item): setup "d->opacity".
7769 (GridDialogSetup, baseline_tab_create, gauge_tab_create)
7770 (font_tab_create): add widget to set opacity.
7771 (GridDialogClose, baseline_tab_set_value, gauge_tab_set_value)
7772 (font_tab_set_value): save opacity.
7773
7774 2010-08-26 Ito Hiroyuki <ZXB01226 at nifty.com>
7775
7776 * src/oprm.c (prmload): don't use the field "num_jfont".
7777 (prmload): id of path object is not "pid" but "cid" when the type
7778 of the instance is "PATH_TYPE_CURVE".
7779
7780 * src/gra.c (GRAcolor): add argument "alpha".
7781 (GRAC): add member "alpha".
7782 (GRAdraw): check "GRAClist[GC].alpha".
7783
7784 * src/gtk/ogra2cairo.c (gra2cairo_output): use
7785 "cairo_set_source_rgba()" when the value "alpha" is less than 255.
7786
7787 2010-08-25 Ito Hiroyuki <ZXB01226 at nifty.com>
7788
7789 * src/gtk/ogra2cairo.c (gra2cairo_output): now 7th argument of "C"
7790 command means not only fill method but stroke.
7791
7792 * src/oarc.c (get_pos): removed
7793 (arcdraw): use 7th argument of "C" command to draw stroke.
7794
7795 2010-08-19 Ito Hiroyuki <ZXB01226 at nifty.com>
7796
7797 * src/gra.c (GRAdrawtext, GRAtextextent): consider subscript
7798 strings for the calculation of new line position.
7799
7800 2010-08-18 Ito Hiroyuki <ZXB01226 at nifty.com>
7801
7802 * src/gra.c (GRAdrawtext, GRAtextextent): use "case" instead of
7803 "if".
7804 (GRAtextextent): bug fix: fix calculation of bounding box when
7805 "c[j] == '\n" and "scriptf != 0".
7806 (GRAtextextent, GRAtextextentraw): fix calculation of space.
7807 (get_str_bbox): fix treatment of '\' character.
7808
7809 * src/gtk/ogra2cairo.c (gra2cairo_output): fix treatment of '\'
7810 character.
7811
7812 2010-08-17 Ito Hiroyuki <ZXB01226 at nifty.com>
7813
7814 * src/gtk/x11commn.c (LoadNgpFile, LoadPrmFile): call
7815 "set_axis_undo_button_sensitivity()".
7816
7817 * src/gtk/x11graph.c (CmGraphNewMenu): call
7818 "set_axis_undo_button_sensitivity()".
7819
7820 * src/gtk/gtk_liststore.c (list_store_set_align): added.
7821
7822 * src/gtk/x11axis.c (axis_list_set_val): use "%g" instead of
7823 "%.2e" for format string of the function "snprintf()".
7824 (CmAxisWindow): call "list_store_set_align()" for columns
7825 AXIS_WIN_COL_MIN, AXIS_WIN_COL_MAX and. AXIS_WIN_COL_INC.
7826
7827 2010-07-16 Ito Hiroyuki <ZXB01226 at nifty.com>
7828
7829 * initfile/Ngraph.nsc: -n option works after all other options are managed.
7830
7831 2010-07-13 Ito Hiroyuki <ZXB01226 at nifty.com>
7832
7833 * src/gtk/x11lgnd.c (legend_dialog_close): save color of
7834 "d->color".
7835
7836 2010-07-09 Ito Hiroyuki <ZXB01226 at nifty.com>
7837
7838 * src/omath.c (math): remove fields "m00" to "m19".
7839 (mlocal): remove member "idpm".
7840 (msettbl, minit, mparam): now memories are not used.
7841
7842 * src/math/math_basic_function.c (MATH_FUNCTION_MEMORY_NUM):
7843 added.
7844 (init_memory): added.
7845 (math_func_rm, math_func_m, math_func_for): use static variable
7846 "Memory".
7847
7848 * src/math/math_equation.c (math_equation_clear): don't initialize
7849 "eq->memory".
7850
7851 * src/math/math_equation.h (_math_equation): remove member
7852 "memory".
7853
7854 * src/gtk/x11lgnd.c (create_character_panel): use
7855 "Menulocal.char_map".
7856
7857 * src/gtk/ox11menu.c (MenuConfig): use "character_map" instead of
7858 "greece_character", "mathematics_character", "physics_character"
7859 and "misc_character".
7860 (save_char_map_config, menu_config_set_char_map): added.
7861 (menu_save_config_sub, mgtkloadconfig): add case for
7862 "MENU_CONFIG_TYPE_CHARMAP".
7863 (menulocal_finalize): free "Menulocal.char_map".
7864
7865 2010-07-08 Ito Hiroyuki <ZXB01226 at nifty.com>
7866
7867 * src/gtk/ox11menu.h (menulocal): add members "greece_char",
7868 "mathematics_char", "physics_char" and "misc_char".
7869
7870 * src/gtk/ox11menu.c (MenuConfigMisc): "browser" and
7871 "help_browser" ins member of miscellaneous settings menu.
7872 (MenuConfig): append character selection data.
7873
7874 * src/gtk/x11opt.c (FontSettingDialogClose): free returned string
7875 from the function "list_store_get_string()".
7876
7877 * src/gtk/x11lgnd.c (insert_selcted_char, create_character_view)
7878 (create_character_panel): added.
7879 (LegendTextDialogSetup): append character selection panel.
7880
7881 2010-07-07 Ito Hiroyuki <ZXB01226 at nifty.com>
7882
7883 * initfile/Ngraph.ini.win: add alternative fonts settings.
7884
7885 * src/gtk/ogra2cairo.c (free_font_map): free "d->alternative".
7886 (create_font_map): add 3rd argument "alternative".
7887 (gra2cairo_save_config): save alternative fonts.
7888 (loadconfig): load alternative fonts.
7889 (gra2cairo_add_fontmap): don't duplicate font names.
7890 (gra2cairo_set_alternative_font): added.
7891 (loadfont): use alternative fonts.
7892
7893 * src/gtk/x11dialg.h (FontSettingDialog): added.
7894
7895 * src/gtk/x11opt.c (FontSettingDialogSetupItem)
7896 (AlternativeFontListSelCb, get_font_family)
7897 (FontSettingDialogAddAlternative)
7898 (FontSettingDialogRemoveAlternative)
7899 (FontSettingDialogDownAlternative)
7900 (FontSettingDialogUpAlternative, FontSettingDialogSetup)
7901 (FontSettingDialogClose, FontSettingDialog): added
7902 (get_font_alias): type of the parameter is "struct
7903 FontSettingDialog *".
7904 (PrefFontDialogUpdate, PrefFontDialogAdd): use
7905 "FontSettingDialog".
7906 (PrefFontDialogSetupItem, PrefFontDialogSetup): show alternative
7907 fonts.
7908
7909 2010-07-02 Ito Hiroyuki <ZXB01226 at nifty.com>
7910
7911 * src/nstring.c (getitok, getitok2): type of the 3rd parameter is
7912 "const char *".
7913 (add_printf_formated_str): type of the 1st parameter is "GString *".
7914
7915 * src/otext.c (textprintf): use "GString *" instead of "char *".
7916
7917 * src/gra.c (GRAexpandobj, GRAexpandpf): use "GString *" instead
7918 of "char *".
7919
7920 2010-07-01 Ito Hiroyuki <ZXB01226 at nifty.com>
7921
7922 * src/ioutil.c (getrelativepath): use "GString *" instead of "char *".
7923
7924 * src/gra.c (GRAexpandmath): use "GString *" instead of "char *".
7925
7926 * src/ofile.c (f2dhead, f2dsave): use "GString *" instead of
7927 "char *".
7928
7929 * src/oroot.c (osave): use "GString *" instead of "char *".
7930
7931 * src/odraw.c (pathsave): use "GString *" instead of "char *".
7932
7933 * src/oaxis.c (axis_save_group): use "GString *" instead of
7934 "char *".
7935
7936 * src/ogra2prn.c (gra2p_output): use "GString *" instead of
7937 "char *".
7938
7939 * src/shellcm.c (cmeval, cmread, cmdexpr): use "GString *" instead
7940 of "char *".
7941
7942 * src/gtk/ogra2cairo.c (gra2cairo_output): use
7943 "g_unichar_to_utf8()"instead of "iso8859_to_utf8()".
7944
7945 * src/gra.c (GRAtextextent, get_str_bbox): use
7946 "g_string_append_unichar()"
7947 (GRAdrawtext): convert string such as "\x31" to unicode character.
7948
7949 * src/strconv.c (iso8859_to_utf8): removed.
7950
7951 2010-06-30 Ito Hiroyuki <ZXB01226 at nifty.com>
7952
7953 * src/gtk/x11dialg.c (set_entry_from_obj_point): use "GString *"
7954 instead of "char *".
7955
7956 * src/gtk/x11file.c (load_tab_set_value): use "GString *" instead
7957 of "char *".
7958
7959 * src/gtk/x11view.c (eval_dialog_copy_selected)
7960 (CopyFocusedObjects): use "GString *" instead of "char *".
7961
7962 * src/gra.c (GRAtextextent, GRAexpandtext): use "GString *"
7963 instead of "char *".
7964
7965 * src/ogra2nul.c (g2nul_strwidth): added.
7966 (g2nul_charwidth): removed.
7967 (gra2null): remove "_charwidth" field, add "_strwidth" field.
7968
7969 * src/ogra.c (oGRAopen): use "_strwidth" field instead of
7970 "_charwidth" field.
7971
7972 * src/gra.c (GRAC): remove "charwidth" member, add "strwidth"
7973 member.
7974 (_GRAopen, GRAopen): initialize "strwidth" member.
7975 (GRAstrwidth): added.
7976 (GRAcharwidth): removed.
7977 (GRAtextextent, GRAtextextentraw, get_str_bbox): use
7978 "GRAstrwidth()" instead of "GRAcharwidth()".
7979
7980 * src/gtk/x11opt_proto.h (CREATE_NAME): call
7981 "gtk_scrolled_window_set_policy()".
7982
7983 * src/gtk/ogra2cairo.c (gra2cairo): remove "_charwidth" field, add
7984 "_strwidth" field.
7985 (gra2cairo_strwidth): added.
7986 (gra2cairo_charwidth): removed.
7987
7988 * src/gtk/ogra2cairofile.c (gra2cairofile): remove "_charwidth"
7989 field, add "_strwidth" field.
7990
7991 * src/gtk/ogra2x11.c (gra2gtk): remove "_charwidth" field, add
7992 "_strwidth" field.
7993
7994 2010-06-28 Ito Hiroyuki <ZXB01226 at nifty.com>
7995
7996 * src/oprm.c (prminit, prmload): the field "symbol_greek" in not
7997 used now.
7998 (remarkconv): use UTF-8 string.
7999 (prm): the field "symbol_greek" is removed.
8000
8001 * src/omerge.c (mergeinit, mergedraw, mergebbox): the field
8002 "symbol_greek" in not used now.
8003
8004 * src/gra.c (GRAexpandtext, GRAdrawtext, GRAtextextent)
8005 (get_str_bbox): use "g_ascii_isxdigit()" instead of "isxdigit()".
8006 (GRAtextextent): use "g_ascii_xdigit_value()".
8007 (get_str_bbox): added.
8008 (GRAboundingbox): use "get_str_bbox()".
8009 (GRAinputold): just convert string from Shift-jis to UTF-8 when
8010 the variable "code" is 'K'.
8011
8012 * src/gtk/x11dialg.h (MergeDialog, PrmDialog): the member
8013 "greek_symbol" is removed.
8014
8015 * src/gtk/x11graph.c (PrmDialogSetup, PrmDialogClose): the field
8016 "symbol_greek" in not used now.
8017
8018 * src/jnstring.c: removed.
8019
8020 2010-06-25 Ito Hiroyuki <ZXB01226 at nifty.com>
8021
8022 * initfile/Ngraph.ngp: change font settings.
8023
8024 * initfile/Ngraph.ini.win: change font settings.
8025
8026 * initfile/Ngraph.ini.in: change font settings.
8027
8028 * driver/ngp2.in: remove "-wmf" option.
8029
8030 * driver/Makefile.am (ngraphconfdir): gra2ps and gra2wmf are not
8031 used now.
8032
8033 * src/ogra2nul.c (g2nul_charwidth, g2nul_charheight): check
8034 backward compatibility.
8035 (addgra2null): initialize "FontDataHash".
8036
8037 * src/oaxis.c (AxisConfig): remove configuration "num_jfont", add
8038 configuration "num_font_style".
8039 (axisinit): "jfont" field does not exist now.
8040 (axis): add field "num_font_style".
8041
8042 * src/jnstring.c (njis2jms, njms2euc, neuc2jms): removed.
8043
8044 * src/shellcm.c (cmdexpr): remove old math related codes.
8045
8046 * src/mathcode.c: remove old math related codes.
8047
8048 * src/omath.c: remove old math related codes.
8049
8050 * src/object.c (getargument): remove old math related codes.
8051
8052 * src/otext.c (TextConfig): remove configuration "jfont". add
8053 configuration "style".
8054 (textinit): "jfont" field does not exist now.
8055 (textgeometry): check value of "style" field.
8056 (text): add field "style".
8057
8058 * src/ofit.c: remove old math related codes.
8059
8060 * src/mathfn.c: remove old math related functions.
8061
8062 * src/opath.c (draw_stroke): arr parameter "intp".
8063
8064 * src/shell.c (str_calc): remove old math related codes.
8065
8066 * src/ofile.c: remove old math related codes.
8067
8068 * src/gra.c (FONT_STYLE_NORMAL, FONT_STYLE_BOLD)
8069 (FONT_STYLE_ITALIC): added.
8070 (GRAC): add member "style".
8071 (GRAdraw, GRAcharwidth, GRAcharascent, GRAchardescent)
8072 (GRAtextstyle): 4th argument of the "H" command represents style
8073 of the font.
8074 (GRAoutkanji): removed.
8075 (GRAexpandmath): remove old math related codes.
8076 (GRAexpandtext): use "case" statement.
8077 (GRAdrawtext, GRAtextextent): add format command "\B", "\I" and
8078 "\N".
8079 (GRAtextextent, GRAtextextentraw): don't check "kanji" code.
8080 (GRAinputold): convert argument of the "S" command Shift-JI to
8081 UTF-8.
8082
8083 * src/ioutil.c (getrelativepath): "cwd2" may not be Shift-JIS
8084 code.
8085
8086 * src/gtk/ogra2cairo.h (compatible_font_info): added.
8087
8088 * src/gtk/ogra2cairo.c (check_type, gra2cairo_get_font_type_str):
8089 removed.
8090 (create_font_map): don't save type, symbol and twobyte.
8091 (gra2cairo_save_config): save "font" configurations. remove
8092 "font-map" configurations.
8093 (loadconfig): load "font" configurations.
8094 (loadconfig): load "font-map" configurations only when the "font"
8095 configuration related to the font is not loaded yet.
8096 (init_conf): don't initialize "FontFace".
8097 (gra2cairo_update_fontmap, gra2cairo_add_fontmap): remove
8098 parameter "type" and "two_byte".
8099 (gra2cairo_done): save configurations when old configurations are
8100 used.
8101 (gra2cairo_get_compatible_font_info): add.
8102 (loadfont): add parameter "font_style" and "symbol".
8103 (loadfont): set weight and style every time.
8104 (gra2cairo_output): use UTF-8 in the 'S' command.
8105 (gra2cairo_charwidth): use "gunichar" instead of "char *".
8106 (addgra2cairo): initialize "CompatibleFontHash".
8107
8108 * src/gtk/main.c (get_obj_font_list): remove japanese specified
8109 codes.
8110
8111 * src/gtk/x11dialg.h (AxisFont, LegendDialog): add member
8112 "font_bold" and "font_italic".
8113
8114 * src/gtk/x11lgnd.c (LegendTextCB): remove japanese specified
8115 settings.
8116 (init_legend_dialog_widget_member): remove "d->jfont", add
8117 "d->font_bold" and "d->font_italic".
8118 (get_font, set_font): get and set font style settings.
8119 (set_fonts): remove.
8120 (legend_dialog_setup_item, legend_dialog_close)
8121 (legend_dialog_setup_sub, legend_list_set_property): remove
8122 japanese specified settings.
8123 (legend_dialog_setup_item, legend_dialog_close)
8124 (legend_dialog_setup_sub): get and set font style settings.
8125
8126 * src/gtk/x11dialg.c (SetFontListFromObj)
8127 (SetObjFieldFromFontList): remove japanese specified settings.
8128
8129 * src/gtk/x11file.c (FitDialogResult): remove old math related
8130 codes.
8131 (draw_type_pixbuf): add 3rd argument for "GRAtextstyle()".
8132
8133 * src/gtk/x11view.c (CopyFocusedObjects, focus_new_insts)
8134 (text_dropped): remove japanese specified settings.
8135
8136 * src/gtk/x11menu.c (USE_EXT_DRIVER): add.
8137 (show_graph_menu_cb, create_graphmenu, create_preferencemenu):
8138 external driver menu is not shown.
8139
8140 * src/gtk/x11opt.c (PrefFontDialogSetupItem)
8141 (create_font_selection_dialog): don't save font type.
8142 (create_font_selection_dialog)
8143 (set_font_from_font_selection_dialog): remove japanese specified
8144 settings.
8145 (set_font_from_font_selection_dialog): remove settings related to
8146 font type.
8147 (PrefFontDialogSetup): don't show the style of the font.
8148
8149 * src/gtk/x11merge.c (MergeDialogSetupItem, MergeDialogSetup)
8150 (MergeDialogClose): remove japanese specified settings.
8151
8152 * src/gtk/x11axis.c (font_tab_set_value, font_tab_setup_item)
8153 (font_tab_create): remove japanese specified settings.
8154 (font_tab_set_value, font_tab_setup_item, font_tab_create): add
8155 font style settings.
8156
8157 * demo/encodeing.ngp: remove.
8158
8159 * demo/demo5a.ngp: change font settings.
8160
8161 * demo/demo5b.ngp: change font settings.
8162
8163 * demo/demo5c.ngp: show muliti languages.
8164
8165 * demo/demo5d.ngp: change font settings.
8166
8167 * demo/demo5e.ngp: change font settings.
8168
8169 * demo/demo4.ngp.in: change font settings.
8170
8171 * demo/demo3.ngp.in: change font settings.
8172
8173 * demo/demo2.ngp.in: change font settings.
8174
8175 * demo/demo1.ngp.in: change font settings.
8176
8177 * debian/rules: remove configure option "--enable-janese".
8178
8179 2010-06-17 Ito Hiroyuki <ZXB01226 at nifty.com>
8180
8181 * src/opath.c (distance, check_point_match, point_match): add.
8182 (curvematch): use "point_match()".
8183 (get_arrow_pos): use "distance()".
8184
8185 2010-06-16 Ito Hiroyuki <ZXB01226 at nifty.com>
8186
8187 * src/opath.c (path_fill_mode): "fill" field accept "true" or
8188 "false" .
8189 (PATH_FUILL_MODE, path_fill_rule, PATH_FILL_RULE): add.
8190 (draw_stroke, draw_fill): add.
8191 (arrowdraw): use "draw_stroke()" and "draw_fill()".
8192 (put_fill_mode): add.
8193 (arrow): use "put_fill_mode()" for "fill" field.
8194 (arrow): add "fill_rule" field.
8195
8196 * src/gtk/x11lgnd.c (legend_dialog_set_sensitive): sensitivity of
8197 the widget "d->fill_rule" is depend on the widget "d->fill".
8198 (legend_dialog_setup_item, legend_dialog_close): field name for
8199 the widget "d->fill_rule" is "fill_rule".
8200 (LegendArrowDialogSetup): add widget "d->fill".
8201
8202 2010-06-11 Ito Hiroyuki <ZXB01226 at nifty.com>
8203
8204 * src/opath.c (get_arrow_pos): remove parameter "strict".
8205 (arrowdraw, arrowbbox): remove 3rd argument of the function
8206 "get_arrow_pos()".
8207
8208 2010-06-10 Ito Hiroyuki <ZXB01226 at nifty.com>
8209
8210 * src/opath.c (get_arrow_pos): add strict mode.
8211 (arrowdraw, arrowbbox): use strict mode for "get_arrow_pos()" when
8212 the type is "PATH_TYPE_LINE".
8213
8214 * demo/demo5a.ngp: change position of "path" instances.
8215
8216 * src/gtk/x11lgndx.c (LegendGaussDialogSetupItem): use
8217 "set_stroke_color()" instead of "set_color()".
8218 (LegendGaussDialogClose): use "putobj_stroke_color()" instead of
8219 "putobj_color()".
8220
8221 2010-06-09 Ito Hiroyuki <ZXB01226 at nifty.com>
8222
8223 * src/gtk/ox11menu.c (graph_modified_sub): call "set_modified_state()".
8224
8225 * src/gtk/x11menu.c (set_modified_state): add.
8226
8227 2010-06-04 Ito Hiroyuki <ZXB01226 at nifty.com>
8228
8229 * src/oarc.c (arcinit): initialize fields "miter_limit", "join"
8230 and "stroke".
8231 (get_pos): add.
8232 (arcdraw): use "stroke_[RGB]" instead of "[RGB]".
8233 (arcdraw): use "stroke", "miter_limit", "join", "fill_[RGB]" and
8234 "close_path".
8235 (arcbbox): use "stroke" and "close_path".
8236 (arc): add fields "fill_[RGB]", "stroke_[RGB]", "close_path" and
8237 "stroke".
8238
8239 * src/odraw.h (JOIN_TYPE): add.
8240
8241 * src/olegend.c (put_color_for_backward_compatibility): add.
8242
8243 * src/orect.c (rectdraw): use "fill_[RGB]" and "stroke_[RGB]"
8244 instead of "[RGB]2" and "[RGB]".
8245 (rectdraw, rectbbox, rectmatch): don't use "frame". use "stroke".
8246 (rect_frame, put_color2): add.
8247 (rect): add fields "fill_[RGB]", "stroke_[RGB]" and "stroke".
8248
8249 * src/gtk/x11dialg.h (LegendDialog): add member "stroke_color".
8250
8251 * src/gtk/x11lgnd.c (init_legend_dialog_widget_member): initialize
8252 "d->fill_color" and "d->stroke_color".
8253 (set_sensitive_with_label): fix typo.
8254 (legend_dialog_set_sensitive): set sensitivity of "d->fill_color"
8255 and "d->stroke_color".
8256 (legend_dialog_setup_item): setup "d->fill_color" and
8257 "d->stroke_color".
8258 (legend_dialog_close): get value from "d->fill_color" and
8259 "d->stroke_color".
8260 (fill_color_setup, stroke_color_setup): add.
8261 (LegendArrowDialogSetup, LegendRectDialogSetup): use
8262 "fill_color_setup()" and "stroke_color_setup()" instead of
8263 "color_setup()" and "color2_setup()" respectively.
8264 (LegendRectDialogSetup): remove "d->frame" setting. add
8265 "d->stroke" setting.
8266 (LegendArcDialogSetup): use "fill_color_setup()" and
8267 "stroke_color_setup()" instead of "color_setup()" and
8268 "color2_setup()" respectively.
8269 (LegendArcDialogSetup): add settings for "d->stroke" and
8270 "d->close_path".
8271 (COLOR_TYPE): add.
8272 (legend_list_set_color): support "COLOR_TYPE_FILL" and
8273 "COLOR_TYPE_STROKE".
8274 (legend_list_set_property): use "COLOR_TYPE_FILL" and
8275 "COLOR_TYPE_STROKE".
8276
8277 * src/gtk/x11dialg.c (set_fill_color, set_stroke_color)
8278 (putobj_fill_color, putobj_stroke_color): add.
8279
8280 2010-06-03 Ito Hiroyuki <ZXB01226 at nifty.com>
8281
8282 * src/gtk/x11view.c (create_path): use "goto" statement to handle
8283 errors.
8284
8285 * src/object.c (newobj_alias): check arguments.
8286
8287 2010-06-02 Ito Hiroyuki <ZXB01226 at nifty.com>
8288
8289 * demo/encoding.ngp: use "path" object instead of "line" object.
8290
8291 * demo/demo5d.ngp: use "path" object instead of "line" object.
8292
8293 * demo/demo5a.ngp: use "path" object instead of "line" object.
8294
8295 * demo/demo4.ngp.in: use "path" object instead of "line" object.
8296
8297 * demo/demo3.ngp.in: use "path" object instead of "line" object.
8298
8299 * demo/demo2.ngp.in: use "path" object instead of "curve" object.
8300
8301 * addin/legend.tcl (makescript): use "path" object instead of
8302 "line" object.
8303
8304 * initfile/Ngraph.ngp (gra::draw_obj): remove "line", "polygon"
8305 and "curve" objects. add "path" object.
8306
8307 * src/Makefile.am (ngraph_SOURCES): remove "oline.c", "opolygon.c"
8308 and "ocurve.c". add "opath.c" and "opath.h".
8309
8310 * src/oprm.c (prmload): use "path" object instead of "line",
8311 "polygon" and "curve" objects.
8312
8313 * src/shellcm.c (cmnew): use object name from the
8314 functions"getobjiname()" for "newobj_alias()".
8315
8316 * src/object.c (newobj_alias): add.
8317 (newobj): use "newobj_alias()".
8318 (getobjiname): add.
8319 (chkobjilist, getobjilist): use "getobjiname()".
8320
8321 * src/gtk/gtk_widget.c (get_widget): add.
8322 (spin_entry_set_val, spin_entry_get_val): use "get_widget()".
8323
8324 * src/gtk/main.c (obj_add_func_ary): remove "addline", "addcurve"
8325 and "addpolygon". add "addpath".
8326
8327 * src/gtk/x11dialg.h: remove prototype of unused functions.
8328 (LegendDialog):add member "stroke", "path_type" and
8329 "close_path". remove member "color2_label".
8330
8331 * src/gtk/x11lgnd.c (legendlist): remove "line", "polygon" and
8332 "curve" items. add "path" item.
8333 (Ldlg): remove "DlgLegendCurve" and "DlgLegendPoly".
8334 (LegendType): remove "LegendTypeLine", "LegendTypeCurve",
8335 "LegendTypePoly". add "LegendTypePath".
8336 (LegendLineCB): show the type of the "path" object.
8337 (init_legend_dialog_widget_member): initialize "d->path_type",
8338 "d->stroke" and "d->close_path".
8339 (set_sensitive_with_labdl): add.
8340 (legend_dialog_set_sensitive): use "set_sensitive_with_labdl()".
8341 (legend_dialog_set_sensitive): set sensitivity for stroke and fill
8342 related widgets.
8343 (legend_dialog_setup_item): set up "d->stroke", "d->path_type" and
8344 "d->close_path".
8345 (legend_dialog_setup_item): call "get_widget()" before call
8346 "gtk_range_set_value" and "gtk_entry_set_text()".
8347 (width_setup, style_setup, miter_setup, join_setup, color_setup)
8348 (color2_setup): save label instead of control widgets.
8349 (LegendCurveDialogSetup, LegendCurveDialog, LegendPolyDialogSetup)
8350 (LegendPolyDialog, CmCurveDel, CmCurveUpdate, CmCurveMenu)
8351 (CmPolyDel, CmPolyUpdate, CmPolygonMenu): removed.
8352 (LegendArrowDialogSetup): add control widgets for "d->stroke",
8353 "d->fill_rule", "d->path_type" and "d->close_path".
8354 (CmLineDel, CmLineUpdate): use "path" object instead of "line"
8355 object.
8356 (LegendWinLegendUpdate, legend_list_set_property): remove case for
8357 "LegendTypeLine", "LegendTypeCurve" and "LegendTypePoly". add case
8358 for "LegendTypePath".
8359 (legend_list_set_property): show some attributes for "path"
8360 object.
8361
8362 * src/gtk/x11dialg.c (initdialog): don't initialize
8363 "DlgLegendCurve" and "DlgLegendPoly".
8364 (SetWidgetFromObjField, SetObjFieldFromWidget)
8365 (SetObjFieldFromStyle, SetStyleFromObjField, _putobj_color)
8366 (_set_color): call "get_widget()" for the parameter "widget".
8367 (SetComboList, SetComboList2): removed.
8368 (SetObjFieldFromText, SetTextFromObjField, SetObjFieldFromSpin)
8369 (SetSpinFromObjField, SetObjFieldFromToggle)
8370 (SetToggleFromObjField, SetObjFieldFromStyle): now these functions
8371 are static.
8372
8373 * src/gtk/x11view.c (create_legend2): create only "path" object.
8374 (create_legendx): create "path" object instead of "curve" object.
8375 (ViewerEvLButtonDblClk, ViewerEvRButtonDown): remove case for
8376 "LineB", "CurveB" and "PolyB". add case for "PathB".
8377 (ViewerEvRButtonDown): "g_object_unref()" should be called outside
8378 of the "switch" block.
8379 (ViewUpdate): don't check "line", "polygon" and "curve"
8380 objects. check "path" object.
8381
8382 * src/gtk/x11menu.h (PointerType): remove "LineB", "CurveB" and
8383 "PolyB" add "PathB".
8384
8385 * src/gtk/x11menu.c (Command2_data): remove "line", "polygon" and
8386 "curve" buttons. add "path" button.
8387 (create_legendmenu): remove "line", "polygon" and "curve" menu
8388 items. add "path" menu item.
8389
8390 * src/gtk/x11graph.c (SwitchDialogSetupItem, SwitchDialogSetup):
8391 localize.
8392 (SwitchDialogSetup): check duplicate item.
8393
8394 2010-06-01 Ito Hiroyuki <ZXB01226 at nifty.com>
8395
8396 * src/math/math_basic_function.c (mjd2gd): "mjd" must be an integer.
8397
8398 * src/oline.c: removed.
8399
8400 * src/ocurve.c: removed.
8401
8402 * src/opolygon.c: removed.
8403
8404 2010-05-21 Ito Hiroyuki <ZXB01226 at nifty.com>
8405
8406 * src/oaxis.c (anumdirchar): add new settings "oblique1" and
8407 "oblique2".
8408 (get_num_pos): renamed from "get_num_pos_parallel".
8409 (get_num_pos_normal): removed.
8410 (get_num_pos_oblique, get_num_ofst_oblique1)
8411 (get_num_ofst_oblique2): add.
8412 (draw_numbering_normalize): add case for "AXIS_NUM_POS_OBLIQUE1"
8413 and "AXIS_NUM_POS_OBLIQUE2".
8414 (draw_numbering): add argument "ndir".
8415 (draw_numbering): add case for "AXIS_NUM_POS_OBLIQUE1" and
8416 "AXIS_NUM_POS_OBLIQUE2".
8417 (draw_numbering): use "get_num_pos()" instead of
8418 "get_num_pos_normal()" and "get_num_pos_parallel()".
8419 (numbering): get field "num_direction".
8420 (numbering): "align" is not used when "ndir" is
8421 "AXIS_NUM_POS_OBLIQUE1" or "AXIS_NUM_POS_OBLIQUE2".
8422 (anumdirput): add case for "AXIS_NUM_POS_OBLIQUE1" and
8423 "AXIS_NUM_POS_OBLIQUE2".
8424
8425 * src/axis.h (AXIS_NUM_DIR): moved from "oaxis.c".
8426
8427 * src/gra.c (GRAexpandmath): show "0" when calculated value is
8428 equal to 0.
8429
8430 * src/gtk/x11dialg.h (AxisNumbering): add member "align_label".
8431
8432 * src/gtk/x11axis.c (num_direction_changed): add.
8433 (numbering_tab_create): "change" signal is connected to the
8434 function "num_direction_changed()".
8435 (numbering_tab_create): initialize "d->align_label".
8436
8437 2010-05-20 Ito Hiroyuki <ZXB01226 at nifty.com>
8438
8439 * src/gtk/x11menu.c (SetPoint): don't show the position in the
8440 status bar when the widget is not visible.
8441
8442 * src/gtk/x11cood.c (CoordWinSetCoord): show date when tyoe of the
8443 axis is "AXIS_TYPE_MJD".
8444 (CoordWinSetCoord): do nothing when the widget is not visible.
8445
8446 2010-05-19 Ito Hiroyuki <ZXB01226 at nifty.com>
8447
8448 * src/ofile.c (opendata, getposition, f2dgetcoord): use
8449 "AXIS_TYPE_LINEAR", "AXIS_TYPE_LOG" and "AXIS_TYPE_INVERSE".
8450 (get_pos_sub): add.
8451 (getposition2): use "get_pos_sub()".
8452
8453 2010-05-18 Ito Hiroyuki <ZXB01226 at nifty.com>
8454
8455 * src/gtk/x11menu.c (create_image_outputmenu): change accel path
8456 of "Export image" menu items.
8457
8458 2010-05-17 Ito Hiroyuki <ZXB01226 at nifty.com>
8459
8460 * src/ofit.c (ERR_SMALL_ARGS, ERR_INVALID_PARAM): remove.
8461 (fittypechar): remove some error messages.
8462 (bisection, newton, fitsolve): remove.
8463 (fit): remove fields "newton" and "bisection".
8464
8465 * src/ofile.c (ERR_SMALL_ARGS, ERR_INVALID_TYPE)
8466 (ERR_INVALID_PARAM, ERRCONVERGE): add.
8467 (f2derrorlist): add error messages.
8468 (get_fit_obj_id): add.
8469 (fitout): use "get_fit_obj_id()".
8470 (bisection, newton): moved from "ofit.c".
8471 (solve_equation): add.
8472 (calc_equation): add.
8473 (file2d): add fields "newton", "bisection" and "calc".
8474
8475 2010-05-15 Ito Hiroyuki <ZXB01226 at nifty.com>
8476
8477 * test/math_test_new.dat: add test for functions "mjd2year()",
8478 "mjd2month()", "mjd2day()" and "unix2mjd()".
8479
8480 2010-05-14 Ito Hiroyuki <ZXB01226 at nifty.com>
8481
8482 * src/otext.c (textprintf): use "add_printf_formated_str()".
8483
8484 * src/ofit.c (ERR_SMALL_ARGS, ERR_INVALID_PARAM): add.
8485 (fittypechar): add error messages.
8486 (fitcalc): variable "eq" is not static.
8487 (bisection, newton, fitsolve): add.
8488 (fit): add fields "newton" and "bisection".
8489
8490 * src/nstring.c (get_printf_format_str, add_printf_formated_str):
8491 add.
8492
8493 * src/gra.c (GRAexpandmath): use "g_strdup_printf()" instead of
8494 "sprintf()".
8495 (GRAexpandmath): change format string depend on the value "vd".
8496 (GRAexpandpf): use "add_printf_formated_str()".
8497
8498 2010-05-13 Ito Hiroyuki <ZXB01226 at nifty.com>
8499
8500 * src/math/math_basic_function.c (mjd2gd, math_func_mjd2year)
8501 (math_func_mjd2month, math_func_mjd2day): add.
8502
8503 * src/math/math_function.h.in: add functions "mjd2year",
8504 "mjd2month" and "mjd2day".
8505
8506 * src/gtk/x11graph.c (CmGraphSaveB): call "CmGraphOverWrite()"
8507 instead of "CmGraphSave()".
8508
8509 * src/gtk/x11menu.c (show_outputmenu_cb, create_outputmenu):
8510 remove.
8511 (command_data): add member "stock".
8512 (Command1_data): use stock items.
8513 (show_graph_menu_cb): set sensitivity of the widget
8514 "ExtDrvOutMenu".
8515 (create_graphmenu): move "Export image", "external _Driver" and
8516 "Print preview" menu items from "Output" menu.
8517 (create_filemenu): move "Save data" menu item from "Output" menu.
8518 (create_windowmenu): move "Draw" and "Clear" menu items from
8519 "Output" menu.
8520 (createmenu): don't call "create_outputmenu()".
8521 (createpixmap): check "data[i].xpm".
8522 (createcommand1): call "gtk_tool_button_new_from_stock()" when
8523 "cdata->xpm" is NULL.
8524 (createcommand1): call "gtk_tool_item_set_homogeneous()".
8525 (createcommand2): call "gtk_tool_button_set_stock_id()" when
8526 "cdata->img" is NULL.
8527
8528 2010-05-10 Ito Hiroyuki <ZXB01226 at nifty.com>
8529
8530 * src/oaxis.c (get_num_ofst_horizontal, get_num_ofst_parallel)
8531 (get_num_ofst_normal1, get_num_ofst_normal2): the type of the
8532 parameter "aconf" is "const struct axis_config *".
8533 (mjd_to_date_str): add parameter "date_format".
8534 (draw_numbering_normalize): the type of parameters "aconf" and
8535 "font" are "const struct axis_config *" and "const struct
8536 font_config *" respectively.
8537 (axis): add field "num_date_format".
8538
8539 * src/math/math_basic_function.c (math_func_unix2mjd): first
8540 argument of the function "mjd()" is "tm->tm_year + 1900".
8541
8542 * src/gtk/ogra2cairo.c (draw_str): check if the parameter "str" is
8543 NULL or not.
8544
8545 * src/gtk/main.c (main): set "LC_TIME" as "C".
8546
8547 * src/gtk/x11dialg.h (AxisNumbering):add member "date_format".
8548
8549 * src/gtk/x11file.c (FitCB): localize message.
8550
8551 * src/gtk/x11axis.c (AxisCB, AxisHistoryCB): localize message.
8552 (numbering_tab_set_value, numbering_tab_setup_item)
8553 (numbering_tab_create): add settings for date format.
8554
8555 2010-05-08 Ito Hiroyuki <ZXB01226 at nifty.com>
8556
8557 * src/oaxis.c (axistypechar): add scale type "MJD".
8558 (anumdirchar): use "horizontal" and "parallel1" instead of
8559 "normal" and "parallel" respectively.
8560 (AxisConfig): remove duplicated member "type".
8561 (mjd_to_date_str): add.
8562 (numformat): construct whole numbering string.
8563 (draw_numbering_normalize, draw_numbering, anumdirput): use
8564 "AXIS_NUM_POS_HORIZONTAL" and "AXIS_NUM_POS_PARALLEL1" instead of
8565 "AXIS_NUM_POS_NORMAL" and "AXIS_NUM_POS_PARALLEL" respectively.
8566 (draw_numbering): remove unused argument "taillen".
8567 (draw_numbering): remove unused variable "num".
8568 (draw_numbering): move some codes to the function "numformat()".
8569 (get_step): add.
8570 (numbering): remove unused variables "taillen", "num", "n" and
8571 "count".
8572 (numbering): use "get_step()".
8573 (numbering): move some codes to the function "numformat()".
8574 (anumdirput): add.
8575 (axis): use "anumdirput" to set value to the field "num_direction".
8576
8577 * src/axis.h (AXIS_SCALE_TYPE): meved from "oaxis.c".
8578
8579 2010-05-07 Ito Hiroyuki <ZXB01226 at nifty.com>
8580
8581 * src/math/math_basic_function.c (mjd): add.
8582 (math_func_mjd): use "mjd()".
8583 (math_func_unix2mjd): add.
8584
8585 * src/math/math_function.h.in: add function "unix2mjd".
8586 add 4th, 5th and 6th arguments to the function "mjd".
8587
8588 * src/shellcm.c (dispfield): check first character of a string
8589 "enumlist[j]".
8590
8591 * src/axis.h (AXIS_SCALE_TYPE): moved from "oaxis.c".
8592
8593 * src/object.c (getargument): check first character of a string
8594 "enumlist[i]".
8595
8596 * src/gtk/main.c (get_obj_enum_list): check first character of a
8597 string "enumlist[i]".
8598
8599 * src/gtk/x11dialg.c (SetListFromObjField): check first character
8600 of a string "enumlist[i]".
8601
8602 * src/gtk/x11file.c (FitDialogSetup, create_type_combo_box)
8603 (create_type_combo_box): check first character of strings
8604 "curvelist[j]" and "enumlist[i]".
8605
8606 2010-04-28 Ito Hiroyuki <ZXB01226 at nifty.com>
8607
8608 * src/Makefile.am (ngraph_CFLAGS): add option
8609 "-DG_DISABLE_DEPRECATED=1" and "-DG_DISABLE_SINGLE_INCLUDES=1".
8610
8611 * src/nconfig.c (replaceconfig, removeconfig): use "n_tmpfile()"
8612 and "n_tmpfile_close()".
8613
8614 * src/ioutil.c (n_tmpfile, n_tmpfile_close): add.
8615
8616 * src/gtk/x11commn.c (AddNgpFileList): use "g_filename_to_uri()".
8617
8618 * src/gtk/x11graph.c (CmGraphHistory): use
8619 "g_filename_from_uri()".
8620
8621 2010-04-27 Ito Hiroyuki <ZXB01226 at nifty.com>
8622
8623 * src/gtk/x11graph.c (PageDialogPage): change sensitivity of
8624 labels.
8625 (PageDialogSetup): initialize "d->paperheight_label" and
8626 "d->paperwidth_label".
8627
8628 * src/gtk/x11opt.c (MiscDialogSetupItem): initialize
8629 "d->help_browser" and "d->browser".
8630 (set_file_in_entry): change title of the dialog.
8631 (MiscDialogSetup): add entries to set programs for help browser
8632 and web browser.
8633 (MiscDialogSetup): change order of frames.
8634 (use_external_toggled): toggle sensitivity of labels.
8635 (load_file_toggled): add.
8636 (ViewerDialogSetup): "load_file_toggled()" is connected to the
8637 "toggled" signal.
8638 (set_program_name): add.
8639 (MiscDialogClose): use "set_program_name()".
8640
8641 * src/gtk/x11dialg.h (PageDialog): add member "paperwidth_label"
8642 and "paperheight_label".
8643 (ExViewerDialog):add member "d_label", "w_label" and "h_label".
8644 (ViewerDialog): add member *data_num_label".
8645
8646 * src/gtk/gtk_entry_completion.c (entry_completion_set_entry):
8647 add.
8648
8649 * src/gtk/x11lgnd.c (LegendTextDialogSetup): don't call
8650 "gtk_entry_set_completion()".
8651 (LegendTextDialogSetup): use "entry_completion_set_entry()"
8652 instead of "gtk_entry_set_completion()".
8653
8654 * src/gtk/x11file.c (clear_math_completion): remove.
8655 (MathTextDialogSetup, math_tab_setup_item, func_entry_focused):
8656 use "entry_completion_set_entry()" instead of
8657 "gtk_entry_set_completion()".
8658 (FileDialogClose, FileDefDialogClose): don't call
8659 "clear_math_completion()".
8660
8661 2010-04-26 Ito Hiroyuki <ZXB01226 at nifty.com>
8662
8663 * src/jnstring.c (niskanji): conditions are simplified.
8664 (niskanji2): use variable "l" to compare length of string.
8665
8666 * mingw/install.txt: add document.
8667
8668 * src/gtk/x11file.c (MathTextDialogClose): call
8669 "gtk_entry_set_completion()" before exit the function except the
8670 case of "d->ret == IDLOOP".
8671 (math_tab_setup_item): call "gtk_entry_set_completion()".
8672 (clear_math_completion): add.
8673 (FileDialogClose, FileDefDialogClose): call
8674 "clear_math_completion()" before exit the function except the case
8675 of "d->ret == IDLOOP".
8676
8677 2010-04-25 Ito Hiroyuki <ZXB01226 at nifty.com>
8678
8679 * src/gtk/x11print.c (SvgVersion): change order of SVG version.
8680 (OutputImageDialogSetupItem): initialize image export settings.
8681 (OutputImageDialogClose): save image export settings.
8682 (OutputImageDialogClose): "d->Version" is "TYPE_SVG1_1" when
8683 selected version is "SVG version 1.1".
8684
8685 * src/gtk/ox11menu.h (menulocal): add image export settings.
8686 (SAVE_CONFIG_TYPE): add "SAVE_CONFIG_TYPE_EXPORT_IMAGE".
8687
8688 * src/gtk/ox11menu.c (MenuConfigExportImage): add.
8689 (MenuConfigArrray): add "MenuConfigExportImage".
8690 (menu_save_config): save image export settings.
8691 (menuinit): initialize image export settings.
8692
8693 * src/gtk/x11menu.c (application): call "menu_save_config()" for
8694 "SAVE_CONFIG_TYPE_EXPORT_IMAGE".
8695
8696 2010-04-23 Ito Hiroyuki <ZXB01226 at nifty.com>
8697
8698 * mingw/windows_make.sed: add "-lwinspool" option to the variable
8699 "LIBS".
8700
8701 * src/gtk/x11print.c (OutputImageDialogSetupItem): "d->dpi" and
8702 "d->dlabel" are sensitive.
8703
8704 * src/gtk/ogra2cairofile.c (create_reference_dc): add.
8705 (create_cairo): use "create_reference_dc()" to get reference DC.
8706 (create_cairo): call "StartPage()".
8707 (gra2cairofile_output): call "cairo_surface_flush()",
8708 "cairo_surface_copy_page()" and "EndPage()".
8709
8710 2010-04-21 Ito Hiroyuki <ZXB01226 at nifty.com>
8711
8712 * src/gtk/x11menu.c (create_image_outputmenu): add "EMF file" menu
8713 item.
8714
8715 * src/gtk/x11print.c (OutputImageDialogSetupItem)
8716 (OutputImageDialogSetup, OutputImageDialogClose)
8717 (CmOutputImage, CmOutputMenu): add case for "MenuIdOutputEMFFile".
8718
8719 * src/gtk/x11menu.h (MenuID): add "MenuIdOutputEMFFile".
8720
8721 * src/gtk/ogra2cairofile.h (surface_type_id): add "TYPE_EMF".
8722
8723 * src/gtk/ogra2cairofile.c (CAIRO_EMF_SCALE): add.
8724 (surface_type): add type "emf".
8725 (create_cairo, gra2cairofile_output): add case for "TYPE_EMF".
8726
8727 2010-04-20 Ito Hiroyuki <ZXB01226 at nifty.com>
8728
8729 * src/gtk/x11lgnd.c (legend_list_build): use
8730 "tree_store_prepend()" instead of "tree_store_append()".
8731
8732 * src/gtk/x11file.c (delete_file_obj): add.
8733 (CmFileHistory, CmFileNew, CmFileClose, update_file_obj_multi)
8734 (FileWinFileDelete, FileWinFileUpdate): use "delete_file_obj()".
8735 (CmFileWindow): "d->delete" is set as "delete_file_obj".
8736
8737 * src/gtk/x11view.c (EvalDialogSetupItem): use
8738 "tree_store_prepend()" instead of "tree_store_append()".
8739
8740 * src/gtk/x11menu.c (init_ngraph_app_struct): use "memset()".
8741
8742 * src/gtk/gtk_subwin.c (update, delete): use "d->delete" instead
8743 of "delobj()" if "d->delete" is not NULL.
8744
8745 * src/gtk/x11axis.c (CmAxisWindow): "d->delete" is set as
8746 "AxisDel".
8747
8748 * src/gtk/x11menu.h (SUBWIN_PROTOTYPE): add member "delete".
8749
8750 * src/math/math_scanner.h (struct math_token): add member "next".
8751
8752 * src/math/math_scanner.c (create_token): use "g_malloc0()"
8753 instead of "g_malloc()".
8754
8755 * src/math/math_parser.c (parse_expression_list): fix memory leak
8756 when the type of the token is "MATH_TOKEN_TYPE_EOEQ".
8757 (my_get_token, unget_token, math_parser_parse): use list instead
8758 of array.
8759
8760 * src/gtk/gtk_liststore.c (tree_store_prepend): add.
8761
8762 2010-04-15 Ito Hiroyuki <ZXB01226 at nifty.com>
8763
8764 * src/omath.c (create_func_def_str): use "g_strdup_printf()".
8765
8766 * src/ofile.c (EQUATION_NUM): add.
8767 (struct f2ddata, set_user_fnc, set_equation): use "EQUATION_NUM".
8768 (create_func_def_str): use "g_strdup_printf()".
8769 (set_const_all): last argument of "set_const()" for "fp->codex[1]"
8770 and "fp->codey[1]" is depend on "fp->type".
8771 (f2ddraw): use "set_const_all()" instead of "set_const()".
8772
8773 * src/gtk/gtk_common.h (GTK_WIDGET_VISIBLE): use
8774 "gtk_widget_get_visible()" if "GTK_WIDGET_VISIBLE" is not defined.
8775
8776 2010-04-13 Ito Hiroyuki <ZXB01226 at nifty.com>
8777
8778 * src/gtk/x11file.c (FileDialogCopyAll): remove.
8779 (FileDialogClose): remove case "IDCOPYALL"
8780 (FileDialogSetup): remove "Copy all" button.
8781 (FileDialogSetup): set width of the file preview as 240.
8782
8783 2010-04-06 Ito Hiroyuki <ZXB01226 at nifty.com>
8784
8785 * src/gtk/x11menu.c (SUB_WINDOW_STATE, change_window_state_cb):
8786 add.
8787 (application): "change_window_state_cb()" is connected to the
8788 "window-state-event" signal.
8789
8790 * src/gtk/gtk_subwin.c (hide_minimize_menu_item): add.
8791 (sub_window_create): "hide_minimize_menu_item()" is connected to
8792 the "realize" signal.
8793
8794 2010-04-05 Ito Hiroyuki <ZXB01226 at nifty.com>
8795
8796 * src/gtk/x11menu.c (create_sub_windows, destroy_sub_windows):
8797 add.
8798 (application): use "create_sub_windows()" and
8799 "destroy_sub_windows()" .
8800
8801 * src/gtk/gtk_subwin.c (ev_sub_win_key_down): call
8802 "gtk_widget_hide()" instead of "gtk_widget_hide_all()".
8803
8804 2010-04-04 Ito Hiroyuki <ZXB01226 at nifty.com>
8805
8806 * mingw/windows.sh: remove "--enable-new_math" option for
8807 configure script.
8808
8809 2010-04-01 Ito Hiroyuki <ZXB01226 at nifty.com>
8810
8811 * initfile/Ngraph.ini.win: change Japanese fonts.
8812
8813 * src/otext.c (text_set_text): treat shift-jis strings.
8814
8815 * src/shell.c (getcmdline): treat shit-jis strings.
8816
8817 * driver/gra2wmf.c (main): use g_mkstemp() when the version of
8818 GLIB is lesser than 2.22.
8819
8820 * src/gtk/x11view.c (graph_dropped): add "-f" option for
8821 "LoadNgpFile()".
8822 (ViewerEvMouseMove, ViewerEvPaint, create_pix): check
8823 "Menulocal.gc".
8824
8825 * src/gtk/x11opt.c (set_file_in_entry): add.
8826 (MiscDialogSetup): use "create_file_entry_with_cb()" instead of
8827 "create_text_entry()".
8828 (CmOptionSaveNgp): use "naccess()" instead of "access()".
8829
8830 * src/gtk/x11merge.c (merge_list_set_val): the filename is always
8831 UTF-8.
8832
8833 * src/gtk/x11menu.h (NgraphApp): remove member "Message1", and
8834 members "Message_pos" and "Message_extra".
8835
8836 * src/gtk/x11menu.c (show_file_menu_cb): the filename is always
8837 UTF-8.
8838 (createpixmap, create_toolbar_pixmap, createicon): remove unused
8839 argument "win".
8840 (create_message_box): add.
8841 (setupwindow): call "gtk_widget_show_all()" and "reset_event()"
8842 just after call "gtk_table_attach" for "NgraphApp.Viewer.Win".
8843 (SetPoint): use GtkLabel to show the cursor position in the status
8844 bar.
8845
8846 * src/gtk/x11gui.c (fsok): use "naccess()" instead of "access()".
8847 (fsok): use "nstat()" instead of "stat()".
8848 (fsok): convert filename string to UTF-8.
8849 (fsok): use "g_path_get_dirname()".
8850 (file_dialog_set_current_neme): use "getbasename()".
8851 (FileSelectionDialog): second argument of
8852 "file_dialog_set_current_neme()" has to be converted from UTF-8.
8853
8854 * src/gtk/x11graph.c (DirectoryDialogClose, CmGraphHistory): use
8855 "nchdir()" instead of "chdir()".
8856 (CmGraphHistory): use "g_path_get_dirname()".
8857 (about_link_activated_cb, CmHelpHelp): use "system_bg()".
8858
8859 * src/gtk/x11file.c (edit_file): add.
8860 (FileDialogEdit, CmFileEdit, FileWinFileEdit): use "edit_file()".
8861 (file_list_set_val): the filename is always UTF-8.
8862
8863 * src/gtk/x11dialg.c (SetObjFieldFromText, SetTextFromObjField):
8864 strings are always UTF-8.
8865
8866 * src/gtk/x11commn.c (SaveDrawrable): don't write platform
8867 information.
8868 (check_overwrite, GraphSave): use "naccess()" instead of
8869 "access()".
8870 (GraphSave): use "nchdir()" instead of "chdir()".
8871 (LoadNgpFile): check if the file is readable or not.
8872 (LoadNgpFile): the filename is always UTF-8.
8873 (CheckIniFile): get home directory from "system" object.
8874 (ErrorMessage): use "g_strerror()" instead of "strerror()".
8875
8876 * src/gtk/ox11menu.c (menumenu): convert filename string from
8877 UTF-8.
8878 (menumenu): call "hide_console()" and "resotre_console()" before
8879 and after call "application()" respectively.
8880 (SetCaption): the filename is always UTF-8.
8881
8882 * src/gtk/ogra2cairofile.c (create_cairo, gra2cairofile_output):
8883 convert filename string from UTF-8.
8884
8885 * src/gtk/main.c (check_console, hide_console, resotre_console):
8886 added.
8887 (nallocconsole, exec_console): use "g_unlink()" instead of
8888 "unlink()".
8889 (set_dir_defs, set_path_env): added.
8890 (main): don't use third argument.
8891 (main): call "g_thread_init()", "gdk_threads_init()" and
8892 "gdk_threads_enter()".
8893 (main): call "set_dir_defs()" when "WINDOWS" is defined.
8894 (main): use "g_getenv()" instead of "getenv()".
8895 (main): use "g_get_user_config_dir()".
8896 (main): check return value of "exeobj()" for "shell::shell".
8897 (get_file_list): use "nstat()" instead of "stat()".
8898
8899 * src/gtk/gtk_widget.c (filename_from_utf8, filename_to_utf8):
8900 remove.
8901 (entry_set_filename, entry_get_filename): don't convert file name.
8902
8903 * src/gtk/gtk_subwin.c (start_editing, modify_string): strings are
8904 always UTF-8.
8905 (sub_window_create): type hint for subwindows are
8906 "GDK_WINDOW_TYPE_HINT_UTILITY".
8907 (sub_window_create): call "gtk_window_set_transient_for()".
8908
8909 * src/shellux.c (testexpand): use "nstat()" instead of "stat()".
8910
8911 * src/shellcm.c (cmcd): use "nchdir()" instead of "chdir()".
8912 (cmbasename): use "getbasename()" instead of "basename()".
8913 (cmdirname): use "getdirname()" instead of "dirname()".
8914
8915 * src/shell.c (set_environ): use "g_getenv()" to get environment
8916 variable.
8917 (unlinkfile): use "g_unlink()" instead of "unlink()".
8918 (set_shellevloop): use "g_thread_create()" instead of
8919 "pthread_create()".
8920 (reset_shellevloop): use "g_thread_join()" instead of
8921 "pthread_join()".
8922 (readline_thread, nreadline): added.
8923 (shget): use "nreadline()" when readline library is available.
8924 (puts_localized): added.
8925 (shputstdout, shprintfstdout): use "puts_localized()".
8926 (getcmdline): convert strings to UTF-8 if the strings are not
8927 valid UTF-8.
8928 (expand): use "g_unlink()" instead of "unlink()".
8929 (expand): use function "strlen()" only once for a loop.
8930 (set_env_val, cmdexec, newshell): use "g_getenv()" instead of
8931 "getenv()".
8932 (proc_in_thread, quote_args): added.
8933 (cmdexec): use "g_strerror()" instead of "strerror()".
8934 (cmdexec): use "g_thread_create()" and "proc_in_thread()" to
8935 execute command.
8936 (show_system_error, system_in_thread, system_bg): added.
8937
8938 * src/osystem.c (nsystem): add field "compiler".
8939 (sysinit): set compiler name.
8940 (sysdone, sysunlink): use "g_unlink()" instead of "unlink()".
8941 (syscwd): use "nchdir()" instead of "chdir()".
8942
8943 * src/oprm.c (prmload): use "naccess()" instead of "access()".
8944
8945 * src/omerge.c (mergefile): call "get_utf8_filename()" for
8946 filename argument.
8947 (mergetime, mergedate): use "nstat()" instead of "stat()".
8948 (mergeload): use "naccess()" instead of "access()".
8949
8950 * src/oio.c (io_error): use "g_strerror()" instead of
8951 "strerror()".
8952
8953 * src/ogra2prn.c (gra2p_output): use "g_unlink()" instead of
8954 "unlink()".
8955
8956 * src/ofile.c (f2dfile): call "get_utf8_filename()" for filename
8957 argument.
8958 (f2dtime, f2ddate, get_mtime): use "nstat()" instead of "stat()".
8959 (f2dload): use "naccess()" instead of "access()".
8960 (f2doutputfile): use "g_strerror()" instead of "strerror()".
8961
8962 * src/object.c (error2, error22): call "g_locale_from_utf8()" for
8963 message string.
8964
8965 * src/nconfig.c (unlockconfig, make_backup, copyconfig): use
8966 "g_unlink()" instead of "unlink()".
8967 (openconfig, writecheckconfig, copyconfig): use "nstat()" instead
8968 of "stat()".
8969 (writecheckconfig): use "naccess()" instead of "access()".
8970
8971 * src/ioutil.c (changefilename): don't check Shit-JIS kanji
8972 code. Encodeing of the filename should be UTF-8.
8973 (path_to_win): added.
8974 (getfullpath): use "get_utf8_filename()".
8975 (getdisk): added.
8976 (getrelativepath): use "get_utf8_filename()".
8977 (get_utf8_filename, get_localized_filename): added.
8978 (getbasename): use "g_path_get_basename()".
8979 (getdirname): use "g_path_get_dirname()".
8980 (nsearchpath): call "g_find_program_in_path()".
8981 (nselectdir): use "nstat()" instead of "stat()".
8982 (nfopen): use "g_fopen()".
8983 (nstat, naccess, nchdir): added.
8984 (n_mkstemp): use "g_get_tmp_dir()".
8985
8986 * src/common.h (COMPILER_NAME): added.
8987 (WINDOWS): define if "__MINGW32__" is defined
8988
8989 * initfile/Ngraph.ini.in (help_browser): change format (file name
8990 is not included).
8991
8992 * driver/wmfapi.c (chk_write): added.
8993 (Polygon, Ellipse, Arc, Pie, Chord, SetPixel, SetPolyFillMode)
8994 (SetBkMode, SetTextAlign, SetTextCharacterExtra, TextOut)
8995 (SetTextColor, Rectangle, MoveTo, LineTo, SelectObject)
8996 (DeleteObject, SetWindowOrg, SetWindowExt, CloseMetaFile)
8997 (SetMapMode): use "chk_write()" instead of "write()".
8998 (CloseMetaFile): don't close the file but call "fseek()".
8999 (CreateMetaFile): add argument "dc".
9000 (CreateMetaFile): don't open a file.
9001
9002 * driver/gra2wmf.c (getboundingbox, draw): use function "strlen()"
9003 only once for each loops.
9004 (main): use environment variable "NGRAPHCONF" instead of
9005 "NGRAPHLIB".
9006 (main): use "g_mkstemp_full()" to create temporally file.
9007 (main): use "chk_write()" instead of "write()".
9008
9009 2010-03-31 Ito Hiroyuki <ZXB01226 at nifty.com>
9010
9011 * driver/gra2ps.c (getboundingbox, draw): use function "strlen()"
9012 only once for each loops.
9013 (main): use environment variable "NGRAPHCONF" instead of
9014 "NGRAPHLIB".
9015
9016 * mingw/windows_resource.rc: added.
9017
9018 * mingw/windows_make.sed: added.
9019
9020 * mingw/windows_demo.sed: added.
9021
9022 * mingw/windows.sh: added.
9023
9024 * mingw/pango.aliases: added.
9025
9026 * mingw/gtkrc: added.
9027
9028 * mingw/associate.bat: added.
9029
9030 * mingw/Makefile.am: added.
9031
9032 2010-03-19 Ito Hiroyuki <ZXB01226 at nifty.com>
9033
9034 * src/gtk/main.c (main): use "g_listenv()" instead of 3rd argument
9035 of "main()" function.
9036
9037 2010-03-04 Ito Hiroyuki <ZXB01226 at nifty.com>
9038
9039 * src/gtk/x11menu.c (reset_event): change name from "ResetEvent"
9040
9041 * Src/Gtk/x11gui.c (message_beep): change name from "MessageBeep"
9042 (message_box): change name from "MessageBox".
9043
9044 * src/gtk/x11commn.c (allocate_console): change name from
9045 "AllocConsole".
9046 (free_console): change name from "FreeConsol".
9047
9048 * src/gtk/main.c (reset_fifo, nallocconsole, reset_fifo)
9049 (nfreeconsole): use "nopen()" and "nclose()".
9050 (get_file_list): use "g_dir_open()", "g_dir_read_name()" and
9051 "g_dir_close()".
9052
9053 * src/gtk/ox11menu.h (DEFAULT_GEOMETRY): change name from
9054 "CW_USEDEFAULT".
9055
9056 * src/gtk/gtk_entry_completion.c (entry_completion_save)
9057 (entry_completion_load): use "nfopen()".
9058
9059 * src/strconv.c (str2utf8): use "g_iconv".
9060
9061 * src/object.c: change variable name form "GlovalLock" to
9062 "Glovallock".
9063
9064 * src/nconfig.c (lockconfig, openconfig, make_backup)
9065 (replaceconfig, removeconfig, copyconfig): use "nfopen()".
9066
9067 * src/ioutil.c (nscandir): use "g_dir_open()", "g_dir_read_name()"
9068 and "g_dir_close()".
9069 (nscandir): remove 3rd argument.
9070 (nopen): use "g_open()".
9071 (nfopen): use "g_fopen()".
9072 (n_mkstemp): use "g_mkstemp()".
9073
9074 * configure.in: check library "pthreadGC2".
9075
9076 2010-02-24 Ito Hiroyuki <ZXB01226 at nifty.com>
9077
9078 * src/ofile.c (draw_interpolation): added.
9079 (draw_fit): use "draw_interpolation()".
9080
9081 2010-02-23 Ito Hiroyuki <ZXB01226 at nifty.com>
9082
9083 * src/math/math_expression.c (math_parameter_expression_new): set
9084 errorcode to "err" when the variable "prm" is NULL.
9085
9086 * src/ofit.c (ERR_INCONSISTENT_DATA_NUM): added.
9087 (fiterrorlist): add error message.
9088 (fit_put_weight_func): fix arguments of the function
9089 "ofile_create_math_equation()".
9090
9091 * src/ofile.c (calc_fit, draw_fit): added.
9092 (fitout): use "calc_fit()" and "draw_fit()".
9093 (ofile_create_math_equation): add argument "use_const".
9094 (set_equation): fix second argument of "set_user_fnc()" from "g"
9095 to "h".
9096 (set_const): add arguments "const_id" and "need2pass".
9097 (f2ddraw): constant "FIRST" for equatiosn "fp->codex[0]" and
9098 "fp->codey[0]" is TRUE.
9099
9100 2010-02-22 Ito Hiroyuki <ZXB01226 at nifty.com>
9101
9102 * src/ofile.c (fitout): use "calc_weight()" to calculate weight.
9103 (calc_weight): added.
9104
9105 * src/object.c (moveobj): move object only when id of instances of
9106 "sid" and "did" are exist.
9107 (_newobj, _delobj, _copyobj): remove.
9108
9109 * src/math/math_function.h.in: add functions "prog1" and "prog2".
9110
9111 * src/math/math_basic_function.c (math_func_prog1)
9112 (math_func_prog2): added.
9113
9114 2010-02-19 Ito Hiroyuki <ZXB01226 at nifty.com>
9115
9116 * src/math/math_expression.c (calc): divided by zero is not
9117 error. returned value is 'NaN'.
9118
9119 2010-02-18 Ito Hiroyuki <ZXB01226 at nifty.com>
9120
9121 * src/math/math_function.h.in: add function "progn".
9122
9123 * src/math/math_basic_function.c (math_func_progn): add
9124
9125 * src/oaxis.c (numformat, draw_numbering, numbering): use
9126 "snprintf()".
9127 (draw_numbering): delete argument "num" and add argument "draw".
9128 (draw_numbering): print position, direction and numbering value
9129 when "draw" is false.
9130 (numbering): add argument "draw".
9131 (axis_get_numbering): added.
9132 (axis): add field "get_numbering".
9133 (draw_numbering_normalize): added.
9134 (draw_numbering): use "draw_numbering_normalize()".
9135
9136 * driver/ngp2.in: add "-d dpi" option.
9137
9138 2010-02-16 Ito Hiroyuki <ZXB01226 at nifty.com>
9139
9140 * src/gtk/x11file.c (load_tab_create): type of the spin button
9141 "d->load.finalline" is "SPIN_BUTTON_TYPE_INT".
9142
9143 2010-02-15 Ito Hiroyuki <ZXB01226 at nifty.com>
9144
9145 * src/ofile.c (ofile_create_math_equation): change name from
9146 "create_math_equation()" and this function is now global.
9147 (fitout): call "math_equation_parse()", "set_const()" and
9148 "math_equation_optimize()" for weight function.
9149
9150 * src/ofit.c (fit_put_weight_func): added.
9151 (show_eqn_error): added.
9152 (fit): check "weight_func".
9153 (fitput): use "show_eqn_error()".
9154
9155 2010-02-10 Ito Hiroyuki <ZXB01226 at nifty.com>
9156
9157 * src/gtk/x11axis.c (ZoomDialogSetupItem): use
9158 "spin_entry_set_val()" .
9159 (ZoomDialog): don't initialize "data->zoom".
9160
9161 * src/gtk/x11dialg.c (initdialog): initialize "DlgZoom.zoom"
9162
9163 2010-02-05 Ito Hiroyuki <ZXB01226 at nifty.com>
9164
9165 * src/gtk/x11commn.c (get_save_opt): return "IDOK" (not
9166 "IDCANCEL") when both "fnum" and "mnum" is negative.
9167
9168 2010-02-03 Ito Hiroyuki <ZXB01226 at nifty.com>
9169
9170 * src/gtk/gtk_liststore.c (list_store_remove_selected_cb): set
9171 cursor on the first selected path.
9172
9173 2010-02-02 Ito Hiroyuki <ZXB01226 at nifty.com>
9174
9175 * src/gtk/x11view.c (show_focus_line_arc, ShowPoints): call
9176 "gdk_draw_arc()" only when "Menulocal.do_not_use_arc_for_draft" is
9177 false.
9178
9179 * src/gtk/ox11menu.h (menulocal): add member
9180 "do_not_use_arc_for_draft".
9181
9182 * src/gtk/ox11menu.c (MenuConfigViewer): add setting related to
9183 "do_not_use_arc_for_draft".
9184
9185 * src/gtk/x11lgnd.c (renderer_func, column_edited)
9186 (column_0_edited, column_1_edited, insert_column)
9187 (set_delete_button_sensitivity): added.
9188 (points_setup): use "GtkTreeView".
9189 (LegendCurveDialogSetup, LegendPolyDialogSetup)
9190 (LegendArrowDialogSetup): change layout.
9191
9192 * src/gtk/x11dialg.c (SetObjPointsFromText)
9193 (SetTextFromObjPoints): use "GtkTreeView".
9194 (set_obj_points_from_text, set_entry_from_obj_point): added.
9195 (SetObjFieldFromStyle): use "set_obj_points_from_text()" instead
9196 of "SetObjPointsFromText()".
9197 (SetStyleFromObjField): use "set_entry_from_obj_point()" instead
9198 of "SetTextFromObjPoints()".
9199
9200 2010-01-26 Ito Hiroyuki <ZXB01226 at nifty.com>
9201
9202 * src/gtk/x11graph.c (DirectoryDialogSetup): use "GtkTable"
9203 instead of "GtkHBox".
9204 (DirectoryDialogSetup): add current directory label.
9205
9206 * src/gtk/x11dialg.h (DirectoryDialog): add member "dir_label".
9207
9208 2010-01-22 Ito Hiroyuki <ZXB01226 at nifty.com>
9209
9210 * src/gtk/x11view.c (EvalDialogSetup): set "d->ok_button" as
9211 "GTK_STOCK_CLOSE".
9212
9213 * src/gtk/x11opt_proto.h (CREATE_NAME): set "d->ok_button" as
9214 "GTK_STOCK_CLOSE".
9215
9216 * src/gtk/x11gui.c (DialogExecute): initialize "data->ok_button".
9217 (DialogExecute): use "data->ok_button" for "ok" button.
9218
9219 * src/gtk/x11file.c (MathDialogSetup): set "d->ok_button" as
9220 "GTK_STOCK_CLOSE".
9221
9222 * src/gtk/x11dialg.h (DIALOG_PROTOTYPE): add member "ok_button".
9223
9224 2010-01-21 Ito Hiroyuki <ZXB01226 at nifty.com>
9225
9226 * src/gtk/x11print.c (init_print): added.
9227 (CmOutputPrinter): "begin_print" signal is connected to the
9228 function "init_print()".
9229 (CmOutputPrinter): don't call
9230 "gtk_print_operation_set_current_page()".
9231
9232 2010-01-04 Ito Hiroyuki <ZXB01226 at nifty.com>
9233
9234 * src/gra.h (CURVE_OBJ_USE_EXPAND_BUFFER): added.
9235
9236 * src/ocurve.c (curveinit): initialize "_points" field when
9237 "CURVE_OBJ_USE_EXPAND_BUFFER" is TRUE.
9238 (curve_expand, curve_expand_points, curve_clear)
9239 (curve_set_points, curve_flip, curve_move, curve_rotate)
9240 (curve_zoom, curve_change): added.
9241 (curve): add field "_points".
9242 (curvedraw, curvebbox, curvematch): use "_points" field when
9243 "CURVE_OBJ_USE_EXPAND_BUFFER" is TRUE.
9244
9245 * src/object.c (arrayclear, arrayclear2): added.
9246
9247 2009-12-25 Ito Hiroyuki <ZXB01226 at nifty.com>
9248
9249 * src/ofile.c (file_color): allow negative or greater than 255 for
9250 "val".
9251
9252 * src/gtk/x11view.c (EvalDialogSetup): call
9253 "gtk_scrolled_window_set_policy()".
9254
9255 * src/gtk/x11file.c (MathDialogSetup, create_user_fit_frame)
9256 (move_tab_create, mask_tab_create, FileDialogSetup): call
9257 "gtk_scrolled_window_set_policy()".
9258
9259 * src/gtk/ogra2x11.c (gtkinit): call
9260 "gtk_scrolled_window_set_policy()".
9261
9262 * src/gtk/x11dialg.c (SelectDialogSetup, CopyDialogSetup): call
9263 "gtk_scrolled_window_set_policy()".
9264
9265 * src/gtk/ogra2x11.c (gtkinit): call
9266 "gtk_scrolled_window_set_policy()".
9267
9268 * src/gtk/gtk_subwin.c (sub_window_create): call
9269 "gtk_scrolled_window_set_policy()".
9270 (sub_window_create): call "gtk_window_set_skip_taskbar_hint()"
9271
9272 * src/gtk/x11file.c (create_user_fit_frame): initial values and
9273 derivative equations are shown in scrolled window.
9274
9275 2009-12-24 Ito Hiroyuki <ZXB01226 at nifty.com>
9276
9277 * src/gtk/x11lgnd.c (legend_list_set_val): use
9278 "legend_list_set_property()".
9279 (legend_list_set_color, legend_list_set_property): added.
9280
9281 * src/gtk/x11menu.c (create_toolbar): use
9282 "gtk_orientable_set_orientation()" instead of
9283 "gtk_toolbar_set_orientation()" is the version of the GTK+ is
9284 greater or equal to 2.16.
9285
9286 * src/gtk/gtk_subwin.c (set_cell_renderer_cb)
9287 (set_editable_cell_renderer_cb, set_combo_cell_renderer_cb)
9288 (set_obj_cell_renderer_cb): use "gtk_cell_layout_get_cells()"
9289 instead of "gtk_tree_view_column_get_cell_renderers()".
9290
9291 * src/gtk/x11file.c (FitDialogSetSensitivity): don't change
9292 sensitivity of widgets related to division settings.
9293 (FitDialogSetup): don't use "toggled" signal of
9294 "d->interpolation".
9295
9296 * src/gtk/x11dialg.h (struct FitDialog): remove member "div_box"
9297
9298 2009-12-22 Ito Hiroyuki <ZXB01226 at nifty.com>
9299
9300 * src/gtk/x11print.c: initialize "DriverDialogBrowseCB" as NULL
9301 when "USE_ENTRY_ICON" is FALSE.
9302 (DriverDialogSelectCB): now "ext" of "struct extprinter" is not
9303 include ".".
9304
9305 * src/gtk/x11opt.c: initialize "SetScriptDialogBrowse" and
9306 "SetDriverDialogBrowse" as NULL when "USE_ENTRY_ICON" is FALSE.
9307
9308 * src/gtk/gtk_widget.c: initialize "entry_icon_file_select" as
9309 NULL when "USE_ENTRY_ICON" is FALSE.
9310
9311 2009-12-18 Ito Hiroyuki <ZXB01226 at nifty.com>
9312
9313 * src/gtk/x11file.c (set_user_fit_sensitivity)
9314 (create_user_fit_frame): added.
9315 (FitDialogSetSensitivity): use "set_user_fit_sensitivity()".
9316 (FitDialogSetup): use "GtkTable" instead of "GtkHBox" or
9317 "GtkVBox".
9318 (FitDialogResult): call "math_equation_add_parameter()".
9319 (FitDialogSave, FitDialogLoad, FitDialogCopy): connected to
9320 "clicked" signal.
9321
9322 2009-12-17 Ito Hiroyuki <ZXB01226 at nifty.com>
9323
9324 * src/gtk/gtk_widget.c (create_file_entry_with_cb): added.
9325
9326 * src/gtk/x11dialg.h (struct FileMath, struct FileLoad)
9327 (struct FileMask, struct FileMove): added.
9328 (struct FileDialog): add member "math", "load", "mask" and "move"
9329
9330 * src/gtk/x11file.c (move_tab_setup_item, move_tab_copy)
9331 (move_tab_create, move_tab_set_value, mask_tab_setup_item)
9332 (mask_tab_copy, mask_tab_create, mask_tab_set_value)
9333 (load_tab_setup_item, load_tab_copy, load_tab_create)
9334 (load_tab_set_value, math_tab_setup_item, math_tab_copy)
9335 (math_tab_create, math_tab_set_value, file_setup_item)
9336 (set_fit_button_label, plot_tab_setup_item, file_settings_copy)
9337 (plot_tab_create, file_dialog_show_tab, set_headlines)
9338 (plot_tab_set_value): added.
9339 (FileDialogSetup): use "set_headlines()".
9340
9341 * src/gtk/x11graph.c (PageDialogSetup): use "GtkTable" instead of
9342 "GtkHBox" or "GtkVBox".
9343
9344 * src/gtk/x11lgnd.c (LegendLineCB, LegendRectCB, LegendArcCB): use
9345 "g_strdup_printf()" instead of "g_malloc()" and "snprintf()".
9346 (legend_dialog_set_sensitive): added.
9347 (legend_dialog_setup_item): call "legend_dialog_set_sensitive()".
9348 (legend_copy_clicked): added.
9349 (width_setup, points_setup, style_setup, miter_setup)
9350 (join_setup, color_setup, color2_setup, LegendCurveDialogSetup)
9351 (LegendPolyDialogSetup, LegendArrowDialogSetup)
9352 (LegendRectDialogSetup, LegendArcDialogSetup)
9353 (legend_dialog_setup_sub, LegendTextDialogSetup)
9354 (LegendTextDefDialogSetup): use "GtkTable" instead of "GtkHBox" or
9355 "GtkVBox".
9356
9357 * src/gtk/x11lgndx.c (LegendGaussDialogSetup): use "GtkTable"
9358 instead of "GtkHBox" or "GtkVBox".
9359
9360 * src/gtk/x11merge.c (MergeDialogCopy): connected to "clicked"
9361 signal.
9362 (MergeDialogSetup): use "GtkTable" instead of "GtkHBox" or
9363 "GtkVBox".
9364 (MergeDialogClose): remove case for "IDCOPY".
9365
9366 * src/gtk/x11opt.c (ViewerDialogSetup, ExViewerDialogSetup)
9367 (MiscDialogSetup, SetDriverDialogSetup, SetScriptDialogSetup): use
9368 "GtkTable" instead of "GtkHBox" or "GtkVBox".
9369 (SetDriverDialogSetup, SetScriptDialogSetup): use
9370 "create_file_entry_with_cb()" instead of "create_text_entry()".
9371 (SetScriptDialogBrowse, SetDriverDialogBrowse): connected to
9372 "icon-release" signal.
9373
9374 * src/gtk/x11print.c (DriverDialogSetup): use "GtkTable" instead
9375 of "GtkHBox" or "GtkVBox".
9376 (DriverDialogSetup): use "create_file_entry_with_cb()" instead of
9377 "create_text_entry()".
9378 (DriverDialogBrowseCB): connected to "icon-release" signal.
9379
9380 2009-12-11 Ito Hiroyuki <ZXB01226 at nifty.com>
9381
9382 * src/gtk/x11opt.c (MiscDialogSetup): use "GtkTable" instead of
9383 "GtkHBox" and "GtkVBox".
9384
9385 2009-12-10 Ito Hiroyuki <ZXB01226 at nifty.com>
9386
9387 * src/gtk/x11file.c (select_color): use "ndialog_run()" instead of
9388 "gtk_dialog_run()".
9389
9390 * src/gtk/gtk_widget.c (show_color_sel): use "ndialog_run()"
9391 instead of "gtk_dialog_run()".
9392
9393 * src/gtk/x11opt.c (PrefFontDialogUpdate, PrefFontDialogAdd): use
9394 "ndialog_run()" instead of "gtk_dialog_run()".
9395
9396 * src/gtk/x11gui.c (DialogExecute): use "DnDLock" instead of
9397 "GlobalLock".
9398 (ndialog_run): added.
9399 (DialogExecute, MessageBox, DialogInput, DialogRadio)
9400 (DialogCombo, DialogComboEntry, DialogSpinEntry, DialogCheck)
9401 (FileSelectionDialog): use "ndialog_run()" instead of
9402 "gtk_dialog_run()".
9403
9404 * src/gtk/x11menu.c: add gloval variable "DnDLock".
9405
9406 * src/gtk/x11view.c (drag_drop_cb): check "DnDLock".
9407
9408 * src/gtk/x11lgndx.c (enum LEGEND_DIRECTION)
9409 (LEGEND_DIRECTION_NUM): add
9410 (LegendGaussDialogPaint, LegendGaussDialogClose): use "switch"
9411 instead of "if".
9412 (LegendGaussDialogSetup): use "GtkTable" instead of "GtkHBox" and
9413 "GtkVBox".
9414
9415 * src/gtk/x11dialg.h: add definition of structs "AxisBase",
9416 "AxisPos", "AxisFont", "AxisNumbering" and "AxisGauge".
9417 (struct AxisDialog): add member "tab", "del_btn", "tab_active",
9418 "base", "font", "position", "gauge" and "numbering".
9419
9420 * src/gtk/x11dialg.c: remove gloval variables "DlgAxisBase",
9421 "DlgAxisPos", "DlgNum", "DlgAxisFont" and "DlgGauge".
9422 (SetObjFieldFromWidget): focus the widget when an error is
9423 occurred.
9424
9425 * src/gtk/x11axis.c (bg_button_toggled): added.
9426 (GridDialogSetupItem): call "bg_button_toggled()".
9427 (GridDialogSetup): "toggled" signal is connected to
9428 "bg_button_toggled()" .
9429 (grid_copy_clicked): change name from "GridDialogCopy()".
9430 (gauge_syle_setup, GridDialogSetup, SectionDialogSetup)
9431 (CrossDialogSetup): use "GtkTable" instead of "GtkHBox" and
9432 "GtkVBox".
9433 (scale_tab_setup_item, scale_tab_copy_clicked, scale_tab_create)
9434 (baseline_tab_set_value, baseline_tab_setup_item)
9435 (baseline_tab_copy_clicked, baseline_tab_create)
9436 (gauge_tab_set_value, gauge_tab_setup_item)
9437 (gauge_tab_copy_clicked, gauge_tab_create)
9438 (numbering_tab_set_value, numbering_tab_setup_item)
9439 (numbering_tab_copy_clicked, numbering_tab_create)
9440 (font_tab_set_value, font_tab_setup_item, font_tab_copy_clicked)
9441 (font_tab_create, position_tab_set_value)
9442 (position_tab_setup_item, position_tab_copy_clicked)
9443 (position_tab_create, axis_dialog_show_tab): added.
9444 (AxisDialogSetup): use "GtkNotebook".
9445 (scale_tab_set_value): added.
9446 (AxisDialogClose): call "gtk_notebook_set_current_page()" when
9447 errors are occurred.
9448 (AxisDialogSetup): sensitivity of the delete button is depemd on
9449 "d->CanDel".
9450
9451 * src/gtk/gtk_widget.c (add_widget_to_table_sub)
9452 (add_widget_to_table, add_copy_button_to_box): added.
9453
9454 2009-12-05 Ito Hiroyuki <ZXB01226 at nifty.com>
9455
9456 * configure.in: set "AM_SILENT_RULES".
9457
9458 2009-11-30 Ito Hiroyuki <ZXB01226 at nifty.com>
9459
9460 * src/osystem.c (sysinit): call "gsl_set_error_handler_off()" when
9461 "HAVE_LIBGSL" is defined.
9462
9463 * src/math/math_basic_function.c (math_func_icgam)
9464 (math_func_gamma, math_func_erfc, math_func_beta, math_func_lgn)
9465 (math_func_pn, math_func_yn, math_func_jn, math_func_ei): use GSL
9466 function when available.
9467 (math_func_icbeta, math_func_erf, math_func_zeta)
9468 (math_func_zetam1, math_func_zeta_int, math_func_zetam1_int)
9469 (math_func_ynu, math_func_jnu, math_func_inu, math_func_knu)
9470 (math_func_in, math_func_kn, math_func_yl, math_func_jl): added.
9471
9472 2009-11-26 Ito Hiroyuki <ZXB01226 at nifty.com>
9473
9474 * src/omath.c (parse_original_formula): this function is not used
9475 if "NEW_MATH_CODE" is not defined.
9476
9477 * src/shellcm.c (cmdexpr): variable "err_msg" is always used.
9478
9479 * src/gtk/main.c (obj_add_func_ary[]): add "addio".
9480
9481 * src/oio.c: added.
9482
9483 2009-11-24 Ito Hiroyuki <ZXB01226 at nifty.com>
9484
9485 * src/math/math_equation.c (clear_pos_func_buf): added.
9486 (math_equation_clear): use "clear_pos_func_buf()".
9487 (math_equation_parse): call "clear_pos_func_buf()" if
9488 "eq->pos_func_num" is greater than zero.
9489
9490 * src/math/math_basic_function.c (math_func_asin)
9491 (math_func_acos): minimum value of "v" is -1 (not 0).
9492 (math_func_not): don't have to check "exp->buf[1]".
9493 (math_func_gt): comparing condition is ">" (not ">=").
9494 (math_func_pn): "x" is "double" (not "int").
9495 (math_func_pn): check maximum value of "x".
9496 (math_func_rsort): 3rd argument of the function "qsort" is
9497 "sizeof(MathValue)" (not "sizeof(double)").
9498
9499 * src/shell.c (str_calc): set rcode as "MNAN" or "MUNDEF" when
9500 "value.type" is "MATH_VALUE_NAN" or "MATH_VALUE_UNDEF"
9501 respectively.
9502 (str_calc): initialize "value" and "val".
9503
9504 2009-11-23 Ito Hiroyuki <ZXB01226 at nifty.com>
9505
9506 * src/math/math_basic_function.c (math_func_acos)
9507 (math_func_asin): initialize variable "v".
9508
9509 2009-11-21 Ito Hiroyuki <ZXB01226 at nifty.com>
9510
9511 * src/math/math_parser.c (parse_const_def_expression): return NULL
9512 when "eq->func_def" is TRUE.
9513 (parse_const_def_expression): set and restore "eq->func_def"
9514 before and after call the function "parse_expression()".
9515 (parse_expression_list): don't call "math_expression_free()"
9516 before call "math_equation_set_parse_error()".
9517 (parse_expression_list): return NULL when "token->type" is
9518 "MATH_TOKEN_TYPE_CONST" and "inside_block" is TRUE.
9519
9520 * src/math/math_error.h (MATH_ERROR_INVALID_CDEF)
9521 (MATH_ERROR_PRM_IN_DEF): added.
9522
9523 * src/math/math_error.c (ERR_MSG_INVALID_C, ERR_MSG_PRM_IN_DEF):
9524 added.
9525 (ERR_MSG_POS_FUNC): change message.
9526 (math_err_get_error_message): add case for
9527 "MATH_ERROR_INVALID_CDEF" and "MATH_ERROR_PRM_IN_DEF#.
9528
9529 * src/math/math_equation.c (math_equation_get_parameter): add
9530 argument "int *err" and set error id when "err" is not NULL.
9531
9532 * src/ofile.c (put_func): don't substitute return value of the
9533 function "set_equation()" when rcode is TRUE.
9534
9535 * src/object.c (ERR_MSG_BUF_SIZE): change buffer size.
9536 (error, error2, error22): change maximumlength of an error
9537 message.
9538
9539 2009-11-20 Ito Hiroyuki <ZXB01226 at nifty.com>
9540
9541 * src/ofile.c (MATH_CONST_NUM): add constant "MASK" and "MOVE".
9542 (set_const): set constant "MASK" and "MOVE".
9543
9544 2009-11-17 Ito Hiroyuki <ZXB01226 at nifty.com>
9545
9546 * src/math/math_parser.c (parse_primary_expression): return NULL
9547 when the type of the token is "MATH_TOKEN_TYPE_EOEQ".
9548
9549 * src/gtk/x11commn.c (AddNgpFileList): check if the filename is
9550 valid UTF-8 string.
9551
9552 * src/gtk/x11menu.c (show_file_menu_cb): change filename to UTF-8.
9553
9554 * src/gtk/x11opt.c (SetScriptDialogBrowse)
9555 (SetDriverDialogBrowse): use "entry_set_filename()".
9556
9557 * src/gtk/gtk_widget.c (entry_icon_file_select): use
9558 "entry_set_filename()".
9559
9560 * src/gtk/x11opt.c (set_scrpt_file, SetDriverDialogClose): use
9561 "entry_get_filename()".
9562
9563 * src/gtk/x11dialg.c (SetObjFieldFromText): change filename from
9564 UTF-8.
9565
9566 * src/gtk/gtk_widget.c (entry_get_filename, entry_set_filename):
9567 added.
9568
9569 * src/gtk/gtk_subwin.c (modify_string): change filename from
9570 UTF-8.
9571
9572 * src/gtk/x11merge.c (merge_list_set_val): change filename to
9573 UTF-8.
9574
9575 * src/gtk/x11gui.c (file_dialog_set_current_neme): change filename
9576 to UTF-8.
9577
9578 * src/gtk/x11file.c (file_list_set_val): change filename to UTF-8.
9579
9580 * src/gtk/x11dialg.c (SetTextFromObjField): change filename to UTF-8.
9581
9582 * src/gtk/x11commn.c (check_overwrite, LoadNgpFile): change
9583 filename to UTF-8.
9584
9585 * src/gtk/ox11menu.c (SetCaption): change filename to UTF-8.
9586
9587 * src/gtk/gtk_widget.c (entry_set_filename): change filename to UTF-8.
9588
9589 * src/gtk/gtk_subwin.c (file_select, start_editing): change
9590 filename to UTF-8.
9591
9592 * src/ofile.c (set_data_progress): don't show the filename.
9593
9594 * src/gtk/gtk_widget.c (filename_from_utf8, filename_to_utf8): added.
9595
9596 2009-11-16 Ito Hiroyuki <ZXB01226 at nifty.com>
9597
9598 * src/nstring.c (nstrdup): remove (use g_strdup instead).
9599
9600 * src/object.c (memalloc, memrealloc, memfree): remove (use
9601 g_malloc, g_realloc and g_free instead).
9602
9603 2009-11-14 Ito Hiroyuki <ZXB01226 at nifty.com>
9604
9605 * src/strconv.h: moved from "src/gtk/strconv.c".
9606
9607 * src/strconv.c: moved from "src/gtk/strconv.c".
9608
9609 * src/math/math_parser.c (parse_primary_expression)
9610 (parse_const_def_expression): "*err" is "MATH_ERROR_EOEQ" when the
9611 type of the token is "MATH_TOKEN_TYPE_EOEQ".
9612
9613 * src/gtk/strconv.c (utf8_to_sjis, sjis_to_utf8): use "CP932"
9614 instead of "shift-jis"
9615
9616 2009-11-12 Ito Hiroyuki <ZXB01226 at nifty.com>
9617
9618 * src/omath.c (parse_original_formula): added.
9619 (mformula): use "parse_original_formula()".
9620
9621 2009-11-11 Ito Hiroyuki <ZXB01226 at nifty.com>
9622
9623 * src/shellcm.c (str_calc): remove.
9624
9625 * src/shell.c (str_calc): added.
9626
9627 * src/object.c (getargument): use "str_calc()".
9628
9629 * src/gra.c (GRAexpandmath): use "str_calc()".
9630
9631 * src/ofile.c (put_func): restore old equation when new equation
9632 causes error.
9633
9634 2009-11-10 Ito Hiroyuki <ZXB01226 at nifty.com>
9635
9636 * src/math/math_parser.c (parse_const_def_expression): set error
9637 code.
9638 (parse_const_def_expression): fix condition from "token->data.op
9639 == MATH_OPERATOR_TYPE_EQ" to "token->data.op !=
9640 MATH_OPERATOR_TYPE_ASSIGN"
9641
9642 2009-11-07 Ito Hiroyuki <ZXB01226 at nifty.com>
9643
9644 * src/gtk/x11commn.c (get_save_opt): return "IDOK" or "IDCANCEL".
9645 (GraphSave): return "IDCANCEL" when "get_save_opt()" returns
9646 "IDCANCEL".
9647
9648 2009-11-06 Ito Hiroyuki <ZXB01226 at nifty.com>
9649
9650 * src/gtk/x11view.c (mouse_down_move_data, move_data_cancel):
9651 first argument of "MessageBox()" is NULL.
9652
9653 * src/gtk/x11print.c (CmOutputPrinter): first argument of
9654 "MessageBox()" is NULL.
9655
9656 * src/gtk/x11opt.c (set_scrpt_option, CmOptionSaveNgp): first
9657 argument of "MessageBox()" is NULL.
9658
9659 * src/gtk/x11menu.c: (static GtkWidget *CurrentWindow)
9660 (set_current_window, get_current_window): add
9661 (PutStderr): first argument of "MessageBox()" is NULL.
9662
9663 * src/gtk/x11gui.c (DialogExecute): save and restore current window.
9664 (MessageBox): use "get_current_window()" as parent if "parent" is NULL.
9665
9666 * src/gtk/x11commn.c (ErrorMessage): first argument of
9667 "MessageBox()" is NULL.
9668
9669 * src/math/math_error.c (math_err_get_error_message): convert
9670 error message from utf-8 to locale.
9671
9672 * src/gtk/x11lgnd.c (pos_edited, width_edited): don't show error
9673 message.
9674
9675 * src/gtk/x11axis.c (pos_edited_common): don't show error message.
9676 (pos_edited_common): change first argument (from "struct
9677 objlist *" to "struct SubWin*").
9678
9679 * src/gtk/gtk_widget.c (spin_change_value_cb): don't show error
9680 message (because Gtk+ shows following error message).
9681 Gtk-WARNING **: GtkEntry - did not receive focus-out-event. If you
9682 connect a handler to this signal, it must return FALSE so the
9683 entry gets the event as well
9684
9685 2009-11-04 Ito Hiroyuki <ZXB01226 at nifty.com>
9686
9687 * src/ofile.c (put_func): change 5th argument from "int type" to
9688 "char *field".
9689
9690 * src/ofit.c (fitput): use "math_err_get_error_message()".
9691
9692 2009-11-03 Ito Hiroyuki <ZXB01226 at nifty.com>
9693
9694 * src/math/math_expression.c (math_constant_definition_expression_new):
9695 set error id to "*err" when the constant is already defined.
9696
9697 * src/math/math_error.c (ERR_MSG_CONST_EXIST)
9698 (ERR_MSG_CALCULATION): added.
9699
9700 * src/math/math_equation.c (math_equation_set_const_error)
9701 (math_equation_get_const_name): added.
9702 (math_equation_add_const_definition): add argument "int *err".
9703
9704 * src/math/math_error.c (check_error_position)
9705 (math_err_get_error_message, ERR_MSG_FUNC_NEST)
9706 (ERR_MSG_UNEXP_OP, ERR_MSG_UNEXP_TOK, ERR_MSG_ARG_NUM)
9707 (ERR_MSG_MISS_RP, ERR_MSG_MISS_RC, ERR_MSG_MISS_RB)
9708 (ERR_MSG_UNKNOWN_F, ERR_MSG_INVARID_F, ERR_MSG_INVARID_P)
9709 (ERR_MSG_MEMORY, ERR_MSG_UNKNOWN, ERR_MSG_POS_FUNC): added.
9710
9711 * src/math/math_parser.c (parse_array_expression)
9712 (parse_primary_expression, get_argument, create_math_func)
9713 (parse_unary_expression, parse_expression)
9714 (parse_expression_list): call "math_equation_set_parse_error()",
9715 "math_equation_set_func_arg_num_error()" or
9716 "math_equation_set_func_error()" when parse error.
9717
9718 * src/math/math_equation.h (_struct _math_equation): add member
9719 "err_info".
9720
9721 * src/math/math_equation.c (math_equation_new): use "memset()" to
9722 initialize struct.
9723 (math_equation_set_parse_error)
9724 (math_equation_set_func_arg_num_error)
9725 (math_equation_set_func_error): added.
9726 (math_equation_parse): initialize "eq->err_info".
9727
9728 * src/gtk/x11lgnd.c (width_edited, pos_edited): add 4th argument
9729 for the function "str_calc()".
9730 (width_edited, pos_edited): show message on an error.
9731
9732 * src/gtk/x11axis.c (pos_edited_common): add 4th argument for the
9733 function "str_calc()".
9734 (pos_edited_common): show message on an error.
9735
9736 * src/gtk/gtk_widget.c (spin_change_value_cb): add 4th argument
9737 for the function "str_calc()".
9738 (spin_change_value_cb): show message on an error.
9739
9740 * src/gtk/gtk_subwin.c (numeric_cb): add 4th argument for the
9741 function "str_calc()".
9742
9743 * src/shellcm.c (str_calc): add argument "char **err_msg".
9744 (str_calc): set error message when "*err_msg" is not NULL.
9745 (cmdexpr): show error message created in new math code.
9746
9747 * src/ofile.c (put_func): show message on an error.
9748 (f2dputmath): don't show error message.
9749
9750 2009-10-27 Ito Hiroyuki <ZXB01226 at nifty.com>
9751
9752 * addin/legend.tcl (savescript): move frame rectangle to the top
9753 of the instances.
9754 (makescript): bug fix: fix typo "in" to "int".
9755
9756 2009-10-22 Ito Hiroyuki <ZXB01226 at nifty.com>
9757
9758 * src/ofile.c (struct f2dlocal): add member "total_line",
9759 (f2dinit): initialize "f2dlocal->total_line".
9760 (set_final_line): added.
9761 (check_mtime, getminmaxdata): call "set_final_line()".
9762
9763 2009-10-21 Ito Hiroyuki <ZXB01226 at nifty.com>
9764
9765 * src/shellcm.c (str_calc): add code for new math code.
9766
9767 * src/omath.c (mlocalclear, minit, mdone): add code for new math
9768 code.
9769 (create_func_def_str): added.
9770 (mformula, mcalc): add code for new math code.
9771
9772 * src/ofit.c (fitdone, fitput, fituser): add code for new math
9773 code.
9774
9775 * src/ofile.c (struct f2ddata_buf): add members "colr2", "colg2"
9776 and "colb2" when "NEW_MATH_CODE" is true.
9777 (struct f2ddata): add some members when "NEW_MATH_CODE" is true.
9778 (struct f2dload): add some members when "NEW_MATH_CODE" is true.
9779 (file_color, file_rgb_sub, file_rgb, file_rgb2, file_hsb_sub)
9780 (file_hsb, file_hsb2, file_marksize, file_marktype, struct funcs)
9781 (add_file_func): added.
9782 (opendata, reopendata, f2dputmath): add code for new math code.
9783 (create_func_def_str, set_user_fnc, set_equation, put_func): added.
9784 (create_math_equation): added.
9785 (f2dinit, f2ddone, getdataarray, getdata_get_other_files): add
9786 code for new math code.
9787 (set_var, set_const, file_calculate, set_const_all): added.
9788 (getdata_sub2, getdata_sub1, getdata, getdata2, getdataraw)
9789 (getminmaxdata, markout, rectout, barout, fitout, f2ddraw)
9790 (f2devaluate, f2dgetdataraw, f2dstat, f2dstat2, f2dboundings)
9791 (f2doutputfile): add code for new math code.
9792
9793 * src/object.c (getargument): add code for new math code.
9794
9795 * src/gra.c (GRAexpandmath): add code for new math code.
9796
9797 * src/gtk/x11file.c (FitDialogResult): add code for new math code.
9798
9799 * src/math/parse_bin_expression.h: added.
9800
9801 * src/math/math_scanner.h: added.
9802
9803 * src/math/math_scanner.c: added.
9804
9805 * src/math/math_parser.h: added.
9806
9807 * src/math/math_parser.c: added.
9808
9809 * src/math/math_operator.rb: added.
9810
9811 * src/math/math_operator.h.in: added.
9812
9813 * src/math/math_operator.h: added.
9814
9815 * src/math/math_operator.c: added.
9816
9817 * src/math/math_function.rb: added.
9818
9819 * src/math/math_function.h.in: added.
9820
9821 * src/math/math_function.h: added.
9822
9823 * src/math/math_function.c: added.
9824
9825 * src/math/math_expression.h: added.
9826
9827 * src/math/math_expression.c: added.
9828
9829 * src/math/math_error.h: added.
9830
9831 * src/math/math_equation.h: added.
9832
9833 * src/math/math_equation.c: added.
9834
9835 * src/math/math_constant.rb: added.
9836
9837 * src/math/math_constant.h.in: added.
9838
9839 * src/math/math_constant.h: added.
9840
9841 * src/math/math_constant.c: added.
9842
9843 * src/math/math_basic_function.c: added.
9844
9845 * src/math/Makefile.am: added.
9846
9847 * configure.in: add macro for new math code.
9848
9849 * src/gtk/x11axis.c (axiswin_scale_clear): call
9850 "set_graph_modified()" after call "exeobj()".
9851
9852 2009-10-20 Ito Hiroyuki <ZXB01226 at nifty.com>
9853
9854 * src/shell.c (expand): new upstream release (6.3.51).
9855
9856 * src/ofile.c (f2dtime, f2ddate): new upstream release (6.3.51).
9857
9858 * src/omerge.c (mergedate, mergetime): new upstream
9859 release (6.3.51).
9860
9861 2009-10-10 Ito Hiroyuki <ZXB01226 at nifty.com>
9862
9863 * src/gtk/x11commn.c (AxisDel): fix 3rd argument of
9864 "strncpy()" (from "sizeof(group)" to "sizeof(group3)").
9865
9866 2009-10-02 Ito Hiroyuki <ZXB01226 at nifty.com>
9867
9868 * src/gtk/x11view.c (ViewerEvKeyDown): call "UnFocus()" when the
9869 escape key is pressed.
9870
9871 2009-09-05 Ito Hiroyuki <ZXB01226 at nifty.com>
9872
9873 * src/mathcode.c (mathexpand): maximum value of the operand for
9874 operator '!' is 169 (not 69).
9875
9876 2009-08-28 Ito Hiroyuki <ZXB01226 at nifty.com>
9877
9878 * src/gtk/x11commn.c (get_save_opt): added.
9879 (GraphSave): use "get_save_opt()".
9880
9881 2009-08-19 Ito Hiroyuki <ZXB01226 at nifty.com>
9882
9883 * src/gtk/x11file.c (draw_type_pixbuf): call "g_object_unref()"
9884 for "pix" when "ggc" is lesser than 0.
9885
9886 * src/gtk/x11view.c (drag_drop_cb): check the drop is success or
9887 not.
9888 (text_dropped): use "CheckGrid()".
9889 (enum EvalDialogColType, eval_dialog_set_parent_cal)
9890 (mask_selected_data): added.
9891 (EvalDialogSetupItem, eval_dialog_copy_selected)
9892 (EvalDialogSetup, select_data_cb): use "GtkTreeStore" instead of
9893 "GtkListStore".
9894 (Evaluate): use "mask_selected_data".
9895 (mouse_down_move_data): don't return but "goto ErrEnd;" when
9896 "fileobj" is NULL.
9897
9898 2009-08-18 Ito Hiroyuki <ZXB01226 at nifty.com>
9899
9900 * src/gtk/x11view.c (eval_dialog_copy_selected): save text to not
9901 only "CLIPBOARD" but "PRIMARY".
9902
9903 2009-08-17 Ito Hiroyuki <ZXB01226 at nifty.com>
9904
9905 * src/gtk/gtk_widget.c (_create_spin_entry): fix argument of
9906 "gtk_spin_button_set_digits()".
9907
9908 * src/gtk/x11dialg.c (get_style_string): added.
9909 (SetStyleFromObjField): use "get_style_string()".
9910
9911 * src/gtk/x11lgnd.c (legend_list_set_val): don't display size of
9912 mark object.
9913 (legend_list_set_val): show mark size in "LEGEND_WIN_COL_WIDTH"
9914 column.
9915 (legend_list_set_val): show some fields in "LEGEND_WIN_COL_PROP"
9916 column.
9917 (width_edited): edit "size" field of mark object.
9918 (get_points): added.
9919
9920 2009-08-14 Ito Hiroyuki <ZXB01226 at nifty.com>
9921
9922 * src/gtk/x11gui.c (DialogExecute): set "GlobalLock" as TRUE, save
9923 and restore "GlobalLock" to inhibit DnD during executing dialog.
9924
9925 * src/gtk/x11view.c (init_dnd): use
9926 "gtk_target_list_add_text_targets()" to add text target.
9927 (drag_drop_cb): do nothing when "GlobalLock" is TRUE.
9928 (drag_drop_cb): always call "gtk_drag_finish()".
9929 (paste_cb): call "UpdateAll()" after call "ShowFocusFrame()".
9930 (text_dropped): focus newly created text.
9931
9932 2009-08-13 Ito Hiroyuki <ZXB01226 at nifty.com>
9933
9934 * src/gtk/x11gui.c (DialogSpinEntry): call
9935 "gtk_spin_button_set_numeric()".
9936
9937 * src/gtk/x11print.c (OutputImageDialogSetup): second argument of
9938 "gtk_spin_button_set_numeric()" is TRUE.
9939
9940 * src/gtk/x11lgnd.c (pos_edited, width_edited): use "str_calc()"
9941 instead of "strtod()".
9942
9943 * src/gtk/x11axis.c (pos_edited_common): use "str_calc()" instead
9944 of "strtod()".
9945
9946 * src/gtk/gtk_widget.c (spin_change_value_cb): added.
9947 (_create_spin_entry): call "g_signal_connect()" for "input"
9948 signal.
9949 (_create_spin_entry): second argument of
9950 "gtk_spin_button_set_numeric()" is FALSE.
9951
9952 * src/gtk/gtk_subwin.c (start_editing): second argument of
9953 "gtk_spin_button_set_numeric()" is FALSE.
9954 (numeric_cb): use "str_calc()" instead of "strtod()".
9955
9956 * src/gtk/x11lgnd.c (width_edited): added.
9957 (CmLegendWindow): call "set_editable_cell_renderer_cb()" for
9958 "LEGEND_WIN_COL_WIDTH".
9959 (legend_list_set_val): add case for "LEGEND_WIN_COL_WIDTH".
9960 (legend_list_set_val): add mark character and mark size for the
9961 case of "LegendTypeMark".
9962 (MarkChar, MarkCharNum): added.
9963 (Llist): add column "lw/pt", remove column "object" and change
9964 column from "property" to "object/property".
9965 (LEGEND_WIN_COL_WIDTH): added.
9966 (legend_list_set_val): gettextize some strings.
9967 (legend_list_set_val): remove case for "LEGEND_WIN_COL_NAME".
9968 (legend_list_build, legend_list_set): set strings to
9969 "LEGEND_WIN_COL_PROP" column.
9970
9971 2009-08-12 Ito Hiroyuki <ZXB01226 at nifty.com>
9972
9973 * src/gtk/x11file.c (fit_load_dialog_default_cb): remove.
9974 (FitLoadDialogSetup): use "GtkComboBox" instead of "GtkTreeView".
9975 (FitSaveDialogSetup): add delete button.
9976 (FitSaveDialogClose): call "g_strstrip()" for the profile.
9977 (FitSaveDialogClose): show confirm message when the profile is not
9978 specified.
9979 (copy_settings_to_fitobj, delete_fitobj): added.
9980 (FitDialogSave): use "copy_settings_to_fitobj()" and
9981 "delete_fitobj()".
9982 (FitCB): return "type" only when "profile" is NULL.
9983
9984 2009-08-11 Ito Hiroyuki <ZXB01226 at nifty.com>
9985
9986 * src/gtk/x11view.c (eval_dialog_copy_selected)
9987 (eval_data_sel_cb): added.
9988 (EvalDialogSetup): add "Copy" button.
9989 (paste_cb): place pasted text to center of the widget.
9990 (text_dropped): position of the text is multiple of 100.
9991
9992 * src/gtk/x11file.c (math_dialog_key_pressed_cb): use
9993 "gtk_tree_selection_count_selected_rows()" to check rows are
9994 selected or not.
9995
9996 * src/gtk/x11dialg.c (multi_list_default_cb): use
9997 "gtk_tree_selection_count_selected_rows()" to check rows are
9998 selected or not.
9999
10000 * src/gtk/x11dialg.c (multi_list_default_cb): remove redundant
10001 call of "gtk_tree_view_get_selection()".
10002
10003 * src/gtk/x11dialg.h (struct FitDialog): add member "func_label".
10004
10005 * src/gtk/x11file.c (FitDialogSetup): add equation label.
10006 (FitDialogSetup): improve the placement of widgets.
10007 (FitDialogSetup): maximum number of "d->dim" is 9.
10008 (FitDialogSetup): maximum number of "d->div" is 65535.
10009 (FitDialogSetSensitivity): set equation label string.
10010 (set_fitdialog_sensitivity): added.
10011
10012 * src/ofit.c (fituser): show "dxxc" in the progress dialog.
10013
10014 2009-08-10 Ito Hiroyuki <ZXB01226 at nifty.com>
10015
10016 * src/gra.c (GRAexpandtext): output '-' character when the string
10017 is '\-' (because 0xad "soft hyphen" is not printable usually).
10018 (GRAexpandtext): output no character when the string is '\x00'.
10019
10020 * src/gtk/gtk_subwin.c (sub_window_create): call
10021 "gtk_widget_show_all()" for "swin".
10022
10023 2009-08-07 Ito Hiroyuki <ZXB01226 at nifty.com>
10024
10025 * src/gtk/x11file.c (select_color): check version of GTK.
10026
10027 * src/gtk/x11gui.c (FileSelectionDialog): call
10028 "file_dialog_set_current_neme()" only when "type" is
10029 "GTK_FILE_CHOOSER_ACTION_SAVE".
10030
10031 2009-08-06 Ito Hiroyuki <ZXB01226 at nifty.com>
10032
10033 * src/object.c (sexeobjfield): check "arglist" before call
10034 "strcmp()".
10035
10036 * src/odraw.h (enum SAVE_PATH_TYPE): added.
10037
10038 * src/gtk/x11commn.c (SetFileName): use copy of "str".
10039 (ToRalativePath): added.
10040 (GraphSave): save and restore previous working directory.
10041 (GraphSave): change "file::file" and "merge::file" depend on the
10042 value of "path".
10043
10044 2009-08-05 Ito Hiroyuki <ZXB01226 at nifty.com>
10045
10046 * src/gtk/x11opt.c (MiscDialogSetup): set label to some frames.
10047
10048 * src/gtk/x11file.c (FitCB): just return "valstr".
10049
10050 * src/gtk/x11commn.c (FileCB): use "g_strdup_printf()".
10051 (change_filename, get_basename, ToBasename): added.
10052 (ToFullPath): use "change_filename()".
10053 (LoadNgpFile): "system::ignore_path" is always FALSE.
10054 (LoadNgpFile): call "ToBasename()" when "ignorepath" is TRUE.
10055
10056 * src/gtk/x11axis.c (AxisCB, AxisHistoryCB, GridCB): use
10057 "g_strdup_printf()".
10058
10059 * src/gtk/x11commn.c (LoadPrmFile): set modified flag when load
10060 PRM file.
10061
10062 * src/oaxis.c (draw_wave, draw_arrow): added.
10063 (axisdraw): use "draw_wave()" and "draw_arrow()".
10064
10065 2009-08-04 Ito Hiroyuki <ZXB01226 at nifty.com>
10066
10067 * src/gtk/gtk_widget.c (direction_icon_released)
10068 (create_direction_entry): exchange up and down icon.
10069
10070 * src/oline.c (arrowdraw, arrowbbox): use "enum
10071 ARROW_POSITION_TYPE".
10072
10073 * src/oaxis.c (enum AXIS_SCALE_TYPE): added.
10074 (anumdirchar, enum AXIS_NUM_DIR): add member "normal2".
10075 (get_num_pos_horizontal, get_num_pos_parallel)
10076 (get_num_pos_normal, struct font_config, struct axis_config)
10077 (get_num_ofst_horizontal, get_num_ofst_parallel)
10078 (get_num_ofst_normal1, get_num_ofst_normal2, draw_numbering)
10079 (numbering, draw_gauge, get_axis_parameter)
10080 (get_reference_parameter): added.
10081 (axisdraw): use "get_reference_parameter()", "draw_gauge()" and
10082 "numbering()".
10083 (axisdraw): use "enum ARROW_POSITION_TYPE".
10084
10085 * src/odraw.h (enum ARROW_POSITION_TYPE): added.
10086
10087 * src/mathfn.c (compare_double): added.
10088
10089 * src/axis.c (getaxispositionini): use "compare_double()" to
10090 compare two floating-point value.
10091
10092 2009-07-27 Ito Hiroyuki <ZXB01226 at nifty.com>
10093
10094 * src/gtk/x11view.c (ncopyobj): use "copy_obj_field()".
10095 (new_file_obj): add argument "multi".
10096 (data_dropped): "Apply All" button is active when "i" is lesser
10097 than "num - 1".
10098
10099 * src/gtk/x11file.c (copy_file_obj_field): use "copy_obj_field()".
10100
10101 * src/gtk/x11commn.c (FitCopy): use "copy_obj_field()".
10102
10103 * src/gtk/gtk_subwin.c (obj_copy): use "copy_obj_field()".
10104
10105 * src/shellcm.c (cmcpy): use "copy_obj_field()".
10106
10107 * src/object.c (copy_obj_field): added.
10108
10109 2009-07-26 Ito Hiroyuki <ZXB01226 at nifty.com>
10110
10111 * src/gtk/x11file.c (copy_file_obj_field): add
10112 (FitDialogSave): check "DlgFitSave.Profile" and
10113 "DlgFitSave.Profile[0]".
10114 (FitDialogSave): check arguments of "strcmp()".
10115 (CmFileHistory): use "nstrdup()" instead of "memalloc()" and
10116 "strcpy()".
10117 (FileDialogCopyAll, update_file_obj_multi, file_obj_copy): use
10118 "copy_file_obj_field()".
10119
10120 * src/gtk/x11gui.c (fsok): use "g_strdup_printf()" or "strdup()"
10121 instead of "malloc()" and "strcpy()".
10122
10123 * src/gtk/x11commn.c (AxisDel): use "strncpy()" instead of
10124 "strcpy()".
10125
10126 * src/gtk/ogra2cairofile.c (gra2cairofile_output): don't check
10127 "local->linetonum" before call "gra2cairo_draw_path()".
10128
10129 * src/gtk/ogra2cairo.c (gra2cairo_update_fontmap): check arguments
10130 "fontname" and "fontalias".
10131 (gra2cairo_draw_path): check "local->linetonum".
10132 (gra2cairo_free, gra2cairo_flush, gra2cairo_output): don't check
10133 "local->linetonum" before call "gra2cairo_draw_path()".
10134
10135 * src/gtk/gtk_entry_completion.c (entry_completion_append): check
10136 argument "str".
10137
10138 2009-07-23 Ito Hiroyuki <ZXB01226 at nifty.com>
10139
10140 * src/gtk/x11file.c (FitDialogSave): bug fix: check and argument
10141 of "strcmp()".
10142
10143 * src/gtk/x11gui.c (set_dialog_position, get_dialog_position):
10144 added.
10145 (DialogInput, DialogRadio, DialogCombo, DialogComboEntry)
10146 (DialogSpinEntry, DialogCheck): add add argument "x" and "y".
10147
10148 * src/gtk/ox11dlg.c (dlginit): initialize "x" and "y" field.
10149 (dlginput, dlgradio, dlgcombo, dlgspin, dlgcheck): add argument
10150 "x" and "y" to create dialog window.
10151 (dialog): add field "x" and "y".
10152
10153 2009-07-22 Ito Hiroyuki <ZXB01226 at nifty.com>
10154
10155 * src/gtk/x11axis.c (CmAxisWindow): call "sub_window_show_all()"
10156 instead of "sub_window_show()".
10157
10158 * src/gtk/x11cood.c (CoordWinUpdate): call "sub_window_show_all()"
10159 instead of "sub_window_show()".
10160
10161 * src/gtk/x11file.c (CmFileWindow): call "sub_window_show_all()"
10162 instead of "sub_window_show()".
10163
10164 * src/gtk/x11info.c (InfoWinUpdate): call "sub_window_show_all()"
10165 instead of "sub_window_show()".
10166
10167 * src/gtk/x11lgnd.c (CmLegendWindow): call "sub_window_show_all()"
10168 instead of "sub_window_show()".
10169
10170 * src/gtk/x11merge.c (CmMergeWindow): call "sub_window_show_all()"
10171 instead of "sub_window_show()".
10172
10173 * src/gtk/gtk_subwin.c (sub_window_show_all): added.
10174 (sub_window_show, sub_window_hide): call "gtk_widget_show()" and
10175 "gtk_widget_hide()" instead of "gtk_widget_show_all()" and
10176 "gtk_widget_hide_all()" respectively.
10177
10178 2009-07-21 Ito Hiroyuki <ZXB01226 at nifty.com>
10179
10180 * src/omark.c (MODIFY_MARK_TYPE, rotate_cw, v_flip, h_flip): added.
10181 (markrotate, markflip): modify mark type when "MODIFY_MARK_TYPE"
10182 is TRUE.
10183
10184 2009-07-15 Ito Hiroyuki <ZXB01226 at nifty.com>
10185
10186 * src/gtk/x11file.c (select_type): use 3rd column of the combo-box
10187 to specify which type of item is selected.
10188 (start_editing_type): don't activate the combo-box item.
10189
10190 * src/gtk/gtk_liststore.c (start_editing_obj): add column to the
10191 model.
10192
10193 2009-07-14 Ito Hiroyuki <ZXB01226 at nifty.com>
10194
10195 * src/gtk/gtk_liststore.c (create_column): set "expand" property
10196 as TRUE when ellipsize mode is not "PANGO_ELLIPSIZE_NONE".
10197
10198 * src/gtk/x11file.c (enum FILE_COMBO_ITEM, select_color): added.
10199 (select_type): set not only "type" but color.
10200 (create_type_combo_box): add color setting combo item.
10201
10202 2009-07-10 Ito Hiroyuki <ZXB01226 at nifty.com>
10203
10204 * src/gtk/x11file.c (count_line_number_str, set_line_number_tag)
10205 (create_text_tag): added.
10206 (FileDialogSetup): initialize "d->comment_num_tag" and set tag for
10207 line number.
10208
10209 * src/gtk/x11dialg.h (struct FileDialog): add member
10210 "comment_num_tag".
10211
10212 * addin/Makefile.am (pkglib_DATA): add "cal.nsc".
10213
10214 * addin/cal.nsc: added.
10215
10216 * src/gtk/x11gui.c (DialogSpinEntry): added.
10217
10218 * src/gtk/ox11dlg.c (dlgspin): added.
10219 (dialog): add new field "double_entry" and "integer_entry".
10220
10221 2009-07-09 Ito Hiroyuki <ZXB01226 at nifty.com>
10222
10223 * src/gtk/x11menu.c (clear_information): added.
10224 (create_windowmenu): add menu item "_Clear information window".
10225
10226 * src/gtk/ox11menu.c (menudone): return "1" when GUI is active.
10227 (mxredraw, mxdpi, mxflush, mx_get_focused, mx_echo, mx_cat)
10228 (mx_clear_info, mx_toggle_win, mxdraw, mxclear): do nothing when
10229 GUI is not active.
10230 (menuerrorlist): add error message ("the GUI is not active").
10231 (SubwinData, _subwin_data, subwindow_show, subwindow_hide)
10232 (mx_show_win, mx_hide_win): added.
10233 (gtkmenu): add new field "show_window" and "hide_window".
10234
10235 * src/gtk/x11info.c (create_win): initialize font and geometry
10236 settings.
10237
10238 2009-07-08 Ito Hiroyuki <ZXB01226 at nifty.com>
10239
10240 * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup)
10241 (MiscDialogClose): add code for "infowin_font" setting.
10242
10243 * src/gtk/x11info.c (InfoWinSetFont): added.
10244 (InfoWinUpdate): call "InfoWinSetFont()".
10245
10246 * src/gtk/ox11menu.h (struct menulocal): add member
10247 "infowin_font".
10248
10249 * src/gtk/ox11menu.c (menuerrorlist): add error message ("cannot
10250 open the file").
10251 (MenuConfigMisc): add "infowin_font" setting.
10252 (mx_cat, mx_clear_info, mx_toggle_win): added.
10253 (gtkmenu): add new field "cat", "clear_info" and "toggle_window".
10254
10255 2009-07-07 Ito Hiroyuki <ZXB01226 at nifty.com>
10256
10257 * src/gtk/gtk_subwin.c (tree_hidden): don't execute "d->update()"
10258 but call "gtk_tree_store_set()".
10259 (toggle_cb): use "tree_hidden()".
10260
10261 * src/object.c (sexefield): don't remove space character.
10262 (sexeobjfield): remove space character only when "arglist" is "s".
10263
10264 2009-07-06 Ito Hiroyuki <ZXB01226 at nifty.com>
10265
10266 * src/gtk/x11commn.c (AddNgpFileList): free "full_name" after call
10267 "g_strdup_printf()".
10268
10269 * src/gtk/x11view.c (paste_cb): don't use a temporary file and use
10270 "eval_script()".
10271
10272 * src/shell.c (getcmdline): the type of argument "str" is "const
10273 char *".
10274 (eval_script): added.
10275 (cmdexecute): the type of argument "cline" is "const char *".
10276
10277 2009-07-05 Ito Hiroyuki <ZXB01226 at nifty.com>
10278
10279 * initfile/Ngraph.nsc: use "NGRAPHCONF" instead of "NGRAPHLIB".
10280
10281 * src/gtk/x11print.c (DriverDialogClose): use "g_strdup_printf()"
10282 instead of "snprintf()".
10283
10284 * src/gtk/x11opt.c (create_font_selection_dialog): use
10285 "g_strdup_printf()" instead of "snprintf()".
10286
10287 * src/gtk/x11menu.c (createmenu): use "g_strdup_printf()" instead
10288 of "snprintf()".
10289 (load_hist_file, save_hist_file): added.
10290 (save_entry_history): use "save_hist_file()".
10291 (load_hist): use "load_hist_file()".
10292
10293 * src/gtk/x11dialg.c (SetObjAxisFieldFromWidget): use
10294 "g_strdup_printf()" instead of "snprintf()".
10295
10296 * src/gtk/x11commn.c (check_overwrite, AddNgpFileList)
10297 (SaveHistory): use "g_strdup_printf()" instead of "snprintf()".
10298
10299 * src/gtk/ox11menu.c (add_prm_str_to_array)
10300 (save_ext_driver_config, save_script_config): use
10301 "g_strdup_printf()" instead of "snprintf()".
10302 (menu): "arglist" of "menu" field is "s".
10303
10304 * src/gtk/main.c (main, obj_member_completion_function): use
10305 "g_strdup_printf()" instead of "snprintf()".
10306
10307 * src/shellcm.c (cmbasename): call "basename(3)" to duplicated
10308 string.
10309 (cmdirname): use duplicated string.
10310 (cmexist): add "-q" option.
10311
10312 * driver/ngp2.in: use "-q" option for "exist" command.
10313 (save_image): copy settings of "gra" object.
10314 (save_image): set "display" field of "fit" object as false if
10315 exist.
10316
10317 * initfile/Ngraph.nsc: use "-q" option for "exist" command.
10318 (load_graph): argument of "$LOGIN_SHELL" is full-path filename.
10319
10320 2009-07-02 Ito Hiroyuki <ZXB01226 at nifty.com>
10321
10322 * src/gtk/x11print.c (DriverDialogBrowseCB, CmPrintGRAFile)
10323 (CmOutputImage, CmPrintDataFile): change the arguments of the
10324 function "nGetSaveFileName()".
10325
10326 * src/gtk/x11opt.c (SetScriptDialogBrowse)
10327 (SetDriverDialogBrowse): change the arguments of the function
10328 "nGetOpenFileName()".
10329
10330 * src/gtk/x11merge.c (CmMergeOpen): change the arguments of the
10331 function "nGetOpenFileName()".
10332
10333 * src/gtk/x11gui.c (file_dialog_set_current_neme): added.
10334 (FileSelectionDialog): use "file_dialog_set_current_neme()".
10335 (nGetOpenFileNameMulti, nGetOpenFileName, nGetSaveFileName):
10336 remove the argument "filter".
10337 (struct nGetOpenFileData): remove member "filter".
10338
10339 * src/gtk/x11graph.c (CmGraphLoad): change the
10340 arguments of the function "nGetOpenFileName()".
10341
10342 * src/gtk/x11file.c (CmFileNew, CmFileOpen): change the arguments
10343 of the functions "nGetOpenFileName()" and
10344 "nGetOpenFileNameMulti()".
10345
10346 * src/gtk/x11commn.c (GraphSave): change the arguments of the
10347 function "nGetSaveFileName()".
10348
10349 * src/gtk/ox11dlg.c (dlggetopenfile, dlggetopenfiles)
10350 (dlggetsavefile): change the arguments of the functions
10351 "nGetOpenFileName()", "nGetOpenFileNameMulti()" and
10352 "nGetSaveFileName()".
10353
10354 * src/gtk/ogra2cairo.c (gra2cairo_save_config): use
10355 "g_strdup_printf()" instead of "snprintf()".
10356
10357 * src/gtk/gtk_widget.c (entry_icon_file_select): change the
10358 arguments of the function "nGetOpenFileName()".
10359
10360 * src/gtk/gtk_subwin.c (file_select): change the arguments of the
10361 function "nGetOpenFileName()".
10362
10363 2009-07-01 Ito Hiroyuki <ZXB01226 at nifty.com>
10364
10365 * src/gtk/x11print.c (DriverDialogClose): use "check_overwrite()".
10366
10367 * src/gtk/x11gui.c (FileSelectionDialog): don't call
10368 "gtk_file_chooser_set_do_overwrite_confirmation()".
10369 (FileSelectionDialog): call "check_overwrite()" when "type" is "
10370 GTK_FILE_CHOOSER_ACTION_SAVE" and "data->overwrite" is false.
10371
10372 * src/gtk/x11commn.c (check_overwrite): added.
10373
10374 2009-06-30 Ito Hiroyuki <ZXB01226 at nifty.com>
10375
10376 * src/gtk/ogra2cairofile.c (gra2cairofile_output): call
10377 "gra2cairo_draw_path()" before call
10378 "cairo_surface_write_to_png()".
10379
10380 * src/gtk/ogra2cairo.c (gra2cairo_draw_path): added.
10381 (gra2cairo_free, gra2cairo_flush, gra2cairo_output): use
10382 "gra2cairo_draw_path()".
10383
10384 2009-06-29 Ito Hiroyuki <ZXB01226 at nifty.com>
10385
10386 * src/ofit.c (fitpoly, fituser): call "display_equation()" only
10387 when "disp" is true.
10388
10389 2009-06-26 Ito Hiroyuki <ZXB01226 at nifty.com>
10390
10391 * src/gtk/x11file.c (FitDialogClose): check "ret" instead of
10392 "d->ret" with "IDOK".
10393
10394 2009-06-24 Ito Hiroyuki <ZXB01226 at nifty.com>
10395
10396 * src/gtk/main.c (reset_fifo, exec_console): added.
10397 (nallocconsole): use "exec_console()".
10398 (nallocconsole): call "unlink()" after open fifo.
10399
10400 * src/terminal.c (main): don't call "unlink()".
10401
10402 2009-06-18 Ito Hiroyuki <ZXB01226 at nifty.com>
10403
10404 * src/gtk/main.c (main): initialize system::conf_dir.
10405 (main): search "conf_dir" instead of "lib_dir".
10406
10407 * src/gtk/dir_defs.h.in (CONFDIR): added.
10408
10409 * src/shell.c (ngraphenvironment): add new environment variable
10410 "NGRAPHCONF".
10411
10412 * src/osystem.c (nsystem): add new field "conf_dir".
10413
10414 * src/nconfig.c (searchscript, openconfig, replaceconfig)
10415 (removeconfig, writecheckconfig, copyconfig): search "conf_dir"
10416 instead of "lib_dir".
10417
10418 * src/ioutil.h (CONFSEP): change from "/." to "/".
10419
10420 * src/Makefile.am (pkglib_PROGRAMS): "terminal" is installed in
10421 "$pkglibdir".
10422
10423 * initfile/Ngraph.ini.in: specify full path of "nterminal".
10424
10425 * initfile/Makefile.am (ngraphconfdir): configration files are
10426 installed in "$(sysconfdir)/$(PACKAGE)".
10427
10428 * initfile/fit.ngp: change file name from ".fit.ngp"
10429
10430 * initfile/Ngraph.nsc: change file name from ".Ngraph"
10431
10432 * initfile/Ngraph.ngp: change file name from ".Ngraph.ngp"
10433
10434 * driver/Makefile.am (ngraphconfdir): configration files are
10435 installed in "$(sysconfdir)/$(PACKAGE)".
10436
10437 * addin/Makefile.am (pkglib_DATA): install addins to $pkglibdir.
10438
10439 2009-06-15 Ito Hiroyuki <ZXB01226 at nifty.com>
10440
10441 * src/gtk/x11commn.c (SaveDrawrable): use "NFMODE_NORMAL_FILE"
10442 instead of "NFMODE".
10443
10444 * src/gtk/x11file.c (FitDialogSave): use "NFMODE_NORMAL_FILE"
10445 instead of "NFMODE".
10446
10447 * src/ioutil.h (NFMODE_NORMAL_FILE): added.
10448
10449 * src/osystem.c (sysdone): delete temporary files if exist.
10450
10451 2009-06-14 Ito Hiroyuki <ZXB01226 at nifty.com>
10452
10453 * src/osystem.c (systemp): use "n_mkstemp()".
10454
10455 * src/ioutil.c (n_mkstemp): set and restore umask.
10456
10457 2009-06-11 Ito Hiroyuki <ZXB01226 at nifty.com>
10458
10459 * zsh/_ngraph: added.
10460
10461 * zsh/_ngp2: added.
10462
10463 * zsh/_gra2wmf: added.
10464
10465 * zsh/_gra2ps: added.
10466
10467 * zsh/Makefile.am: added.
10468
10469 * src/gtk/x11print.c (draw_gra): check "NgraphApp.Viewer.win"
10470 before call "gdk_window_invalidate_rect()".
10471
10472 * initfile/.Ngraph: add new option -cr, -cg, -cb, -CR, -CG, -CB,
10473 -incx, -maxx, -minx, -incy, -maxy, -miny, -L and -dialog.
10474 option -c, -C, -zx and -zy are obsolete.
10475
10476 2009-06-10 Ito Hiroyuki <ZXB01226 at nifty.com>
10477
10478 * debian/rules: add mime types and bash completion settings.
10479
10480 * src/ofile.c (markout): the argument "type" is not used in this
10481 function.
10482
10483 2009-06-09 Ito Hiroyuki <ZXB01226 at nifty.com>
10484
10485 * src/gtk/x11menu.c (show_graph_menu_cb): remove code related to
10486 "ngp_history" and "ngp_dir_history".
10487 (create_recent_graph_menu): use "GtkRecentChooserMenu".
10488
10489 * src/gtk/x11graph.c (CmGraphHistory): use "GtkRecentChooser".
10490
10491 * src/gtk/x11commn.c (AddNgpFileList): static function.
10492 (AddNgpFileList): use "GtkRecentManager".
10493 (SaveHistory): don't save "ngp_history" and "ngp_dir_history".
10494
10495 * src/gtk/ox11menu.c (MenuConfig): remove "ngp_history" and
10496 "ngp_dir_history".
10497 (menulocal_finalize, menuinit): remove code related to
10498 "ngp_history" and "ngp_dir_history".
10499 (menuinit): "Menulocal.ngpfilelist" is "GtkRecentManager *".
10500
10501 * initfile/Ngraph.ini.in (viewer_load_file_data_number): remove
10502 "ngp_history" and "ngp_dir_history".
10503
10504 2009-06-08 Ito Hiroyuki <ZXB01226 at nifty.com>
10505
10506 * src/gtk/x11graph.c (pagelist, PageDialogSetup): gettextize paper
10507 size strings.
10508
10509 2009-06-03 Ito Hiroyuki <ZXB01226 at nifty.com>
10510
10511 * src/gra.c (getintpar): check size of "s2".
10512 (GRAinputdraw): check number of the parameters and return success
10513 or not.
10514 (GRAinput): return the return value of "GRAinputdraw()".
10515
10516 * src/gtk/x11menu.c (AppMainLoop): return 1 when terminated.
10517 (application): delete instance of "system" object when return
10518 value of "AppMainLoop()" is 1.
10519
10520 2009-06-02 Ito Hiroyuki <ZXB01226 at nifty.com>
10521
10522 * src/gtk/main.c (nfreeconsole): send "SIGTERM" instead of
10523 "SIGCHLD".
10524
10525 * src/terminal.c (main): use "sigsuspend()" if available.
10526 (main): trap "SIGTERM" instead of "SIGCHLD".
10527
10528 * src/shell.c (cmdexec): bug fix: use "WEXITSTATUS" to get return
10529 status of external command.
10530
10531 * src/gtk/x11menu.c (application): call "SaveHistory()".
10532 (AppMainLoop): don't call "SaveHistory()".
10533
10534 2009-06-01 Ito Hiroyuki <ZXB01226 at nifty.com>
10535
10536 * src/shell.c (set_signal, set_shellevloop, reset_shellevloop):
10537 added.
10538 (shellevloop): use pthread.
10539 (shgetstdin, shget): use "set_shellevloop()" and
10540 "reset_shellevloop()".
10541 (childhandler, set_childhandler, unset_childhandler): added.
10542 (cmdexec): call "unset_childhandler()" and "set_childhandler()"
10543 before and after execute command.
10544
10545 * src/gtk/x11menu.c (term_signal_handler): added.
10546 (childhandler): remove.
10547 (AppMainLoop): check type of "Hide_window".
10548 (application): use "set_signal()".
10549 (application): trap "SIGTERM" while GUI is active.
10550
10551 * src/gtk/x11file.c (FitDialogClose): bug fix: delete unused fit
10552 objects not only in the case of "d->ret" is "IDOK" but "IDCANCEL"
10553 and "IDDELETE".
10554 (FileDialogFit): call "set_graph_modified()" if necessary.
10555 (FileDialogEdit, CmFileEdit, FileWinFileEdit): don't call
10556 "arrayadd()" for "ChildList".
10557
10558 * src/shellux.c (cmsleep): use "set_signal()".
10559
10560 2009-05-26 Ito Hiroyuki <ZXB01226 at nifty.com>
10561
10562 * src/gtk/x11menu.c (create_graphmenu): use "GTK_STOCK_PAGE_SETUP"
10563 when the version of GTK++ is greater than 2.14.
10564
10565 2009-05-23 Ito Hiroyuki <ZXB01226 at nifty.com>
10566
10567 * src/gtk/x11lgnd.c (pos_edited): call "set_graph_modified()"
10568 after "exeobj()".
10569
10570 2009-05-19 Ito Hiroyuki <ZXB01226 at nifty.com>
10571
10572 * src/nconfig.c (getconfig): treat the line as comment when the
10573 first caractor of the line is "#" or ";".
10574
10575 2009-05-18 Ito Hiroyuki <ZXB01226 at nifty.com>
10576
10577 * src/gtk/ogra2cairo.c (gra2cairo): change permission of fields
10578 "init" and "done".
10579
10580 * src/gtk/main.c (load_config): added.
10581 (load_config): bug fix: check return value of "getobject".
10582
10583 * src/gtk/x11axis.c (file_button_show): added.
10584 (AxisDialogSetup): call "g_signal_connect()" for "show" signal of
10585 "File" button.
10586
10587 * src/gtk/x11opt.c (set_font): added.
10588 (MiscDialogClose): use "set_font()".
10589 (MiscDialogSetupItem, MiscDialogSetup): initialize and setup
10590 "d->file_preview_font".
10591
10592 * src/gtk/x11dialg.h (struct FileDialog): add member
10593 "comment_view".
10594 (struct MiscDialog): add member "file_preview_font".
10595
10596 * src/gtk/x11file.c (FileDialogSetup): call
10597 "gtk_widget_modify_font" if "Menulocal.file_preview_font" is not
10598 NULL.
10599
10600 * src/gtk/ox11menu.h (struct menulocal): add member
10601 "file_preview_font".
10602
10603 * src/gtk/ox11menu.c (MenuConfigMisc): add config
10604 "file_preview_font".
10605 (menulocal_finalize): added.
10606 (menuinit, menudone): use "menulocal_finalize()".
10607 (menuinit): call "memset()" to initialize "Menulocal".
10608
10609 * src/gtk/ogra2x11.c (gtkloadconfig): check string
10610 "use_external_viewer".
10611
10612 2009-05-17 Ito Hiroyuki <ZXB01226 at nifty.com>
10613
10614 * src/gtk/x11axis.c (AxisPosDialogSetup): use
10615 "create_direction_entry()" instead of "create_spin_entry_type()".
10616
10617 * src/gtk/x11lgnd.c (legend_dialog_setup_sub): use
10618 "create_direction_entry()" instead of "create_spin_entry_type()".
10619
10620 * src/gtk/gtk_widget.c (direction_icon_released)
10621 (create_direction_entry): added.
10622
10623 2009-05-15 Ito Hiroyuki <ZXB01226 at nifty.com>
10624
10625 * src/gtk/x11print.c (DriverDialogSelectCB): set value to
10626 "d->ext".
10627 (DriverDialogBrowseCB): set filter when "d->ext" is not NULL.
10628 (DriverDialogClose): use "d->widget" for first argument of
10629 "MessageBox()".
10630 (DriverDialog): initialize "data->ext".
10631 (CmPrintGRAFile, CmOutputImage, CmPrintDataFile): remove check of
10632 confirmation about overwriting an existing file.
10633
10634 * src/gtk/x11opt.c (SetDriverDialogBrowse, SetDriverDialogClose)
10635 (PrefFontDialogAdd): use "d->widget" for first argument of
10636 "MessageBox()" and "nGetOpenFileName()".
10637
10638 * src/gtk/x11merge.c (MergeDialogSetup): use "create_file_entry()"
10639 instead of "create_text_entry()".
10640
10641 * src/gtk/x11gui.c (struct nGetOpenFileData): add member
10642 "overwrite".
10643 (FileSelectionDialog): check "parent".
10644 (FileSelectionDialog): call
10645 "gtk_file_chooser_set_do_overwrite_confirmation()" when "type" is
10646 "GTK_FILE_CHOOSER_ACTION_SAVE".
10647 (FileSelectionDialog): hide "data->chdir_cb" when "data->initdir"
10648 is NULL.
10649 (nGetSaveFileName): add argument "overwrite".
10650
10651 * src/gtk/x11file.c (FitDialogLoadConfig, FitDialogLoad)
10652 (FitDialogSave): use "d->widget" for first argument of
10653 "DialogExecute".
10654 (FileDialogSetup): use "create_file_entry()" instead of
10655 "create_text_entry()".
10656 (FileWinFit): use "d->Win" for first argument of "DialogExecute".
10657
10658 * src/gtk/x11dialg.h (struct DriverDialog): add member "ext".
10659
10660 * src/gtk/x11commn.c (GraphSave): remove check of confirmation
10661 about overwriting an existing file.
10662
10663 * src/gtk/x11axis.c (AxisDialogFile): use "d->widget" for first
10664 argument of "DialogExecute".
10665
10666 * src/gtk/gtk_widget.c (get_parent_window)
10667 (entry_icon_file_select, create_file_entry): added.
10668
10669 * src/gtk/gtk_subwin.c (file_select): added.
10670 (start_editing): call gtk_entry_set_icon_from_stock when
10671 "list->name" is "file".
10672
10673 * src/gtk/gtk_common.h (USE_ENTRY_ICON): added.
10674
10675 * src/omerge.c (merge): add field "ext".
10676 (mergeinit): initialize field "ext".
10677
10678 2009-05-14 Ito Hiroyuki <ZXB01226 at nifty.com>
10679
10680 * initfile/.Ngraph: change directory when "ngp" or "prm" file is
10681 specified.
10682
10683 * src/gtk/x11graph.c (DirectoryDialogSetup): use
10684 "GtkFileChooserButton" instead of "GtkEntry".
10685
10686 * src/shell.c (cmdtable): add commands "basename" and "dirname".
10687
10688 * src/shellcm.c (cmdirname, cmbasename): added.
10689
10690 2009-05-13 Ito Hiroyuki <ZXB01226 at nifty.com>
10691
10692 * src/gtk/x11view.c (Trimming): use "axis_scale_push()" instead of
10693 "exeobj()".
10694
10695 * src/gtk/x11axis.c (check_axis_history): added.
10696 (CmAxisWinScaleUndo): call "check_axis_history()" instead of
10697 "chkobjlastinst()".
10698 (axis_scale_push): added.
10699 (AxisDialogClose, axiswin_scale_clear, CmAxisClear)
10700 (axis_prm_edited_common): use "axis_scale_push()" instead of
10701 "exeobj()".
10702 (CmAxisWinScaleUndo): call "set_axis_undo_button_sensitivity()".
10703
10704 * src/gtk/x11menu.c (hide_instance_menu_cb): added.
10705 (set_show_instance_menu_cb): add arguments "show_cb" and
10706 "hide_cb".
10707 (show_axis_menu_cb, hide_axis_menu_cb): added.
10708 (create_axismenu): add 5th and 6th arguments to call
10709 "set_show_instance_menu_cb()".
10710 (set_axis_undo_button_sensitivity): added.
10711 (setupwindow): call "set_axis_undo_button_sensitivity()".
10712
10713 * src/gtk/x11file.c (CmFileWinMath): check number of instance.
10714
10715 2009-05-12 Ito Hiroyuki <ZXB01226 at nifty.com>
10716
10717 * src/gtk/x11axis.c (AxisDialogSetupItem): add item to combo boxes
10718 when the value is different from previous one.
10719 (axis_prm_edited_common, min_edited, max_edited, inc_edited): added.
10720 (CmAxisWindow): call "set_editable_cell_renderer_cb()" for
10721 "AXIS_WIN_COL_MIN", "AXIS_WIN_COL_MAX" and "AXIS_WIN_COL_INC".
10722 (AxisHistoryCB): added.
10723 (AxisWinExpose): use "AxisHistoryCB()".
10724 (CmAxisDel): check "DlgCopy.sel".
10725
10726 * src/gtk/x11lgnd.c (LegendTextCB): return whole string.
10727
10728 * src/gtk/x11dialg.c (SelectDialogSetup, CopyDialogSetup):
10729 "PangoEllipsizeMode" of "property" column is
10730 "PANGO_ELLIPSIZE_END".
10731 (SelectDialogSetup, CopyDialogSetup): append item only when return
10732 value of a function "d->cb()" is not NULL.
10733 (SelectDialogClose): save value of "id" column.
10734 (CopyDialogClose): set value of "id" column of the selected row to
10735 "d->sel".
10736
10737 * src/oaxis.c (axisbbox2): check "inst".
10738 (get_axis_box): this function returns int.
10739 (get_axis_box): check return value of "axisbbox2()".
10740 (get_axis_group_box): this function returns int.
10741 (get_axis_group_box): check return value of "get_axis_box()".
10742 (axisbbox): check return value of "get_axis_group_box()".
10743 (axisrotate2, axisflip2): check "inst".
10744 (axisrotate, axisflip): check return value of
10745 "get_axis_group_box()".
10746 (AXIS_HISTORY_NUM): added.
10747 (axisscalepush): use "AXIS_HISTORY_NUM".
10748
10749 2009-05-11 Ito Hiroyuki <ZXB01226 at nifty.com>
10750
10751 * src/gtk/ox11menu.c (MenuConfigToggleView): add "{NULL}" at the
10752 end of the array.
10753
10754 2009-05-08 Ito Hiroyuki <ZXB01226 at nifty.com>
10755
10756 * src/ofile.c (USE_BUF_PTR, USE_RING_BUF, BUF_TYPE, USE_MEMMOVE)
10757 (RING_BUF_INC, ring_buf_index): added.
10758 (struct f2ddata): add new member "buf_ptr" or "ringbuf_top".
10759 (struct f2ddata): now "buf" is array.
10760 (opendata): initialize "buf_ptr" or "ringbuf_top".
10761 (getdata): use array of pointer or ring buffer.
10762
10763 2009-05-01 Ito Hiroyuki <ZXB01226 at nifty.com>
10764
10765 * src/gtk/x11view.h (enum FOCU_OBJ_TYPE): add
10766 "FOCUS_OBJ_TYPE_TEXT".
10767
10768 * src/gtk/x11view.c (enum ViewerPopupIdn): add
10769 "VIEW_FLIP_HORIZONTAL" and "VIEW_FLIP_VERTICAL".
10770 (create_popup_menu): added.
10771 (create_popup_menu): add flip menu.
10772 (VIEWER_POPUP_ITEM_FLIP): added.
10773 (execute_selected_instances): added.
10774 (RotateFocusedObj): use "execute_selected_instances()".
10775 (FlipFocusedObj): added.
10776 (do_popup): set sensitivity of flip menu.
10777 (ViewerPopupMenu): add case for "VIEW_FLIP_HORIZONTAL" and
10778 "VIEW_FLIP_VERTICAL".
10779 (CmEditMenuCB): add case for "MenuIdEditFlipHorizontally" and
10780 "MenuIdEditFlipVertically".
10781
10782 * src/gtk/x11menu.h (enum MenuID): add
10783 "MenuIdEditFlipHorizontally" and "MenuIdEditFlipVertically".
10784
10785 * src/gtk/x11menu.c (show_edit_menu_cb): set sensitivity of
10786 "FlipH" and "FlipV".
10787 (create_editmenu): add flip menu.
10788
10789 * src/orect.c (rectflip): added.
10790 (rect): add new field "flip".
10791
10792 * src/opolygon.c (opoly): add new field "flip".
10793
10794 * src/omark.c (markflip): added.
10795 (mark): add new field "flip".
10796
10797 * src/oline.c (arrow): add new field "flip".
10798
10799 * src/olegend.h (enum FLIP_DIRECTION): added.
10800
10801 * src/olegend.c (flip, legendflip): added.
10802
10803 * src/ocurve.c (curve): add new field "flip".
10804
10805 * src/oaxis.c (axisbbox2, get_axis_box): remove unused arguments
10806 "argc" and "argv".
10807 (get_axis_group_box): added.
10808 (axisbbox, axisrotate): use "get_axis_group_box()".
10809 (axisflip2, axisflip): added.
10810 (axis): add new field "flip".
10811
10812 * src/oarc.c (arcflip): added.
10813 (arc): add new field "flip".
10814
10815 * addin/append.nsc: hide and recover axisgrid.
10816
10817 2009-04-30 Ito Hiroyuki <ZXB01226 at nifty.com>
10818
10819 * src/gtk/x11menu.h (SUBWIN_PROTOTYPE): added.
10820 (struct SubWin, struct LegendWin, struct InfoWin): use
10821 "SUBWIN_PROTOTYPE".
10822 (struct CoordWin): remove.
10823
10824 * src/gtk/x11dialg.h (DIALOG_PROTOTYPE): added. use
10825 "DIALOG_PROTOTYPE" for all struct which inherit "DialogType"
10826 struct.
10827
10828 * src/gtk/x11cood.c (CoordWinSetCoord, CoordWinUpdate): use
10829 "struct InfoWin" instead of "struct CoordWin".
10830
10831 2009-04-28 Ito Hiroyuki <ZXB01226 at nifty.com>
10832
10833 * src/gtk/gtk_subwin.c (ev_button_down_tree): remove.
10834 (ev_button_down): don't respond to right button click.
10835 (ev_button_down): call "tree_update()" when "d->type" is
10836 "TypeLegendWin".
10837 (ev_button_up): added.
10838 (list_sub_window_create, tree_sub_window_create): call back
10839 function for "button-release-event" is "ev_button_up()".
10840
10841 * src/gtk/x11view.h (struct FocusObj): change name of the struct
10842 from "focuslist".
10843 (struct Point): moved from x11view.c and change name of the struct
10844 from "pointslist".
10845
10846 * src/gtk/x11menu.c (SetPoint): show width and height when
10847 "d->Capture" is TRUE.
10848
10849 2009-04-27 Ito Hiroyuki <ZXB01226 at nifty.com>
10850
10851 * src/gtk/x11menu.c (create_windowmenu): change accel path of
10852 "View" menu.
10853 (create_legendmenu): do not gettextize menu title.
10854 (create_legendsubmenu): gettextize "label".
10855 (create_legendsubmenu): remove under score from "label" for accel
10856 path string.
10857
10858 * src/gtk/gtk_subwin.c (numeric_cb, string_cb): do nothing when
10859 "d->type" is "TypeLegendWin".
10860
10861 * src/gtk/x11lgnd.c (LEGEND_WIN_COL_HIDDEN, LEGEND_WIN_COL_PROP)
10862 (LEGEND_WIN_COL_X, LEGEND_WIN_COL_Y): added.
10863 (legend_list_set_val): use "case" instead of "strcmp()".
10864 (enum CHANGE_DIR, pos_edited, pos_x_edited, pos_y_edited): added.
10865 (CmLegendWindow): call "set_editable_cell_renderer_cb()" for
10866 "LEGEND_WIN_COL_X" and "LEGEND_WIN_COL_Y".
10867 (Llist): colum "x" and "y" is editable.
10868
10869 * src/gtk/x11file.c (FILE_WIN_COL_HIDDEN, FILE_WIN_COL_FILE)
10870 (FILE_WIN_COL_X, FILE_WIN_COL_Y): added.
10871 (file_list_set_val): use "case" instead of "strcmp()".
10872
10873 * src/gtk/x11axis.c (AXIS_WIN_COL_HIDDEN, AXIS_WIN_COL_NAME)
10874 (AXIS_WIN_COL_MIN, AXIS_WIN_COL_MAX, AXIS_WIN_COL_INC): added.
10875 (axis_list_set_val): use "case" instead of "strcmp()".
10876
10877 * src/gtk/x11merge.c (MERG_WIN_COL_HIDDEN, MERG_WIN_COL_FILE):
10878 added.
10879 (merge_list_set_val): use "case" instead of "strcmp()".
10880
10881 * src/gtk/gtk_liststore.h (tree_store_path_get_string): added.
10882
10883 2009-04-26 Ito Hiroyuki <ZXB01226 at nifty.com>
10884
10885 * src/gtk/ox11menu.c (menuinit): free "sdel->description" when
10886 error is occurred.
10887
10888 * src/oaxis.c (check_group): added.
10889 (axisuniqgroup): use "check_group()".
10890
10891 2009-04-25 Ito Hiroyuki <ZXB01226 at nifty.com>
10892
10893 * src/gtk/x11view.c (Focus): check if "man" is valid id.
10894
10895 * src/gtk/x11commn.c (AxisDel): call "delobj()" after check all
10896 instances.
10897
10898 * src/odraw.c (clear_bbox): check if "inst" is NULL.
10899
10900 * src/oaxis.c (INST_ARRAY_NUM): added.
10901 (axisdone): change "group" field of other instances belong to the
10902 same group.
10903 (get_axis_group_type): initialize "inst_array".
10904
10905 2009-04-24 Ito Hiroyuki <ZXB01226 at nifty.com>
10906
10907 * src/gtk/x11axis.c (enum CHANGE_DIR, pos_edited_common)
10908 (pos_x_edited, pos_y_edited): added.
10909 (CmAxisWindow): call "set_editable_cell_renderer_cb()" for
10910 "AXIS_WIN_COL_X" and "AXIS_WIN_COL_Y".
10911
10912 * src/gtk/gtk_subwin.c (start_editing): call "UnFocus()".
10913 (set_cell_renderer_cb): set "list[i].edited_id" when
10914 "g_signal_connect()" is called for "edited" signal.
10915 (set_editable_cell_renderer_cb): added.
10916 (update): call "UnFocus()".
10917
10918 * src/gtk/gtk_liststore.h: add member "edited_id".
10919
10920 * src/gtk/gtk_liststore.c (create_tree_view): initialize
10921 "list[i].edited_id".
10922
10923 * src/oaxis.c (axisgeometry): clear all bbox of instances belong
10924 to the group.
10925 (get_axis_group_type): add argument "check_all".
10926
10927 * src/gtk/x11menu.c (struct command_data): add member "button",
10928 (createcommand1, createcommand2): set pointer of the GtkToolItem
10929 to "cdata->button" when "cdata->button" is not NULL.
10930
10931 * src/gtk/x11file.c (set_btn_sensitivity_delete_cb)
10932 (set_btn_sensitivity_insert_cb, set_sensitivity_by_row_num): added.
10933 (MathDialogSetup, FileMoveDialogSetup, FileMaskDialogSetup): call
10934 "set_sensitivity_by_row_num()".
10935
10936 2009-04-23 Ito Hiroyuki <ZXB01226 at nifty.com>
10937
10938 * src/gtk/x11file.c (set_btn_sensitivity_cb)
10939 (set_sensitivity_by_selection): added.
10940 (MathDialogSetup, FileMoveDialogSetup, FileMaskDialogSetup): call
10941 "set_sensitivity_by_selection()"
10942
10943 * src/oshell.c (cmdsecurity): use "set_security()".
10944
10945 * src/shell.c (set_security, set_environ): added.
10946
10947 * src/gtk/x11commn.c (LoadNgpFile): check execution of
10948 "shell::shell" for loding graph is success or not.
10949
10950 * src/gtk/x11view.c (create_popup_menu): change title of a
10951 menuitem from "Show cross" to "cross Gauge".
10952 (ViewerEvKeyDown): change case from " GDK_KP_Space" to "
10953 GDK_space". remove case for "GDK_BackSpace".
10954
10955 * src/gtk/x11opt.c (MiscDialogSetupItem): remove codes related to
10956 widgets visibility.
10957 (MiscDialogSetup): remove codes related to widgets visibility and
10958 change order of widgets.
10959 (MiscDialogClose): remove codes related to
10960 widgets visibility.
10961
10962 * src/gtk/x11menu.h (enum MenuID): add "MenuIdToggleStatusBar",
10963 "MenuIdToggleRuler", "MenuIdToggleScrollbar",
10964 "MenuIdToggleCToolbar", "MenuIdTogglePToolbar",
10965 MenuIdToggleCrossGauge", "MenuIdAxisUndo" and "MenuIdFileMath".
10966 (struct Viewer): add "PToolbar" and "CToolbar", remove
10967 "ShowCross".
10968
10969 * src/gtk/x11menu.c (create_filemenu): add menu item for "Math
10970 Transformation".
10971 (create_axismenu): add menu item for "Scale Undo".
10972 (show_win_menu_cb): set active state for "ToggleStatusBar",
10973 "ToggleRuler", "ToggleScrollbar", "ToggleCToobar", "TogglePToobar"
10974 and "ToggleCrossGauge".
10975 (toggle_view_cb): added.
10976 (create_windowmenu): create some menu items to show and hide
10977 widgets.
10978 (create_windowmenu): now the title of this menu is "View".
10979 (createmenu): reorder menus.
10980 (create_toolbar): add argument "hbox" and set GtkHandleBox to the
10981 variable.
10982 (set_widget_visibility): add argument "cross" and set visibility of
10983 some other widgets and cross gauge.
10984 (setupwindow): add argment to call "create_toolbar()".x
10985 (application): save settings for widgets visibility.
10986
10987 * src/gtk/x11file.c (CmFileMenu): add case for "MenuIdFileMath".
10988
10989 * src/gtk/x11dialg.h (struct MiscDialog): remove member "ruler"
10990 and "statusbar".
10991
10992 * src/gtk/x11axis.c (CmAxisMenu): add case for "MenuIdAxisUndo".
10993
10994 * src/gtk/ox11menu.h (struct menulocal): add member "scrollbar",
10995 "ctoolbar", "show_cross" and "ptoolbar".
10996 (enum SAVE_CONFIG_TYPE): add "SAVE_CONFIG_TYPE_TOGGLE_VIEW".
10997
10998 * src/gtk/ox11menu.c (MenuConfigToggleView): added.
10999 (MenuConfigArrray): add "MenuConfigToggleView".
11000 (menu_save_config): add codes for "SAVE_CONFIG_TYPE_TOGGLE_VIEW".
11001
11002 * src/nconfig.c (replaceconfig_match): return "buf" when next
11003 section was found.
11004 (replaceconfig): print "buf" after print configurations if "buf"
11005 is not NULL.
11006
11007 2009-04-22 Ito Hiroyuki <ZXB01226 at nifty.com>
11008
11009 * src/gtk/x11view.c (CmEditMenuCB): add case for
11010 "MenuIdAlignLeft", "MenuIdAlignVCenter", "MenuIdAlignRight",
11011 "MenuIdAlignTop", "MenuIdAlignHCenter" and "MenuIdAlignHBottom".
11012
11013 * src/gtk/x11menu.h (enum MenuID): add "MenuIdAlignLeft",
11014 "MenuIdAlignVCenter", "MenuIdAlignRight", "MenuIdAlignTop",
11015 "MenuIdAlignHCenter" and "MenuIdAlignHBottom".
11016
11017 * src/gtk/x11menu.c (hide_edit_menu_cb, create_alignmenu): added.
11018 (create_editmenu): call "create_alignmenu()".
11019
11020 * src/object.h (struct objlist): add member "child".
11021
11022 * src/object.c (addobject): set "parent->child" if "parent" in not
11023 NULL.
11024 (addobject): initialize "objnew->child" as NULL.
11025 (addobject): change the order of object list.
11026
11027 2009-04-21 Ito Hiroyuki <ZXB01226 at nifty.com>
11028
11029 * src/gtk/x11view.h (ROTATE_CLOCKWISE, ROTATE_COUNTERCLOCKWISE)
11030 (enum FOCU_OBJ_TYPE): added.
11031
11032 * src/gtk/x11view.c (enum ViewerPopupIdn): add "VIEW_CUT",
11033 "VIEW_PASTE" add "VIEW_DUP".
11034 (CopyFocusedObjects, CutFocusedObjects, check_last_insts)
11035 (focus_new_insts, paste_cb, PasteObjectsFromClipboard): added.
11036 (create_popup_menu): add cut, copy and paste menu item.
11037 (check_focused_obj_type): added.
11038 (do_popup): use "check_focused_obj_type()".
11039 (ViewerPopupMenu): add case for "VIEW_CUT", "VIEW_PASTE" add
11040 "VIEW_DUP".
11041 (CmEditMenuCB): added.
11042
11043 * src/gtk/x11menu.h (enum MenuID): add "MenuIdEditCut",
11044 "MenuIdEditCopy", "MenuIdEditPaste", "MenuIdEditDelete",
11045 "MenuIdEditRotateCW" and "MenuIdEditRotateCCW".
11046
11047 * src/gtk/x11menu.c (show_edit_menu_cb, hide_edit_menu_cb)
11048 (create_editmenu): added.
11049 (createmenu): call "create_editmenu()".
11050
11051 2009-04-19 Ito Hiroyuki <ZXB01226 at nifty.com>
11052
11053 * src/orect.c (rectrotate, rectmove, rectchange, rectzoom)
11054 (rectgeometry): use "clear_bbox()".
11055 (set_position, get_position): added.
11056 (rectdraw): use "get_position()".
11057 (rectrotate, rectmove, rectchange, rectzoom): use "set_position()".
11058
11059 * src/otext.c (textgeometry, textmove, textrotate, textzoom): use
11060 "clear_bbox()".
11061
11062 * src/opolygon.c (polygeometry): use "clear_bbox()".
11063
11064 * src/omerge.c (mergefile, mergemove, mergezoom, mergegeometry):
11065 use "clear_bbox()".
11066
11067 * src/omark.c (markmove, markrotate, markzoom, markgeometry): use
11068 "clear_bbox()".
11069
11070 * src/oline.c (arrowput): use "clear_bbox()".
11071
11072 * src/olegend.c (legendgeometry, legendmove, legendrotate)
11073 (legendchange, legendzoom): use "clear_bbox()".
11074
11075 * src/ocurve.c (curvegeometry): use "clear_bbox()".
11076
11077 * src/oaxis.c (axisgeometry, axismove2, axisrotate2)
11078 (axischange2, axischange, axiszoom2, axisadjust, set_group_pos):
11079 use "clear_bbox()".
11080
11081 * src/oarc.c (arcgeometry, arcmove, arcchange, arcrotate)
11082 (arczoom): use "clear_bbox()".
11083
11084 * src/odraw.c (clear_bbox): added.
11085
11086 2009-04-17 Ito Hiroyuki <ZXB01226 at nifty.com>
11087
11088 * src/oagrid.c (struct axis_prm, struct axis_pos)
11089 (struct grid_prm, get_grid_prm, draw_grid_line, draw_background)
11090 (calc_intersection): added.
11091 (agriddraw): use "get_grid_prm()", "draw_grid_line()" and
11092 "draw_background()".
11093
11094 2009-04-16 Ito Hiroyuki <ZXB01226 at nifty.com>
11095
11096 * src/gtk/x11view.c (do_popup): popup item related to change order
11097 of instances is also sesensitive when the focused instances is
11098 "merge" object.
11099 (reorder_object): reorder instances when the focused instance is
11100 "merge" object.
11101
11102 * src/oaxis.c (axis_get_box): added.
11103 (axisbbox2): use "axis_get_box()".
11104 (axisrotate2, axisrotate): added.
11105 (axis): add field "rotate".
11106
11107 2009-04-15 Ito Hiroyuki <ZXB01226 at nifty.com>
11108
11109 * src/gtk/x11menu.c (SetPoint): show the value of "s->Angle" when "d->Angle"
11110 is greater or equal to 0.
11111
11112 * src/gtk/x11menu.h (struct Viewer): add member "Angle".
11113
11114 * src/gtk/x11view.c (show_focus_line_arc): add argument "clear"
11115 and save previous state when "clear" is TRUE.
11116 (ShowFocusLine): add argument "clear".
11117 (mouse_move_change): second argument of "ShowFocusLine()" is TRUE
11118 at the first time to call "ShowFocusLine()".
11119 (enum ViewerPopupIdn): add "VIEW_ROTATE_CLOCKWISE" and "VIEW_ROTATE_COUNTER_CLOCKWISE".
11120 (create_popup_menu): added.
11121 (create_popup_menu): add item "_Rotate".
11122 (VIEWER_POPUP_ITEM_ROTATE): added.
11123 (RotateFocusedObj): added.
11124 (do_popup): set sensitivity of "d->popup_item[VIEWER_POPUP_ITEM_ROTATE]".
11125 (ViewerPopupMenu): add case for "VIEW_ROTATE_CLOCKWISE" and "VIEW_ROTATE_CONTER_CLOCKWISE"
11126
11127 * src/orect.c (rectrotate): added.
11128
11129 * src/otext.c (textrotate): added.
11130 (text): add field "rotate".
11131
11132 * src/orect.c (rectrotate): added.
11133 (rect): add field "rotate".
11134
11135 * src/opolygon.c (opoly): add field "rotate".
11136
11137 * src/omark.c (markrotate): added.
11138 (mark): add field "rotate".
11139
11140 * src/oline.c (arrow): add field "rotate".
11141
11142 * src/olegend.c (rotate, legendrotate): added.
11143
11144 * src/ocurve.c (curve): add field "rotate".
11145
11146 * src/oarc.c (arcrotate): added.
11147 (arc): add field "rotate".
11148
11149 2009-04-14 Ito Hiroyuki <ZXB01226 at nifty.com>
11150
11151 * src/gtk/ox11menu.c (mxd2p, mxd2px, mxd2py, mxp2d): remove.
11152
11153 * src/gtk/x11view.c (mxd2p, mxp2d coord_conv_x, coord_conv_y)
11154 (draw_frame_rect, draw_focus_line): added.
11155 (GetFocusFrame, ShowFocusFrame, show_focus_line_arc)
11156 (draw_frame_rect, ShowFocusLine, ShowPoints, ShowFrameRect)
11157 (ShowCrossGauge, get_mouse_cursor_type): use "coord_conv_x()" and
11158 "coord_conv_y()".
11159 (ShowFocusLine): use "draw_frame_rect()" and "draw_focus_line()".
11160
11161 2009-04-13 Ito Hiroyuki <ZXB01226 at nifty.com>
11162
11163 * src/gtk/x11view.c (arc_get_angle, show_focus_line_arc): added.
11164 (ShowFocusLine): call "show_focus_line_arc()" when focused object
11165 is "arc".
11166 (ShowFocusLine): add argument "state".
11167 (mouse_up_change): check if the focused object is "arc".
11168
11169 * src/oarc.h: added.
11170
11171 * src/oarc.c (arcbbox): add points to modify angle.
11172 (arcchange): added.
11173 (arc): add "change" field.
11174
11175 * src/gtk/ogra2cairo.c (gra2cairo_output): do nothing when "a1 ==
11176 a2" in the case of "code" ic "C".
11177
11178 * src/gtk/x11commn.c (ToFullPath): use loop to modify "file" field
11179 of "file" and "merge" object.
11180
11181 2009-04-11 Ito Hiroyuki <ZXB01226 at nifty.com>
11182
11183 * src/gtk/x11view.c (do_popup): check if the focused object is
11184 child of the "legend" object when "num == 1" .
11185
11186 2009-04-10 Ito Hiroyuki <ZXB01226 at nifty.com>
11187
11188 * src/gtk/x11view.c (ShowPoints): draw arc and rectangle when
11189 "num" is greater or equal to 2.
11190 (mouse_move_drag, mouse_move_zoom, mouse_move_change)
11191 (mouse_move_scroll, mouse_move_draw): added.
11192 (ViewerEvMouseMove): use "mouse_move_drag()", "mouse_move_zoom()",
11193 "mouse_move_change()", "mouse_move_scroll()" and
11194 "mouse_move_draw()".
11195 (get_mouse_cursor_type): return "GDK_TCROSS" when "d->MoveData" is
11196 TRUE.
11197
11198 2009-04-09 Ito Hiroyuki <ZXB01226 at nifty.com>
11199
11200 * src/gtk/x11view.c (ShowCrossGauge): don't call
11201 "gdk_window_get_position()".
11202 (ViewerEvMouseMotion): call "gdk_event_request_motions()".
11203 (ViewerWinSetup): set GDK_POINTER_MOTION_HINT_MASK to "d->Win".
11204
11205 2009-04-07 Ito Hiroyuki <ZXB01226 at nifty.com>
11206
11207 * src/gtk/x11scrip.h: remove.
11208
11209 * src/gtk/x11scrip.c: remove.
11210
11211 * src/gtk/x11menu.c (script_exec): added.
11212 (create_addin_menu): use "script_exec()" as callback.
11213
11214 2009-04-06 Ito Hiroyuki <ZXB01226 at nifty.com>
11215
11216 * src/gtk/x11lgnd.c (LegendWinLegendUpdate): remove argument of
11217 function "UnFocus()".
11218
11219 * src/gtk/x11view.c (clear_focus_obj): remove unused arguments.
11220 (UnFocus): remove unused argument "init_cursor".
11221 (CloseGC, Clear, CmViewerButtonArm, Focus): remove argument of
11222 function "UnFocus()".
11223
11224 * src/gtk/x11commn.c (axis_move_each_obj): added.
11225 (AxisMove): use "axis_move_each_obj()".
11226
11227 * src/gtk/x11axis.c (AxisWinAxisTop, AxisWinAxisLast)
11228 (AxisWinAxisUp, AxisWinAxisDown): added.
11229 (axiswin_ev_key_down): call "AxisWinAxisTop()",
11230 "AxisWinAxisLast()", "AxisWinAxisUp()" and "AxisWinAxisDown()".
11231 (Popup_list): set "AxisWinAxisTop()", "AxisWinAxisLast()",
11232 "AxisWinAxisUp()" and "AxisWinAxisDown()" to related member.
11233
11234 * src/ofit.c (enum FitError, display_equation): added.
11235 (fitpoly, fituser, fitfit): use "FitError".
11236 (fitpoly, fituser): use "snprintf()" instead of "sprintf()".
11237 (fitpoly, fituser): call "display_equation()".
11238 (fitpoly, fituser): return "enum FitError".
11239 (fitfit): change type of "type" from "int" to "enum FIT_OBJ_TYPE".
11240
11241 * demo/demo2.ngp.in: use "fit::calc" for legend text.
11242
11243 * src/gtk/x11graph.c (CmGraphHistory, DirectoryDialogClose):
11244 remove argument of "ErrorMessage()".
11245
11246 * src/gtk/x11file.c (FitDialogSave): check return value of
11247 "nopen()".
11248 (FitDialogSave): call "ErrorMessage()" instead of "MessageBox()".
11249
11250 * src/gtk/x11commn.c (SaveDrawrable): check return value of
11251 "nopen()".
11252 (SaveDrawrable): call "ErrorMessage()" instead of "MessageBox()".
11253 (SaveDrawrable): return "error" instead of "! error".
11254 (GraphSave): call "reset_graph_modified()", "changefilename()",
11255 "AddNgpFileList()" and "SetFileName()" only when success
11256 "SaveDrawrable()".
11257 (ErrorMessage): argument of function is now "void".
11258
11259 2009-04-04 Ito Hiroyuki <ZXB01226 at nifty.com>
11260
11261 * src/mathcode.c (mathexpand, calculate): new upstream
11262 release (6.3.48).
11263
11264 * driver/gra2ps.c: new upstream release (6.3.48).
11265
11266 * driver/Ngraph.ps: new upstream release (6.3.48).
11267
11268 2009-04-03 Ito Hiroyuki <ZXB01226 at nifty.com>
11269
11270 * src/ofit.c (fitfit): use loop to initialize values related to
11271 parameters "%0?" and "parameter0?".
11272 (fitcalc): added.
11273 (fit): add member "calc".
11274
11275 * src/omath.c (mparam): bug fix: fix calculation of "m".
11276 (struct mlocal): now member "idpm" is array.
11277 (msettbl): use loop to set value related to "mlocal->idpm[]".
11278 (minit): use loop to set value to "mlocal->idpm[]".
11279
11280 2009-04-02 Ito Hiroyuki <ZXB01226 at nifty.com>
11281
11282 * src/gtk/x11graph.c (DirectoryDialogSetup): change width of
11283 "d->dir".
11284
11285 * src/gtk/ogra2cairo.c (relative_move): added.
11286 (draw_str, gra2cairo_output): use "relative_move()" instead of
11287 "cairo_rel_move_to()".
11288
11289 2009-04-01 Ito Hiroyuki <ZXB01226 at nifty.com>
11290
11291 * src/gtk/x11merge.c (Mlist): gettextize.
11292
11293 * src/gtk/x11file.c (Flist): gettextize.
11294
11295 * src/gtk/x11axis.c (Alist): gettextize.
11296
11297 * src/gtk/x11lgnd.c (legend_list_set_val): just set converted text
11298 to tree view when "type" is "LegendTypeText".
11299 (Llist): gettextize.
11300 (Llist): ellipsize mode of "property" column is
11301 "PANGO_ELLIPSIZE_END".
11302
11303 * src/gtk/gtk_liststore.c (create_column): add attribute
11304 "ellipsize" to "renderer".
11305
11306 * src/gtk/gtk_liststore.h (_list_store): add member "ellipsize".
11307
11308 * src/ofile.c (search_mask): check if the index "i" of array
11309 "mask" is lesser than "n".
11310
11311 * src/gtk/x11graph.c (CmHelpHelp, about_link_activated_cb): use
11312 "execlp()" instead of "system()".
11313
11314 2009-03-31 Ito Hiroyuki <ZXB01226 at nifty.com>
11315
11316 * src/gtk/x11file.c (FileMoveDialogClose): free "ptr".
11317 (FileMoveDialogClose): call "set_graph_modified()".
11318
11319 * src/gtk/x11opt.c (PrefFontDialogUpdate): free "fontalias".
11320
11321 * src/shell.c (shputstdout, shprintfstdout): check return value of
11322 "write()".
11323 (expand, checkcmd, cmdexec): use "n_mkstemp()" instead of
11324 "tempnam()".
11325
11326 * src/ioutil.c (n_mkstemp): added.
11327
11328 * src/ogra2prn.c (mytempfile): added.
11329 (gra2p_output): use "mytempfile()".
11330
11331 * src/nconfig.c (replaceconfig_match, removeconfig_match, make_backup): added.
11332 (replaceconfig): use "replaceconfig_match()" and "make_backup()".
11333 (removeconfig): use "removeconfig_match()" and "make_backup()".
11334 (replaceconfig, removeconfig): use "tmpfile()" instead of "tempnam()".
11335 (lockconfig): call "msleep()" while checking "configlocked()".
11336
11337 2009-03-29 Ito Hiroyuki <ZXB01226 at nifty.com>
11338
11339 * driver/gra2wmf.c (getboundingbox): remove unused variable
11340 "exchange".
11341 (draw): remove unused variables "lBrush" and "rect".
11342
11343 2009-03-26 Ito Hiroyuki <ZXB01226 at nifty.com>
11344
11345 * src/gtk/x11axis.c (NumDialogSetup): arrange widgets.
11346
11347 * src/oprm.c (prmload): use "R_OK", "W_OK", "X_OK" for "access()".
11348
11349 * src/omerge.c (mergeload): use "R_OK", "W_OK", "X_OK" for
11350 "access()".
11351
11352 * src/ofile.c (f2dload): use "R_OK", "W_OK", "X_OK" for
11353 "access()".
11354
11355 * src/nconfig.c (writecheckconfig): use "R_OK", "W_OK", "X_OK" for
11356 "access()".
11357
11358 * src/ioutil.c (findfilename, nsearchpath, nglob2): use "R_OK",
11359 "W_OK", "X_OK" for "access()".
11360
11361 * src/ofile.c (f2dload): use "R_OK", "W_OK", "X_OK" for "access()".
11362
11363 * src/gra.c (GRAC_INIT_VAL): added.
11364 (GRAClist): use "GRAC_INIT_VAL".
11365 (get_gra_font): added.
11366 (GRAinputold): use "get_gra_font()".
11367
11368 * src/shell.c (shputstderr, shprintfstderr): comment out.
11369
11370 * src/ogra2.c (gra2disconnect): comment out.
11371
11372 * src/object.c (vdisplaywindow, unregisterallevloop)
11373 (chkobjectlocal, chkobjproc, getobjproc, getuniqname): comment
11374 out.
11375
11376 * src/nstring.c (getitok3, getitok4): comment out.
11377
11378 * src/ioutil.c (nselectdir, nselectfile): comment out.
11379
11380 * src/gra.c (GRAdirect, GRAremark): comment out.
11381
11382 * src/gtk/ox11dlg.c (dialogclose): remove.
11383
11384 * src/gtk/ogra2cairo.c (FONT_FACE_NUM): added.
11385 (check_type): use "FONT_FACE_NUM".
11386
11387 * src/gtk/ogra2x11.c (gtkevsize): remove.
11388
11389 2009-03-24 Ito Hiroyuki <ZXB01226 at nifty.com>
11390
11391 * src/oprm.c (remarkconv): use "greektable_num()".
11392
11393 * src/gra.c (greektable_num): added.
11394 (FONTTBL_NUM): added.
11395 (GREEK_TBL_NUM): added.
11396 (GRAinputold): check index of "fonttbl[]".
11397
11398 2009-03-23 Ito Hiroyuki <ZXB01226 at nifty.com>
11399
11400 * src/gtk/ox11menu.c (SetCaption, graph_modified_sub): added.
11401 (set_graph_modified, reset_graph_modified): use
11402 "graph_modified_sub()".
11403 (gtkmenu): field "modified" use function "mxmodified".
11404 (mxmodified): added.
11405
11406 * src/gtk/x11menu.c (SetCaption): remove.
11407
11408 * src/ofile.c (f2dload_sub): added.
11409 (f2dload, f2dloaddum): use "f2dload_sub()".
11410
11411 * src/gtk/x11file.c (FileDialogSetupItemCommon,start_editing): use
11412 "CHK_STR()".
11413
11414 * src/gtk/x11axis.c (AxisDialogSetup, AxisCB)
11415 (AxisDialogSetupItem, AxisPosDialogSetupItem): use "CHK_STR()".
11416
11417 * src/gtk/x11print.c (DriverDialogSelectCB): use "CHK_STR()".
11418
11419 * src/gtk/ox11dlg.c (dlgconfirm): use "CHK_STR()".
11420
11421 * src/oaxis.c (axisautoscale): return 0 even if the return value
11422 of axisautoscalefile() is not 0.
11423
11424 2009-03-20 Ito Hiroyuki <ZXB01226 at nifty.com>
11425
11426 * src/gtk/x11print.c (OutputImageDialogSetupItem): sensitivity of
11427 dpi settings is FALSE for ps and pdf output.
11428
11429 2009-03-18 Ito Hiroyuki <ZXB01226 at nifty.com>
11430
11431 * src/gtk/x11view.c (ViewerWinFileUpdate): use "update_file_obj_multi()".
11432
11433 * src/gtk/x11file.c (update_file_obj_multi): added.
11434 (CmFileUpdate, CmFileOpen): use "update_file_obj_multi()".
11435
11436 2009-03-17 Ito Hiroyuki <ZXB01226 at nifty.com>
11437
11438 * src/gtk/ox11dlg.c (get_sarray_argument): accept multi "sarray"s.
11439
11440 2009-03-12 Ito Hiroyuki <ZXB01226 at nifty.com>
11441
11442 * src/gtk/x11menu.h (struct NgraphApp): remove member "Message3".
11443
11444 * src/gtk/x11view.c (init_zoom, mouse_up_zoom)
11445 (ViewerEvMouseMove): remove "SetZoom()" or "ResetZoom()".
11446 (mouse_up_zoom): set coordinate of a mouse to "d->MouseX2" and
11447 "d->MouseY2".
11448 (ViewerEvLButtonUp): call "SetPoint()" after call "SetCursor()".
11449
11450 * src/gtk/x11print.c (CmOutputDriver): call "ResetStatusBar()".
11451
11452 * src/gtk/x11menu.c (SetZoom, ResetZoom): remove.
11453
11454 2009-03-11 Ito Hiroyuki <ZXB01226 at nifty.com>
11455
11456 * src/gtk/x11menu.c (tool_button_enter_leave_cb): use
11457 "SetStatusBarSub()" instead of "SetStatusBarXm()".
11458 (SetStatusBarXm): remove.
11459 (ResetZoom, SetZoom, ResetStatusBar): use "SetStatusBarSub()" or
11460 "ResetStatusBarSub()".
11461 (SetStatusBarSub, ResetStatusBarSub): added.
11462
11463 * src/gtk/ox11menu.c (mgtkdisplaystatus): use "DisplayDialog()"
11464 instead of "DisplayStatus()".
11465
11466 * src/gtk/x11graph.c (CmGraphNewFrame, CmGraphNewSection)
11467 (CmGraphNewCross, CmGraphAllClear): remove.
11468 (CmGraphNewMenu): clear graph and set NULL to
11469 "NgraphApp.FileName". call "reset_graph_modified()".
11470
11471 * src/gtk/x11view.c (ViewerWinSetup): use "value-changed" signal
11472 instead of "change-value" signal for "d->HScroll" and
11473 "d->VScroll".
11474 (ViewerEvVScroll, ViewerEvHScroll): change return value and
11475 argument. don't call "gdk_window_get_position()",
11476 "gdk_draw_drawable()", "gdk_drawable_get_size()", "gdk_gc_new()"
11477 and "g_object_unre()".
11478 (scrollbar_scroll_cb, ViewerEvMouseMove, ViewerEvScroll)
11479 (ViewerEvKeyDown): don't call "ViewerEvVScroll()" or
11480 "ViewerEvHScroll()" after call "range_increment()".
11481 (SetHRuler, SetVRuler): change argument. get size of drawable
11482 widget inside the function.
11483
11484 2009-03-10 Ito Hiroyuki <ZXB01226 at nifty.com>
11485
11486 * src/gtk/gtk_liststore.c (create_column): set user data with
11487 "g_object_set_data()" instead of "g_object_set()".
11488
11489 * src/gtk/x11file.c (start_editing_type, start_editing): remove
11490 unused variable "list".
11491
11492 * src/gtk/x11axis.c (start_editing): remove unused variable
11493 "list".
11494
11495 * src/gtk/gtk_widget.c (spin_entry_set_range)
11496 (spin_entry_set_inc, spin_entry_set_val, spin_entry_get_val)
11497 (_create_spin_entry): use "g_object_[gs]et_data()" instead of
11498 "gtk_object_[gs]et_user_data()".
11499
11500 * src/gtk/gtk_subwin.c (numeric_cb, string_cb, start_editing): use
11501 "g_object_[gs]et_data()" instead of
11502 "gtk_object_[gs]et_user_data()".
11503
11504 * src/gtk/x11lgndx.c (LegendGaussDialogSetup): use
11505 "gtk_widget_set_size_request()" instead of
11506 "gtk_drawing_area_size()".
11507
11508 * src/gtk/x11opt.c (add_str_to_array): remove.
11509
11510 * src/gtk/x11lgnd.c (CmOptionTextDef): save and restore modified
11511 state.
11512
11513 * src/gtk/x11file.c (CmOptionFileDef): save and restore modified
11514 state.
11515
11516 * src/ofile.c (f2dstore): use "nstrdup()" instead of "memalloc()"
11517 to create string "[EOF]\n".
11518 (f2dstat, f2dstat2): use "nstrdup()" instead of "memalloc()".
11519
11520 * src/osystem.c (sysinit): use "nstrdup()" instead of "memalloc()"
11521 to create string "./".
11522
11523 * src/ofit.c (fitfit): use "nstrdup()" instead of "memalloc()" to
11524 create string "equation".
11525
11526 * src/ntime.c (ndate, ntime): use "nstrdup()" instead of
11527 "memalloc()".
11528
11529 * src/nconfig.c (removeconfig): free "buf" when "change" is FALSE.
11530
11531 * src/ioutil.c (fgetline): set NULL to "*buf" when EOF or error.
11532
11533 2009-03-09 Ito Hiroyuki <ZXB01226 at nifty.com>
11534
11535 * src/gtk/ox11menu.c (enum menu_config_type): add
11536 "MENU_CONFIG_TYPE_CHILD_WINDOW", "MENU_CONFIG_TYPE_HISTORY",
11537 "MENU_CONFIG_TYPE_COLOR", "MENU_CONFIG_TYPE_SCRIPT" and
11538 "MENU_CONFIG_TYPE_DRIVER".
11539 (struct child_win_stat, MenuConfigDriver, MenuConfigScript)
11540 (MenuConfigMisc, MenuConfigViewer, MenuConfigGeometry)
11541 (MenuConfigChildGeometry, MenuConfigArrray, BUF_SIZE)
11542 (add_str_with_int_to_array, add_child_geometry_to_array)
11543 (add_geometry_to_array, add_color_to_array)
11544 (add_prm_str_to_array, save_ext_driver_config)
11545 (save_script_config, add_str_to_array, menu_save_config_sub)
11546 (menu_save_config): added.
11547 (menu_config_set_child_window_geometry): use "struct child_win_stat *"
11548 (addmenu): initialize "MenuConfigHash" with "MenuConfigArrray".
11549
11550 * src/gtk/ox11menu.h (enum SAVE_CONFIG_TYPE)
11551 (SAVE_CONFIG_TYPE_X11MENU): added.
11552
11553 * src/gtk/x11opt.c (CHK_STR, save_font_config, save_misc_config)
11554 (save_script_config, save_ext_driver_config, save_viewer_config)
11555 (save_child_geometory_config, add_geometry_to_array)
11556 (save_geometory_config, add_prm_str_to_array)
11557 (SAVE_CONFIG_TYPE_X11MENU, SAVE_CONFIG_TYPE): remove.
11558 (save_config): use "menu_save_config()" and
11559 "gra2cairo_save_config()".
11560
11561 * src/nstring.h (CHK_STR): add
11562
11563 * src/gtk/ogra2cairo.c (gra2cairo_save_config): added.
11564
11565 * src/oaxis.c (enum axis_config_type): remove.
11566 (axisloadconfig): use "obj_load_config()".
11567
11568 * src/otext.c (TextConfig): added.
11569 (textloadconfig): use "obj_load_config()".
11570 (textsaveconfig): use "obj_save_config()".
11571 (addtext): initialize "TextConfigHash".
11572
11573 * src/ofile.c (f2dinit): use "nstrdup()" instead of "memalloc()".
11574 (f2dinit): free "s3" and "s4" when error is occurred.
11575 (f2dsaveconfig): use "obj_save_config()".
11576 (f2dloadconfig): use "obj_load_config()".
11577 (enum file_config_type, struct file_config): remove.
11578
11579 * src/oaxis.c (axisinit): use "nstrdup()" instead of "memalloc()".
11580
11581 2009-03-06 Ito Hiroyuki <ZXB01226 at nifty.com>
11582
11583 * src/gtk/x11commn.c (LoadPrmFile, LoadNgpFile): call
11584 "reset_graph_modified()".
11585
11586 * src/gtk/x11view.c (graph_dropped): don't call
11587 "reset_graph_modified()".
11588
11589 * src/gtk/x11graph.c (CmGraphLoad): don't call
11590 "reset_graph_modified()".
11591
11592 * src/omerge.c (mergestore): bug fix: buffer over run. use
11593 "nstrdup()" instead of "memalloc()".
11594
11595 * src/gtk/gtk_liststore.c (create_tree_view): header of the tree
11596 view is visible when "n" greater than 1.
11597 (list_store_set_sort_all, list_store_set_sort_column): header of
11598 the tree view is always visible.
11599
11600 * src/gtk/x11view.c (struct viewer_popup): add member "type".
11601 (create_menu): create GtkCheckMenuItem when "popup[i].type" is
11602 "POP_UP_MENU_ITEM_TYPE_CHECK".
11603 (do_popup): set active state of the menu item when i is
11604 "POPUP_ITEM_HIDE".
11605 (ViewCross): add argument "dtate".
11606
11607 * src/gtk/x11merge.c (Popup_list): add initial data for member
11608 "type".
11609 (POPUP_ITEM_HIDE): add
11610 (MergeWinExpose): set active state of the menu item when i is
11611 "POPUP_ITEM_HIDE".
11612
11613 * src/gtk/x11menu.h (enum pop_up_menu_item_type): added.
11614
11615 * src/gtk/x11lgnd.c (Popup_list): add initial data for member
11616 "type".
11617 (POPUP_ITEM_HIDE): add
11618 (LegendWinExpose): set active state of the menu item when i is
11619 "POPUP_ITEM_HIDE".
11620
11621 * src/gtk/x11file.c (Popup_list): add initial data for member
11622 "type".
11623 (POPUP_ITEM_HIDE): add
11624 (popup_show_cb): set active state of the menu item when i is
11625 "POPUP_ITEM_HIDE".
11626
11627 * src/gtk/x11axis.c (Popup_list): add initial data for member
11628 "type".
11629 (POPUP_ITEM_HIDE): added.
11630 (popup_show_cb): set active state of the menu item when i is
11631 "POPUP_ITEM_HIDE".
11632
11633 * src/gtk/gtk_subwin.h (struct subwin_popup_list): add member "type".
11634
11635 * src/gtk/gtk_subwin.c (tree_set_hidden_state, set_hidden_state):
11636 added.
11637 (list_sub_window_hide): use "set_hidden_state()".
11638 (tree_sub_window_hide): use "tree_set_hidden_state()"
11639 (sub_win_create_popup_menu): create GtkCheckMenuItem when
11640 "list[i].type" is "POP_UP_MENU_ITEM_TYPE_CHECK".
11641
11642 * src/gtk/ox11menu.c (reset_graph_modified, set_graph_modified):
11643 call "SetCaption()".
11644
11645 * src/gtk/x11menu.c (SetCaption): no argument. use "ngp" field of
11646 "menu" object for file name of the window title.
11647
11648 * src/gtk/x11commn.c (LoadPrmFile, LoadNgpFile, GraphSave): don't
11649 call "SetCaption()".
11650
11651 2009-03-05 Ito Hiroyuki <ZXB01226 at nifty.com>
11652
11653 * src/gtk/x11menu.c (SetPoint): add argument "struct Viewer *d".
11654 (SetPoint): show parameter when change, zoom or drag object.
11655 (change_window_state_cb): remove.
11656
11657 2009-03-04 Ito Hiroyuki <ZXB01226 at nifty.com>
11658
11659 * src/gtk/ogra2x11.c (gtkloadconfig): print warning when unused
11660 parameter is appeared.
11661
11662 * src/otext.c (textloadconfig): print warning when unused
11663 parameter is appeared.
11664
11665 * src/gtk/ogra2cairo.c (loadconfig): print warning when unused
11666 parameter is appeared.
11667
11668 * src/ofile.c (f2dloadconfig): print warning when unused
11669 parameter is appeared.
11670
11671 * src/gtk/ox11menu.c (mgtkloadconfig): print warning when unused
11672 parameter is appeared.
11673
11674 * src/oaxis.c (axisloadconfig): print warning when unused
11675 parameter is appeared.
11676
11677 * src/gtk/x11dialg.h (struct ViewerDialog): remove unused member
11678 "redraw".
11679
11680 * src/gtk/ox11menu.h (struct menulocal): remove unused member
11681 "autoredraw".
11682
11683 * src/gtk/x11opt.c (ViewerDialogSetupItem, ViewerDialogClose)
11684 (ViewerDialogSetup, save_viewer_config): remove codes related to
11685 "Menulocal.autoredraw".
11686
11687 * src/gtk/ox11menu.c (mxautoredraw): remove.
11688 (MenuConfig, menuinit, gtkmenu): remove codes related to
11689 "Menulocal.autoredraw".
11690
11691 * src/gtk/x11opt.c (enum SAVE_CONFIG_TYPE)
11692 (SAVE_CONFIG_TYPE_X11MENU, save_config): added.
11693 (DefaultDialogClose): use "save_config()" to save configuration.
11694 (PrefScriptDialogSetup, PrefDriverDialogSetup)
11695 (PrefFontDialogSetup, MiscDialogSetup, ExViewerDialogSetup)
11696 (ViewerDialogSetup): add a save button.
11697 (PrefScriptDialogClose, PrefDriverDialogClose)
11698 (PrefFontDialogClose, MiscDialogClose, ExViewerDialogClose)
11699 (ViewerDialogClose): save configuration if the save button is
11700 clicked.
11701
11702 2009-03-03 Ito Hiroyuki <ZXB01226 at nifty.com>
11703
11704 * src/gtk/x11opt.c (save_viewer_config, save_misc_config)
11705 (MiscDialogSetupItem, MiscDialogSetup, MiscDialogClose)
11706 (ViewerDialogSetupItem, ViewerDialogSetup, ViewerDialogClose):
11707 settings for status-bar and ruler are moved from viewer dialog to
11708 misc dialog, and setting for line attribute of focus frame is
11709 moved from misc dialog to viewer dialog
11710
11711 2009-02-28 Ito Hiroyuki <ZXB01226 at nifty.com>
11712
11713 * src/object.c (_newobj, _delobj): static.
11714
11715 2009-02-26 Ito Hiroyuki <ZXB01226 at nifty.com>
11716
11717 * src/gtk/x11view.c (ViewerEvMouseMove): don't call
11718 "CoordWinSetCoord()".
11719
11720 * src/gtk/x11menu.c (SetPoint): call "CoordWinSetCoord()".
11721
11722 * src/gtk/ox11menu.c (set_menu_config_mxlocal): remove.
11723 (gtkmenu): remove field "_gtklocal".
11724 (mx_clear): call "draw_paper_frame()" after call
11725 "gdk_draw_rectangle()".
11726 (menuinit): unref "Menulocal.pix" if "Menulocal.pix" is not NULL.
11727 (menu_config_set_prn_driver): remove.
11728
11729 * src/gtk/ox11menu.h (struct menulocal): remove unused member
11730 "output", "outputobh", "prnprinterroot".
11731 (struct mxlocal): remove mxlocal and use menulocal.
11732 (struct prnprinter): remove.
11733
11734 * src/gtk/x11opt.c (save_viewer_config, ViewerDialogSetupItem)
11735 (ViewerDialogSetup, ViewerDialogClose): add codes related to
11736 status bar.
11737
11738 * src/gtk/x11menu.c (toggle_status_bar): remove.
11739 (show_outputmenu_cb): added.
11740 (create_outputmenu): call "g_signal_connect()" for "Output" menu.
11741 (show_winmwnu_cb, create_windowmenu): remove codes related to
11742 status bar.
11743 (SetPoint): add offset to coordinate.
11744
11745 * src/gtk/x11opt_proto.h (Pref*DialogMoveSub): added.
11746 (Pref*DialogUp, Pref*DialogUp): use Pref*DialogMoveSub.
11747 (Pref*ListDefailtCb): respond to "GDK_Up", "GDK_Down" and
11748 "GDK_Delete".
11749
11750 2009-02-25 Ito Hiroyuki <ZXB01226 at nifty.com>
11751
11752 * src/gtk/x11view.c (ViewerEvLButtonDblClk): use
11753 "POINT_TYPE_DRAW_ALL".
11754
11755 * src/gtk/x11menu.h (POINT_TYPE_DRAW_ALL): add
11756
11757 * src/gtk/x11opt.c (script_free, script_init, extprinter_free)
11758 (extprinter_init): added.
11759 (PrefScriptDialogUpdate, PrefScriptDialogRemove)
11760 (PrefScriptDialogAdd, PrefScriptDialogUp, PrefScriptDialogDown)
11761 (script_list_defailt_cb, script_list_sel_cb)
11762 (PrefDriverDialogUpdate, PrefDriverDialogRemove)
11763 (driver_list_defailt_cb, driver_list_sel_cb)
11764 (PrefDriverDialogAdd, PrefDriverDialogUp, PrefDriverDialogDown)
11765 (PrefFontDialogUp, PrefFontDialogDown, font_list_defailt_cb)
11766 (font_list_sel_cb) : remove (use "x11opt_proto.h").
11767 (PrefScriptDialogSetupItem, PrefDriverDialogSetupItem): remove
11768 unused argument.
11769
11770 * src/gtk/ogra2cairo.c (free_font_map, create_font_map): remove
11771 codes related to "fcur->prev" and so on.
11772
11773 * src/gtk/ogra2cairo.h (struct fontmap): remove member "prev".
11774
11775 * src/gtk/Makefile.am (libngraph_la_SOURCES): add
11776 "x11opt_proto.h".
11777
11778 2009-02-24 Ito Hiroyuki <ZXB01226 at nifty.com>
11779
11780 * src/gtk/x11opt.c (PrefScriptDialogUp, PrefScriptDialogDown)
11781 (PrefDriverDialogUp, PrefDriverDialogDown, PrefFontDialogUp)
11782 (PrefFontDialogDown): add
11783 (scriptlist_sel_cb, drvlist_sel_cb, fontlist_sel_cb): set
11784 sensitivity of "d->up_b" and "d->down_b".
11785 (PrefScriptDialogSetup, PrefDriverDialogSetup)
11786 (PrefFontDialogSetup): create GtkButton "d->up_b" and "d->down_b".
11787
11788 * src/gtk/x11view.c (ShowPoints, mouse_up_lgend2): use
11789 "POINT_TYPE_DRAW1".
11790 (ViewerEvLButtonUp): use "POINT_TYPE_POINT".
11791 (ViewerEvMouseMove): use "POINT_TYPE_TRIM", "POINT_TYPE_POINT",
11792 "POINT_TYPE_DRAW1" and "POINT_TYPE_DRAW2".
11793 (ViewerEvKeyDown): use "POINT_TYPE_POINT".
11794 (ViewCopy): use "POINT_TYPE_POINT".
11795 (ShowPoints): use "POINT_TYPE_DRAW1".
11796 (mouse_up_lgend2): use "POINT_TYPE_DRAW1".
11797 (ViewerEvMouseMove, ViewerEvPaint): use "Mxlocal->gc" instead of
11798 newly created GdkGC.
11799
11800 * src/gtk/x11menu.h (POINT_TYPE_POINT, POINT_TYPE_DRAW1)
11801 (POINT_TYPE_DRAW2, POINT_TYPE_TRIM): added.
11802
11803 * src/gtk/x11menu.c (SetCursor): do nothing when "type" is same as
11804 "CursorType".
11805
11806 * src/gtk/ox11menu.c (mx_clear): turn off clipping after draw
11807 pixmap.
11808
11809 * src/gtk/ogra2x11.c (gtkevpaint): turn off clipping after draw
11810 pixmap.
11811
11812 2009-02-23 Ito Hiroyuki <ZXB01226 at nifty.com>
11813
11814 * src/gtk/ox11menu.c (mx_redraw): call "draw_paper_frame()" after
11815 call "GRAredraw()".
11816 (check_object_name): added.
11817 (mx_get_focused): use "check_object_name()" to check the object is
11818 exist in the argument.
11819 (gtkmenu): argument type of "focused" is "sa".
11820
11821 * src/gtk/x11menu.h (struct Viewer): add member "VRuler" and
11822 "HRuler".
11823
11824 * src/gtk/x11opt.c (ViewerDialogClose): call
11825 "set_widget_visibility()".
11826
11827 * src/gtk/x11menu.c (setupwindow): create GtkHRuler and GtkVRuler.
11828 (SetPoint): set position of "NgraphApp.Viewer.HRuler" and
11829 "NgraphApp.Viewer.VRuler".
11830 (set_widget_visibility): added.
11831 (application): call "set_widget_visibility()" after call
11832 "gtk_widget_show_all()".
11833
11834 * src/gtk/x11view.c (MakeRuler): remove.
11835 (SetVRuler, SetHRuler): added.
11836 (ChangeDPI): call "SetHRuler()" and "SetVRuler()".
11837 (ViewerEvHScroll): call "SetVRuler()".
11838 (ViewerEvVScroll): call "SetHRuler()".
11839 (draw_paper_frame): added.
11840 (Draw, create_pix): call "draw_paper_frame()".
11841 (ViewerWinSetup): call "ChangeDPI" after initialize "d->cx",
11842 "d->cy", "d->hscroll" and "d->vscroll".
11843 (ViewerEvPaint): don't call "MakeRuler()".
11844
11845 * src/gtk/main.c (my_sprintf): don't change "buf_size" when the
11846 return value of "realloc()" is NULL.
11847
11848 2009-02-20 Ito Hiroyuki <ZXB01226 at nifty.com>
11849
11850 * src/gtk/x11view.c (ViewerEvPaint): call "gdk_draw_drawable()"
11851 even if "GlobalLock" is TRUE.
11852 (ViewerEvPaint): don't check "chkobjinstoid(Menulocal.GRAobj,
11853 Menulocal.GRAoid)".
11854
11855 * demo/demo.ngp: use dialog::check
11856
11857 * src/gtk/ox11dlg.c (get_sarray_argument): added.
11858 (dlgradio, dlgcombo, dlgcheck): use "get_sarray_argument()".
11859
11860 * src/object.c (saveobj, restoreobj): remove.
11861 (_copyobj): static function.
11862
11863 * src/shellcm.c (cmput): never save and restore image of instance.
11864
11865 2009-02-19 Ito Hiroyuki <ZXB01226 at nifty.com>
11866
11867 * src/gtk/ox11dlg.c (dlgradio, dlgcombo, dlgcheck): return 1 when
11868 no arguments are given.
11869
11870 * src/shell.c (cmdstackfree): call "memfree(stdel->pat)".
11871 (cmdstackcat): initialize "stnew->pat".
11872 (cmdstackrmlast): call "memfree(stdel->pat)".
11873 (cmdexec): set NULL to "st->pat" if "st->pat" will not be used any
11874 more.
11875
11876 * src/gtk/x11opt.c (PrefScriptDialogRemove): call
11877 "memfree(sdel->description)".
11878
11879 * src/gtk/ox11menu.c (menudone): call "memfree(sdel->description)".
11880 (mx_get_focused): use "arrayfree2()" instead
11881 of "memfree()" to free "*rval".
11882
11883 * src/gtk/ox11dlg.c (dlggetopenfiles): use "arrayfree2()" instead
11884 of "memfree()" to free "*rval".
11885
11886 * src/oaxis.c (axisbbox): set NULL to "rval" when return value of
11887 "set_axis_box()" is NULL.
11888
11889 * src/otext.c (textbbox): set NULL to "rval" after call "arrayfree()".
11890
11891 * src/orect.c (rectbbox): set NULL to "rval" after call "arrayfree()".
11892
11893 * src/olegend.c (legendbbox): set NULL to "rval" after call "arrayfree()".
11894
11895 * src/omerge.c (mergebbox): set NULL to "rval" after call "arrayfree()".
11896
11897 * src/omark.c (markbbox): set NULL to "rval" after call "arrayfree()".
11898
11899 * src/oline.c (arrowbbox): set NULL to "rval" after call "arrayfree()".
11900
11901 * src/ofile.c (f2dgetcoord): set NULL to "rval" after call "arrayfree()".
11902
11903 * src/ocurve.c (curvebbox): set NULL to "rval" after call "arrayfree()".
11904
11905 * src/oarc.c (arcbbox): set NULL to "rval" after call "arrayfree()".
11906
11907 2009-02-18 Ito Hiroyuki <ZXB01226 at nifty.com>
11908
11909 * src/gtk/ox11dlg.c (dlgcombo_entry): remove.
11910 (dlgradio, dlgcombo, dlgcheck): check "select" field.
11911 (dlgcheck): now "check" field return array of selected index.
11912 (dialog): add field "select".
11913
11914 * src/gtk/x11gui.c (DialogRadio): initialize state of toggle
11915 button by the value of "*r".
11916 (DialogCombo, DialogComboEntry): add argument "sel" and activate
11917 item related to "sel".
11918 (DialogCheck): change type of argument from "int **r" to "int *r".
11919 (DialogCheck): initialize state of toggle button by the value of
11920 "r[i]".
11921
11922 * src/gtk/ox11menu.c (mx_get_focused): return 0 when "num" is less
11923 than 1.
11924 (mx_echo): added.
11925 (gtkmenu): add field "echo".
11926
11927 2009-02-17 Ito Hiroyuki <ZXB01226 at nifty.com>
11928
11929 * src/ofile.c (f2ddraw): do "fp->datanum = f2dlocal->num" after
11930 call "fitout()" when "fp->datanum" is zero.
11931
11932 * src/gtk/x11opt.c (CHK_STR): added.
11933 (save_ext_driver_config, save_script_config)
11934 (SetScriptDialogSetupItem, SetDriverDialogSetupItem): use
11935 "CHK_STR"
11936 (PrefScriptDialogAdd): initialize "fnew->description".
11937
11938 2009-02-16 Ito Hiroyuki <ZXB01226 at nifty.com>
11939
11940 * src/gtk/x11scrip.c (ScriptDialog, ScriptDialogClose)
11941 (ScriptDialogSetup, script_list_default_cb)
11942 (ScriptDialogSetupItem): remove.
11943 (CmScriptExec): add arguments "GtkWidget *w" and "gpointer
11944 client_data".
11945 (CmScriptExec): don't use "ScriptDialog".
11946
11947 * src/gtk/x11opt.c (save_script_config): save description of the
11948 script.
11949 (SetScriptDialogSetup): change title from "Script:" to "Script
11950 file".
11951 (SetScriptDialogSetup): add widgets for script description.
11952 (set_scrpt_option): added.
11953 (SetScriptDialogClose): use "set_scrpt_option()".
11954 (SetScriptDialogClose): save description of the script.
11955 (PrefScriptDialogSetup): add column for file name and script
11956 description.
11957 (PrefScriptDialogSetupItem): set file name and script description.
11958 (PrefScriptDialogClose): call "update_addin_menu()".
11959
11960 * src/gtk/x11menu.h (enum MenuID): remove "MenuIdScriptExec".
11961
11962 * src/gtk/x11menu.c: add global variable "AddinMenu".
11963 (show_graphmwnu_cb): set sensitivity of "AddinMenu".
11964 (create_addin_menu, update_addin_menu): added.
11965 (create_graphmenu): now "Add-In" menu has sub menu.
11966
11967 * src/gtk/x11graph.c (CmGraphMenu): remove case for
11968 "MenuIdScriptExec".
11969
11970 * src/gtk/x11dialg.h (struct ScriptDialog): remove.
11971 (struct SetScriptDialog): add member "description".
11972
11973 * src/gtk/x11dialg.c: remove unused variable "DlgScript".
11974
11975 * src/gtk/ox11menu.h (struct script): add member "description".
11976
11977 * src/gtk/ox11menu.c (menu_config_set_script): set description.
11978
11979 * initfile/Ngraph.ini.in (script): change format (add description
11980 column).
11981
11982 2009-02-13 Ito Hiroyuki <ZXB01226 at nifty.com>
11983
11984 * src/object.c (error22): now the type of the argument "mes1" and
11985 "mes2" are "const char *".
11986 (error2): now the type of the argument "mes" is "const char *".
11987
11988 * initfile/Ngraph.ini.in (num_script_size): fix
11989 typo (from "num_scriptsize" to "num_script_size").
11990
11991 * src/gtk/x11dialg.c (SetObjPointsFromText): check field of the
11992 instance is modified or not after call "sgetobjfield()".
11993 (chk_sputobjfield): added.
11994 (SetObjFieldFromText, SetObjFieldFromStyle)
11995 (SetObjFieldFromFontList, SetObjAxisFieldFromWidget): use
11996 "chk_sputobjfield()".
11997
11998 * src/gtk/gtk_subwin.c (modify_numeric): check field of the
11999 instance is modified or not after call "getobj()".
12000 (modify_string): use "chk_sputobjfield()".
12001
12002 2009-02-12 Ito Hiroyuki <ZXB01226 at nifty.com>
12003
12004 * src/gtk/x11axis.c (axiswin_delete_axis)
12005 (axis_delete_popup_func, axiswin_ev_key_down): added.
12006 (CmAxisWindow): initialize "d->ev_key".
12007 (Popup_list): "axis_delete_popup_func()" is called when delete
12008 menu is activated.
12009
12010 * src/oaxis.c (check_direction): also check position of axises.
12011
12012 * src/gtk/x11axis.c (Alist): "length" column accept negative
12013 value.
12014
12015 2009-02-11 Ito Hiroyuki <ZXB01226 at nifty.com>
12016
12017 * src/oaxis.c (axischange): check length of axis instead of
12018 position.
12019 (FIND_X, FIND_Y, FIND_U, FIND_R, FIND_FRAME, FIND_CROSS)
12020 (CHECK_FRAME, CHECK_CROSS): added.
12021 (get_axis_group_type): use "FIND_X", "FIND_Y", "FIND_U", "FIND_R",
12022 "CHECK_FRAME" and "CHECK_CROSS".
12023 (axis_save_groupe): added.
12024 (axissave): use "axis_save_groupe()" and "get_axis_group_type()".
12025 (struct axis_config, AxisConfig, enum axis_config_type): added.
12026 (addaxis): initialize "AxisConfigHash".
12027 (axisloadconfig): use "AxisConfigHash".
12028
12029 2009-02-10 Ito Hiroyuki <ZXB01226 at nifty.com>
12030
12031 * src/gtk/x11commn.c (GraphSave): "overwrite" is FALSE when
12032 "initfil" is NULL.
12033 (GraphSave): check overwrite before show save dialog.
12034
12035 * src/gtk/x11axis.c (SectionDialogSetup, CrossDialogSetup)
12036 (AxisPosDialogSetup): type of spin buttons for width, height and
12037 length are "SPIN_BUTTON_TYPE_POSITION".
12038
12039 * src/oaxis.c (get_axis_group_type, get_axis_box, set_axis_box):
12040 added.
12041 (axisbbox): use "get_axis_group_type()", "get_axis_box()" and
12042 "set_axis_box()".
12043 (axismatch, axismove, axischange, axiszoom): use
12044 "get_axis_group_type()".
12045 (axis_change_point0, axis_change_point1, axis_change_point2)
12046 (axis_change_point3): added.
12047 (axischange): use "axis_change_point0()", "axis_change_point1()",
12048 "axis_change_point2()" and "axis_change_point3()".
12049 (check_direction): added.
12050 (axisbbox, axischange): call "check_direction()" to check
12051 direction of axises.
12052
12053 2009-02-09 Ito Hiroyuki <ZXB01226 at nifty.com>
12054
12055 * src/oaxis.c (axissave, axisbbox, axismatch, axismove)
12056 (axischange, axiszoom, axisadjust, axisautoscalefile)
12057 (axisdraw): add initialization to avoid compile warnings.
12058 (axisautoscalefile): set "set" as TRUE when "set" is FALSE.
12059 (axisgrouping): check "data[0]".
12060 (set_group, set_group_pos): added.
12061 (axisgrouping): use "set_group()".
12062 (axisgrouppos): use "set_group_pos()".
12063 (axis_default, axis_default_set, axis_default_set_ref)
12064 (axis_default_set_adj): added.
12065 (axisdefgrouping): use "axis_default()", "axis_default_set_adj()"
12066 and "axis_default_set_ref()".
12067 (enum AXIS_TYPE, enum AXIS_GAUGE, enum AXIS_NUM_POS)
12068 (enum AXIS_NUM_ALIGN, enum AXIS_NUM_DIR): added.
12069
12070 * src/omath.c (mformula): use "mathcode_error()".
12071
12072 * src/ofit.c (fitput): use "mathcode_error()".
12073
12074 * src/omath.c (addmath): initialize "MathErrorCodeArray".
12075
12076 * src/ofit.c (addfit): initialize "MathErrorCodeArray".
12077
12078 * src/ofile.c (f2dloadconfig2): remove.
12079 (mathcode_error): remove.
12080 (addfile): initialize "MathErrorCodeArray".
12081
12082 * src/mathcode.c (mathcode_error): added.
12083
12084 2009-02-06 Ito Hiroyuki <ZXB01226 at nifty.com>
12085
12086 * src/gtk/x11opt.c (add_prm_str_to_array): added.
12087 (save_misc_config): use "add_prm_str_to_array()".
12088 (save_misc_config): save "coordwin_font".
12089 (DefaultDialogClose): call "add_str_to_array()" when
12090 "Menulocal.coordwin_font" is NULL.
12091 (MiscDialogSetupItem): set font name to "d->coordwin_font" if
12092 "Menulocal.coordwin_font" is not NULL.
12093 (MiscDialogSetup): create widgets for "Menulocal.coordwin_font".
12094 (MiscDialogClose): set selected font to "Menulocal.coordwin_font"
12095 and call "CoordWinSetFont()".
12096
12097 * src/gtk/x11dialg.h (struct MiscDialog): add member
12098 "coordwin_font".
12099
12100 * src/gtk/x11cood.c (CoordWinSetFont): added.
12101 (CoordWinDrawTex): remove.
12102 (CoordWinSetCoord): call "gtk_label_set_text()" instead of
12103 "CoordWinSetCoord()".
12104 (CoordWinSetCoord): change format strings for "x" and "y" from
12105 "%.2f" to "%6.2f".
12106 (CoordWinSetCoord): change format strings for axis id from "%d" to
12107 "%2d".
12108 (CoordWinUpdate): call "label_sub_window_create()" instead of
12109 "text_sub_window_create()".
12110
12111 * src/gtk/ox11menu.c (MenuConfig): add data for "coordwin_font".
12112 (menuinit): initialize "Menulocal.coordwin_font".
12113
12114 * src/gtk/ox11menu.h (struct menulocal): add member
12115 "coordwin_font".
12116
12117 * src/gtk/gtk_subwin.c (sub_window_create): add argument
12118 "with_view_port".
12119 (sub_window_create): use "gtk_scrolled_window_add_with_viewport()"
12120 when "with_view_port" is TRUE.
12121 (label_sub_window_create): added.
12122
12123 * src/omath.c (mformula): use "switch" to check "rcode".
12124
12125 * src/ofile.c (mathcode_error): added.
12126 (f2dputmath, fitout): use "mathcode_error()".
12127
12128 * src/gtk/x11gui.c (DialogExecute): call "gtk_widget_grab_focus()"
12129 when "data->focus" is not NULL.
12130 (DialogExecute): call "gtk_widget_show_all()" outside of the loop.
12131 (DialogExecute): check "data->show_buttons "outside of the loop.
12132
12133 * src/gtk/x11lgnd.c (LegendTextDialogSetup): set poniter of the
12134 widget as "d->focus" instead of call "gtk_widget_grab_focus()".
12135
12136 * src/gtk/x11graph.c (SaveDialogSetup): set poniter of the widget
12137 as "d->focus" instead of call "gtk_widget_grab_focus()".
12138
12139 * src/gtk/x11file.c (MarkDialogSetup): set poniter of the widget
12140 as "d->focus" instead of call "gtk_widget_grab_focus()".
12141
12142 * src/gtk/x11dialg.c (initdialog): initialize member "focus" of
12143 each instance of struct.
12144
12145 * src/gtk/x11dialg.h (struct DialogType): add member "focus" to
12146 dialog related struct.
12147
12148 2009-02-05 Ito Hiroyuki <ZXB01226 at nifty.com>
12149
12150 * src/oagrid.c (agriddraw): bug fix: fix calculation of coordinate
12151 when "axdir" or "aydir" is 3.
12152 (agriddraw): adjust "dirx" and "diry" as these value is greater or
12153 equal to zero and less than 36000.
12154
12155 * src/oaxis.c (axisdirection): added.
12156 (axis): "axisdirection()" is called when field "direction" is
12157 changed.
12158
12159 * src/odraw.h (enum INTERPOLATION_TYPE): added.
12160
12161 * src/mathcode.c (mathcode): return value type of "mathcode()" is
12162 "enum MATH_CODE_ERROR_NO".
12163
12164 * src/gtk/x11graph.c (DirectoryDialogClose, CmGraphHistory): call
12165 "ErrorMessage()" when "chdir()" returns non zero value.
12166
12167 * src/gtk/x11commn.c (ErrorMessage): added.
12168
12169 * src/gtk/x11file.c (FitDialogSetSensitivity): use "FIT_OBJ_TYPE".
12170 (enum MATH_FNC_TYPE): added.
12171 (MathTextDialogSetup, MathTextDialogClose): use "MATH_FNC_TYPE".
12172 (FitDialogSetSensitivity): use "FIT_OBJ_TYPE".
12173 (FileDialogFit, FileDialogType, draw_type_pixbuf, select_type)
12174 (start_editing_type, f2dsettings): use "FILE_OBJ_PLOT_TYPE".
12175
12176 * src/ofit.c (fitpoly, fitfit): use "FIT_OBJ_TYPE".
12177
12178 * src/ofit.h: added.
12179
12180 * src/ofile.c (f2ddraw): do "fp->datanum = f2dlocal->num" after
12181 call "fitout()" when "redraw" is true.
12182 (opendata, rectout, errorbarout, stairout, barout, f2ddraw): use
12183 "FILE_OBJ_PLOT_TYPE".
12184 (curveout, curveoutfile, f2dsettings): use "INTERPOLATION_TYPE".
12185
12186 * src/ofile.h (enum FILE_OBJ_PLOT_TYPE): add
12187
12188 2009-02-04 Ito Hiroyuki <ZXB01226 at nifty.com>
12189
12190 * driver/Makefile.am (ngp2, dir_defs.h): depend on Makefile.
12191
12192 * src/gtk/Makefile.am (dir_defs.h): depend on Makefile.
12193
12194 * src/gtk/ogra2cairo.c (loadfont): remove unused variables "lang"
12195 and "lang_ja".
12196 (gra2cairo_get_fontmap_num): added.
12197
12198 * src/gtk/x11opt.c (save_font_config, save_ext_viewer_config)
12199 (save_misc_config, save_script_config, save_ext_driver_config)
12200 (save_viewer_config, save_child_geometory_config)
12201 (save_geometory_config, add_str_to_array)
12202 (add_str_with_int_to_array, add_geometry_to_array): added.
12203 (DefaultDialogClose): use "add_str_to_array()",
12204 "save_geometory_config()" and so on.
12205 (scriptlist_sel_cb, drvlist_sel_cb, fontlist_sel_cb): added.
12206 (PrefScriptDialogSetup, PrefDriverDialogSetup)
12207 (PrefFontDialogSetup): set signal handler to GtkTreeSelection for
12208 "changed" signal.
12209 (get_font_alias): added.
12210 (set_font_from_font_selection_dialog): use "get_font_alias()".
12211 (PrefFontDialogAdd): use "get_font_alias()" and
12212 "gra2cairo_get_fontmap()" to check if "alias" is valid string.
12213
12214 * src/gtk/x11dialg.h (struct PrefScriptDialog)
12215 (struct PrefDriverDialog, struct PrefFontDialog): add member
12216 "update_b" and "del_b".
12217
12218 * src/gtk/gtk_liststore.c (list_store_set_string)
12219 (list_store_path_set_string, tree_store_set_string): type of
12220 argument "v" is "const char *".
12221
12222 2009-02-03 Ito Hiroyuki <ZXB01226 at nifty.com>
12223
12224 * src/gtk/x11opt.c (DefaultDialogSetup): add "Font aliases"
12225 button.
12226 (DefaultDialogClose): add codes for save font map.
12227 (PrefFontDialogSetupItem, create_font_selection_dialog)
12228 (set_font_from_font_selection_dialog, PrefFontDialogUpdate)
12229 (PrefFontDialogRemove, PrefFontDialogAdd, font_list_defailt_cb)
12230 (PrefFontDialogSetup, PrefFontDialogClose, PrefFontDialog)
12231 (CmOptionPrefFont): added.
12232 (CmOptionMenu): add case for "MenuIdOptionPrefFont".
12233
12234 * src/gtk/x11menu.h (enum MenuID): add "MenuIdOptionPrefFont".
12235
12236 * src/gtk/x11menu.c (create_preferencemenu): add menu item "Font
12237 aliases".
12238
12239 * src/gtk/x11dialg.h (struct PrefFontDialog): added.
12240
12241 * src/gtk/x11dialg.c: add global variable "DlgPrefFont".
12242
12243 * src/gtk/ogra2cairo.c (FontFaceStr, gra2cairo_get_fontmap)
12244 (gra2cairo_remove_fontmap, gra2cairo_add_fontmap, free_fonts)
12245 (gra2cairo_update_fontmap, check_type): added.
12246 (init_conf, free_conf): use "free_fonts()".
12247 (loadconfig): remove unused variable "fcur".
12248 (init_conf): use "FontFaceStr".
12249
12250 * src/gtk/ogra2cairo.h (struct gra2cairo_local): remove unused
12251 member "font_opt".
12252
12253 2009-01-29 Ito Hiroyuki <ZXB01226 at nifty.com>
12254
12255 * src/gtk/x11view.c (create_legendx): use "swapint()".
12256
12257 2009-01-28 Ito Hiroyuki <ZXB01226 at nifty.com>
12258
12259 * addin/math.nsc: format result with "text::printf".
12260
12261 * src/gtk/x11view.c (mouse_down_move): don't check
12262 "arraynum(d->focusobj)".
12263 (mouse_up_point): remove unused variables "num" and "focused".
12264 (mouse_up_point): use "switch" instead of "if".
12265 (mouse_up_drag, mouse_up_zoom, mouse_up_change): don't call
12266 "SetCursor()".
12267 (ViewerEvLButtonUp): call "SetCursor()" when "d->Mode" is
12268 "PointB", "LegendB", "AxisB", "TrimB", "DataB" or "EvalB".
12269 (get_mouse_cursor_type): return GDK_LEFT_PTR when "num == 0".
12270
12271 * src/gtk/x11scrip.c (ScriptDialogClose): initialize
12272 "d->execscript" as NULL before check "d->ret".
12273 (CmScriptExec): call "delobj(shell, newid)" when "arrayadd()"
12274 returns NULL.
12275
12276 2009-01-23 Ito Hiroyuki <ZXB01226 at nifty.com>
12277
12278 * debian/Makefile.am: add files for debian package.
12279
12280 * src/gtk/x11menu.c (application): call "gtk_widget_show_all()"
12281 instead of "gtk_window_present()".
12282
12283 2009-01-20 Ito Hiroyuki <ZXB01226 at nifty.com>
12284
12285 * src/gtk/x11file.c (start_editing): treat "id" as oid when
12286 "name[0] == '^'".
12287
12288 * src/oagrid.c (agridtight): use "obj_do_tighten()".
12289
12290 * src/oaxis.c (axistight): use "obj_do_tighten()".
12291
12292 * src/ofile.c (f2dtight): use "obj_do_tighten()".
12293
12294 * src/object.c (obj_do_tighten): added.
12295
12296 2009-01-18 Ito Hiroyuki <ZXB01226 at nifty.com>
12297
12298 * src/gtk/x11merge.c (POPUP_ITEM_TOP, POPUP_ITEM_UP)
12299 (POPUP_ITEM_DOWN, POPUP_ITEM_BOTTOM): added.
12300 (MergeWinExpose): change sensitivity of popup menu item.
12301
12302 * src/gtk/x11lgnd.c (POPUP_ITEM_TOP, POPUP_ITEM_UP)
12303 (POPUP_ITEM_DOWN, POPUP_ITEM_BOTTOM): added.
12304 (LegendWinExpose): change sensitivity of popup menu item.
12305
12306 * src/gtk/x11file.c (POPUP_ITEM_TOP, POPUP_ITEM_UP)
12307 (POPUP_ITEM_DOWN, POPUP_ITEM_BOTTOM): added.
12308 (popup_show_cb): change sensitivity of popup menu item.
12309 (FileDialog): d->multi_open is TRUE when "multi > 0".
12310
12311 * src/gtk/x11axis.c (POPUP_ITEM_TOP, POPUP_ITEM_UP)
12312 (POPUP_ITEM_DOWN, POPUP_ITEM_BOTTOM): added.
12313 (popup_show_cb): change sensitivity of popup menu item.
12314
12315 2009-01-17 Ito Hiroyuki <ZXB01226 at nifty.com>
12316
12317 * src/gtk/x11dialg.h (struct FitDialog): add members
12318 "through_box", "dim_box", "weight_box", "usr_deriv_box",
12319 "usr_def_frame" and "div_box".
12320
12321 * src/gtk/x11file.c (FitDialogSetSensitivity): added.
12322 (FitDialogSetup): add signal handler for some widgets to change
12323 sensitivity of widgets.
12324
12325 2009-01-14 Ito Hiroyuki <ZXB01226 at nifty.com>
12326
12327 * src/gtk/x11dialg.h (struct FileDialog): add member "apply_all"
12328 and "multi_open".
12329
12330 * src/gtk/x11merge.c (MergeDialogSetup): add signal handler for
12331 "copy" button.
12332
12333 * src/gtk/x11lgnd.c (LegendCurveDialogSetup)
12334 (LegendPolyDialogSetup, LegendArrowDialogSetup)
12335 (LegendRectDialogSetup, LegendArcDialogSetup)
12336 (LegendMarkDialogSetup, LegendTextDialogSetup): add signal handler
12337 for "copy" and "copy all" button.
12338
12339 * src/gtk/x11file.c (FitDialogSetup, FileMoveDialogSetup)
12340 (FileMaskDialogSetup, FileLoadDialogSetup, FileMathDialogSetup)
12341 (FileDialogSetup): add signal handler for "copy" button.
12342 (FileDialogSetupItem): set sensitivity of "d->apply_all" by
12343 "d->multi_open".
12344 (FileDialog): initialize "d->multi_open".
12345 (FitDialogApply): check "poly_dimension" field is changed or not.
12346 (FileMoveDialogSetupItem, FileMoveDialogClose): execute
12347 "move_data_adjust" before get "move_data", "move_data_x" and
12348 "move_data_y".
12349 (FileDialogFit): delete instance of "fit" object when "ret ==
12350 IDCANCEL" and "create == FALSE".
12351
12352 * src/gtk/x11axis.c (GridDialogSetup, AxisBaseDialogSetup)
12353 (AxisPosDialogSetup, NumDialogSetup, AxisFontDialogSetup)
12354 (GaugeDialogSetup, AxisDialogSetup): add signal handler for "copy"
12355 button.
12356 (SectionDialogGrid): delete instance of "axisgrid" object when
12357 "ret == IDCANCEL" and "create == FALSE".
12358 (SectionDialogGrid): don't call "set_graph_modified()" when
12359 "axisgrid" object is not created.
12360
12361 * src/gtk/x11gui.c (set_sensitivity_by_check_instance): added.
12362 (DialogExecute): call "gtk_widget_hide_all()" before call
12363 "gtk_widget_show_all()".
12364
12365 * src/shellcm.c (dispfield): change field size for field name from
12366 15 to 16.
12367
12368 * src/gtk/x11view.c (mouse_down_move_data): execute
12369 "move_data_adjust" before get "move_data", "move_data_x" and
12370 "move_data_y".
12371
12372 * src/oprm.c (prmload): execute "move_data_adjust" before get
12373 "move_data", "move_data_x" and "move_data_y".
12374
12375 * src/ofile.c (adjust_move_num): added.
12376 (file2d): add field "move_data_adjust".
12377 (opendata): execute "move_data_adjust" before get "move_data",
12378 "move_data_x" and "move_data_y".
12379
12380 2009-01-13 Ito Hiroyuki <ZXB01226 at nifty.com>
12381
12382 * src/gtk/x11view.c (menu_activate): added.
12383 (ViewerWinSetup): add signal handler for "selection-done" to
12384 "d->menu".
12385 (Evaluate): cursor type is "GDK_TCROSS" when move data mode.
12386 (mouse_down_move_data): check return value of "getobj()" and
12387 "getobjlist()" and goto "ErrEnd" when these functions return FALSE.
12388 (move_data_cancel): add argument "show_message".
12389 (mouse_down_move_data): check return value of "arraynget()".
12390 (do_popup): check id of focused object when "num == 1".
12391
12392 * src/gtk/x11menu.h (struct Viewer): add member "menu".
12393
12394 * src/gtk/x11menu.c (Cursor): add "GDK_TCROSS".
12395 (SetCursor): add case "GDK_TCROSS".
12396 (setupwindow): initialize "NgraphApp.Viewer.menu".
12397
12398 2009-01-11 Ito Hiroyuki <ZXB01226 at nifty.com>
12399
12400 * src/gtk/x11menu.h (enum MouseMode): added.
12401 (struct Viewer): member "MouseMode" and "Mode" are enum.
12402
12403 * src/gtk/x11view.c (init_zoom): added.
12404 (mouse_down_move): use "get_mouse_cursor_type()" to check cursor
12405 position.
12406 (get_mouse_cursor_type): set "d->ChangePoint".
12407 (POINT_LENGTH, FOCUS_FRAME_OFST, FOCUS_RECT_SIZE): added.
12408 (ShowFocusFrame, get_mouse_cursor_type): use "FOCUS_RECT_SIZE" and
12409 "FOCUS_FRAME_OFST".
12410 (ShowPoints): use "POINT_LENGTH".
12411
12412 2009-01-10 Ito Hiroyuki <ZXB01226 at nifty.com>
12413
12414 * src/gtk/x11view.c (do_popup): set sensitivity of popup item
12415 related to "VIEWER_POPUP_ITEM_UP" and "VIEWER_POPUP_ITEM_DOWN".
12416 (create_popup_menu): add "#error" directive to check array size.
12417
12418 2009-01-09 Ito Hiroyuki <ZXB01226 at nifty.com>
12419
12420 * src/gtk/x11menu.h (VIEWER_POPUP_ITEM_NUM): change value from 7
12421 to 9.
12422
12423 * src/gtk/x11gui.c (GetColor): remove.
12424
12425 * src/gtk/x11menu.c (application): change color of "gray" from
12426 "#7f7f7f" to "#aaaaaa".
12427
12428 2009-01-08 Ito Hiroyuki <ZXB01226 at nifty.com>
12429
12430 * src/gtk/ogra2x11.c (gtkMakeRuler): use "GDK_INVERT" instead of
12431 "GDK_XOR".
12432 (gtkRGB): remove.
12433
12434 * src/gtk/x11lgndx.c (clear_view): don't call
12435 "gdk_window_clear()".
12436 (LegendGaussDialogSetup): use "value-changed" signal instead of
12437 "change-value".
12438
12439 * src/gtk/x11opt.c (DefaultDialogClose): use
12440 "sub_window_save_geometry()" to get geometry of a sub window.
12441
12442 * src/gtk/x11menu.c (CmReloadWindowConfig): use
12443 "sub_window_hide()" to hide sub window.
12444
12445 * src/gtk/x11info.c (CmInformationWindow): use "sub_window_show()"
12446 and "sub_window_toggle_visibility()".
12447
12448 * src/gtk/x11cood.c (CmCoordinateWindow): use "sub_window_show()"
12449 and "sub_window_toggle_visibility()".
12450
12451 * src/gtk/x11merge.c (CmMergeWindow): use "sub_window_show()" and
12452 "sub_window_toggle_visibility()".
12453
12454 * src/gtk/x11lgnd.c (CmLegendWindow): use "sub_window_show()" and
12455 "sub_window_toggle_visibility()".
12456
12457 * src/gtk/x11axis.c (CmAxisWindow): use "sub_window_show()" and
12458 "sub_window_toggle_visibility()".
12459
12460 * src/gtk/x11file.c (CmFileWindow): use "sub_window_show()" and
12461 "sub_window_toggle_visibility()".
12462
12463 * src/gtk/gtk_subwin.c (set_geometry): add argument "state" and
12464 save window state.
12465 (sub_window_save_geometry): save window state.
12466 (sub_window_hide, sub_window_show, sub_window_toggle_visibility):
12467 added.
12468 (cb_del): just call "sub_window_hide()".
12469
12470 2009-01-07 Ito Hiroyuki <ZXB01226 at nifty.com>
12471
12472 * src/gtk/x11menu.c (CmReloadWindowConfig): call
12473 "sub_window_set_geometry()" after show the window.
12474
12475 * src/gtk/x11cood.c (CmCoordinateWindow): call
12476 "sub_window_save_geometry()" before hide.
12477 (CmCoordinateWindow): call "sub_window_set_geometry()" after call
12478 "gtk_widget_show_all()".
12479
12480 * src/gtk/x11axis.c (CmAxisWindow): call
12481 "sub_window_save_geometry()" before hide.
12482 (CmAxisWindow): call "sub_window_set_geometry()" after call
12483 "gtk_widget_show_all()".
12484
12485 * src/gtk/x11file.c (CmFileWindow): call
12486 "sub_window_save_geometry()" before hide.
12487 (CmFileWindow): call "sub_window_set_geometry()" after call
12488 "gtk_widget_show_all()".
12489
12490 * src/gtk/x11lgnd.c (CmLegendWindow): call
12491 "sub_window_save_geometry()" before hide.
12492 (CmLegendWindow): call "sub_window_set_geometry()" after call
12493 "gtk_widget_show_all()".
12494
12495 * src/gtk/x11merge.c (CmMergeWindow): call
12496 "sub_window_save_geometry()" before hide.
12497 (CmMergeWindow): call "sub_window_set_geometry()" after call
12498 "gtk_widget_show_all()".
12499
12500 * src/gtk/x11info.c (InfoWinUpdate): call
12501 "sub_window_save_geometry()" before hide.
12502 (InfoWinUpdate): call "sub_window_set_geometry()" after call
12503 "gtk_widget_show_all()".
12504
12505 * src/gtk/gtk_subwin.c (sub_window_set_geometry)
12506 (sub_window_save_geometry): added.
12507 (cb_show): call "sub_window_set_geometry()".
12508 (cb_del): call "sub_window_save_geometry()".
12509
12510 * src/gtk/x11view.c (ShowFocusFrame): use
12511 "Menulocal.focus_frame_type" for line attribute of focus frame.
12512
12513 * src/gtk/x11opt.c (DefaultDialogClose): save
12514 "Menulocal.focus_frame_type".
12515 (MiscDialogSetupItem): setpu "d->fftype".
12516 (MiscDialogClose): set "Menulocal.focus_frame_type".
12517
12518 * src/gtk/ox11menu.h (struct menulocal): add member
12519 "focus_frame_type".
12520
12521 * src/gtk/ox11menu.c (MenuConfig): add item for
12522 "focus_frame_type".
12523 (menuinit): initialize "Menulocal.focus_frame_type".
12524
12525 * src/gtk/x11menu.c (show_instance_menu_cb)
12526 (set_show_instance_menu_cb, struct show_instance_menu_data): added.
12527 (create_filemenu, create_axisgridmenu, create_axismenu)
12528 (create_mergemenu, create_outputmenu): call
12529 "show_instance_menu_cb()".
12530 (create_legendmenu): call "g_signal_connect()" for "show" signal.
12531 (create_legendsubmenu): return "menu".
12532
12533 2009-01-06 Ito Hiroyuki <ZXB01226 at nifty.com>
12534
12535 * src/object.c: variable "looproot" is static.
12536 (has_eventloop): added.
12537
12538 * src/shell.c (msleep): added.
12539 (cmdexec): don't set "WNOHANG" when "has_eventloop()" returns
12540 FALSE.
12541 (cmdexec): use "msleep()" after call "eventloop()".
12542
12543 * src/shellux.c (cmsleep): use "sleep()" when "has_eventloop()"
12544 returns FALSE.
12545 (cmsleep): use "msleep()" after call "eventloop()".
12546
12547 * demo/demo.ngp.in: added.
12548
12549 * src/gtk/gtk_subwin.c (sub_window_create): add argument "xpm2"
12550 and call "gtk_window_set_icon_list()" when "xpm2" is not NULL.
12551
12552 * src/gtk/x11bitmp.c: add "Axiswin48_xpm", "Coordwin48_xpm",
12553 "Filewin48_xpm", "Infowin48_xpm", "Legendwin48_xpm" and
12554 "Mergewin48_xpm".
12555
12556 * src/gtk/x11menu.c (struct command_data): remove member "xbm".
12557
12558 * src/gtk/x11bitmp.c: remove xbm data.
12559
12560 * src/gtk/x11menu.c (createpixmap, createicon): use
12561 "gdk_pixbuf_new_from_xpm_data()" instead of
12562 "create_pixbuf_from_xpm()".
12563
12564 * src/gtk/gtk_subwin.c (sub_window_create): use
12565 "gdk_pixbuf_new_from_xpm_data()" instead of
12566 "create_pixbuf_from_xpm()".
12567
12568 * src/gtk/x11menu.c (create_pixbuf_from_xpm): remove.
12569
12570 2009-01-04 Ito Hiroyuki <ZXB01226 at nifty.com>
12571
12572 * src/terminal.c (my_signal): added.
12573 (main): use "my_signal".
12574
12575 * src/gtk/main.c: variables "consolecol", "consolerow",
12576 "consolefdout", "consolefdin", "consoleac" and "systemname" are
12577 static.
12578 (interruptconsole, inputynconsole, displaydialogconsole)
12579 (displaystatusconsole): these functions are static.
12580
12581 * src/osystem.c (systemresize): don't check "data[0]" and
12582 "data[1]".
12583
12584 2009-01-03 Ito Hiroyuki <ZXB01226 at nifty.com>
12585
12586 * src/gtk/x11menu.c (create_cursor): use "gdk_cursor_new()"
12587 instead of "gdk_cursor_new_for_display()".
12588
12589 * src/gtk/main.c: remove global variable "Disp".
12590
12591 * src/gtk/x11view.c (OpenGC): don't call
12592 "gdk_display_get_default()".
12593
12594 * src/gtk/ogra2x11.c (gtkflush): added.
12595
12596 * src/gtk/ox11menu.c (mxflush): don't call "gdk_display_flush()".
12597
12598 * src/gtk/x11view.c (CloseGC, ReopenGC): don't call
12599 "gdk_display_flush()".
12600
12601 2009-01-02 Ito Hiroyuki <ZXB01226 at nifty.com>
12602
12603 * src/terminal.c (main): use named pipe.
12604 (main): use "pause()" to wait termination.
12605
12606 * src/gtk/main.c: global variables "terminal", "consolesave",
12607 "consolefd[]" and "consolepid" are static.
12608 remove unused variable "pipefd".
12609 (nallocconsole): use named pipe.
12610 (nfreeconsole): use "kill()" to terminate "nterminal".
12611
12612 2008-12-31 Ito Hiroyuki <ZXB01226 at nifty.com>
12613
12614 * src/gtk/main.c (putconsole, printfconsole, inputynconsole)
12615 (nallocconsole): check return value of "write()".
12616 (nfreeconsole): check value of "pipefd".
12617
12618 * src/gtk/ogra2x11.c (gtkflush): remove.
12619 (gra2gtk): remove field "flush".
12620 (gra2gtk): rename field "redraw" to "expose".
12621 (gra2gtk): add field "dpix" and "dpiy".
12622 (gtkinit): "gtkevpaint()" is connected to "gtklocal->View".
12623 (gdkgc_set_arc_mode, gdkgc_set_fill_rule): remove.
12624 (gtkinit): show error message when "OpenApplication()" returns
12625 FALSE.
12626
12627 2008-12-30 Ito Hiroyuki <ZXB01226 at nifty.com>
12628
12629 * demo/demo.ngp: added.
12630
12631 * src/gtk/x11view.c (AlignFocusedObj, ViewDelete, ViewCopy)
12632 (ViewCross): do nothing when "Menulock" or "GlobalLock" is TRUE.
12633 (mouse_up_zoom): minimum value of "zm" is 1000.
12634
12635 * src/gtk/x11opt.c (CmOptionSaveNgp): do nothing when "Menulock"
12636 or "GlobalLock" is TRUE.
12637
12638 * src/gtk/x11graph.c (CmHelpAbout, CmHelpHelp): do nothing when
12639 "Menulock" or "GlobalLock" is TRUE.
12640
12641 * src/gtk/ogra2x11.c (gtkclear): clear pixmap.
12642 (gtk_set_dpi): added.
12643 (gra2gtk): add filed "dpi".
12644
12645 * src/gtk/x11scrip.c (CmScriptExec): use "menu_lock()" to lock
12646 gui.
12647
12648 * src/gtk/x11menu.c (menu_lock): add
12649
12650 * src/gtk/x11graph.c (CmGraphShell): use "menu_lock()" to lock
12651 gui.
12652
12653 * src/gtk/x11file.c (select_type, start_editing_type)
12654 (start_editing, edited_axis): use "menu_lock()" to lock
12655 gui.
12656
12657 * src/gtk/x11commn.c (LoadNgpFile): use "menu_lock()" to lock gui.
12658 (LoadNgpFile): call "registerevloop()" and "unregisterevloop()"
12659 before and after call "_exeobj()" respectively.
12660
12661 * src/gtk/x11axis.c (start_editing, edited): use "menu_lock()" to
12662 lock gui.
12663
12664 * src/gtk/ox11menu.c (mx_print): use "menu_lock()" to lock gui.
12665 (gtkmenu): type of "print" field is "NVFUNC".
12666
12667 * src/gtk/gtk_subwin.c (start_editing, cancel_editing)
12668 (numeric_cb, string_cb): use "menu_lock()" to lock
12669 gui.
12670
12671 * src/shellux.c (cmsleep): call "sleep()" while waiting timeout.
12672
12673 2008-12-28 Ito Hiroyuki <ZXB01226 at nifty.com>
12674
12675 * src/gtk/x11view.c (mouse_up_drag): move object only when
12676 "dx != 0 || dy != 0".
12677 (mouse_up_change): change object only when "dx != 0 || dy != 0".
12678 (mouse_up_zoom): zoom object only when "zm != 0 && zm != 10000".
12679
12680 2008-12-26 Ito Hiroyuki <ZXB01226 at nifty.com>
12681
12682 * src/omark.c (marktype): added.
12683 (mark): check marktype.
12684
12685 * demo/demo5b.ngp (text): maximum value of "i" is 8.
12686
12687 * src/gtk/x11view.c (ShowFrameRect, ShowPoints, ShowFocusLine)
12688 (ShowFocusFrame): do not call "gdk_gc_set_dashes()".
12689
12690 * src/gtk/x11lgndx.c (LegendGaussDialogPaint): do not call
12691 "gdk_gc_set_dashes()".
12692
12693 * src/gtk/x11dialg.c: remove variables "Dashes" and "DashesNum".
12694
12695 * src/gtk/x11view.c (get_mouse_cursor_type): bug fix: fix
12696 conditions for "GDK_TOP_RIGHT_CORNER".
12697
12698 * src/gtk/ogra2cairo.c (draw_str): create PangoLayoute only when
12699 "local->layout" is NULL.
12700 (gra2cairo_init): initialize "local->layout".
12701 (gra2cairo_free): unref "local->layout" if "local->layout" is not
12702 NULL.
12703
12704 * src/gtk/ogra2cairo.h (struct gra2cairo_local): add member
12705 "layout".
12706
12707 2008-12-25 Ito Hiroyuki <ZXB01226 at nifty.com>
12708
12709 * initfile/.Ngraph: add "-gra" option.
12710 do not create new "gra" object after evaluate ngp file.
12711
12712 2008-12-22 Ito Hiroyuki <ZXB01226 at nifty.com>
12713
12714 * src/gtk/x11view.c (new_merge_obj, new_file_obj)
12715 (text_dropped, ViewerWinFileUpdate, Evaluate, Trimming)
12716 (AlignFocusedObj, mouse_down_move_data, mouse_up_drag)
12717 (mouse_up_zoom, mouse_up_change, create_legend1, create_legend2)
12718 (create_legend3, create_legendx, create_single_axis)
12719 (create_axis, ViewerEvKeyUp, ViewUpdate, ViewDelete)
12720 (reorder_object, ViewCopyAxis, ViewCopy): use
12721 "set_graph_modified()".
12722 (graph_dropped): use "reset_graph_modified()".
12723
12724 * src/gtk/x11merge.c (CmMergeOpen, CmMergeClose, CmMergeUpdate):
12725 use "set_graph_modified()".
12726
12727 * src/gtk/x11lgnd.c (legend_dialog_close, CmLineDel)
12728 (CmLineUpdate, CmCurveDel, CmCurveUpdate, CmPolyDel)
12729 (CmPolyUpdate, CmRectDel, CmRectUpdate, CmArcDel, CmArcUpdate)
12730 (CmMarkDel, CmMarkUpdate, CmTextDel, CmTextUpdate)
12731 (LegendWinLegendUpdate): use "set_graph_modified()".
12732
12733 * src/gtk/x11graph.c (CmGraphSwitch, CmGraphPage): use
12734 "set_graph_modified()".
12735 (CmGraphLoad, CmGraphHistory): use "reset_graph_modified()".
12736
12737 * src/gtk/x11file.c (MathDialogList, FileMaskDialogClose)
12738 (FileLoadDialogClose, FileDialogCopyAll, CmFileHistory)
12739 (CmFileNew, CmFileOpen, CmFileClose, CmFileUpdate)
12740 (FileWinFileDelete, file_obj_copy, FileWinFileUpdate)
12741 (FileWinFileDraw, select_type, edited_axis): use
12742 "set_graph_modified()".
12743
12744 * src/gtk/x11dialg.c (SetObjPointsFromText, SetObjFieldFromText)
12745 (SetObjFieldFromSpin, SetObjFieldFromToggle)
12746 (SetObjFieldFromStyle, SetObjFieldFromList)
12747 (SetObjFieldFromFontList, SetObjAxisFieldFromWidget)
12748 (_putobj_color): use "set_graph_modified()".
12749
12750 * src/gtk/x11commn.c (CheckSave): use "get_graph_modified()".
12751 (GraphSave): use "reset_graph_modified()".
12752
12753 * src/gtk/x11axis.c (SectionDialogGrid, CmAxisNewFrame)
12754 (CmAxisNewSection, CmAxisNewCross, CmAxisNewSingle, CmAxisDel)
12755 (CmAxisZoom, CmAxisClear, CmAxisGridNew, CmAxisGridDel)
12756 (CmAxisGridUpdate, AxisWinExpose, edited): use
12757 "set_graph_modified()".
12758
12759 * src/gtk/ox11menu.h: add prototype of "get_graph_modified",
12760 "reset_graph_modified" and "set_graph_modified".
12761
12762 * src/gtk/ox11menu.c (get_graph_modified, reset_graph_modified)
12763 (set_graph_modified): add
12764 (menuinit): initialize "modified" field.
12765 (gtkmenu): add "modified" field.
12766
12767 * src/gtk/gtk_subwin.c (copy, delete, move_top, move_last)
12768 (move_up, move_down, modify_numeric, modify_string, hidden)
12769 (tree_copy, tree_delete, tree_move_top, tree_move_last)
12770 (tree_move_up, tree_move_down, tree_hidden): use
12771 "set_graph_modified()".
12772
12773 * addin/math.nsc: set +e and check return value of dexpr.
12774
12775 * src/gtk/x11dialg.h (struct MiscDialog): add menber "Obj" and
12776 "Id".
12777
12778 * src/gtk/x11menu.c (init_ngraph_app_struct): initialize
12779 "NgraphApp.Interrupt".
12780
12781 * src/gtk/x11menu.h (struct NgraphApp): remove unused member
12782 "interrupt" and "Changed".
12783
12784 * src/gtk/x11opt.c (ViewerDialogClose): call "putobj()" to set
12785 "redraw_num" field.
12786 (MiscDialog): add argument "struct objlist *obj" and "int id".
12787 (CmOptionMisc): add argument to call "MiscDialog()".
12788 (MiscDialogClose): call "putobj()" to save "data_head_lines".
12789
12790 * src/gtk/ox11menu.c (gtkmenu): type of "redraw_num" field is
12791 "NINT".
12792
12793 2008-12-20 Ito Hiroyuki <ZXB01226 at nifty.com>
12794
12795 * src/gtk/ox11menu.c (menuerrorlist): add message "cannot open
12796 display.".
12797 (enum): add error identifier.
12798 (menuinit): call "error()" when "OpenApplication()" returns FALSE.
12799
12800 * src/gtk/ox11dlg.c (dlginit): call "error()" when
12801 "OpenApplication()" returns FALSE.
12802
12803 2008-12-19 Ito Hiroyuki <ZXB01226 at nifty.com>
12804
12805 * src/ofile.c (set_data_progress): check if "frac" is greater than
12806 1 or not.
12807
12808 2008-12-18 Ito Hiroyuki <ZXB01226 at nifty.com>
12809
12810 * src/gtk/x11menu.c (kill_signal_handler): added.
12811 (childhandler): use "sigaction()" instead of "signal()".
12812 (AppMainLoop): call "CheckSave()" when "Hide_window" is TRUE.
12813 (application): use "sigaction()" instead of "signal()".
12814 (application): set signal handler for "SIGINT" signal.
12815
12816 * src/gtk/x11graph.c (CmGraphQuit): just call "QuitGUI()".
12817
12818 * src/gtk/x11opt.c (MiscDialogSetup): change design of the dialog.
12819
12820 * src/gtk/x11view.c (enum ViewerPopupIdn): add "VIEW_UP" and
12821 "VIEW_DOWN".
12822 (enum object_move_type): added.
12823 (create_popup_menu): add up and down object menu item.
12824 (ViewerPopupMenu): add case "VIEW_DOWN" and "VIEW_UP".
12825 (reorder_object): change argument from int to "enum
12826 object_move_type".
12827
12828 * src/gtk/ogra2cairo.c (gra2cairo_output): don't draw arc if "w"
12829 or "h" is 0 in the case of "code" is 'C'.
12830
12831 * src/otext.c (textzoom): minimum value of "pt" is 1.
12832
12833 * src/orect.c (rectzoom): minimum value of "width" is 1.
12834
12835 * src/omark.c (markzoom): minimum value of "size" and "width" is 1.
12836 (markgeometry): use temporal variable "val".
12837
12838 * src/olegend.c (legendzoom): minimum value of "width" is 1.
12839
12840 * src/oarc.c (arcgeometry): use temporal variable "val".
12841 (arczoom): minimum value of "rx", "ry", and "width" is 1.
12842
12843 2008-12-17 Ito Hiroyuki <ZXB01226 at nifty.com>
12844
12845 * src/gtk/x11file.c (FileWinFileDraw): check if the graph is
12846 changed or not.
12847
12848 * src/oline.c (arrowbbox): bug fix: add valiable "num2" and "num2"
12849 is used only to calculate positions of an arrow.
12850
12851 * src/gtk/x11view.c (Match): return matched instance number.
12852 (mouse_up_point): change cursor if any object is focused.
12853
12854 * src/gtk/ox11menu.c (gtkmenu): add field "draw".
12855 (mxdraw): added.
12856 (mx_redraw): call "gdk_window_invalidate_rect()".
12857
12858 * src/gtk/x11merge.c (MergeDialogSetup): use
12859 "gtk_check_button_new_with_mnemonic()" instead of
12860 "gtk_check_button_new_with_label()".
12861
12862 * src/gtk/x11gui.c (FileSelectionDialog): use
12863 "gtk_check_button_new_with_mnemonic()" instead of
12864 "gtk_check_button_new_with_label()".
12865
12866 2008-12-16 Ito Hiroyuki <ZXB01226 at nifty.com>
12867
12868 * src/gtk/x11view.c (struct viewer_popup): add member "submenu_item_num".
12869 (create_menu): add argument "int n".
12870 (create_menu): add separator when "popup[i].title" is NULL.
12871 (create_popup_menu): add separator to menus.
12872
12873 * src/gtk/x11merge.c (Mlist): add separator.
12874 (Mlist): "file" column is editable.
12875
12876 * src/gtk/x11lgnd.c (Popup_list): add separator.
12877
12878 * src/gtk/x11file.c (Flist): minimum value of "step" is 1.
12879 (Popup_list): add separator.
12880
12881 * src/gtk/x11axis.c (Popup_list): add separator.
12882 (Popup_list): add clear menu item.
12883 (axiswin_scale_clear): added.
12884
12885 * src/gtk/gtk_subwin.c (sub_win_create_popup_menu): add
12886 "GtkSeparatorMenuItem" when "list[i].title" is NULL.
12887
12888 2008-12-15 Ito Hiroyuki <ZXB01226 at nifty.com>
12889
12890 * src/gtk/x11menu.c (find_gra2gdk_inst): bug fix: always get
12891 "_local" field.
12892
12893 2008-12-12 Ito Hiroyuki <ZXB01226 at nifty.com>
12894
12895 * src/gtk/ogra2x11.c (struct gtklocal): remove unused member
12896 "autoredraw", "cmap" and "minus_hyphen".
12897 (gra2gtk): remove unused field "auto_redraw".
12898
12899 * src/gtk/ox11menu.h (struct mxlocal): remove unused member
12900 "privatecolor", "cmap", "cdepth", "cairo_save", "minus_hyphen" and
12901 "points".
12902 (struct menulocal): remove unused member "mousecloick" and
12903 "movechild".
12904
12905 * src/gtk/x11menu.c (createcommand1, createcommand2): check
12906 "Menulocal.showtip".
12907
12908 * src/gtk/gtk_liststore.c (create_column): set page_size of
12909 GtkAdjustment as 0.
12910
12911 2008-12-09 Ito Hiroyuki <ZXB01226 at nifty.com>
12912
12913 * src/shellcm.c (cmecho): add "-n" option.
12914
12915 2008-12-03 Ito Hiroyuki <ZXB01226 at nifty.com>
12916
12917 * src/ofile.c (getdata_skip_step): call "memfree(buf)" when
12918 "rcode" is 1 or -1.
12919
12920 2008-12-02 Ito Hiroyuki <ZXB01226 at nifty.com>
12921
12922 * src/ofile.c (search_mask): added.
12923 (getdata_sub2, getdata2, getdataraw): use "search_mask()".
12924 (struct f2ddata): add member "mask_index".
12925 (opendata, reopendata): initialize "fp->mask_index".
12926
12927 2008-12-01 Ito Hiroyuki <ZXB01226 at nifty.com>
12928
12929 * src/gtk/ox11dlg.c
12930
12931 * src/gtk/x11gui.c (DialogRadio, DialogCombo, DialogCheck): add
12932 label if "caption" is not NULL.
12933 (DialogComboEntry): added.
12934
12935 * src/gtk/ox11dlg.c (dlgconfirm, dlgmessage, dlgradio, dlgcombo)
12936 (dlgcheck): check and use "title" field.
12937 (dlginput, dlgradio, dlgcombo, dlgcheck): check and use "caption"
12938 field.
12939 (dlgcombo_entry): added.
12940 (dialog): add "combo_entry", "title" and "caption" field.
12941
12942 2008-11-28 Ito Hiroyuki <ZXB01226 at nifty.com>
12943
12944 * src/gtk/ox11dlg.c (dlggetopenfile, dlggetopenfiles)
12945 (dlggetsavefile): second argument is used as an initial file name.
12946
12947 * src/gtk/x11gui.c (FileSelectionDialog): check "type" before call
12948 set name.
12949 (fsok): check "filter".
12950
12951 * src/gtk/ox11dlg.c (dlgcombo): added.
12952 (dialog): add field "combo".
12953 (dlggetsavefile, dlggetopenfile): use "memfree()" to free "*(char
12954 **)rval".
12955
12956 * src/gtk/x11gui.c (DialogCombo): added.
12957
12958 * demo/encoding.ngp: use "dialog::combo" instead of
12959 "dialog::input".
12960
12961 2008-11-27 Ito Hiroyuki <ZXB01226 at nifty.com>
12962
12963 * src/gtk/ox11dlg.c (dlgcheck, dlgradio): added.
12964 (dialog): add fields "radio" and "check".
12965 now all functions dfined in ox11dlg.c is static.
12966
12967 * src/gtk/x11gui.h: add prototype of "DialogCheck" and "DialogRadio"
12968
12969 * src/gtk/x11gui.c (DialogCheck, DialogRadio): added.
12970
12971 * src/gtk/ox11menu.h (struct menulocal): remove unused member
12972 "framex", "framey" and "exwinbackingstore".
12973 (struct mxlocal): remove unused member "backingstore".
12974
12975 * src/gtk/ox11menu.c (enum menu_config_type)
12976 (menu_config_menu_geometry, menu_config_file_geometry)
12977 (menu_config_axis_geometry, menu_config_legend_geometry)
12978 (menu_config_merge_geometry, menu_config_dialog_geometry)
12979 (menu_config_coord_geometry, struct menu_config, MenuConfig)
12980 (MenuConfigHash, menu_config_set_four_elements)
12981 (menu_config_set_window_geometry, menu_config_set_bgcolor)
12982 (menu_config_set_ext_driver, menu_config_set_prn_driver)
12983 (menu_config_set_script, set_menu_config_mxlocal): added.
12984 (addmenu): initialize "MenuConfigHash".
12985 (mgtkloadconfig, mgtkwindowconfig): use "FileConfigHash".
12986
12987 2008-11-26 Ito Hiroyuki <ZXB01226 at nifty.com>
12988
12989 * src/ofile.c add global valiable "FileConfigHash".
12990 (enum file_config_type, struct file_config, FileConfig): added.
12991 (f2dloadconfig): use "FileConfigHash".
12992 (addfile): initialize "FileConfigHash".
12993
12994 * src/gtk/ox11menu.h (struct mxlocal): remove unused member "fontalias".
12995
12996 * src/gtk/x11dialg.c (SetObjFieldFromFontList): free "fontalias".
12997
12998 * src/gtk/main.c (get_obj_font_list): use
12999 "Gra2cairoConf->font_num".
13000
13001 * src/gtk/ogra2cairo.c (free_font_map): added.
13002 (create_font_map): added.
13003 (loadconfig): use "create_font_map()"
13004 (init_conf): initialize "Gra2cairoConf->font_num".
13005 (free_fonts_sub): added.
13006 (free_conf): use "nhash_each" and "nhash_free" to free font maps.
13007 (loadfont): remove second argument and return "struct fontmap *".
13008 (loadfont): remove codes related with " Gra2cairoConf->font".
13009 (draw_str): change 4th argument.
13010 (gra2cairo_output): use "local->loadfont".
13011
13012 * src/gtk/ogra2cairo.h: remove definition of "struct fontlocal".
13013 (struct fontmap): add member "PangoFontDescription *font".
13014 (struct fontmap): add member "struct fontmap *prev".
13015 (struct gra2cairo_local): remove member "loadfontf" and add member
13016 "loadfont".
13017
13018 2008-11-25 Ito Hiroyuki <ZXB01226 at nifty.com>
13019
13020 * src/orect.c (rect): use "oputcolor()" to set value to fields
13021 "R2", "G2" and "B2".
13022
13023 * src/omark.c (mark): use "oputcolor()" to set value to fields
13024 "R2", "G2" and "B2".
13025
13026 * src/ofile.c (file2d): use "oputcolor()" to set value to fields
13027 "R2", "G2" and "B2".
13028
13029 * src/odraw.c (draw): use "oputcolor()" to set value to fields
13030 "R", "G" and "B".
13031
13032 * src/oroot.h: add prototype of "oputcolor()".
13033
13034 * src/oroot.c (oputcolor): added.
13035
13036 * src/gtk/x11dialg.c (SetFontListFromObj): use
13037 "Gra2cairoConf->fontmap_list_root" instead of
13038 "Gra2cairoConf->fontmaproot".
13039 (SetFontListFromObj): bug fix: check if "font" is NULL or not.
13040 (SetFontListFromObj): default value of "selfont" is now 0.
13041 (SetObjFieldFromFontList): use hash to search font alias.
13042 (_set_color): check value of "R", "G" and "B".
13043
13044 * src/gtk/ogra2cairo.h (struct gra2cairo_config): add member
13045 "fontmap_list_root".
13046
13047 * src/gtk/ogra2cairo.c: add global valiable "FontFace".
13048 (loadconfig): save font configuration to hash.
13049 (init_conf): init "FontFace" and "Gra2cairoConf->fontmaproot".
13050 (free_conf): use "nhash_free_with_memfree_ptr()" to free fontmap.
13051 (loadfont, gra2cairo_charheight): use hash to search font alias
13052 settings.
13053
13054 * src/gtk/main.c (get_obj_font_list): use
13055 "Gra2cairoConf->fontmap_list_root" instead of
13056 "Gra2cairoConf->fontmaproot".
13057
13058 * src/nhash.h: add prototype of "nhash_num()".
13059
13060 * src/nhash.c (count_hash, nhash_num): added.
13061
13062 2008-11-21 Ito Hiroyuki <ZXB01226 at nifty.com>
13063
13064 * src/gra.c (GRAcharascent, GRAchardescent, GRAcharwidth): return
13065 calculated value when return value of "__exeobj()" is not zero.
13066
13067 2008-11-18 Ito Hiroyuki <ZXB01226 at nifty.com>
13068
13069 * initfile/.Ngraph: use new gra to create image file.
13070
13071 * driver/ngp2.in: added.
13072
13073 * driver/Makefile.am (ngp2): added.
13074 (bin_SCRIPTS): added.
13075
13076 2008-11-17 Ito Hiroyuki <ZXB01226 at nifty.com>
13077
13078 * src/ogra.c (oGRAopen): put error message when the return value
13079 of "GRAinit()" is false.
13080
13081 * src/gra.c (GRAinit): don't return "ERROPEN" when
13082 "GRAClist[GC]output == -1".
13083
13084 2008-11-16 Ito Hiroyuki <ZXB01226 at nifty.com>
13085
13086 * src/nhash.c (create_hash_with_hkey): fix condition (from "lr ==
13087 -1" to "lr < 0").
13088
13089 * src/gtk/main.c (main): check return value of "newobj()" and
13090 "chkobjinst()".
13091
13092 2008-11-12 Ito Hiroyuki <ZXB01226 at nifty.com>
13093
13094 * src/gtk/x11graph.c (CmGraphShell): create new instance when
13095 there are no instances of "shell" object.
13096
13097 * src/shell.h (struct nshell): add member "deleted".
13098
13099 * src/shell.c (cmdexecute): exit loop when "nshell->deleted" is
13100 true.
13101 (newshell): initialize "nshell->deleted".
13102
13103 * src/oshell.c (cmddone): if "shlocal->lock" is true, set
13104 "shlocal->nshell->deleted" as 1.
13105 (cmdshell): exit roop when "nshell->deleted" is true.
13106 (cmdshell): call "delshell()" when "nshell->deleted" is true.
13107
13108 * src/nhash.c (nhash_del_with_hkey, nhash_del): check "h".
13109
13110 2008-11-10 Ito Hiroyuki <ZXB01226 at nifty.com>
13111
13112 * src/gtk/x11file.c (FileDialogType): set sensitivity of parent widgets.
13113
13114 * src/gtk/x11opt.c (use_external_toggled): set sensitivity of parent widgets.
13115
13116 * src/gtk/x11graph.c (pagelist): fix label string of "Legal L".
13117 (PageDialogPage): set sensitivity of parent widgets.
13118
13119 2008-11-07 Ito Hiroyuki <ZXB01226 at nifty.com>
13120
13121 * src/gtk/x11menu.c (get_home): added.
13122 (createmenu): load accel map when "KEYMAP_FILE" is exist in
13123 "NGRAPH_HOME".
13124
13125 * src/object.h (struct objlist): add member "fieldnum".
13126
13127 * src/object.c (addobject): initialize "objnew->fieldnum".
13128 (chkobjfieldnum): return "obj->fieldnum" when value of
13129 "obj->fieldnum" is valid.
13130
13131 2008-11-06 Ito Hiroyuki <ZXB01226 at nifty.com>
13132
13133 * src/shell.c (saveval): bug fix: "valcur->next" is NULL when
13134 "name" is found in nshell->valroot.
13135
13136 * src/gtk/x11print.c (DriverDialogClose): change buffer size of a
13137 message.
13138
13139 * src/shellcm.c (printexp): added.
13140 (cmexport, cmset): use hash when "USE_HASH" is true.
13141
13142 * src/shell.c (create_vallist, free_vallist): added.
13143 (addval, saveval, restoreval, addexp, delval, getval, getexp)
13144 (newfunc, addfunc, getfunc, cmdexec, newshell, delshell): use hash
13145 when "USE_HASH" is true.
13146
13147 * src/object.c (ARGBUFNUM): change value from 10 to 32.
13148
13149 * src/nhash.c (free_hash_list): add argument "free_ptr".
13150 (free_hash_list): call memfree() when "free_ptr" is true.
13151 (nhash_free): add second argument.
13152 (nhash_free_with_memfree_ptr, create_hash_with_hkey)
13153 (nhash_set_int_with_hkey, nhash_set_ptr_with_hkey)
13154 (nhash_get_with_hkey, nhash_get_int_with_hkey)
13155 (nhash_del_with_hkey, nhash_get_ptr_with_hkey): added.
13156
13157 2008-10-23 Ito Hiroyuki <ZXB01226 at nifty.com>
13158
13159 * src/ofile.c: add macro "check_infinite()".
13160 (getdataarray, f2dsettings): use "check_infinite()".
13161
13162 2008-10-22 Ito Hiroyuki <ZXB01226 at nifty.com>
13163
13164 * src/ofile.c (f2dinit): initialize "line_join" as "bevel".
13165
13166 2008-10-20 Ito Hiroyuki <ZXB01226 at nifty.com>
13167
13168 * src/gtk/main.c (main): call 'init_cmd_tbl()'.
13169
13170 * src/shellcm.c (cmtype): use 'check_cpcmd()' and 'check_cmd()'.
13171
13172 * src/shell.c (init_cmd_tbl, check_cmd, check_cpcmd): added.
13173 (checkcmd): use 'check_cpcmd()'.
13174 (cmdexec): use 'check_cmd()'.
13175
13176 2008-10-17 Ito Hiroyuki <ZXB01226 at nifty.com>
13177
13178 * src/shell.c (cmdtable): add setting for 'seq'.
13179
13180 * src/shellcm.c (cmseq): added.
13181
13182 2008-10-10 Ito Hiroyuki <ZXB01226 at nifty.com>
13183
13184 * src/gtk/x11graph.c (set_objlist_btn_state)
13185 (set_drawlist_btn_state): added.
13186 (SwitchDialogAdd, SwitchDialogInsert, SwitchDialogRemove): call
13187 set_drawlist_btn_state() after call SwitchDialogSetupItem().
13188 (SwitchDialogSetup): set_drawlist_btn_state() and
13189 set_objlist_btn_state() after call SwitchDialogSetupItem().
13190 (drawlist_sel_cb, objlist_sel_cb): added.
13191
13192 * src/gtk/x11dialg.h (struct SwitchDialog): add member "top",
13193 "up", "down", "bottom", "del", "ins", "add" and "btn_lock".
13194
13195 2008-10-08 Ito Hiroyuki <ZXB01226 at nifty.com>
13196
13197 * src/gtk/x11graph.c (SwitchDialogDown, SwitchDialogUp): added.
13198 (SwitchDialogSetup): add 'GO UP' and 'GO DOWN' button.
13199 (SwitchDialogLast): select last item after move object.
13200 (SwitchDialogTop): select first item after move object.
13201
13202 * src/gtk/x11view.c (ViewDelete): set mouse cursor to GDK_LEFT_PTR
13203 after delete objects.
13204
13205 * src/otext.c (textprintf): add 'G' to the conversion specifier.
13206 (textprintf): check format string.
13207
13208 * src/gra.c (GRAexpandpf): add 'G' to the conversion specifier.
13209 (GRAexpandpf): check format string.
13210
13211 2008-10-07 Ito Hiroyuki <ZXB01226 at nifty.com>
13212
13213 * src/gtk/x11scrip.c (CmScriptExec): call
13214 gdk_window_invalidate_rect() after execute script.
13215
13216 2008-10-06 Ito Hiroyuki <ZXB01226 at nifty.com>
13217
13218 * src/gtk/x11file.c (FileMaskDialogClose): don't check if the line
13219 number is already contained in mask.
13220
13221 * call arrayuniq_int() after call arrayuniq_int().
13222
13223 * src/object.c (arrayndel): use memmove() instead of memcpy().
13224 (arrayuniq_int): add
13225
13226 * src/gtk/x11view.c (Evaluate): call file::modified when add mask
13227 points.
13228
13229 * src/ofile.c (opendata): initialize fp->num.
13230 (closedata): add argument "f2dlocal".
13231 (closedata): set fp->datanum to f2dlocal->num.
13232 (f2ddone, getminmaxdata, f2ddraw, f2devaluate, f2dopendata)
13233 (f2dgetdata, f2dclosedata, f2dopendataraw, f2dgetdataraw)
13234 (f2dclosedataraw, f2dstat, f2dstat2, f2dboundings)
13235 (f2doutputfile): add argument to closedata().
13236 (get_mtime): added.
13237 (f2dstat): use get_mtime() to check mtime.
13238 (fitout): remove closedata().
13239
13240 2008-10-03 Ito Hiroyuki <ZXB01226 at nifty.com>
13241
13242 * src/ofile.c (update_mask): added.
13243 (file2d): use update_mask() for "mask" field.
13244 (getdataraw, getdata2, getdata_sub2): use bsearch_int() to check
13245 mask.
13246
13247 * src/gtk/x11view.c (Evaluate): add masked line as sorted.
13248
13249 * src/object.c (cmp_func_int, arraysort_int): added.
13250
13251 * src/mathfn.c (bsearch_int): added.
13252
13253 2008-09-25 Ito Hiroyuki <ZXB01226 at nifty.com>
13254
13255 * src/gtk/x11view.c (ViewerEvKeyDown): add case "GDK_Page_Up" and
13256 "GDK_Page_Down".
13257 (ViewerEvKeyDown): in case of GDK_Down, GDK_Up, GDK_Left and
13258 GDK_Right, scroll screen if no objects are focused.
13259
13260 2008-09-24 Ito Hiroyuki <ZXB01226 at nifty.com>
13261
13262 * src/ofile.c (getdata_sub2, getdata_skip_step): added.
13263 (getdata_sub1): use getdata_sub2().
13264 (struct f2ddata): use enum instead of int for 'type'.
13265
13266 2008-09-23 Ito Hiroyuki <ZXB01226 at nifty.com>
13267
13268 * initfile/.Ngraph (check_set): added.
13269 * initfile/.Ngraph: use check_set to initialize file object.
13270
13271 2008-09-22 Ito Hiroyuki <ZXB01226 at nifty.com>
13272
13273 * src/ofile.c (struct f2ddata): add member 'mtime' and
13274 'interrupt'.
13275 (opendata): set mtime to 'fp->mtime'.
13276 (check_mtime): added.
13277 (getminmaxdata): call check_mtime() and hskipdata().
13278 (f2ddraw, f2devaluate, f2dopendata, f2dstat, f2dstat2)
13279 (f2dboundings, f2doutputfile): remove check_mtime() placed before
13280 getminmaxdata().
13281 (f2dstat): check if 'f2dlocal->mtime == fp->mtime'.
13282
13283 2008-09-19 Ito Hiroyuki <ZXB01226 at nifty.com>
13284
13285 * src/gtk/x11file.c (FileMoveDialogAdd, FileMoveDialogRemove)
13286 (FileMoveDialogCopy): set 'd->changed' as 'TRUE'.
13287 (FileMoveDialogClose, FileMaskDialogClose): do nothing when
13288 'd->changed' is 'FALSE'.
13289 (FileMaskDialog, FileMoveDialog): initialize 'data->changed'.
13290
13291 * src/gtk/gtk_widget.h (enum SPIN_BUTTON_TYPE): add
13292 'SPIN_BUTTON_TYPE_NATURAL'.
13293
13294 * src/gtk/gtk_widget.c (create_spin_entry_type): add case
13295 'SPIN_BUTTON_TYPE_NATURAL'
13296
13297 * src/gtk/x11dialg.h (struct FileMoveDialog)
13298 (struct FileMaskDialog): add member 'changed'.
13299
13300 * src/gtk/x11view.c (ViewerWinFileUpdate, ViewUpdate): set
13301 'NgraphApp.Changed' as 'TRUE' only when return value is
13302 'IDDELETE'.
13303
13304 * src/gtk/x11merge.c (CmMergeClose): set 'NgraphApp.Changed' as
13305 'TRUE' only when return value is 'IDDELETE'.
13306
13307 * src/gtk/x11lgnd.c (legend_dialog_close): check if the value is
13308 really changed.
13309 (CmLineUpdate, CmCurveUpdate, CmPolyUpdate, CmRectUpdate)
13310 (CmArcUpdate, CmMarkUpdate, CmTextUpdate, LegendWinLegendUpdate):
13311 set 'NgraphApp.Changed' as 'TRUE' only when return value is
13312 'IDDELETE'.
13313
13314 * src/gtk/x11file.c (MathDialogList): remove AddMathList().
13315 (MathDialogList): check if the math text is really changed.
13316 (FitDialogApply): do not set 'TRUE' to 'NgraphApp.Changed'.
13317 (FileLoadDialogClose): check if the ifs text is really changed.
13318 (FileDialogCloseCommon): call SetObjAxisFieldFromWidget().
13319 (FileDefDialogClose): remove duplicate settings.
13320
13321 * src/gtk/x11axis.c (CmAxisUpdate, CmAxisGridUpdate): do not set
13322 'TRUE' to 'NgraphApp.Changed' when the return value is not IDOK.
13323
13324 * src/gtk/x11file.c (FileDialogCloseCommon): use
13325 SetObjAxisFieldFromWidget().
13326
13327 * src/gtk/x11axis.c (GridDialogClose, AxisPosDialogClose)
13328 (AxisDialogClose): use SetObjAxisFieldFromWidget().
13329
13330 * src/gtk/x11dialg.c (SetObjPointsFromText, SetObjFieldFromText)
13331 (SetObjFieldFromSpin, SetObjFieldFromToggle)
13332 (SetObjFieldFromStyle, SetObjFieldFromList)
13333 (SetObjFieldFromFontList, _putobj_color): check if the value is
13334 really changed.
13335 (SetObjAxisFieldFromWidget): add
13336
13337 * src/gtk/gtk_subwin.c (update): do not set 'TRUE' to
13338 'NgraphApp.Changed'.
13339
13340 * src/ofile.c (struct f2dlocal): add member "sumx, sumy, sumxx,
13341 sumyy, sumxy, minx, maxx, miny, maxy, num and mtime".
13342 (f2dfile, f2dput): set 'f2dlocal->mtime' as 0.
13343 (update_field, foputabs, foputge1): added.
13344 (getminmaxdata): add argument 'local'.
13345 (f2ddraw, f2devaluate, f2dopendata, f2dstat, f2dstat2)
13346 (f2dboundings, f2doutputfile): add argument to getminmaxdata().
13347
13348 2008-09-18 Ito Hiroyuki <ZXB01226 at nifty.com>
13349
13350 * src/ofile.c (opendata): check mtime of the file.
13351 (file2d): add field "mtime".
13352
13353 * src/gtk/x11commn.c (FileAutoScale): return when fail to allocate
13354 memory.
13355
13356 * src/ofile.c (f2dbounding): return 1 when error is occurred.
13357
13358 * src/oaxis.c (axisautoscalefile): check the return value of
13359 getobj().
13360 (axisautoscale): return 1 when the return value of
13361 axisautoscalefile() is not 0.
13362
13363 * src/gtk/x11print.c (CmPrintDataFile): check the return value of
13364 exeobj().
13365
13366 * src/gtk/ogra2gtkprint.c (create_cairo): show error message when
13367 error is occurred.
13368
13369 * src/ofile.c (f2doutputfile): show error message when error is
13370 occurred.
13371
13372 * src/gtk/x11menu.c (PutStdout, PutStderr): convert string from
13373 locale to UTF-8.
13374
13375 2008-09-17 Ito Hiroyuki <ZXB01226 at nifty.com>
13376
13377 * src/gtk/x11print.c (draw_gra): check the return value of
13378 exeobj().
13379
13380 * src/gtk/x11gui.c (fsok): set NULL to data->ext when filer name
13381 is "All".
13382 (fsok): call error22() after call gdk_beep().
13383
13384 * src/gtk/ogra2cairofile.c (create_cairo): add argument 'err' and
13385 set cairo_status to err.
13386 (gra2cairofile_output): call error2() when some error is occurred
13387 in the case of 'I' and 'E'.
13388 (addgra2cairofile): add error messages.
13389
13390 * src/gtk/ogra2cairo.c (check_cairo_status): added.
13391 (gra2cairo_flush): call check_cairo_status().
13392 (gra2cairo_output): call check_cairo_status() in the case of 'I'
13393 and 'E'.
13394 (addgra2cairo): add error messages.
13395
13396 * src/ogra.c (oGRAopen): check the return value of GRAinit().
13397
13398 * src/gra.c (GRAreopen, GRAdraw, GRAinit, GRAend): return int.
13399
13400 * src/ogra.h (ERROPEN): added.
13401
13402 2008-09-16 Ito Hiroyuki <ZXB01226 at nifty.com>
13403
13404 * src/object.c (add_obj_to_hash): added.
13405 (addobject): set object name and table position to hash.
13406 (chkobject): use hash to search object.
13407 (chkobjtblpos): use hash to search table position.
13408 (chkobjoffset, chkobjfield): use chkobjtblpos().
13409
13410 * src/object.h (struct objlist): add member 'table_hash'.
13411
13412 * src/nhash.h: added.
13413
13414 * src/nhash.c: added.
13415
13416 2008-09-12 Ito Hiroyuki <ZXB01226 at nifty.com>
13417
13418 * src/gtk/x11opt.c (DefaultDialogClose, ExViewerDialogSetupItem)
13419 (ExViewerDialogSetup): add settings for 'use_external'.
13420 (use_external_toggled): added.
13421
13422 * src/gtk/ox11menu.h (struct menulocal): add member
13423 "exwin_use_external".
13424
13425 * src/gtk/x11dialg.h (struct ExViewerDialog): add member
13426 "use_external".
13427
13428 * src/gtk/x11print.c (draw_gra): use 'exeobj()' to call "open"
13429 member function.
13430 (CmOutputViewer): add argument 'select_file'.
13431 (CmOutputViewer): use "menu::print" instead of "gra2gtk".
13432 (CmOutputMenu, CmOutputViewerB): add argument to call
13433 CmOutputViewer().
13434 (CmOutputPrinterB): now second argument of CmOutputPrinter() is
13435 'FALSE'.
13436
13437 * src/shellcm.c (cmset): use memmove().
13438 (cmobject): fix typo ("filed" to "field").
13439
13440 * src/object.c (arrayndel2): use memmove().
13441
13442 2008-09-11 Ito Hiroyuki <ZXB01226 at nifty.com>
13443
13444 * src/gtk/x11print.c (CmOutputPrinter): add argument 'int
13445 show_dialog'.
13446 (CmOutputPrinter): check 'show_dialog' when call
13447 gtk_print_operation_run().
13448 (CmOutputPrinterB): add argument when call CmOutputPrinter().
13449 (init_graobj): added.
13450 (CmOutputPrinter, CmOutputDriver, CmOutputViewer)
13451 (CmPrintGRAFile, CmOutputImage): use init_graobj().
13452 (draw_gra): added.
13453 (draw_page, CmOutputDriver, CmPrintGRAFile, CmOutputImage): use draw_gra().
13454
13455 * src/gtk/x11menu.c (SetPoint, SetZoom, ResetZoom, SetStatusBar)
13456 (SetStatusBarXm, ResetStatusBar): check 'NgraphApp.Message' is
13457 NULL or not.
13458 (SetCursor): check 'NgraphApp.Cursor' is NULL or not.
13459
13460 * src/gtk/x11graph.c (CmGraphMenu): add argument when call
13461 CmOutputPrinter().
13462
13463 * src/gtk/ox11menu.c (mx_print): added.
13464 (gtkmenu): add member "print".
13465
13466 * src/gtk/ogra2gtkprint.c (gra2gtkprint): remove member "next".
13467
13468 * src/gtk/ogra2cairo.c (gra2cairo): remove member "next".
13469
13470 * initfile/.Ngraph: add -p option.
13471
13472 2008-09-10 Ito Hiroyuki <ZXB01226 at nifty.com>
13473
13474 * src/gtk/x11print.c (CmPrintGRAFile): set base-name of ngp file
13475 as default GRA filename.
13476 (get_base_ngp_name): added.
13477 (CmPrintGRAFile, CmOutputImage): use get_base_ngp_name().
13478
13479 * src/gtk/ogra2cairo.c (draw_str, gra2cairo_charheight)
13480 (gra2cairo_charwidth): check font size.
13481
13482 * src/gtk/x11view.c (new_merge_obj, new_file_obj): added.
13483 (data_dropped): add argument 'file_type'. use new_file_obj() and
13484 new_merge_obj().
13485
13486 * src/gtk/x11view.h: add prototype of data_dropped().
13487
13488 * src/gtk/x11merge.c: include "x11view.h"
13489 (drag_drop_cb, init_dnd): added.
13490 (CmMergeWindow): call init_dnd().
13491
13492 * src/gtk/x11file.c (drag_drop_cb, init_dnd): added.
13493 (CmFileWindow): call init_dnd().
13494
13495 * src/gtk/x11menu.c (createcommand2): set signal handler for
13496 "button-press-event".
13497
13498 * src/gtk/x11view.h: add prototype of CmViewerButtonPressed().
13499
13500 * src/gtk/x11view.c: add 'KeepMouseMode'.
13501 (ViewerEvLButtonDblClk): call gtk_toggle_tool_button_set_active()
13502 when 'KeepMouseMode == FALSE'.
13503 (CmViewerButtonPressed): added.
13504
13505 2008-09-08 Ito Hiroyuki <ZXB01226 at nifty.com>
13506
13507 * src/gtk/x11view.c (Focus): remove
13508 'gtk_toggle_tool_button_set_active()'.
13509 (check_focused_obj): now return index of found item.
13510 (ShowPoints): draw arc when 'd->Mode == ArcB'.
13511 (calc_snap_angle, calc_integer_ratio, SQRT3): added.
13512 (ViewerEvMouseMove): call calc_snap_angle() or
13513 calc_integer_ratio().
13514
13515 * src/gtk/gtk_subwin.c (ev_key_down_tree): add 'break;' in the
13516 case of 'GDK_space'.
13517 (ev_key_down_tree): return 'FALSE' when shift key is pressed in
13518 the case of 'GDK_Return'.
13519
13520 2008-09-05 Ito Hiroyuki <ZXB01226 at nifty.com>
13521
13522 * src/gtk/x11view.c (mouse_up_point): don't change cursor.
13523 (get_mouse_cursor_type): added.
13524 (set_mouse_cursor_hover): use get_mouse_cursor_type().
13525
13526 * src/gtk/x11menu.c (Command2_data): remove MoveB.
13527
13528 2008-09-04 Ito Hiroyuki <ZXB01226 at nifty.com>
13529
13530 * src/gtk/x11file.c (POPUP_ITEM_FIT): added.
13531 (popup_show_cb): check if the object associate with fit.
13532
13533 * src/gtk/x11view.c (ViewerWinFileUpdate): call
13534 ProgressDialogCreate() before evaluate.
13535 (range_increment): added.
13536 (scrollbar_scroll_cb, ViewerEvScroll): use range_increment().
13537 (ViewerEvMouseMove): scroll when mouse position is out of the
13538 widget.
13539 (AlignFocusedObj): align to the paper when number of focused
13540 object is 1.
13541 (do_popup): set sensitivity of d->popup_item[3] as TRUE when 'num
13542 > 0'.
13543
13544 2008-09-01 Ito Hiroyuki <ZXB01226 at nifty.com>
13545
13546 * src/gtk/gtk_subwin.c (start_editing): use snprintf() when
13547 'list->type == G_TYPE_STRING' and 'chkobjfieldtype(d->obj,
13548 list->name) == NDOUBLE' to set value.
13549 (modify_string): check if the value is really modified.
13550
13551 2008-08-29 Ito Hiroyuki <ZXB01226 at nifty.com>
13552
13553 * src/gtk/gtk_subwin.c (ev_button_down, ev_button_down_tree):
13554 check 'event->time' to treat double click as double click.
13555
13556 2008-08-28 Ito Hiroyuki <ZXB01226 at nifty.com>
13557
13558 * src/gtk/x11lgnd.c (legend_dialog_close): bug fix: call
13559 SetObjPointsFromText().
13560
13561 2008-08-27 Ito Hiroyuki <ZXB01226 at nifty.com>
13562
13563 * src/gtk/x11lgnd.c (legend_dialog_close): bug fix: call
13564 SetObjFieldFromStyle().
13565
13566 * src/gtk/x11opt.c (CmOptionViewer): uncomment 'ChangeDPI(TRUE);'.
13567
13568 * src/gtk/x11dialg.h (struct MiscDialog): add 'data_head_lines'.
13569
13570 * src/gtk/ox11menu.h (struct mxlocal): add 'data_head_lines'.
13571
13572 * src/gtk/x11file.c (FileDialogSetup): use
13573 Mxlocal->data_head_lines.
13574
13575 * src/gtk/ox11menu.c (mgtkloadconfig, menuinit): add settings for
13576 'Mxlocal->data_head_lines'.
13577 (mx_data_head_lines): added.
13578 (gtkmenu): add 'data_head_lines'.
13579
13580 * src/gtk/x11opt.c (DefaultDialogClose, MiscDialogSetupItem)
13581 (MiscDialogSetup, MiscDialogClose): add settings for
13582 'Mxlocal->data_head_lines'.
13583
13584 2008-08-26 Ito Hiroyuki <ZXB01226 at nifty.com>
13585
13586 * src/ofile.c (f2dhead): check the return value of nstrnew() is
13587 NULL or not.
13588
13589 * src/gtk/x11gui.c (dialog_key_down_cb): return FALSE when 'w' key
13590 is pressed without control key.
13591
13592 * src/gtk/gtk_subwin.c (ev_sub_win_key_down): return FALSE when
13593 'w' key is pressed without control key.
13594
13595 * src/gtk/ogra2x11.c (ev_key_down): return FALSE when 'w' key is
13596 pressed without control key.
13597
13598 * src/ofile.c (f2dhead): add line number.
13599
13600 * src/ioutil.c (fgetnline): use fgetline().
13601
13602 2008-08-25 Ito Hiroyuki <ZXB01226 at nifty.com>
13603
13604 * src/ofile.c (f2dhead): change length of 'buf' from 128 to 256.
13605 (f2dhead): use 'sizeof()' instead of immediate.
13606
13607 * src/gtk/x11file.c (FileDialogSetup): change value of 'line' from
13608 10 to 20.
13609
13610 2008-08-22 Ito Hiroyuki <ZXB01226 at nifty.com>
13611
13612 * src/ofile.c (struct f2ddata): add ifs_buf.
13613 (check_ifs_init, CHECK_IFS, CHECK_REMARK): added.
13614 (opendata): call check_ifs_init().
13615 (getdataarray, getdata_sub1, getdata2, getdataraw): use
13616 CHECK_REMARK and CHECK_IFS instead of strchr().
13617
13618 * src/ioutil.c: added.
13619 (char_type_buf_init): added.
13620 (fgetline): use is_line_sep() when EOF == -1.
13621
13622 * src/gtk/x11file.c (FileMoveDialogAdd): check if x and y are NaN or INF.
13623
13624 * src/gtk/x11dialg.c (SetObjPointsFromText): check if d is NaN or INF.
13625
13626 * src/gtk/gtk_subwin.c (numeric_cb): check if val is NaN or INF.
13627
13628 * src/ofile.c (f2dsettings): check if f1, a2 and f3 are NaN or INF.
13629
13630 2008-08-21 Ito Hiroyuki <ZXB01226 at nifty.com>
13631
13632 * src/ofile.c (struct f2ddata_buf): added.
13633 (struct f2ddata, opendata, closedata, getdata_sub1, getdata): use
13634 'struct f2ddata_buf'.
13635
13636 * src/gra.c (GRAboundingbox): consider line width in the case 'R'.
13637
13638 * src/ofile.c (reopendata): set fp->prev_datanum.
13639 (getdataraw): call set_data_progress().
13640 (getdataraw): increment fp->datanum in loop.
13641
13642 * src/ioutil.c (fgetline): bug fix: increment 'i' only
13643 after nstraddchar().
13644 (fgetline) now '\r' is treated as line break.
13645
13646 2008-08-20 Ito Hiroyuki <ZXB01226 at nifty.com>
13647
13648 * src/ofile.c (getdataarray): bug fix: check if val is NaN or INF.
13649
13650 * src/ioutil.c (fgetline): use switch instead of if.
13651
13652 * src/ofile.c (getdata_sub1): added.
13653 (getdata): use getdata_sub1().
13654 (getdata): use memmove() instead of loop.
13655
13656 * src/axis.c (getaxispositionfirst): use alocal->inc instead of
13657 alocal->dposm to determine alocal->dposs.
13658
13659 2008-08-19 Ito Hiroyuki <ZXB01226 at nifty.com>
13660
13661 * src/gra.c (GRAboundingbox): now ch is int.
13662 (GRAboundingbox): first argument of Gracharwidth is '(ch & 0xff)'.
13663
13664 2008-08-18 Ito Hiroyuki <ZXB01226 at nifty.com>
13665
13666 * src/gtk/x11file.c (select_type): set selected item to d->select.
13667
13668 * src/gtk/x11menu.c (add_underscore): added.
13669 (show_graphmwnu_cb, show_filemwnu_cb): call add_underscore().
13670
13671 2008-08-15 Ito Hiroyuki <ZXB01226 at nifty.com>
13672
13673 * src/gtk/x11menu.c: added.
13674 (create_graphmenu, create_axismenu): add accelerator.
13675 (create_toggle_menu_item): added.
13676 (create_windowmenu): use create_toggle_menu_item().
13677
13678 * src/gtk/x11menu.h: added.
13679
13680 * src/gtk/gtk_subwin.c (sub_window_create): add accel group to sub
13681 window.
13682
13683 * src/gtk/x11view.c (AddList): bug fix: call GRAdellist() when
13684 inst2 == NULL.
13685
13686 2008-08-14 Ito Hiroyuki <ZXB01226 at nifty.com>
13687
13688 * src/gtk/x11opt.c (DefaultDialogClose): check
13689 NgraphApp.FileWin.Win->window etc.
13690
13691 2008-08-11 Ito Hiroyuki <ZXB01226 at nifty.com>
13692
13693 * src/gtk/x11menu.c (MARK_PIX_SIZE): change mark size from 28 to 24.
13694
13695 * src/gtk/x11file.c (create_type_combo_box): added.
13696 (select_type, start_editing_type): modified for tree model.
13697
13698 * src/gtk/gtk_liststore.c (start_editing_obj): use GtkTreeModel
13699 for combo_box.
13700
13701 2008-08-08 Ito Hiroyuki <ZXB01226 at nifty.com>
13702
13703 * src/gtk/gtk_liststore.c (start_editing_obj): added.
13704 (create_column): set some properties to GtkCellRenderer.
13705 set start_editing virtual function.
13706
13707 * src/gtk/gtk_subwin.c (set_obj_cell_renderer_cb): added.
13708
13709 * src/gtk/x11file.c (select_type, start_editing_type): added.
13710 (CmFileWindow): call set_obj_cell_renderer_cb.
13711
13712 2008-08-06 Ito Hiroyuki <ZXB01226 at nifty.com>
13713
13714 * initfile/.Ngraph: add save_image().
13715 add -png, -ps, -eps, -pdf and -svg option.
13716
13717 * src/gtk/main.c (inputynconsole): add message ' [yn] '.
13718 use strchr() to check input character.
13719 read while '\n' appear.
13720
13721 2008-08-05 Ito Hiroyuki <ZXB01226 at nifty.com>
13722
13723 * src/gtk/ox11menu.h (struct menulocal): add member 'expandtofullpath'
13724
13725 * src/gtk/ox11menu.c (mgtkloadconfig): add condition for
13726 'expand_to_fullpath'
13727 (menuinit): initialize Menulocal.expandtofullpath.
13728
13729 * src/gtk/x11commn.c (ToFullPath): added.
13730 (LoadNgpFile): call ToFullPath() when 'Menulocal.expandtofullpath
13731 && (!ignorepath)'
13732
13733 * src/ioutil.c (getfullpath): argument of changefilename() is
13734 'name'.
13735
13736 * src/object.c (memrealloc): add sleep().
13737
13738 * src/shellux.c (cmtest): add condition
13739 '(strcmp2(argv[i+1],"=")!=0) && (strcmp2(argv[i+1],"!=")!=0)'
13740
13741 * src/jnstring.h: added.
13742
13743 * src/jnstring.c: added.
13744
13745 * src/ngraph.h (ALIGNSIZE): added.
13746
13747 2008-07-24 Ito Hiroyuki <ZXB01226 at nifty.com>
13748
13749 * src/gtk/x11file.c (get_axis_obj_str): added.
13750 (file_list_set_val): use get_axis_obj_str().
13751 (start_editing): check axis object.
13752
13753 2008-07-23 Ito Hiroyuki <ZXB01226 at nifty.com>
13754
13755 * src/gtk/x11file.c (select_axis, select_axis_x, select_axis_y):
13756 added.
13757 (start_editing): use "changed" signal.
13758
13759 * src/gtk/x11axis.c (select_type): added.
13760 (start_editing): use "changed" signal.
13761
13762 2008-07-22 Ito Hiroyuki <ZXB01226 at nifty.com>
13763
13764 * src/gtk/x11file.c (edited_y, edited_x, edited_axis)
13765 (start_editing): added.
13766 (CmFileWindow): call set_combo_cell_renderer_cb().
13767
13768 * src/gtk/x11axis.c (start_editing, edited): added.
13769 (CmAxisWindow): call set_combo_cell_renderer_cb().
13770
13771 * src/gtk/gtk_subwin.c (set_combo_cell_renderer_cb): added.
13772
13773 * src/gtk/gtk_liststore.c (create_column): add case G_TYPE_ENUM.
13774 (create_tree_view): column type of G_TYPE_ENUM is string.
13775
13776 * src/gtk/x11menu.c: add global variables RecentGraph and
13777 RecentData.
13778 (create_recent_graph_menu, create_recent_data_menu): added.
13779 (create_graphmenu): call create_recent_graph_menu.
13780 (create_filemenu): call create_recent_data_menu.
13781
13782 * src/gtk/gtk_subwin.c (modify_numeric, modify_string): check the
13783 value is modified or not.
13784 (ev_button_down, ev_button_down_tree): return FALSE when locked.
13785
13786 2008-07-18 Ito Hiroyuki <ZXB01226 at nifty.com>
13787
13788 * src/gtk/x11dialg.c (search_id): added.
13789 (SelectDialogSetup, SelectDialogSetup): add id column. check id
13790 column insteadof index.
13791
13792 * src/gtk/x11lgnd.c (LegendLineCB, LegendRectCB, LegendArcCB)
13793 (LegendTextCB): remove id.
13794
13795 * src/gtk/x11file.c (FitCB): remove id.
13796
13797 * src/gtk/x11commn.c (FileCB): remove id.
13798
13799 * src/gtk/x11axis.c (AxisDialogFile): always get scale type.
13800 (AxisDialogSetup): bug fix: widget type of Scale setting is
13801 GtkComboBox.
13802 (AxisCB, GridCB): remove id.
13803
13804 * src/gtk/x11file.c (MathDialogSetup, MathDialogList): now math
13805 dialog can be sorted.
13806
13807 * src/gtk/gtk_liststore.c (list_store_path_get_int): added.
13808
13809 * src/gtk/x11file.c (FileMoveDialogSetup, FileMaskDialogSetup):
13810 now lists of masked and moved data are sorted by line number.
13811
13812 * src/gtk/gtk_liststore.c (list_store_set_sort_column)
13813 (list_store_set_sort_all): added.
13814
13815 2008-07-17 Ito Hiroyuki <ZXB01226 at nifty.com>
13816
13817 * src/gtk/ogra2cairo.c (gra2cairo_output): in the case 'V' call
13818 cairo_reset_clip() before clip rectangle and restore clip region
13819 when local->region is not NULL.
13820
13821 * src/shell.c (checkcmd): bug fix: initialize prmcur->prmno as
13822 NULL when prmcur->str[1] == ';'.
13823 (checkcmd): fix indent.
13824
13825 * src/gtk/ogra2x11.c (gtkinit): free gra2cairo_local when failed.
13826
13827 * src/gtk/ogra2gdk.c (g2g_init): free gra2cairo_local when failed.
13828
13829 * src/gtk/ox11menu.c (menuinit): free gra2cairo_local when failed.
13830
13831 * src/gtk/ogra2cairo.c (gra2cairo_free): added.
13832 (gra2cairo_init): call free_conf() only when Instance == 0.
13833
13834 * src/gtk/ogra2cairofile.c (gra2cairofile_init): free
13835 gra2cairo_local when failed.
13836
13837 2008-07-16 Ito Hiroyuki <ZXB01226 at nifty.com>
13838
13839 * src/gtk/gtk_subwin.c (start_editing, cancel_editing)
13840 (numeric_cb, string_cb): added.
13841 (set_cell_renderer_cb): set callback functions when type is
13842 G_TYPE_DOUBLE, G_TYPE_INT or G_TYPE_STRING.
13843 (modify_numeric, modify_string): added.
13844
13845 * src/gtk/gtk_liststore.h (_list_store): add min, max, inc and
13846 page.
13847
13848 * src/gtk/gtk_liststore.c (create_column): set "editable",
13849 "adjustment", "digits" and "user-data" properties to renderer when
13850 editable is TRUE.
13851
13852 * src/ofile.c (closedata): call set_data_progress();
13853
13854 * src/gtk/x11dialg.c (SetObjFieldFromWidget)
13855 (SetWidgetFromObjField): added.
13856
13857 2008-07-15 Ito Hiroyuki <ZXB01226 at nifty.com>
13858
13859 * src/gtk/x11dialg.c (SetTextFromObjPoints)
13860 (SetObjPointsFromText): added.
13861 (SetObjFieldFromStyle): call SetObjPointsFromText() to set value.
13862 (SetStyleFromObjField): call SetTextFromObjPoints() to set value.
13863
13864 * src/gtk/x11axis.c (Alist): type of 'x', 'y', 'dir' and 'len' are
13865 G_TYPE_DOUBLE.
13866 (axis_list_set_val): now position and length are shown in mm.
13867 direction is shown in degree.
13868
13869 * src/gtk/x11file.c (Flist): type of 'size' and 'width' are
13870 G_TYPE_DOUBLE.
13871 (file_list_set_val): now size and width are shown in mm.
13872
13873 * src/gtk/x11merge.c (Mlist): type of 'tm', 'lm' and 'zm' are
13874 G_TYPE_DOUBLE.
13875 (merge_list_set_val): now margin and zoom are shown in mm and
13876 percent respectively.
13877
13878 * src/gtk/x11cood.c (CoordWinSetCoord): now position is shown in
13879 mm.
13880
13881 * src/gtk/x11menu.c (SetPoint): now position is shown in mm.
13882
13883 * src/gtk/x11lgnd.c (Llist): type of 'x' and 'y' are
13884 G_TYPE_DOUBLE.
13885 (LegendLineCB, LegendRectCB, LegendArcCB): now position is shown
13886 in mm.
13887 (legend_dialog_setup_item): use SetTextFromObjPoints() for
13888 "points" property.
13889 (legend_dialog_close): use SetObjPointsFromText() for "points"
13890 property.
13891 (legend_list_set_val): now position and size are shown in mm.
13892
13893 * src/gtk/gtk_liststore.c (tree_store_set_double)
13894 (list_store_set_double): set formated string.
13895 (create_tree_view): set G_TYPE_STRING when type is G_TYPE_DOUBLE.
13896
13897 2008-07-14 Ito Hiroyuki <ZXB01226 at nifty.com>
13898
13899 * src/ofile.c (curveoutfile): remove condition "getposition2(fp,
13900 fp->axtype, fp->aytype, &(fp->dx), &(fp->dy)) == 0"
13901 (opendata): bug fix: initialize some variables when "axis" is
13902 FALSE.
13903
13904 * src/gtk/x11gui.c (fsok): bug fix: : add braces as "(n + 1)"
13905 in argument of malloc.
13906
13907 * src/orect.c (rectzoom): check if x1 and y1 are equal to x2 and
13908 y2 respectively.
13909
13910 * src/oaxis.c (axisput): use TEXT_SIZE_MIN macro.
13911
13912 * src/oarc.c (arczoom): check value of rx and ry.
13913
13914 * src/otext.c (textgeometry): use macro; TEXT_OBJ_SCRIPT_SIZE_MIN,
13915 TEXT_OBJ_SCRIPT_SIZE_MAX and TEXT_SIZE_MIN.
13916
13917 * src/gtk/x11print.c (OutputDataDialogSetupItem)
13918 (OutputDataDialogClose): use GtkSpinButton.
13919
13920 * src/gtk/x11opt.c (MiscDialogSetupItem, MiscDialogSetup)
13921 (MiscDialogClose, ExViewerDialogSetupItem, ExViewerDialogSetup)
13922 (ExViewerDialogClose, ViewerDialogSetupItem, ViewerDialogSetup)
13923 (ViewerDialogClose): use GtkSpinButton.
13924
13925 * src/gtk/x11merge.c (MergeDialogSetup): use GtkSpinButton.
13926
13927 * src/gtk/x11lgndx.c (LegendGaussDialogSetup): use GtkSpinButton.
13928
13929 * src/gtk/x11lgnd.c (legend_dialog_setup_item)
13930 (legend_dialog_close, width_setup, miter_setup)
13931 (LegendRectDialogSetup, LegendArcDialogSetup)
13932 (LegendMarkDialogSetup, legend_dialog_setup_sub)
13933 (LegendTextDialogSetup): use GtkSpinButton.
13934
13935 * src/gtk/x11graph.c (PageDialogSetupItem, PageDialogPage)
13936 (PageDialogSetup, PageDialogClose): use GtkSpinButton.
13937
13938 * src/gtk/x11file.c (FitDialogSetup, FileMaskDialogAdd)
13939 (FileLoadDialogSetup, FileMathDialogSetup)
13940 (FileDialogSetupCommon): use GtkSpinButton.
13941
13942 * src/gtk/x11dialg.c (SetObjFieldFromSpin, SetSpinFromObjField):
13943 use GtkSpinButton.
13944
13945 * src/gtk/x11axis.c (gauge_syle_setup, SectionDialogSetupItem)
13946 (SectionDialogSetup, SectionDialogClose, CrossDialogSetupItem)
13947 (CrossDialogSetup, CrossDialogClose, ZoomDialogSetup)
13948 (ZoomDialogClose, AxisBaseDialogSetup, AxisPosDialogSetup)
13949 (NumDialogSetup, AxisFontDialogSetup, AxisDialogSetup): use
13950 GtkSpinButton.
13951
13952 * src/gtk/gtk_widget.c: added.
13953
13954 2008-07-11 Ito Hiroyuki <ZXB01226 at nifty.com>
13955
13956 * src/gtk/gtk_liststore.c (create_column): set "mode" attribute as
13957 GTK_CELL_RENDERER_MODE_ACTIVATABLE when the column is editable.
13958
13959 * src/gtk/gtk_subwin.c (set_cell_renderer_cb, toggle_cb): added.
13960 (list_sub_window_create, tree_sub_window_create): call
13961 set_cell_renderer_cb().
13962
13963 2008-07-05 Ito Hiroyuki <ZXB01226 at nifty.com>
13964
13965 * src/gtk/x11file.c (FileMoveDialogSetup, FileMaskDialogSetup):
13966 add copy button.
13967 (FileMaskDialogClose, FileMoveDialogClose): add case for IDCOPY.
13968 (FileMoveDialogCopy, FileMaskDialogCopy): added.
13969
13970 2008-07-04 Ito Hiroyuki <ZXB01226 at nifty.com>
13971
13972 * src/gtk/x11menu.c (SetCaption): free 'buf'.
13973
13974 * src/ogra.c (set_progress_val): initialize progress bar when 'i == 0'.
13975
13976 * src/gtk/ogra2cairo.c (gra2cairo_done): free 'local->fontalias'.
13977
13978 * src/gtk/x11file.c (file_list_set_val, FileDialogSetupItem): free
13979 'valstr'.
13980
13981 * src/gtk/ogra2cairo.c (free_conf): free fontmap.
13982
13983 * src/gtk/gtk_entry_completion.c (add_completion): free 'buf'.
13984
13985 * src/gtk/ogra2gtkprint.c (create_cairo): remove cairo_destroy().
13986 (gra2gtkprint_done): set NULL to local->cairo.
13987
13988 * src/gtk/x11graph.c (PageDialogPage): width and height entry is
13989 sensitive only when paper type is custom.
13990
13991 * src/gtk/ox11menu.h (struct menulocal): add PaperLandscape,
13992 PaperId and PaperName.
13993 (enum paper_id): added.
13994
13995 * src/gtk/x11graph.c (PageDialogClose): check paper size.
13996 (set_paper_type): added.
13997 (struct pagelisttype, pagelist): add name, landscape and id;
13998
13999 * src/gtk/x11commn.c (CheckPage): bug fix: remove redundant return.
14000
14001 2008-07-03 Ito Hiroyuki <ZXB01226 at nifty.com>
14002
14003 * src/gtk/x11graph.c (CmGraphMenu): call CmOutputPrinter() when
14004 sel == MenuIdOutputDriver.
14005
14006 * src/gtk/ogra2gtkprint.c: added.
14007
14008 * src/gtk/x11print.c (CmOutputPrinter, draw_page)
14009 (struct print_obj): added.
14010 add global variable PrintSettings.
14011
14012 * src/gtk/ogra2cairo.c (gra2cairo_output): save current point
14013 after call cairo_stroke() for graphic command 'T'.
14014
14015 * src/ofile.c (fitout): fitout is now static.
14016
14017 * src/ofit.c (fitpoly): bug fix: write information in 'buf'
14018 instead of 'equation'.
14019
14020 * src/gtk/x11file.c (FitDialogSetupItem, FitDialogSave)
14021 (FitDialogApply): bug fix: poly_dimension is active item + 1.
14022
14023 * src/gtk/x11commn.c (GetDrawFiles): added.
14024
14025 * src/gtk/x11print.c (CmPrintDataFile): now CmPrintDataFile() can
14026 output multi data files into one file.
14027
14028 * src/gtk/x11commn.c (SetFileHidden): add arraydel(&ifarray) when
14029 return value of DialogExecute() is not IDOK.
14030
14031 * src/ofile.c (f2doutputfile): add append mode.
14032 (file2d): change arguments of "output_file" from "si" to "sib".
14033
14034 2008-07-02 Ito Hiroyuki <ZXB01226 at nifty.com>
14035
14036 * src/gtk/x11view.c (create_pix): add settings for antialias.
14037 (OpenGC, ReopenGC): add settings for pixel_dot_x and pixel_dot_y.
14038
14039 * src/gtk/x11opt.c (DefaultDialogClose, ViewerDialogSetupItem)
14040 (ViewerDialogSetup, ViewerDialogClose): add settings for antialias.
14041
14042 * src/gtk/ox11menu.c (mgtkloadconfig, menuinit): add settings for
14043 antialias.
14044 (mxdpi): add settings for pixel_dot_x and pixel_dot_y.
14045 (mxd2p, mxd2px, mxd2py, mxp2d): use pixel_dot_x and pixel_dot_y.
14046 remove gtk_output().
14047
14048 * src/gtk/ogra2x11.c (gtkinit): add settings for dpix and dpiy.
14049 (dot2pixel): use pixel_dot_x.
14050
14051 * src/gtk/ogra2gdk.c (g2g_init): add settings for dpix and dpiy.
14052
14053 * src/gtk/ogra2cairofile.c (gra2cairofile_init): add settings for
14054 dpix and dpiy
14055
14056 * src/gtk/ogra2cairo.c (gra2cairo_antialias_type)
14057 (gra2cairo_set_antialias, set_antialias): added.
14058 (gra2cairo_output, gra2cairo_init): add antialias settings.
14059 (gra2cairo): add member "antialias", "dpix" and "dpiy".
14060 (mxp2dw, mxd2pw, mxp2dh, mxd2ph, mxd2px, mxd2py): added.
14061 (gra2cairo_init, gra2cairo_set_dpi): add settings for pixel_dot_x
14062 and pixel_dot_y.
14063 (gra2cairo_set_dpi_x, gra2cairo_set_dpi_y): added.
14064 (draw_str, gra2cairo_output): use mxp2dw(), mxd2pw(), mxp2dh(),
14065 mxd2ph(), mxd2px() and mxd2py().
14066
14067 * src/gtk/ogra2cairo.h (struct gra2cairo_local): add antialias,
14068 pixel_dot_x and pixel_dot_y.
14069
14070 2008-07-01 Ito Hiroyuki <ZXB01226 at nifty.com>
14071
14072 * src/gtk/x11menu.c (create_image_outputmenu): added.
14073 (create_outputmenu): add "Export image" sub menu.
14074
14075 * src/gtk/x11menu.h (enum MenuID): add MenuId MenuIdOutputPSFile,
14076 MenuIdOutputEPSFile, MenuIdOutputPDFFile, MenuIdOutputPNGFile and
14077 MenuIdOutputSVGFile.
14078
14079 * src/gtk/x11print.c (OutputImageDialogSetupItem)
14080 (OutputImageDialogSetup, OutputImageDialogClose)
14081 (OutputImageDialog, CmOutputImage): added.
14082 (CmOutputMenu): add case MenuIdOutputPSFile, MenuIdOutputEPSFile,
14083 MenuIdOutputPDFFile, MenuIdOutputPNGFile and MenuIdOutputSVGFile.
14084
14085 2008-06-30 Ito Hiroyuki <ZXB01226 at nifty.com>
14086
14087 * src/gtk/x11menu.c (MARK_PIX_SIZE): change mark pix size.
14088
14089 * src/gra.c (GRAmark): fix size of triangle.
14090
14091 * src/gtk/ox11menu.c: remove mxsaveGC() and mxrestoreGC().
14092
14093 * src/gtk/x11file.c (draw_type_pixbuf): use gra2gdk.
14094
14095 * src/gtk/x11lgndx.c (LegendGaussDialogPaint): use gra2gdk.
14096
14097 * src/gtk/x11menu.c (create_markpixmap): use gra2gdk.
14098 (find_gra2gdk_inst): added.
14099
14100 * src/gtk/x11view.c (ViewerWinSetup): call OpenGRA() after
14101 OpenGC().
14102
14103 * src/gtk/Makefile.am (libngraph_la_SOURCES): add ogra2cairo.c,
14104 ogra2cairo.h, ogra2cairofile.c, ogra2x11.h, ogra2gdk.c and
14105 ogra2gdk.h
14106
14107 2008-06-27 Ito Hiroyuki <ZXB01226 at nifty.com>
14108
14109 * src/gtk/ogra2x11.c (gtkinit): gtkclose() is now called when
14110 "delete-event" signal is emitted.
14111 object 'gra2gtk' is now child of 'gra2cairo'.
14112
14113 2008-06-25 Ito Hiroyuki <ZXB01226 at nifty.com>
14114
14115 * src/gtk/ogra2cairofile.c: added.
14116
14117 * src/gtk/ogra2cairo.c: added.
14118
14119 2008-06-22 Ito Hiroyuki <ZXB01226 at nifty.com>
14120
14121 * src/gtk/x11merge.c: remove ev_key_down().
14122 (CmMergeWindow): remove setting for d->ev_key.
14123
14124 * src/gtk/x11axis.c: remove ev_key_down().
14125 (CmAxisWindow): remove setting for d->ev_key.
14126
14127 * src/gtk/strconv.c (ascii2greece): bug fix: dlen must be "slen *
14128 2 + 1".
14129 (str2utf8): bug fix: dlen must be "slen * 6 + 1".
14130
14131 * src/gtk/ogra2x11.c (gtk_charwidth, gtk_charheight): save and
14132 restore fontdir, fontsin and fontcos and set fontdir as 0 before
14133 call draw_str().
14134
14135 * src/gtk/gtk_subwin.c (ev_key_down): add case for "GDK_SPACE"
14136
14137 * src/gtk/gtk_liststore.c (create_tree_view): bug fix: add braces
14138 as "(n + cnum)" in argument of malloc.
14139
14140 2008-06-19 Ito Hiroyuki <ZXB01226 at nifty.com>
14141
14142 * src/gtk/x11menu.c (detach_toolbar, create_toolbar): added.
14143 (setupwindow): use create_toolbar().
14144
14145 * src/gtk/x11view.c (reorder_object): added.
14146 (ViewTop, ViewLast): use reorder_object().
14147 (ViewCopyAxis): added.
14148 (ViewCopy): use ViewCopyAxis().
14149
14150 2008-06-18 Ito Hiroyuki <ZXB01226 at nifty.com>
14151
14152 * src/gtk/x11commn.c (ProgressDialogCreate): set cursor to GDK_WATCH.
14153 (ProgressDialogFinalize): restore cursor.
14154
14155 * src/gtk/x11menu.c (GetCursor): added.
14156
14157 * src/gtk/x11merge.c (ev_key_down): added.
14158
14159 * src/gtk/x11view.c (Focus): now merge object can be focused.
14160
14161 2008-06-17 Ito Hiroyuki <ZXB01226 at nifty.com>
14162
14163 * src/gtk/x11view.c (mouse_down_move_data)
14164 (mouse_down_set_points, mouse_down_zoom): added.
14165 (ViewerEvLButtonDown): use mouse_down_move_data(),
14166 mouse_down_set_points() and mouse_down_zoom().
14167 (ViewerEvRButtonDown): use mouse_down_zoom();
14168 (ViewerEvRButtonDown): cancel make arc, rectangle, gauss and axis
14169 when Button3 is pressed.
14170 (create_axis, create_single_axis, create_legendx)
14171 (create_legend3, create_legend2, create_legend1): added.
14172 (ViewerEvLButtonDblClk): use create_axis(), create_single_axis(),
14173 create_legendx(), create_legend3(), create_legend2() and
14174 create_legend1().
14175 (clear_focus_obj, UnFocus): add argument "int init_cursor".
14176
14177 2008-06-16 Ito Hiroyuki <ZXB01226 at nifty.com>
14178
14179 * src/gtk/x11view.c (add_focus_obj, clear_focus_obj)
14180 (mouse_down_point, mouse_down_move, mouse_up_point)
14181 (set_mouse_cursor_hover, mouse_up_drag, mouse_up_zoom)
14182 (mouse_up_change, mouse_up_lgend1, mouse_up_lgend2): added.
14183 (Match, Focus): use add_focus_obj();
14184 (ViewerWinUpdate, UnFocus, ViewUpdate): use clear_focus_obj();
14185 (ViewerEvLButtonUp): use mouse_down_point(), mouse_up_drag(),
14186 mouse_up_zoom() and mouse_up_change().
14187
14188 * src/gtk/x11menu.c (Command2_data): add move tool button.
14189 (createcommand2): default sensitivity of the MoveButton is false.
14190 (SetMoveButtonState): added.
14191 (SetCursor): add GDK_FLEUR.
14192
14193 * src/gtk/x11view.c (enum ViewerPopupIdn): add alignment id.
14194 (struct viewer_popup): add member 'struct viewer_popup *submenu'
14195 (create_menu): added.
14196 (create_popup_menu): add alignment submenu. use create_menu.
14197 (AlignFocusedObj): added.
14198 (do_popup): add codes for alignment submenu.
14199 (check_focused_obj): added.
14200 (Focus): add argument "int add". add codes for multiple focus.
14201 (ViewerPopupMenu): call AlignFocusedObj().
14202
14203 * src/gtk/x11axis.c (ev_key_down): check 'e->state &
14204 GDK_SHIFT_MASK' when e->keyval == GDK_space.
14205
14206 * src/gtk/gtk_subwin.c (focus, tree_focus): add argument "int
14207 add".
14208 (ev_key_down_tree): check 'e->state & GDK_SHIFT_MASK' when
14209 e->keyval == GDK_space.
14210 (list_sub_window_add_focus, tree_sub_window_add_focus): added.
14211
14212 2008-06-13 Ito Hiroyuki <ZXB01226 at nifty.com>
14213
14214 * src/gtk/x11lgnd.c (legend_dialog_close)
14215 (legend_dialog_setup_item, LegendRectDialogSetup): use width and
14216 height instaed of x2 and y2 for legend rectangle.
14217
14218 * src/gtk/x11view.c (swapint): added.
14219 (ViewerEvLButtonDblClk): x2 and y2 are always greater than x1 and
14220 y2 respectivery.
14221
14222 2008-06-12 Ito Hiroyuki <ZXB01226 at nifty.com>
14223
14224 * src/gtk/x11view.c (EvalDialogSetup): now "X" and "Y" is string.
14225 (EvalDialogSetupItem): add string converted from double.
14226
14227 * src/gtk/x11file.c (FileMoveDialogClose): x and y is converted
14228 from string to double.
14229 (FileMoveDialogSetup): now "X" and "Y" is string.
14230 (FileMoveDialogAdd): add string converted from double.
14231
14232 * src/omerge.c (mergeinit): initialize "line_num".
14233
14234 * src/ogra.c (set_progress_val): added.
14235 (oGRAdraw): use set_progress_val().
14236 (oGRAdrawparent): call set_progress_val().
14237
14238 * src/omerge.c (mergeredraw): check redraw_num.
14239
14240 * src/gra.c (_GRAredraw): set "redraw_flag" as FALSE when redrawf
14241 is zero.
14242 (GRAredraw2, GRAredraw, _GRAredraw): replace redrawf to redraw_num.
14243
14244 * src/omerge.c (merge): add "line_num"
14245
14246 * src/oaxis.c (axisautoscalefile): display "group" property when
14247 the property is not NULL.
14248
14249 * src/gtk/x11axis.c (axis_list_set_val): get "group" instead of "name".
14250
14251 * src/gtk/ox11menu.c (mx_redraw): remove set_draw_lock().
14252
14253 * src/gtk/x11view.c (AddInvalidateRect, Match): remove set_draw_lock().
14254
14255 * src/gtk/x11menu.c (ChkInterrupt): do gtk_main_iteration_do() only
14256 when DrawLock == DrawLockDraw.
14257
14258 * src/gtk/ox11menu.c (mx_output): bug fix: add 360 to
14259 Mxlocal->fontdir when Mxlocal->fontdir is negative.
14260
14261 * configure.in: required version of GTK+ is greater than 2.12
14262 because gtk_tool_item_set_tooltip_text() is available since 2.12.
14263
14264 2008-06-10 Ito Hiroyuki <ZXB01226 at nifty.com>
14265
14266 * src/gtk/x11commn.c (FreeConsole): restore ninterrupt.
14267
14268 * driver/gra2wmf.c (draw, getboundingbox): bug fix: reported at
14269 http://www2e.biglobe.ne.jp/~isizaka/bbs_old/light.cgi [670].
14270
14271 * src/gtk/ox11menu.c (mx_get_focused): added.
14272 (gtkmenu): add "focused".
14273
14274 * src/gtk/x11dialg.c (CopyDialogSetup, SelectDialogSetup): select
14275 item if there is only one item.
14276
14277 * src/gtk/x11view.c (Match, AddInvalidateRect): add
14278 set_draw_lock().
14279
14280 * src/gtk/x11menu.c (save_hist): bug fix: remove redundant return.
14281
14282 * src/gtk/x11opt.c (ViewerDialogSetupItem, ViewerDialogSetup)
14283 (ViewerDialogClose): add settings for "redraw_num".
14284
14285 * src/gtk/ox11menu.c (menuinit): set "redraw_num".
14286 (mxredraw_num): added.
14287 (mx_redraw): check Mxlocal->redrawf_num.
14288 (mgtkloadconfig): get Mxlocal->redrawf_num from init file.
14289 (menuinit): initialize Mxlocal->redrawf_num.
14290 (gtkmenu): add "redraw_num"
14291
14292 * src/odraw.c (draw): add "redraw_num".
14293
14294 * src/gra.c (_GRAredraw): set "redraw_num".
14295
14296 * src/ofile.c (f2dredraw): check "redraw_num".
14297
14298 * src/gtk/x11commn.c (ProgressDialogFinalize)
14299 (ProgressDialogCreate): call set_draw_lock().
14300
14301 * src/gtk/x11menu.c (ChkInterrupt): check DrawLock.
14302 (set_draw_lock): added.
14303 add DrawLock.
14304
14305 * src/gtk/ox11menu.c (mx_redraw): call set_draw_lock().
14306
14307 * src/gtk/x11commn.c: add ProgressBar2.
14308
14309 * src/ogra.c (oGRAdraw): call set_progress().
14310
14311 * src/gtk/x11print.c (CmOutputDriver, CmOutputViewer)
14312 (CmPrintGRAFile, CmPrintDataFile): call ProgressDialogCreate() and
14313 ProgressDialogFinalize().
14314
14315 2008-06-09 Ito Hiroyuki <ZXB01226 at nifty.com>
14316
14317 * src/ofit.c (fituser): call set_progress() instead of
14318 ndisplaystatus().
14319
14320 * src/ioutil.c add ShowProgressFunc, set_progress_func() and
14321 set_progress().
14322
14323 * src/ofile.c add set_data_progress().
14324 (getdata): call set_data_progress().
14325
14326 * src/gtk/x11menu.c (Command1_data): remove do_interrupt.
14327 (application): remove snooper_id, gtk_key_snooper_remove() and
14328 gtk_key_snooper_install().
14329
14330 * src/gtk/x11commn.c add global variables ProgressBar and
14331 ProgressDiaog. add ProgressDialogCreate(),
14332 ProgressDialogFinalize() and ProgressDialogSetTitle().
14333
14334 * src/gtk/x11view.c (Draw): call ProgressDialogCreate(),
14335 ProgressDialogFinalize() and ProgressDialogSetTitle().
14336
14337 * src/object.c (addobject): add alignment for 64bit architecture.
14338
14339 2008-06-08 Ito Hiroyuki <ZXB01226 at nifty.com>
14340
14341 * src/gtk/x11view.c (ViewerWinFileUpdate): bug fix: reported at
14342 http://www2e.biglobe.ne.jp/~isizaka/bbs_old/light.cgi [802]-[805].
14343 (ViewerEvLButtonDown, ViewerEvRButtonDown): use nround() when
14344 change dpi.
14345 (ViewerEvScroll): bug fix: d->VScroll to d->HScroll.
14346
14347 2008-06-07 Ito Hiroyuki <ZXB01226 at nifty.com>
14348
14349 * src/gtk/main.c (main): add g_set_application_name().
14350
14351 * src/gtk/x11menu.c (application): remove
14352 g_set_application_name().
14353
14354 * src/gtk/x11gui.c (FileSelectionDialog): call ResetEvent() after
14355 gtk_widget_destroy().
14356
14357 2008-06-04 Ito Hiroyuki <ZXB01226 at nifty.com>
14358
14359 * src/shell.c (ngraphenvironment): add $NGRAPHHOME to PATH.
14360
14361 * src/ofile.c (f2dsettings): ignore remark character placed at the
14362 top of the line.
14363
14364 2008-06-03 Ito Hiroyuki <ZXB01226 at nifty.com>
14365
14366 * src/gtk/x11opt.c (DefaultDialogClose): add preserve_width.
14367 (MiscDialogSetupItem): add preserve_width.
14368 (MiscDialogSetup): add preserve_width.
14369 (MiscDialogClose): add preserve_width.
14370 (MiscDialogClose): add preserve_width.
14371
14372 * src/gtk/ox11menu.c (mgtkloadconfig): add preserve_width.
14373
14374 * src/gtk/x11view.c (ViewerEvLButtonUp): add preserve_width.
14375
14376 * src/orect.c (rectzoom): add preserve_width.
14377
14378 * src/omark.c (markzoom): add preserve_width.
14379
14380 * src/olegend.c (legendzoom): add preserve_width.
14381
14382 * src/oaxis.c (axiszoom2): add preserve_width.
14383
14384 * src/oarc.c (arczoom): add preserve_width.
14385
14386 * src/gtk/gtk_liststore.c (create_tree_view): add
14387 gtk_tree_view_column_set_resizable();
14388
14389 * src/gtk/x11file.c (FileDialogSetup): check string by
14390 g_utf8_validate();
14391
14392 * src/gtk/x11lgnd.c (legend_list_set_val): use g_utf8_strncpy()
14393 instead of strncpy().
14394
14395 2008-06-02 Ito Hiroyuki <ZXB01226 at nifty.com>
14396
14397 * src/gtk/x11axis.c (AxisPosDialogSetupItem): add
14398 combo_box_clear(d->adjust).
14399
14400 * src/gtk/ox11menu.c (mx_output): in the case 'V': remove
14401 Mxlocal->scrollx and Mxlocal->scrolly.
14402 (mx_output): in the case 'V': second argument must be mxd2py and
14403 third argument must be mxd2px.
14404
14405 * src/gtk/x11view.c (MakeRuler): use mxd2p() instead of mxd2px()
14406 and mxd2y().
14407
14408 2008-05-30 Ito Hiroyuki <ZXB01226 at nifty.com>
14409
14410 * src/gtk/x11view.c (CloseGC): fix conditional
14411 expression ("Mxlocal->font[i].fontalias != NULL" to
14412 "Mxlocal->font[i].fontalias != NULL").
14413
14414 * src/gtk/ox11menu.c (menudone): free Mxlocal->font[i].fontalias
14415 and Mxlocal->font[i].font only when Mxlocal->font[i].fontalias is
14416 not NULL.
14417
14418 * src/gtk/gtk_subwin.c (sub_window_minimize): do nothing when a
14419 sub window is already iconified.
14420
14421 2008-05-27 gettextize <[email protected]>
14422
14423 * Makefile.am (SUBDIRS): Add po, m4.
14424 (ACLOCAL_AMFLAGS): New variable.
14425 (EXTRA_DIST): Add config.rpath.
14426
14427 * configure.in (AC_CONFIG_FILES): Add po/Makefile.in, m4/Makefile.
14428