Added the ability to resize string variables from the GUI. Thanks to
[pspp-builds.git] / src / ui / gui / ChangeLog
1 2007-07-18  John Darrington <john@darrington.wattle.id.au>
2
3         * psppire-case-file.c psppire-case-file.h psppire-data-store.c 
4         psppire-dict.c psppire-dict.h psppire-var-store.c : Added the
5         ability to resize string variables.  Fixed associated problems
6         inserting/deleting variables.   
7         
8         * helper.c helper.h (marshaller_VOID__INT_INT_INT): New marshaller
9         function.
10         
11 2007-07-16  John Darrington <john@darrington.wattle.id.au>
12
13         * data-editor.c: File Open dialog remembers directory.  Thanks to 
14         Ben Pfaff for this suggestion.
15         
16 2007-07-15  John Darrington <john@darrington.wattle.id.au>
17
18         * compute-dialog.c: Only generate NUMERIC/STRING command if the 
19         type-and-label dialog was used.
20
21 2007-07-12  John Darrington <john@darrington.wattle.id.au>
22
23         * psppire-data-store.c: Added call to g_sheet_model_range_changed to 
24         ensure that datasheet displays the current store.
25
26         * psppire-data-store.h: Formatting tidy up.
27
28 2007-07-11  John Darrington <john@darrington.wattle.id.au>
29
30         * compute-dialog.c : Set type-and-label dialog to sensible state,               and made syntax generation depend upon existence of target variable.
31
32 2007-07-08  John Darrington <john@darrington.wattle.id.au>
33
34         * data-editor.c data-editor.glade data-editor.h: Implemented 
35         the "Insert Case" button/dialog.
36
37 2007-07-08  John Darrington <john@darrington.wattle.id.au>
38
39         * goto-case-dialog.c goto-case-dialog.h (new files)
40         * automake.mk data-editor.c data-editor.glade data-editor.h 
41         psppire-case-file.c psppire-case-file.h psppire-data-store.c 
42         psppire-data-store.h psppire.glade :  Implemented the goto-case dialog
43         
44
45 2007-07-07  John Darrington <john@darrington.wattle.id.au>
46         
47         * psppire-data-store.c psppire-data-store.h: Made cases number from 
48         1 instead of 0. 
49
50         * psppire-data-store.c: Added a tooltip like feature to display
51         the label of variables. 
52         
53 2007-07-03  John Darrington <john@darrington.wattle.id.au>
54         
55         * data-editor.c data-sheet.c: Turned off autoscrolling, and 
56         manually move to cell on column click instead.
57
58 2007-06-29  John Darrington <john@darrington.wattle.id.au>
59
60         * data-editor.c data-editor.glade psppire-data-store.c 
61         psppire-data-store.h: Enabled cell reference entry and datum 
62         entry widgets.
63
64 2007-06-29  John Darrington <john@darrington.wattle.id.au>
65
66         * data-editor.c data-sheet.c: Moved update_cell_ref_entry from 
67         data-sheet.c to data-editor.c and made it work again.
68
69 2007-06-06  Ben Pfaff  <blp@gnu.org>
70
71         Adapt case sources, sinks, and clients of procedure code to the
72         new infrastructure.
73         
74         * automake.mk: Removed files.
75
76         * flexifile-factory.c: Removed, dead code.
77         * flexifile-factory.h: Ditto.
78
79         * helper.c: Adapt to new procedure and datasheet code.
80         * missing-val-dialog.c: Ditto.
81         * psppire-case-file.c: Ditto.
82         * psppire-data-store.c: Ditto.
83         * psppire.c: Ditto.
84
85 2007-06-03  Ben Pfaff  <blp@gnu.org>
86
87         * psppire-var-store.c (psppire_var_store_item_editable): Use
88         var_is_alpha.
89         
90 2007-05-07 John Darrington <john@darrington.wattle.id.au>
91
92         * psppire-dialog.c psppire-dialog.h: Added "orientation" property,
93         to allow dialogs to be either vertical or horizontal.
94
95         * comments-dialog.c comments-dialog.h: New files, invoking 
96         ADD DOCUMENT cmd.
97
98 2007-04-30 John Darrington <john@darrington.wattle.id.au>
99
100         * var-display.c var-display.h variable-info-dialog.c
101         variable-info-dialog.h : New files. 
102
103         * data-editor.c : 
104
105         * psppire-buttonbox.c psppire-buttonbox.h : Added the "buttons"
106         property, and optional  GOTO and CONTINUE buttons.
107
108         * psppire-dialog.h: Added response codes for the new buttons.
109
110         * psppire-var-store.c : Moved some code to var-display.[ch]
111
112 2007-04-25 John Darrington <john@darrington.wattle.id.au>
113
114         * icons/scalable/splash.c icons/splash.png : More eye candy.
115         
116         * main.c psppire.h : new files.
117
118         * psppire.c : Seperated the command line parsing and other 
119         environment startup from the core psppire code.
120
121 2007-04-25 John Darrington <john@darrington.wattle.id.au>
122
123         * icons/scalable icons/16x16: new directories.
124         * psppire.c : Add new icons to factory.
125
126         * dict-display.c: Refactor code get model from modelfilter. 
127         Added cellrenderer to display icon indicating variables' types.
128         Displayed the label of variables, if there is one.
129
130
131 2007-04-15  Ben Pfaff  <blp@gnu.org>
132
133         * compute-dialog.c (function_list_populate): Use new accessor
134         functions exported by language/expressions/public.h.
135
136 2007-04-15  Ben Pfaff  <blp@gnu.org>
137
138         * compute-dialog.c: Make #include for parse.inc work with VPATH
139         builds.
140
141 2007-04-13   John Darrington <john@darrington.wattle.id.au>
142         
143         * var-type-dialog.c: Added a FMT_DATETIME20 template.
144         
145 2007-04-04   John Darrington <john@darrington.wattle.id.au>
146
147         * compute-dialog.c compute-dialog.h: New files
148
149         * data-editor.c data-editor.h data-editor.glade : Added Transform 
150         menu, and support for Compute dialog
151
152         * glade-register.c psppire-buttonbox.c psppire-buttonbox.h 
153           psppire-vbottonbox.c psppire-vbuttonbox.h psppire-hbuttonbox.c 
154           psppire-vbuttonbox.h : Made buttonbox an abstract base class 
155          and separated it into vbuttonbox and hbuttonbox.
156
157         * psppire-selector.c : Allowed GtkTextView to be the destination 
158         widget.
159
160         * psppire-keypad.c: Added an "erase" signal.  Fixed other 
161         minor problems.
162
163 2007-04-03  Ben Pfaff  <blp@gnu.org>
164             John McCabe-Dansted <gmatht@gmail.com>
165
166         * psppire-selector.c (psppire_selector_set_subjects): Add an
167         assert that may or may not trap some Windows-related bugs.
168
169 2007-04-03   John Darrington <john@darrington.wattle.id.au>
170         
171         * data-editor.c data-editor.glade helper.h syntax-editor.c
172         syntax-editor.h : Implemented the File->Recently_Used_ menus.
173
174
175 2007-03-31   John Darrington <john@darrington.wattle.id.au>
176         
177         * data-editor.c data-editor.glade data-editor.h dialog-common.c
178         psppire-buttonbox.c psppire-dialog.c psppire-dialog.h
179         psppire-selector.c psppire-selector.h psppire.c psppire.glade
180         sort-cases-dialog.c sort-cases-dialog.h split-file-dialog.c
181         transpose-dialog.c weight-cases-dialog.c : Fixed the Refresh
182         button on all the dialogs. 
183         
184 2007-03-31   John Darrington <john@darrington.wattle.id.au>
185         
186         * data-editor.c: Added hooks for the split-file-dialog
187
188         * psppire.glade: Added the split file dialog box.
189         
190         * split-file-dialog.c split-file-dialog.h: New files.
191         
192         * dialog-common.c dialog-common.h: New files containing functions 
193         which seem to be used a lot in dialog box implementations. 
194
195         * psppire-keypad.c psppire-keypad.h: New files.  Implements keypad
196         thingumy widget.  
197
198         * psppire-selector.c: Made the orientation of the arrow a property
199         of the widget, so that it can be selected from glade.
200
201 2007-03-18  Ben Pfaff  <blp@gnu.org>
202
203         * syntax-editor-source.c (close): Rename do_close to avoid naming
204         conflict with POSIX function of same name.
205
206 Tue Mar 13 17:20:05 CET 2007 John Darrington <john@darrington.wattle.id.au>
207         * psppire.c:  Changed gtk_init to gtk_parse_args, followed by a delayed         call to gdk_init, so that psppire --version will succeed, even if it 
208         cannot connect to a display .
209         
210 Wed Mar  7 19:05:12 CET 2007 John Darrington <john@darrington.wattle.id.au>
211
212         * var-sheet.c: Replaced call to nl_langinfo with locale_charset 
213         from gnulib.
214
215 Thu Feb 22 12:27:41 CET 2007 John Darrington <john@darrington.wattle.id.au>
216
217         * data-editor.c : called new gen_quoted_string function to properly 
218           quote filenames in generated syntax.
219
220         * window-manager.c : Converted name from filename encoding to UTF8 
221           before displaying in title bar.
222
223 Tue Jan 30 20:13:46 WST 2007 John Darrington <john@darrington.wattle.id.au>
224
225         * psppire-dict.c: Call all the callbacks when a new dictionary becomes current.
226
227         * data-editor.c: Clear existing file name on FILE NEW.
228
229 Sat Jan 27 09:48:21 WST 2007 John Darrington <john@darrington.wattle.id.au>
230
231         * var-type-dialog.c: Fixed bugs closing window, apparent when compiled
232         against gtk.2.10
233
234 Fri Jan 26 15:51:34 WST 2007 John Darrington <john@darrington.wattle.id.au>
235
236         * psppire-var-select.c psppire-var-select.h : Deleted.
237
238         * psppire-selector.c psppire-selector.h : New files.
239
240         * transpose-dialog.c transpose-dialog.h : New files.
241
242         * psppire-dict.c psppire-dict.h : Added missing GtkTreeModel 
243         interface functions.
244
245         * weight-cases-dialog.c weight-cases-dialog.h : Re-implemented, 
246         using new PsppireSelector widget.
247
248         * dict-display.c dict-display.h : New files.
249
250         * psppire-object.c psppire-object.h : Deleted.  Seemed like a good idea at the time.
251
252 Tue Jan 23 21:10:01 WST 2007 John Darrington <john@darrington.wattle.id.au>
253
254         * helper.c helper.h: New function execute_syntax.
255
256         * syntax-editor.c syntax-editor.glade: Disabled data open/save menu 
257         items.
258
259         * data-editor.c data-editor.glade data-editor.h: Enabled data 
260         open/save/save_as  menu-items.
261         
262         * window-manager.h window-manager.c (default_window_name) : New 
263         function.
264
265 Sat Jan 13 07:47:26 WST 2007 John Darrington <john@darrington.wattle.id.au>
266
267         * psppire-case-file.c psppire-data-store.c psppire-dialog.c
268         psppire-dict.c psppire-var-select.c : Replaced identifier 'signal' 
269         with 'signals' to avoid conflict with sysv based systems which use
270         this identifer for something else.  
271         Thanks to Daniel E WILLIAMS for reporting this problem.
272
273 Wed Jan 10 07:20:39 WST 2007 John Darrington <john@darrington.wattle.id.au>
274
275         * psppire-case-file.c : Make sure there is always a valid flexifile
276
277         * psppire-data-store.c : assertions.
278
279         * psppire.c: Ignore replace source callbacks if the new source is 
280           not of storiage_source_class
281
282         * syntax-editor.c: Close/Abort source after parsing is complete.
283
284 Sun Jan  7 08:38:29 WST 2007 John Darrington <john@darrington.wattle.id.au>
285
286         * psppire-dict.c: Add FILTER_CHANGED and SPLIT_CHANGED signals 
287         corresponding to the callbacks in src/data/dictionary.c
288
289         * data-editor.c : Connect functions to the FILTER_CHANGED and 
290         SPLIT_CHANGED signals to update the status bar accordingly.
291
292 Mon Jan  1 10:37:07 WST 2007 John Darrington <john@darrington.wattle.id.au>
293
294         * psppire-case-file.c psppire-case-file.h: Changed the backend 
295         semantics. An object is now created without any backend.  A new function        ( psppire_case_file_replace_flexifile ) sets the backend to use.
296
297         * psppire-data-store.c : Updated callers accordingly.
298
299         * psppire-dict.c psppire-dict.h : New function 
300         (psppire_dict_replace_dictionary) .
301
302         * psppire.c : Updated to use new dataset replace_{source, dictionary} 
303         callbacks.
304
305         * syntax-editor.c : parses in state CMD_STATE_DATA unless there are 
306         no variables in the dictionary.
307
308 Mon Dec 25 12:38:24 WST 2006 John Darrington <john@darrington.wattle.id.au>
309
310         * data-editor.c data-editor.glade: Enabled deleting of variables from
311         the variable sheet.
312
313 Mon Dec 25 11:28:29 WST 2006 John Darrington <john@darrington.wattle.id.au>
314
315         * psppire-dict.c psppire-dict.h: Removed explicit signal emit calls.
316         These are not required, now that src/data/dictionary.c has callbacks
317
318 Mon Dec 25 08:49:57 WST 2006 John Darrington <john@darrington.wattle.id.au>
319
320         * var-sheet.c val-labs-dialog.c val-labs-dialog.h: Fixed bug in value
321         labels dialog box.
322
323 Sun Dec 17 08:26:10 WST 2006 John Darrington <john@darrington.wattle.id.au>
324
325         * syntax-editor-source.c syntax-editor-source.h syntax-editor.h: 
326         New files. 
327
328         * message-dialog.c :  Now reports the filename and line number in 
329         error messages.
330         
331         * psppire.c psppire.glade syntax-editor.c: Added the ability to run 
332         syntax from the syntax editor.
333
334         
335 Sat Dec 16 14:13:07 2006  Ben Pfaff  <blp@gnu.org>
336
337         * psppire-data-store.c (geometry_get_justification): Don't assume
338         that ALIGN_* and GTK_JUSTIFY_* values coincide.
339
340 Sat Dec 16 14:10:43 2006  Ben Pfaff  <blp@gnu.org>
341
342         * psppire-var-store.c (text_for_column): Adjust to account for new
343         values of the MEASURE_* enums.
344
345         * var-sheet.c (change_measure): Ditto.
346
347 Sat Dec 16 12:24:35 WST 2006 John Darrington <john@darrington.wattle.id.au>
348
349         * psppire-variable.c psppire-variable.h: Deleted.
350
351         * psppire-dict.c psppire-dict.h: Removed the caching of the variable 
352             data, which is now unecessary because src/data/vardict.h maintains 
353             an association between variables and their dictionary.
354         
355         * data-sheet.c menu-actions.c missing-val-dialog.c 
356           missing-val-dialog.h psppire-data-store.c 
357           psppire-var-store.c psppire-var-store.h 
358           sort-cases-dialog.c val-labs-dialog.c val-labs-dialog.h 
359           var-sheet.c var-type-dialog.c var-type-dialog.h: Dealt with the 
360             consequences of deleting psppire-variable.[ch]. 
361
362
363 Sat Dec  9 20:03:04 2006  Ben Pfaff  <blp@gnu.org>
364
365         * var-type-dialog.c (var_type_dialog_create): Use
366         fmt_dollar_template from data/format.c.
367         (dollar_format_template) Removed.
368
369 Sat Dec  9 07:19:53 WST 2006 John Darrington <john@darrington.wattle.id.au>
370
371         * syntax-editor.c : New file.
372
373 Tue Oct 31 19:25:31 2006  Ben Pfaff  <blp@gnu.org>
374
375         * var-type-dialog.c: Add missing "#include <config.h>".
376
377         * psppire.c: Ditto.
378
379 Mon Jul 17 18:21:29 WST 2006 John Darrington <john@darrington.wattle.id.au>
380
381     * automake.mk menu-actions.c psppire-case-file.c psppire-case-file.h
382     psppire-data-store.c psppire-dict.c psppire-dict.h psppire-variable.c
383     psppire.c psppire.glade: Adjusted code to use the new flexifile object.
384
385 Sat Jul 15 11:27:15 WST 2006 John Darrington <john@darrington.wattle.id.au>
386
387    * psppire.c psppire.glade automake.mk icons/* : Added toolbar icons where 
388         there's no suitable gtk stock icon.
389
390 Tue Jul  4 09:08:38 WST 2006 John Darrington <john@darrington.wattle.id.au>
391         
392    * psppire.c: Fixed --help and --version options.
393         
394 Sat Jun 24 16:56:22 WST 2006 John Darrington <john@darrington.wattle.id.au>
395
396    * menu-actions.c: Added goto case and sort cases dialogs.
397
398    * psppire-case-file.c psppire-case-file.h: Added sort function.
399
400    * psppire-data-store.c psppire-variable.c psppire-variable.h: 
401      Renamed  psppire_variable_get_index to psppire_variable_get_fv and
402      dealt with the consequences.  Added a psppire_variable_get_index
403      function which actually does what the name suggests.
404
405    * psppire-dict.c psppire-dict.h: Implemented GtkTreeModel interface,
406      which allows a dictionary to be displayed in a GtkTreeView.        
407
408    * psppire.glade: Added dialog boxes for Goto Case and Sort Case.     
409
410    * sort-cases-dialog.c sort-cases-dialog.h (new files).
411
412 Mon Jun 19 18:10:53 WST 2006 John Darrington <john@darrington.wattle.id.au>
413
414    * psppire-case-file.c psppire-case-file.h (new files)
415    
416    * automake.mk data-sheet.c data-sheet.h menu-actions.c
417    psppire-data-store.c psppire-data-store.h psppire-dict.c
418    psppire-dict.h psppire-var-store.c psppire.c
419    
420      Replaced psppire-case-array.c  with psppire-case-file.c, so as to
421      allow an arbitrary number of cases to be represented.
422    
423 Sun Jun  4 15:50:28 WST 2006 John Darrington <john@darrington.wattle.id.au>
424
425    * psppire-var-store.c, psppire.c, var-sheet.c :  Unlimited the number of 
426    variables that can be displayed. Minor i18n issues.
427
428 Tue May 30 19:53:35 WST 2006 John Darrington <john@darrington.wattle.id.au>
429
430    * menu-actions.c menu-actions.h psppire.c: Fixed up load/new 
431    interactions with startup.
432
433    * psppire-data-store.c: Fixed bad i18n call.
434
435    * pspppire-var-store.c, psppire-var-store.h: constness.
436
437    * helper.c: Implemented proper way to convert from PSPP to UTF8 encoding.
438
439
440 Sat May 27 16:25:38 WST 2006 John Darrington <john@darrington.wattle.id.au>
441
442    * customentry.c data-sheet.c menu-actions.c message-dialog.c 
443      missing-val-dialog.c psppire-data-store.c psppire-var-store.c 
444      psppire.c psppire.glade var-sheet.c: Fixed internationalisation.
445
446 Thu May 25 18:01:17 WST 2006 John Darrington <john@darrington.wattle.id.au>
447
448    * psppire-var-store.c: Converted strings to utf8 and returned them on the
449    heap.
450
451 Sat May 20 21:08:18 WST 2006 John Darrington <john@darrington.wattle.id.au>
452
453    * data-sheet.c, menu-actions.c menu-actions: Fixed data sheet so that
454    active cell is never on a deleted variable.
455
456    * psppire-data-store.c psppire-data-store.h:  Added get_var_count and
457    get_case_count functions.
458
459    * psppire-dict.c: removed VARIABLE_DELETED (singular) signal.
460
461    * psppire.c: Allowed user to specify *.sav file on command line.
462
463 Mon May 15 20:01:25 WST 2006 John Darrington <john@darrington.wattle.id.au>
464         
465         * menu-actions.c psppire-case-array.c psppire-case-array.h
466           psppire-data-store.c  psppire-dict.c psppire-dict.h 
467           psppire-variable.c:
468
469           Initialised new cases to SYSMIS/blank when inserting in data sheet.
470
471 Sat May 13 08:00:50 WST 2006 John Darrington <john@darrington.wattle.id.au>
472
473         * data-sheet.c, helper.c, helper.h, psppire-data-store.c, 
474           psppire-var-store.c:
475           
476           Set free_strings flag so that the gtksheet frees the string data 
477           when it's done with them.
478
479 Thu May 11 22:25:49 WST 2006 John Darrington <john@darrington.wattle.id.au>
480
481         * data-sheet.c helper.c helper.h psppire-data-store.c psppire-var-store.c 
482         psppire.c: Converted strings to utf8 before passing to gtksheet.
483
484         * psppire-dict.c: Changed buffer to more reasonable length
485
486         * var-sheet.c: Changed maximum string length to use macro from
487         data/values.h
488
489         
490 Sun May  7 10:07:28 WST 2006 John Darrington <john@darrington.wattle.id.au>
491
492         * psppire-data-store.c: Fixed buglet initialising string members.
493
494 Thu May  4 18:04:04 WST 2006 John Darrington <john@darrington.wattle.id.au>
495
496         * message-dialog.c message-dialog.h: Added simple queuing to messages
497         reported, and ensure that dialog boxes dont appear when pointer grab
498         is active.
499
500         * psppire-data-store.c: Fix overflow on very long string variables.
501
502         * automake.mk: Fix broken dependency.
503
504
505 Tue Apr 25 11:08:04 2006  Ben Pfaff  <blp@gnu.org>
506
507         Finish reforming error message support.  In this phase, move
508         message.c into libpspp.
509         
510         * automake.mk: (src_ui_gui_psppire_SOURCES) Remove src/message.c.
511
512 Tue Apr 25 10:56:53 2006  Ben Pfaff  <blp@gnu.org>
513
514         Continue reforming error message support.  In this phase, drop
515         actual message printing from core code, substituting a callback,
516         and add the callback to each UI.  Also, move verbose_msg() into
517         its own module.
518
519         * automake.mk: (src_ui_gui_psppire_SOURCES) Add src/message.c.
520
521         * message-dialog.c: (message_dialog_init) New function.
522         (vmsg) Rename handle_msg(), rewrite as callback function.
523         (msg) Removed.
524         (msg_emit) Removed.
525         (msg_assert_fail) Removed.
526         (verbose_msg) Removed.
527
528         * psppire.c: (main) Call message_dialog_init().
529
530 Sun Apr 23 22:07:49 2006  Ben Pfaff  <blp@gnu.org>
531
532         Continue reforming error message support.  In this phase, get rid
533         of message "titles" and put the message text in `struct error'.
534         Now `struct error' encapsulates a message more properly.
535         
536         * message-dialog.c: (err_vmsg) Rename err_msg().  Updated
537         interface.
538
539 Sun Apr 16 20:45:35 2006  Ben Pfaff  <blp@gnu.org>
540
541         Continue reforming error message support.  In this phase, we
542         divide the classification of messages along "category" and
543         "severity" axes.
544
545         * message-dialog.c: (vmsg) Use severity and category in
546         straightforward fashion instead of the less obvious "class".
547         (err_vmsg) Construct class before passing along to vmsg().
548
549 Sun Apr 16 16:06:54 2006  Ben Pfaff  <blp@gnu.org>
550
551         Continue reforming error message support.  In this phase, we get
552         rid of VM() and the other msg() support for "verbosity", replacing
553         it by a new function verbose_msg().
554
555         * message-dialog.c: (verbose_msg) New function.  
556         (err_cond_fail) Removed (dead code).
557         (err_failure) Removed (dead code).
558
559 Sun Apr 16 11:53:25 2006  Ben Pfaff  <blp@gnu.org>
560
561         Start reforming error message support.  In this phase, we get rid
562         of "installation errors" and change all uses of msg() in the
563         output drivers to uses of error() or error_at_line().
564
565         * message-dialog.c: (vmsg) Removed IE, IS support.
566
567 Mon Mar 13 16:42:44 WST 2006 John Darrington <john@darrington.wattle.id.au>
568
569     * psppire.c: Supported (sort of) the --help and --version options.
570
571     * Rename error-dialog.[ch] -> message-dialog.[ch]
572
573     * Moved code from the psppire module.
574         
575 Sat Jan 28 16:22:23 WST 2006 John Darrington <john@darrington.wattle.id.au>
576
577     * Separated the data out of the GtkSheet.
578
579 Tue Nov  2 19:00:28 WST 2004 John Darrington <john@darrington.wattle.id.au>
580
581     * Very first incarnation.