rkumar-rbcurse 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. data/CHANGELOG +1577 -0
  2. data/README.txt +310 -0
  3. data/examples/qdfilechooser.rb +68 -0
  4. data/examples/rfe.rb +853 -0
  5. data/examples/rfe_renderer.rb +69 -0
  6. data/examples/test1.rb +242 -0
  7. data/examples/test2.rb +498 -0
  8. data/examples/testcombo.rb +95 -0
  9. data/examples/testkeypress.rb +61 -0
  10. data/examples/testmenu.rb +105 -0
  11. data/examples/testtable.rb +266 -0
  12. data/examples/testtabp.rb +106 -0
  13. data/examples/testtodo.rb +532 -0
  14. data/examples/viewtodo.rb +512 -0
  15. data/lib/rbcurse.rb +7 -0
  16. data/lib/rbcurse/action.rb +31 -0
  17. data/lib/rbcurse/applicationheader.rb +57 -0
  18. data/lib/rbcurse/celleditor.rb +120 -0
  19. data/lib/rbcurse/checkboxcellrenderer.rb +69 -0
  20. data/lib/rbcurse/colormap.rb +133 -0
  21. data/lib/rbcurse/comboboxcellrenderer.rb +45 -0
  22. data/lib/rbcurse/defaultlistselectionmodel.rb +49 -0
  23. data/lib/rbcurse/keylabelprinter.rb +143 -0
  24. data/lib/rbcurse/listcellrenderer.rb +99 -0
  25. data/lib/rbcurse/listkeys.rb +33 -0
  26. data/lib/rbcurse/listscrollable.rb +216 -0
  27. data/lib/rbcurse/listselectable.rb +67 -0
  28. data/lib/rbcurse/mapper.rb +108 -0
  29. data/lib/rbcurse/orderedhash.rb +77 -0
  30. data/lib/rbcurse/rcombo.rb +243 -0
  31. data/lib/rbcurse/rdialogs.rb +183 -0
  32. data/lib/rbcurse/rform.rb +845 -0
  33. data/lib/rbcurse/rinputdataevent.rb +36 -0
  34. data/lib/rbcurse/rlistbox.rb +804 -0
  35. data/lib/rbcurse/rmenu.rb +666 -0
  36. data/lib/rbcurse/rmessagebox.rb +325 -0
  37. data/lib/rbcurse/rpopupmenu.rb +754 -0
  38. data/lib/rbcurse/rtabbedpane.rb +259 -0
  39. data/lib/rbcurse/rtable.rb +1296 -0
  40. data/lib/rbcurse/rtextarea.rb +673 -0
  41. data/lib/rbcurse/rtextview.rb +335 -0
  42. data/lib/rbcurse/rwidget.rb +1731 -0
  43. data/lib/rbcurse/scrollable.rb +301 -0
  44. data/lib/rbcurse/selectable.rb +94 -0
  45. data/lib/rbcurse/table/tablecellrenderer.rb +85 -0
  46. data/lib/rbcurse/table/tabledatecellrenderer.rb +102 -0
  47. data/lib/ver/keyboard.rb +150 -0
  48. data/lib/ver/keyboard2.rb +170 -0
  49. data/lib/ver/ncurses.rb +102 -0
  50. data/lib/ver/window.rb +369 -0
  51. data/test/test_rbcurse.rb +0 -0
  52. metadata +117 -0
data/CHANGELOG ADDED
@@ -0,0 +1,1577 @@
1
+ **2009-02-11 00:57**
2
+ ## Path changes in order to make first gem ##
3
+
4
+ the first gem is ready 0.1.0. So various path changes (removed all the lib's in require)
5
+
6
+ frmincr200902110056.tgz
7
+ * * *
8
+ **2009-01-21 18:30**
9
+ ## Class Action ##
10
+
11
+ Added a class Action to centralize actions or behavior.
12
+ Popupmenu creates a jmenuitem with an action.
13
+
14
+ frmincr200901211826.tgz
15
+ * * *
16
+ **2009-01-20 22:50**
17
+ ## Class PopupMenu ##
18
+
19
+ Based on menubar, a popup menu. Intended to be used with widgets / components.
20
+
21
+ frmincr200901202248.tgz
22
+ * * *
23
+ **2009-01-20 00:22**
24
+ ## Application Header like Alpine ##
25
+
26
+ Similar application header made in applicationheader.rb
27
+
28
+ frmincr200901200022.tgz
29
+ * * *
30
+ **2009-01-19 21:41**
31
+ ## Alpine Style Key Label Printing ##
32
+
33
+ See testtodo.rb for example.
34
+ Print Alpine Style labels at bottom
35
+
36
+ frmincr200901192140.tgz
37
+ * * *
38
+ **2009-01-19 15:53**
39
+ ## Table Changed Event ##
40
+
41
+ One may either trap the CHANGED event of a component OR
42
+ a TABLE_EDITING_EVENT which gives us previous and new values, previous row and col.
43
+ This will fire for each cell exited, and on editing stopped (if a user presses ENTER after editing).
44
+
45
+ One example would be to set a date_modified if any column of a row changes.
46
+
47
+ Also am firing CHANGED from table for its cells.
48
+
49
+ frmincr200901191548.tgz
50
+ * * *
51
+ **2009-01-18 22:11**
52
+ ## listbox, combo case insensitive match ##
53
+
54
+ Char matches use casecmp
55
+
56
+ Field was not calling process_key(ch) - now calling super in handle_key, so process_key is called
57
+ in handle_key.
58
+
59
+ frmincr200901182210.tgz
60
+ * * *
61
+ ** 2009-01-18 12:37 **
62
+ ## modified? and def modified tf##
63
+
64
+ changed fields modified? to check for change in field value
65
+
66
+ Field ESC puts back original value
67
+
68
+ TAB and BACKTAB in table. so you need to M-tab out of it.
69
+
70
+ **2009-01-17 01:56**
71
+ ## Tables: editing options more polishing ##
72
+
73
+ also, columns may be marked as non-editable
74
+ calling on_leave of component
75
+
76
+
77
+ frmincr200901170155.tgz
78
+ * * *
79
+ **2009-01-16 20:13**
80
+ ## Table - cyclic traversal to next column, auto editing of cells ##
81
+
82
+ Automatic editing on tabbing in and out on Table.
83
+ Trying this out. USe Alt-Tab for going to next cell if you are editing a cell.
84
+ If not editing then RIGHT and LEFT work.
85
+
86
+ frmincr200901162012.tgz
87
+ * * *
88
+ **2009-01-16 00:31**
89
+ ## Tables: Events and Listeners implemented ##
90
+
91
+ on enter row, col and cell.
92
+ Table Column property change
93
+ Various others.
94
+
95
+ frmincr200901160030.tgz
96
+ * * *
97
+ **2009-01-15 01:23**
98
+ ## Events in tables added ##
99
+
100
+ (just days backup)
101
+
102
+ frmincr200901150122.tgz
103
+ * * *
104
+ ** 2009-01-15 00:17 **
105
+
106
+ Table on_enter and on_leave row, column and cell events
107
+
108
+ Also put key definitions for table and listbox in listkeys.rb
109
+ so they can be shared.
110
+ Fixed def handle_key of listbox so if key not handled, it still
111
+ tries further.
112
+
113
+ **2009-01-14 12:56**
114
+ ## Forward and backward searching in Listbox ##
115
+
116
+ M-f to start a forward search (asks for regex)
117
+ M-F to start a backward search (asks for regex)
118
+ M-g to keep searching forward
119
+ M-G to reverse direction of search
120
+
121
+
122
+ * * *
123
+ **2009-01-13 23:29**
124
+ ## Split messagebox and listbox to separate files ##
125
+
126
+ * * *
127
+ **2009-01-13 01:39**
128
+ ## Table Editing ##
129
+
130
+ String, number, checkbox and combolist
131
+
132
+ frmincr200901130139.tgz
133
+ * * *
134
+ **2009-01-13 01:03**
135
+ ## Table editing is on ##
136
+
137
+ Testing and working out visual glitch in checkbox edit.
138
+ One extra char displayed by editor but not by renderer.
139
+ So a white space gets left over.
140
+
141
+ frmincr200901130102.tgz
142
+ * * *
143
+ **2009-01-11 20:06**
144
+ ## editable lists: check and combo boxes ##
145
+
146
+ Now you may edit a list of checkboxes or combo boxes
147
+
148
+ frmincr200901112006.tgz
149
+ * * *
150
+ **2009-01-11 16:32**
151
+ ## combo box cell renderer in listbox ##
152
+
153
+ almost done. some touching up
154
+
155
+ frmincr200901111632.tgz
156
+ * * *
157
+ **2009-01-11 00:28**
158
+ ## ComboBoxCellRenderer ##
159
+
160
+ For lists, to display combo boxes.
161
+ Althoght does not make much sense. THe normal list box already has
162
+ selection of rows. so its like a list which is now editable and selectable.
163
+
164
+ This has only checkboxes. How do i pass in text in addition to booleans
165
+ given that the method interface of renderers takes one value.
166
+
167
+ frmincr200901110026.tgz
168
+ * * *
169
+ **2009-01-10 23:18**
170
+ ## About to move selector code up ##
171
+
172
+ To avoid duplication in renderers
173
+
174
+ frmincr200901102317.tgz
175
+ * * *
176
+ **2009-01-10 01:22**
177
+ ## listbox editing ##
178
+
179
+ WIP, but i've got editing in.
180
+ To sort out key related issues. Editing keys are clashing with selection
181
+ and navig keys.
182
+ Touching up also.
183
+
184
+ frmincr200901100121.tgz
185
+ * * *
186
+ **2009-01-08 23:34**
187
+ ## class Textarea moved to new scrollable ##
188
+
189
+ Thank God, done away with the old scrollable module.
190
+ Textarea is now in rtextarea.rb
191
+
192
+ frmincr200901082333.tgz
193
+ * * *
194
+ **2009-01-08 20:57**
195
+ ## wrapping option in TextArea ##
196
+
197
+ WRAP_WORD passed with set_content
198
+
199
+ frmincr200901082057.tgz
200
+ * * *
201
+ **2009-01-08 19:21**
202
+ ## New Listbox ##
203
+
204
+ Movement between selected items (using ' and ") and C-e to clear selection.
205
+
206
+ frmincr200901081921.tgz
207
+ * * *
208
+ **2009-01-08 14:38**
209
+ ## before moving TextView to listscrollable ##
210
+
211
+ about to move
212
+
213
+ frmincr200901081438.tgz
214
+ * * *
215
+ **2009-01-08 01:41**
216
+ ## firing property change and others ##
217
+
218
+ Some major changes (internal)
219
+
220
+ 1. In order not to repaint the entire form each time, we must only repaint a widget when modified.
221
+ However, as can be seen, widgets are being modified by other widgets. Thus whenever a property
222
+ is changed, we need a flag to be set that repainting is required.
223
+
224
+ Thus, copied dsl_accessor and made dsl_property. Whenever, such props are modified, a property
225
+ change is now fired, and repaint_required is set to true.
226
+ I am currently changing this. What this means is that on startup, fire_prop_change will be called
227
+ many times, and i need to avoid this on first time instantiation. TODO.
228
+
229
+ 2. The tricky part was text_variables. When there value changes any widget (such as label) auto
230
+ changes. When a text_variable is defined for field, internally that field, adds itself as a
231
+ dependent. When its value is changed, it fires a change to the dependent field.
232
+
233
+ 3. The real worrisome part was this:
234
+ When user passes in a hash in the constructor, i was directly setting variables, NOT calling
235
+ methods. Tracked this down. Now i am calling methods and not setting variables. See rwidget.rb
236
+ instance_variable_set (top). Only throrough testing will tell how much this change
237
+ will affect stuff. Maybe not.
238
+
239
+ frmincr200901080133.tgz
240
+ * * *
241
+ **2009-01-07 23:35**
242
+ ## New Listbox ##
243
+
244
+ with cleaner scrolling code, and cell renderer
245
+ Largely done.
246
+
247
+ frmincr200901072335.tgz
248
+ * * *
249
+ **2009-01-07 00:36**
250
+ ## Field storing datatypes ##
251
+
252
+ 1. set_buffer updates datatype of data
253
+ 2. get_value reverts to original datatype (stored as a string since many methods
254
+ do check length etc
255
+
256
+ Widget binds_keys
257
+ Certain widgets like tables etc would like to bind_keys which could be used by other
258
+ widgets. Such as left and right keys or del key. So these should not be at the program
259
+ level, but only at widget level.
260
+
261
+ frmincr200901070034.tgz
262
+ * * *
263
+ **2009-01-05 01:51**
264
+ ## rtable with scrolling ##
265
+
266
+ simple scrolling unlike scrollable which sucked biggie time
267
+
268
+ frmincr200901050150.tgz
269
+ * * *
270
+ **2009-01-05 01:21**
271
+ ## rtable.rb ##
272
+
273
+ more wip
274
+
275
+ frmincr200901050121.tgz
276
+ * * *
277
+ **2009-01-04 01:01**
278
+ ## table wip ##
279
+
280
+
281
+
282
+ frmincr200901040100.tgz
283
+ * * *
284
+ **2009-01-01 23:45**
285
+ ## before change to textare ##
286
+
287
+ abot to put back \n and see
288
+
289
+ frmincr200901012345.tgz
290
+ * * *
291
+ **2009-01-01 13:01**
292
+ ## Boolean buttons use "variable" not "text_variable" ##
293
+
294
+ That was a misunderstanding. Checkbutton, Toggle and Radio use "variable" which
295
+ updates or gets updated by any changes.
296
+
297
+ frmincr200901011300.tgz
298
+ * * *
299
+ **2008-12-31 23:46**
300
+ ## Variable modifications ##
301
+
302
+ Had to move to get_value and set_value so that Variable could support a hash or array without
303
+ anything else changing.
304
+ That means if a set of checkboxes and radio buttons are based on one Variable which is a Hash,
305
+ they will continue working as before, since they always pass t heir name as a second parm to set_value
306
+ (whch is used as a key, if Variable is a hash).
307
+ Earlier i was using value= but that does not allow 2 params.
308
+ In the case of a hash, even retrieving requires the widgt name as key.
309
+ So seeing how many params are coming in does not work. Thus moving from value() and value= to get and set value.
310
+
311
+ Currently, its there as RVariable. Will be moved to Variable in a day or so.
312
+
313
+ frmincr200812312341.tgz
314
+ * * *
315
+ **2008-12-29 17:50**
316
+ ## textarea bugfixes in wrap and wrapping ##
317
+
318
+ more bug fixes
319
+ also added wrap_para (see menu Wrap)
320
+
321
+ * * *
322
+ **2008-12-28 21:05**
323
+ ## Textarea wrapping bugs fixed ##
324
+
325
+ I believe things are working now.
326
+ ALso added footers to the text area and view. That could help me in debugging too.
327
+
328
+ frmincr200812282104.tgz
329
+ * * *
330
+ **2008-12-28 01:25**
331
+ ## WIP in Table ##
332
+
333
+ working
334
+
335
+ frmincr200812280125.tgz
336
+ * * *
337
+ **2008-12-27 01:07**
338
+ ## bug fixes in textarea cursor movement ##
339
+
340
+ with respect to wrapping lines
341
+ backspace behaviour.
342
+ newlines
343
+ still some glitches.
344
+
345
+ * * *
346
+ **2008-12-26 20:07**
347
+ ## Missed one case of wrapping in Textarea ##
348
+
349
+ Whene there IS data in next row. Fixed.
350
+
351
+ * * *
352
+ **2008-12-25 18:30**
353
+ ## ACS_ boxes in TextArea and TextView ##
354
+
355
+ ACS_ used for boxes
356
+
357
+ * * *
358
+ **2008-12-25 18:22**
359
+ ## better boxes using ACS_ for messagebox and Listbox ##
360
+
361
+ Using ACS_ code to get boxes.
362
+
363
+ * * *
364
+ **2008-12-24 20:20**
365
+ ## InputDataEvent: firing events on changes in TextArea ##
366
+
367
+ Now reporting changes in text happening in TextArea via InputDataEvent
368
+
369
+ * * *
370
+ **2008-12-24 15:51**
371
+ ## Alt-keys in TextArea and View were getting eaten up ##
372
+
373
+ Returning alt keys so buttons and mnemonics can process
374
+
375
+ * * *
376
+ **2008-12-24 15:40**
377
+ ## vertical alignment of combolists ##
378
+
379
+ ABove, below, center, and same row as field.
380
+
381
+ * * *
382
+ **2008-12-24 13:00**
383
+ ## added autoscroll to TextArea ##
384
+
385
+ Goes to end with each "<<" command.
386
+ Also fixed goto_end and goto_start. I had changed the names in TextArea but not in scrollable.
387
+
388
+ * * *
389
+ **2008-12-23 23:49**
390
+ ## Migrated buttons to mnemonic and ampersand for hotkeys ##
391
+
392
+ Unerline will result in underline, overriding that created by ampersand, but not register key.
393
+ mnemonic will register alt-key and underline first occurence
394
+ Using ampersand will register and underline given occurrence.
395
+
396
+ frmincr200812232347.tgz
397
+ * * *
398
+ **2008-12-23 13:38**
399
+ ## Added observers to events ##
400
+
401
+ An object can listen in to events of another. Could be a hack.
402
+ Helps if user creates an object which further creates others. User binds actioon to top level object.
403
+ But we want internal objects events to also fire action.
404
+
405
+ frmincr200812231337.tgz
406
+ * * *
407
+ ## Multiple bindings for each event ##
408
+
409
+ Each object can bind its actions without fear of overwriting each other.
410
+ Variables update_command also stacked.
411
+
412
+ **2008-12-22 15:13**
413
+
414
+ ## class Field: CHANGED event, triggered when tabbing out after changing ##
415
+
416
+ .
417
+
418
+ frmincr200812221513.tgz
419
+ * * *
420
+ **2008-12-22 12:52**
421
+ ## Added null_allowed to class Field ##
422
+
423
+ if null_allowed, validation will be skipped if empty, however
424
+ LEAVE event will be triggered.
425
+
426
+ frmincr200812221251.tgz
427
+ * * *
428
+ **2008-12-22 02:02**
429
+ ## xterm-color key hacks and vt100/200 fixes ##
430
+
431
+ F1..F4 hack for xterm color
432
+ in getchar().
433
+ Menu selection (highlighting) in rform.rb
434
+
435
+ frmincr200812220201.tgz
436
+ * * *
437
+ **2008-12-20 22:05**
438
+ ## Removed CommonIO includes ##
439
+
440
+ replaced with @window.printstring
441
+
442
+ frmincr200812202204.tgz
443
+ * * *
444
+ **2008-12-20 13:23**
445
+ ## toggle_key for menu bar ##
446
+
447
+ menu bar now can define and bind its toggle key.
448
+
449
+ frmincr200812201322.tgz
450
+ * * *
451
+ **2008-12-19 21:28**
452
+ ## scrolling in edit box ##
453
+
454
+ Implemented horiz scrolling in single line edit box
455
+ Forgot to add:
456
+ Editable and non-editabl combo-boxes were also added the other day.
457
+
458
+ frmincr200812192127.tgz
459
+ * * *
460
+ **2008-12-15 14:16**
461
+ ## tabbedpanes - with radio buttons ##
462
+
463
+ Much improved. Uses an extended radio button, so states of selected, focussed and unfocussed
464
+ are easy to display.
465
+
466
+ frmincr200812151415.tgz
467
+ * * *
468
+ **2008-12-14 16:50**
469
+ ## tabbedpane-part2 ##
470
+
471
+ with panels and forms. but how to navigate between buttons and form.
472
+
473
+ frmincr200812141650.tgz
474
+ * * *
475
+ **2008-12-14 14:24**
476
+ ## preliminary tabbed pane ##
477
+
478
+ need to create form earlier so user can get the form and set it.
479
+
480
+ frmincr200812141424.tgz
481
+ * * *
482
+ **2008-12-11 22:32**
483
+ ## Popuplist in action ##
484
+
485
+ sample of popuplist called whenever cursor falls in User field.
486
+ Pressing Enter passes the value.
487
+
488
+ frmincr200812112231.tgz
489
+ * * *
490
+ **2008-12-11 01:27**
491
+ ## class PopupList ##
492
+
493
+ wip but almost done.
494
+ pops up a list which can be selected from.
495
+
496
+ frmincr200812110126.tgz
497
+ * * *
498
+ **2008-12-03 20:13**
499
+ ## Field accepts values() and valid_regex() ##
500
+
501
+ Restrict entry to values
502
+
503
+ Validate field against valid_regex.
504
+
505
+ frmincr200812032012.tgz
506
+ * * *
507
+ **2008-12-01 18:34**
508
+ ## Messagebox takes list ##
509
+
510
+ Allow user to make a messagebox passing a list.
511
+
512
+ frmincr200812011834.tgz
513
+ * * *
514
+ **2008-11-30 00:58**
515
+ ## friendly colors - under testing ##
516
+
517
+ Have implemented human friendly colors for foreground and background
518
+ Tested out on some widgets but not all. Need to totally test and clean code.
519
+ Is functioning. See radio buttons and their label, see checkbox which makes the label bold.
520
+
521
+ frmincr200811300056.tgz
522
+ * * *
523
+ **2008-11-29 21:10**
524
+ ## experimental Colormap to make color definitions easy ##
525
+
526
+ Added a Colormap module that helps create and retrieve colors by human names
527
+ so we can define colors in widgets without reference to color_pairs.
528
+
529
+ frmincr200811292109.tgz
530
+ * * *
531
+ **2008-11-28 00:30**
532
+ ## CheckBoxMenuItem ##
533
+
534
+ Implemented a checkbox menu item, works but i am not pleased, quite dirty.
535
+
536
+ Widgets are tied to a form, for ease of construction.
537
+ In the case of menus they are not, and menus print in a different manner.
538
+
539
+ Submenu should also have been a class, perhaps.
540
+
541
+ frmincr200811280026.tgz
542
+ * * *
543
+ **2008-11-27 20:11**
544
+ ## ToggleButton ##
545
+
546
+ Now a togglebutton class that is extended by Radio and checkbox
547
+ Togglebutton is itself a toggleable button.
548
+
549
+ frmincr200811272010.tgz
550
+ * * *
551
+ **2008-11-27 18:54**
552
+ ## extended radiobutton from checkbox ##
553
+
554
+ to reduce code.
555
+ Now i am thinkig both shuold extend one class. My ole Swing book gaves me a cool
556
+ name to call it. ToggleButton!
557
+
558
+ frmincr200811271853.tgz
559
+ * * *
560
+ **2008-11-27 12:13**
561
+ ## menubar hotkey ##
562
+
563
+ Done handling of hotkey/mnemonic in menu
564
+ and closing of menubar when action complete
565
+
566
+ frmincr200811271212.tgz
567
+ * * *
568
+ **2008-11-27 00:24**
569
+ ## Titles in all scrollable views. ##
570
+
571
+ Added titles and title attribs.
572
+
573
+ frmincr200811270023.tgz
574
+ * * *
575
+ **2008-11-26 23:32**
576
+ ## horiz scrolling in TextView ##
577
+
578
+ Textview now can scroll horiz.
579
+ Ctrl-E and Ctrl-A behavior in cases of data exceeding width taken care of.
580
+
581
+ frmincr200811262331.tgz
582
+ * * *
583
+ **2008-11-26 22:26**
584
+ ## TextView and other fixes ##
585
+
586
+ Introduced a TextView widget which just shows multiline text, scrollable.
587
+ Allows us to programmatically scroll the same.
588
+
589
+ Tested and fixed LEAVE and ENTER of widgets (had forgotten that!).
590
+
591
+ frmincr200811262224.tgz
592
+ * * *
593
+ **2008-11-26 11:49**
594
+ ## field.show ##
595
+
596
+ 1. implemented Field.show (password field in example will show *)
597
+
598
+ 2. created a method getvalue_for_paint, so that getvalue returns actual value for field
599
+ or widget and no display stuff.
600
+
601
+ 3. Button. surround_chars. change the sq brackets to soething else.
602
+
603
+ frmincr200811261147.tgz
604
+ * * *
605
+ **2008-11-25 23:58**
606
+ ## selectable in ListBox ##
607
+
608
+ added a new module selectable copying from sqlpopup
609
+ however, this is a window and not a pad so its much more diffucult.
610
+
611
+ Due to field_enter and exit, the selected row shows affter 2 movements!
612
+
613
+ Clear selection not yet functioning here. But select/deselect/next sel and prev sel are working.
614
+
615
+ frmincr200811252356.tgz
616
+ * * *
617
+ **2008-11-22 23:20**
618
+ ## RadioButton ##
619
+
620
+ Added another widget. took less than 2 mins: a radio button. Praps I should just extend CheckButton
621
+ rather than copy. Just a couple of lines changed.
622
+ Some bugs may have cropped up in Textarea after introduction of hard and soft returns.
623
+ Entry was happening one col before where cursor was appearing.
624
+
625
+ frmincr200811222319.tgz
626
+ * * *
627
+ **2008-11-22 21:50**
628
+ ## CheckBox ##
629
+
630
+ Took me less than 5 mins to implement a CheckBox inheriting from button.
631
+
632
+ frmincr200811222149.tgz
633
+ * * *
634
+ **2008-11-22 19:43**
635
+ ## textarea ##
636
+
637
+ moving up characters when deleting
638
+ soft and hard return so wrapping can be respected when deleting.
639
+
640
+ frmincr200811221943.tgz
641
+ * * *
642
+ **2008-11-22 16:47**
643
+ ## textarea ##
644
+
645
+ incoming data wrap it.
646
+ But i do need to look at newlines and preserve. current logic loses them.
647
+
648
+ frmincr200811221647.tgz
649
+ * * *
650
+ **2008-11-22 01:41**
651
+ ## textarea word wrap when pushing from behind ##
652
+
653
+ still needs ironing out. could be some issues in rare cases.
654
+
655
+ frmincr200811220140.tgz
656
+ * * *
657
+ **2008-11-22 00:45**
658
+ ## textarea with wrapping #1 ##
659
+
660
+ wrapping as cursor exceeds border. however, not yet when we insert chars anddelete.
661
+
662
+ frmincr200811220044.tgz
663
+ * * *
664
+ **2008-11-21 23:42**
665
+ ## textarea ##
666
+
667
+ more issues in movement sorted out when end of length.
668
+ Box showing correctly now.
669
+
670
+ frmincr200811212342.tgz
671
+ * * *
672
+ **2008-11-21 22:16**
673
+ ## textarea with newlines ##
674
+
675
+ added in newlines, and we don't print them.
676
+ also when joining we remove.
677
+ be careful i dont put two.
678
+
679
+ frmincr200811212215.tgz
680
+ * * *
681
+ **2008-11-21 21:54**
682
+ ## Textarea more work on joining and spliting rows ##
683
+
684
+ wip
685
+
686
+ frmincr200811212153.tgz
687
+ * * *
688
+ **2008-11-21 17:39**
689
+ ## Textarea starting ##
690
+
691
+ Have a basic textarea working
692
+ Still very rough.
693
+
694
+ frmincr200811211738.tgz
695
+ * * *
696
+ **2008-11-21 01:38**
697
+ ## Listbox ##
698
+
699
+ created a scrollable listbox as a widget and put in my form.
700
+ Also a scrollable module to include to get the functionality
701
+
702
+ frmincr200811210137.tgz
703
+ * * *
704
+ **2008-11-20 15:58**
705
+ ## Variable ##
706
+
707
+ Added custom to MessageBox
708
+
709
+ Added class Variable and tested out with button and label.
710
+
711
+ frmincr200811201558.tgz
712
+ * * *
713
+ **2008-11-20 01:38**
714
+ ## MessageBox ##
715
+
716
+ Have made a messagebox just like links
717
+ - uses Button class.
718
+ - Not using labels etc yet. Not required. Keeping it simple.
719
+
720
+
721
+ frmincr200811200137.tgz
722
+ * * *
723
+ **2008-11-19 19:59**
724
+ ## Widget class as super ##
725
+
726
+ Created the widget class with DSL properties
727
+ Now all widgets extend it,
728
+ so common functionality as well as DSLish.
729
+
730
+ frmincr200811191958.tgz
731
+ * * *
732
+ **2008-11-19 01:07**
733
+ ## FIELD navigation ##
734
+
735
+ a small hack and we can circle and it does not cause an overflow now.
736
+ But the focusables array was much neater and less risky.
737
+
738
+ frmincr200811190106.tgz
739
+ * * *
740
+ **2008-11-19 00:53**
741
+ ## FIELD ##
742
+
743
+ I have reworked the logic of traversal to use a loop, no extra array and no
744
+ recursion.
745
+ Only issue is i cant circle around snce it goes into a stack overflow.
746
+ The extra array was simpler though.
747
+
748
+ frmincr200811190052.tgz
749
+ * * *
750
+ **2008-11-18 20:41**
751
+ ## menubar working !!! ##
752
+
753
+ menubar working with submenus. destroys and passes contrl back to parent on LEFT
754
+ and goes to nezt on RIGHT.
755
+
756
+ frmincr200811182040.tgz
757
+ * * *
758
+ **2008-11-18 19:43**
759
+ ## menubar wip printing menu on leave and enter ##
760
+
761
+ 1. now submenu showing , onleave onenter okay.
762
+
763
+ 2. only thingie left is the navigation
764
+
765
+ frmincr200811181942.tgz
766
+ * * *
767
+ **2008-11-18 19:05**
768
+ ## menubar wip ##
769
+
770
+ Now submenu is created at tright time and destroyed onleave.
771
+
772
+ 1. to take care of priting of menu as a menuitem
773
+ 2. to pass control ofkeys into the new menu
774
+
775
+ frmincr200811181904.tgz
776
+ * * *
777
+ **2008-11-18 18:18**
778
+ ## menubar wip ##
779
+
780
+ paint does not create.
781
+ wip
782
+ but still to look into submenu
783
+
784
+ frmincr200811181818.tgz
785
+ * * *
786
+ **2008-11-18 16:18**
787
+ ## menubar wip ##
788
+
789
+ submenu paints itself since it s on enter
790
+ need to make some changes ...
791
+ fire -paint submenu
792
+
793
+ frmincr200811181617.tgz
794
+ * * *
795
+ **2008-11-18 03:04**
796
+ ## submenu ##
797
+
798
+ it is displaying now, but firing immeidately.
799
+ also we will need to walk down it and select.
800
+
801
+ frmincr200811180303.tgz
802
+ * * *
803
+ **2008-11-18 00:40**
804
+ ## menu bar actions etc fine ##
805
+
806
+ Barring ability to hav submenu's actions are working.
807
+
808
+ frmincr200811180040.tgz
809
+ * * *
810
+ **2008-11-17 18:51**
811
+ ## menubar wip ##
812
+
813
+ its up but no actions yet.
814
+
815
+ frmincr200811171851.tgz
816
+ * * *
817
+ **2008-11-17 03:14**
818
+ ## menu menubar menuitem interim work ##
819
+
820
+ interim work in progress
821
+ things are showing need alignment and polishing
822
+ actions to do
823
+
824
+ frmincr200811170313.tgz
825
+ * * *
826
+ **2008-11-16 22:09**
827
+ ## changed key handling down to objects ##
828
+
829
+ so they can take and ignore what they want
830
+ earlier form was trying to be too intelligent.
831
+
832
+ frmincr200811162208.tgz
833
+ * * *
834
+ **2008-11-16 19:18**
835
+ ## Field form and label ##
836
+
837
+ Tried to do more of method_missing and define_method to make it dsl-ish but failed.
838
+ Added datatype, chars_allowed and some bug-fixing.
839
+ Need to put exit_proc.
840
+ Now to try out a menubar.
841
+
842
+ frmincr200811161916.tgz
843
+ * * *
844
+ **2008-11-16 03:16**
845
+ ## Button which inherits label ##
846
+
847
+ circular order of navigation
848
+ editing taking care of different types of fields
849
+
850
+ WAIT. What is label doing inside FORM Why ? it can remain on Window, no ?
851
+ We are complicating code by inclusing in form and widgets.
852
+
853
+ frmincr200811160315.tgz
854
+ * * *
855
+ **2008-11-16 01:17**
856
+ ## form implemented buttons too ##
857
+
858
+ but i dont like the focusable part. need to redo
859
+
860
+ frmincr200811160117.tgz
861
+ * * *
862
+ **2008-11-15 13:06**
863
+ ## changed in forms and fields as per TK ##
864
+
865
+ changing things a bit.
866
+
867
+ frmincr200811151306.tgz
868
+ * * *
869
+ **2008-11-15 02:33**
870
+ ## rform ruby forms fields ##
871
+
872
+ I am writing a simpler form and field thingie.
873
+ I know thats awfully ambitious, but the sequence of ncurses sucks.
874
+
875
+ We need to be more dynamic.
876
+ I have made a displayable form. But need to trap some keys are kick some asss.
877
+
878
+ frmincr200811150232.tgz
879
+ * * *
880
+ **2008-11-14 18:48**
881
+ ## reintroduction of datasource ##
882
+
883
+ testing sqlpopup wiht processes and data
884
+
885
+ frmincr200811141847.tgz
886
+ * * *
887
+ **2008-11-14 00:01**
888
+ ## Fixes for smaller screens ##
889
+
890
+ A lot of hardcoding for large screens
891
+
892
+ - changes in key labels
893
+ - changes in data and col names
894
+ - padrefresh
895
+ - bug in pressing space
896
+ - printing messages in centre, no more beeps please.
897
+ Now small screens can be requested.
898
+
899
+ frmincr200811140000.tgz
900
+ * * *
901
+ **2008-11-13 21:52**
902
+ ## Cleanup , Refact and polishing output ##
903
+
904
+ 1. cleaned up junk code
905
+
906
+ 2. moved classes out. made key label printer into a class
907
+
908
+ 3. common print modules
909
+
910
+ 4. common db module
911
+
912
+ 5. sizing of columns and formatting of titles
913
+
914
+ 6. align of num fields
915
+
916
+ frmincr200811132151.tgz
917
+ * * *
918
+ **2008-11-13 10:46**
919
+ ## highlighting ##
920
+
921
+ Using wchgat for highlighting pad instead of rewriting data
922
+ Also, therefore changed select functionality.
923
+
924
+ frmincr200811131045.tgz
925
+ * * *
926
+ **2008-11-13 01:15**
927
+ ## key_labels ##
928
+
929
+ Worked on much better coded key_labels which don't require the poor hacky format the old one did
930
+ Saner.
931
+ Also putting a message in -3 row and letting it go off. Its on the window. Goes off in next keystroke auto.
932
+
933
+ frmincr200811130112.tgz
934
+ * * *
935
+ **2008-11-12 19:31**
936
+ ## flickering and key movement ##
937
+
938
+ - reduced flickering by doing werase only when absolutely nec. but this could lead
939
+ to some situations where clearing is not done. to keep checking.
940
+
941
+ - some errors in key movement due to wrong @window value or space etc
942
+ having incorrect checks. Need to keep checking.
943
+
944
+ frmincr200811121929.tgz
945
+ * * *
946
+ **2008-11-12 12:41**
947
+ ## Regexp and symbols in mappings ##
948
+
949
+ In order that printables can be used had to add REGEXP in mapping.
950
+
951
+ Also added symbols
952
+
953
+ So now we can't search Hash normally, have to iterate. So ordered hash hadto beused.
954
+ Tried to move to arrays, but pendingkeys would have not been possible.
955
+ Symbols are not tested yet.
956
+
957
+ frmincr200811121239.tgz
958
+ * * *
959
+ **2008-11-12 00:39**
960
+ ## sqlpopup and keymapper ##
961
+
962
+
963
+ We have a much simpler than VER keymapper. Code is small.
964
+ - Uses keyboard.rb from VER project to give us ESC and meta/alt keys.
965
+ - We use same syntax for configuring such as class.let :mode do etc.
966
+ - Provided:
967
+ - single keys combinations
968
+ - a mode with its set of keys
969
+ - dual keys such as C-x C-c or C-x p etc which do not change mode.
970
+
971
+ frmincr200811120036.tgz
972
+ * * *
973
+ **2008-11-11 23:40**
974
+ ## sqlpopup our own modes and key ##
975
+
976
+ allows cx mode with its keys
977
+ but its looks okay for a mode
978
+ for a multiple key we would prefer to say : C-c C-x
979
+ and not create a separate context./mode.
980
+
981
+ frmincr200811112339.tgz
982
+ * * *
983
+ **2008-11-11 23:12**
984
+ ## sqlpopup my version ##
985
+
986
+ trying to build a simpler version of sqlpopup
987
+ that i can understand. VER is pretty complex and the scope is not relevant to our
988
+ kind of app.
989
+
990
+ frmincr200811112311.tgz
991
+ * * *
992
+ **2008-11-10 12:25**
993
+ ## sqlpopup ##
994
+
995
+ after some minor bugfixes in space bar, and better messages
996
+ now i will try to integrate keymap and keyboard.
997
+
998
+ frmincr200811101224.tgz
999
+ * * *
1000
+ **2008-11-09 23:50**
1001
+ ## sqlpopup out own keymapper ##
1002
+
1003
+
1004
+ Implemented a small quick dirty key method mapper. This will make transition to keyboard.rb
1005
+ easier.
1006
+
1007
+ frmincr200811092349.tgz
1008
+ * * *
1009
+ **2008-11-09 19:37**
1010
+ ## sqlpopup ##
1011
+
1012
+ removed blank line and now selector on actual row 1.
1013
+
1014
+ put columns on windw however, this means col names always shpwing but wont scroll!!
1015
+
1016
+ frmincr200811091935.tgz
1017
+ * * *
1018
+ **2008-11-09 15:43**
1019
+ ## clearing selection ##
1020
+
1021
+ sqlpopup
1022
+ also numbering of lines based on content.length
1023
+
1024
+ frmincr200811091542.tgz
1025
+ * * *
1026
+ **2008-11-09 13:05**
1027
+ ## sqlpopup ##
1028
+
1029
+ - row selection and navigation.
1030
+ - search was no longer scrolling, fixed that so prow is always displayed.
1031
+
1032
+ frmincr200811091304.tgz
1033
+ * * *
1034
+ **2008-11-09 01:24**
1035
+ ## sqlview.rb ##
1036
+
1037
+ TABULAR sql view with much better scrolling like our old tabular thingie
1038
+ scrolling like alpine
1039
+ allows selection, we need to allow UNselect all, goto-selected etc.
1040
+
1041
+ frmincr200811090123.tgz
1042
+ * * *
1043
+ **2008-11-08 22:03**
1044
+ ## tabular view in pad ##
1045
+
1046
+ Used the pad program to give TABULAR View too.
1047
+ SIMPLE view has column name and data per row.
1048
+ ALTERNATING has name followed by data in next row.
1049
+ TABULAR gives the entire result in one tabular form
1050
+ TABULAR implements a search using "/" and ^N and ^P to go back/forth in search.
1051
+
1052
+ I need to make a selectable list which will return selectedrow, simple for use
1053
+ as help in dataentry forms.
1054
+
1055
+ frmincr200811082201.tgz
1056
+ * * *
1057
+ **2008-11-08 13:17**
1058
+ ## sqlresultsetpadviewer ##
1059
+
1060
+ Using pads, made a scrollable viewer for sql result sets.
1061
+ Has a goto record also.
1062
+
1063
+ To make tabular, with option of selecting.
1064
+
1065
+ frmincr200811081316.tgz
1066
+ * * *
1067
+ **2008-11-08 01:09**
1068
+ ## sqlview.rb ##
1069
+
1070
+ a program to view an sql resultset on screen.
1071
+ allows going through mult rows, and paging if more columns than will come on a screen.
1072
+
1073
+ Not tested with really long data. Will data get cut off or cause errors or what.
1074
+
1075
+ frmincr200811080108.tgz
1076
+ * * *
1077
+ **2008-11-07 20:24**
1078
+ ## mandatory fields ##
1079
+
1080
+ - checking at time of get_current_values_as_hash
1081
+ - display with asterisk if passed before form creation
1082
+
1083
+ frmincr200811072023.tgz
1084
+ * * *
1085
+ **2008-11-07 13:10**
1086
+ ## messages on execute and checks ##
1087
+
1088
+ insert/del/update messages
1089
+
1090
+ check on update/del whether select was done or not.
1091
+
1092
+ frmincr200811071309.tgz
1093
+ * * *
1094
+ **2008-11-07 01:42**
1095
+ ## on_exit and post_proc ##
1096
+
1097
+ These 2 are duplicating each other,
1098
+ Got both to work though. samples in contractedit1101.rb
1099
+
1100
+ frmincr200811070141.tgz
1101
+ * * *
1102
+ **2008-11-06 22:48**
1103
+ ## rowid and crud options ##
1104
+
1105
+ Have checked out contractedit1101 with view, edit, delete etc options.
1106
+ Made sure that only relvnt keys are visible and active
1107
+
1108
+ ## ROWID ##
1109
+ Now rowid can be switched on so edit and delete use that. Same for find all.
1110
+
1111
+ frmincr200811062246.tgz
1112
+ * * *
1113
+ **2008-11-05 23:49**
1114
+ ## create_view_one_application ##
1115
+
1116
+ the first of the easy to call applications for a table, tell him you only want to view one
1117
+ contract. The user can only quit from there. No operations possible.
1118
+
1119
+ Similarly now to do the view_any, delete_one, edit_one etc combinations.
1120
+
1121
+ frmincr200811052348.tgz
1122
+ * * *
1123
+ **2008-11-03 00:18**
1124
+ ## conditional submenu and sql options ##
1125
+
1126
+ Using @sql_actions, one can specify which options should be shown to user
1127
+ - retrict only to select, or upd/del etc, or give him no options
1128
+ - have to take care of bind keys also in this situation.
1129
+ - can start the program with a keyfield supplied
1130
+ or with the values to display supplied.
1131
+ See contractedit1101.rb.
1132
+
1133
+ frmincr200811030016.tgz
1134
+ * * *
1135
+ **2008-11-02 11:55**
1136
+ ## basiceditform.rb ##
1137
+
1138
+ functionality moved down from rbeditform to basicedit which should be instantiated
1139
+ hightlighting and helpproc display moved
1140
+ Now rbedit may either be extended and its handlers overridden,
1141
+ or else you can set handlers (if composing).
1142
+
1143
+ frmincr200811021154.tgz
1144
+ * * *
1145
+ **2008-11-01 23:47**
1146
+ ## contractedit1101.rb ##
1147
+
1148
+ This conttains the contract edit with:
1149
+ - calls to create_default_application which takes care of windows etc
1150
+ So calling code is very few lines. Fully functional table realted CRUD screen.
1151
+ - ADded WHERE and ORDER BY in actions.
1152
+ - The search interface is still not clear. Using ^X-M for clearing screen and inserting.
1153
+ Can be confusing.
1154
+
1155
+ frmincr200811012345.tgz
1156
+ * * *
1157
+ **2008-10-31 14:48**
1158
+ ## Actions: CRUD and FIND-all ##
1159
+
1160
+ crud actions working
1161
+ findall, first, last, next, previous.
1162
+
1163
+ frmincr200810311448.tgz
1164
+ * * *
1165
+ **2008-10-29 23:53**
1166
+ ## SingleTable ##
1167
+
1168
+ Have moved generic methods into a module which can be called or bound to keys.
1169
+ generic update,delete,select, insert and create_fields.
1170
+ Or maybe we can extend a class from rbedit. lets see.
1171
+
1172
+ frmincr200810292352.tgz
1173
+ * * *
1174
+ **2008-10-29 00:32**
1175
+ ## contractedit new_create_fields ##
1176
+
1177
+ this method uses the newly pimped FIELD object, hoping to make it MUCHO easier to create fields.
1178
+ Still a lot more that can go in, validate against values.
1179
+
1180
+ frmincr200810290030.tgz
1181
+ * * *
1182
+ **2008-10-28 11:26**
1183
+ ## more fields ##
1184
+
1185
+ more touching.
1186
+
1187
+ frmincr200810281126.tgz
1188
+ * * *
1189
+ **2008-10-28 11:16**
1190
+ ## work on create_field ##
1191
+
1192
+ an easier create_field method
1193
+ and many convenence methods for field settings and creation.
1194
+ not tested.
1195
+ changes are in rbform.rb
1196
+
1197
+ frmincr200810281115.tgz
1198
+ * * *
1199
+ **2008-10-28 00:13**
1200
+ ## contractedit.rb ##
1201
+
1202
+ a lot of generic stuff
1203
+ does insert/update
1204
+ - generic field creation
1205
+
1206
+ frmincr200810280013.tgz
1207
+ * * *
1208
+ **2008-10-26 13:27**
1209
+ ## new folder structure ##
1210
+
1211
+ Finally used hoe
1212
+ - created new structure
1213
+ - called it rbcurse
1214
+ - updated requires
1215
+ - moved dsls to dsl and outputs to out. (older ones)
1216
+ - now i will create DSLS and OUTs in a totally different area so i don't
1217
+ clutter up the project.
1218
+
1219
+ frmincr200810261325.tgz
1220
+ * * *
1221
+ **2008-10-26 00:57**
1222
+ ## contractedit.rb ##
1223
+
1224
+ passing a values hash and displaying values
1225
+ to pass an ID and have it select
1226
+ to save data on screen
1227
+
1228
+ frmincr200810260057.tgz
1229
+ * * *
1230
+ **2008-10-25 23:08**
1231
+ ## query and table app rewrite ##
1232
+
1233
+ with yield
1234
+ and some awful changes in main variable so that printing of header and footer can happen
1235
+ header and footer win is driving me NUTS !!!!!
1236
+
1237
+ frmincr200810252307.tgz
1238
+ * * *
1239
+ **2008-10-25 10:37**
1240
+ ## update DSL to give edit app for emailer.rb ##
1241
+
1242
+ _skelform2.rb generates emailer.rb with the block.
1243
+
1244
+ frmincr200810251036.tgz
1245
+ * * *
1246
+ **2008-10-25 00:20**
1247
+ ## more touches ##
1248
+
1249
+ - moved commons into EditApplication, removed from main
1250
+ - entire header, footer creation in Edit Application.
1251
+ - Is this causing more confusion, or reducing,
1252
+ - main and app point to EA.
1253
+ - perhaps emailer should not extend Application ?
1254
+
1255
+ frmincr200810250019.tgz
1256
+ * * *
1257
+ **2008-10-24 22:03**
1258
+ ## before yielding self ##
1259
+
1260
+ making a zip before yielding self in EditApplication.
1261
+
1262
+ frmincr200810242202.tgz
1263
+ * * *
1264
+ **2008-10-24 17:58**
1265
+ ## lambda and method from DSL ##
1266
+
1267
+ Did some crappy stuff so that you can use method or lambda from DSL.
1268
+
1269
+ frmincr200810241757.tgz
1270
+ * * *
1271
+ **2008-10-24 14:34**
1272
+ ## form and field handlers ##
1273
+
1274
+ Done some changes to handlers,
1275
+
1276
+ - moved handle_unhandled_keys up to rbform
1277
+ - used method(:) while passing procs
1278
+ - trying to enforce usage of Proc or Method in handlers and not going to main
1279
+ or datasource to check for an existing name
1280
+ i.e. reduce coupling.
1281
+ - tested with emailer.rb
1282
+
1283
+ Am hoping to make sqlite etc based rbeditforms simpler to implement
1284
+ by cutting out dataasource nad passing handlers in to the form.
1285
+
1286
+ frmincr200810241431.tgz
1287
+ * * *
1288
+ **2008-10-19 00:13**
1289
+ ## proc ##
1290
+
1291
+ bind and keys_handled has a proc too now
1292
+
1293
+ passing form to handlers not curritem and listselected from rbeditform.
1294
+ to be done in tableapplication too.
1295
+
1296
+ frmincr200810190012.tgz
1297
+ * * *
1298
+ **2008-10-18 22:37**
1299
+ ## set_proc ##
1300
+
1301
+ one can set a proc for populating form and saving.
1302
+ Some other cleaning up too.
1303
+
1304
+ frmincr200810182236.tgz
1305
+ * * *
1306
+ **2008-10-17 12:51**
1307
+ ## FIELD related factoring ##
1308
+
1309
+ A lot of stuff has gone into Field, valid, default, postproc
1310
+ This happens on get_value, set_value and field_term.
1311
+
1312
+ frmincr200810171250.tgz
1313
+ * * *
1314
+ **2008-10-16 14:58**
1315
+ ## touching up ##
1316
+
1317
+ a few more touches so that DSL generates exactly like pines mailer.
1318
+ Some form refreshing so that focus is on first field.
1319
+ Also, clearing error at top of loop.
1320
+
1321
+ frmincr200810161457.tgz
1322
+ * * *
1323
+ **2008-10-15 15:07**
1324
+ ## cleanup ##
1325
+
1326
+ removed @window, its already there are form_win() !
1327
+
1328
+ frmincr200810151506.tgz
1329
+ * * *
1330
+ **2008-10-15 12:57**
1331
+ ## set_value and get_value in FIELD ##
1332
+
1333
+ Taking care of ML fields and chomp inside FIELD
1334
+ Next change is to knock off @current.
1335
+
1336
+ frmincr200810151256.tgz
1337
+ * * *
1338
+ **2008-10-15 12:28**
1339
+ ## Changes to FIELD ##
1340
+
1341
+ set_value and get_value doing ML processing.
1342
+ But not calling it yet.
1343
+
1344
+ frmincr200810151227.tgz
1345
+ * * *
1346
+ **2008-10-15 11:34**
1347
+ ## email multiline format ##
1348
+
1349
+ This was having to be called by the user in form_post_proc
1350
+ Now before save, heightwill be checked.
1351
+
1352
+ Howevr, this should happen auto. Added get_value and set_value in FIELD. and maybe thats
1353
+ where it shouldhappen.
1354
+ But we have to use it, too. We are using @current.
1355
+
1356
+ frmincr200810151133.tgz
1357
+ * * *
1358
+ **2008-10-15 01:40**
1359
+ ## Edit DSL ##
1360
+
1361
+ Finally got the email program running from a DSL.
1362
+ One job pending still ... update_current_values.
1363
+ Some things could be generated at generate time, setup observers, rather
1364
+ than at load time.
1365
+
1366
+ Still then need to start getting a proper datasource into place.
1367
+
1368
+ frmincr200810150138.tgz
1369
+ * * *
1370
+ **2008-10-14 14:29**
1371
+ ## C-c ##
1372
+
1373
+ 1. Now getting c-y, c-z, c-s and c-q
1374
+ 2. We seem to have lost C-c
1375
+ The trap is eating it up totally.
1376
+ Finally i am trapping and doing an ungetch for which had to open the Ncurses class
1377
+ and fix.
1378
+ 3. Also allowing user to bind_key and use the REQ_ values
1379
+ 4. Fixed bugs so that keys_handled is called in rbeditform.
1380
+
1381
+ frmincr200810141427.tgz
1382
+ * * *
1383
+ **2008-10-13 20:44**
1384
+ ## Edit Emailer ##
1385
+
1386
+ More cleaning u and corrections in C-x method.
1387
+
1388
+ frmincr200810132044.tgz
1389
+ * * *
1390
+ **2008-10-13 18:50**
1391
+ ## highlighting field ##
1392
+
1393
+ Some cute coding, and we've got the current field label hightlighted.
1394
+ Sadly Message Text shows that : after it ;-(. That's the default.
1395
+
1396
+ Now to get the silly keylabels functional.
1397
+
1398
+ frmincr200810131848.tgz
1399
+ * * *
1400
+ **2008-10-13 17:32**
1401
+ ## Edit screen ##
1402
+
1403
+ More refactoring on editapplication and rbeditforms.
1404
+ Moved a lot iinto form. App should have less. Form should not keep calling into app.
1405
+
1406
+ Also this version has fields centered abd reverse video. I am now going the alpine way.
1407
+
1408
+ frmincr200810131731.tgz
1409
+ * * *
1410
+ **2008-10-13 12:57**
1411
+ ## gen4.rb EDIT FORM ##
1412
+
1413
+ I have the old gen2.rb redone into a datasource, rbeditform, editapplication.
1414
+ Just about coming up!
1415
+ Still many errors de to references from form to app.
1416
+
1417
+ Totally unclear here as to what the app is doing, and should it have all thefunctinolity
1418
+ in it or not. Too much calling from form to app.
1419
+
1420
+ Its quite a mess and needs a major overhaul.
1421
+
1422
+ I also need to make changes so that rt_hashes and rt_fields dont have to be passed.
1423
+
1424
+ Application should only have what is required by the main app for setting up and cleaning ==
1425
+ not all the stuff for regular work.
1426
+
1427
+ Form should contain all else.
1428
+
1429
+ frmincr200810131253.tgz
1430
+ * * *
1431
+ **2008-10-12 13:32**
1432
+ ## MENU ##
1433
+
1434
+ Updated menu.skel so it generates a class that inherits from menuApplication.
1435
+ It generates a menu class.
1436
+ It is working !
1437
+
1438
+ frmincr200810121331.tgz
1439
+ * * *
1440
+ **2008-10-12 00:29**
1441
+ ## running from menu ##
1442
+
1443
+ 1. Got the menu program working after all the changes in base classes.
1444
+
1445
+ 2. Got programs running from menu. Apparently, some panels were not being
1446
+ destroyed, so there was a BUS ERROR in update_panels.
1447
+
1448
+ 3. There was a warning of BOTTOM_WIN_WIDTH already defined that was messing the screen
1449
+ and i could not see it clearly, so it bugged me a long time.
1450
+
1451
+ All's okay but the skel programs have to be updated. The menu DSL minp1 has to be rerun to see
1452
+ if it gives correct output as per menu1.rb.
1453
+ Basically, panels have to be returned with windows so they can be destroyed.
1454
+
1455
+ frmincr200810120025.tgz
1456
+ * * *
1457
+ **2008-10-10 20:48**
1458
+ ## padreader and panelreader ##
1459
+
1460
+ touched up both and maximized them.
1461
+ worked on keys of padreader.
1462
+ Called both from commons1. Seems okay.
1463
+
1464
+ frmincr200810102048.tgz
1465
+ * * *
1466
+ **2008-10-10 18:19**
1467
+ ## padreader.rb ##
1468
+
1469
+ Made a class out of it
1470
+ Can view files using padreader using view_file(filename).
1471
+ Have not put buttons, and headers like in panelreader yet.
1472
+
1473
+ frmincr200810101818.tgz
1474
+ * * *
1475
+
1476
+ **2008-10-10 14:36**
1477
+ ## form specific key labels - wip ##
1478
+
1479
+ It is working but not standard
1480
+ Need to simplify it.
1481
+ qapp returns keylabels but does not support a keys_handled
1482
+ tapp has keyhasharray but does not generate its labels.
1483
+ we should junk app labels. that complicates things.
1484
+
1485
+ frmincr200810101433.tgz
1486
+ * * *
1487
+ **2008-10-10 11:58**
1488
+ ## tab and enter behaviour in query apps ##
1489
+
1490
+ Tab moves between fields in query form
1491
+ Tab in table moves back to query form.
1492
+ Enter in table runs query as b4, but now also moves focus to table
1493
+
1494
+ frmincr200810101157.tgz
1495
+
1496
+ **2008-10-09 22:23**
1497
+
1498
+ ## HELP ##
1499
+ Using __FILE__ in constructor of major programs to determine a name for file
1500
+ to check for help when user presses ?
1501
+ Application.rb checks for this.
1502
+
1503
+ * * *
1504
+ **2008-10-09 19:14**
1505
+
1506
+ ## panelreader ##
1507
+ deleting panel in ensure otherwise previous screen wuld be scr00d.
1508
+
1509
+ ## help ##
1510
+ Added a generic application_key_handler in Application.rb which shows
1511
+ page specific help. Currently, i have to work that out. Application should
1512
+ define a page. It by default pops up TODO !
1513
+
1514
+ * * *
1515
+ **2008-10-09 18:02**
1516
+
1517
+ More polishing on panelreader.rb
1518
+ But cannot get the line numbers correct.
1519
+ Also if I display line # on top, then cursor remains there.
1520
+ If i put the print statemnet at beg of loop, the line number is wonky.
1521
+ It is correct at end of loop, but then the cursor is stuck on top.
1522
+
1523
+ * * *
1524
+ **2008-10-09 13:34**
1525
+
1526
+ panelreader and editor
1527
+ so i can pop it up and view or edit content or a file
1528
+
1529
+ * * *
1530
+ **2008-10-09 01:05**
1531
+
1532
+ ## datasource class ##
1533
+
1534
+ Made this more reusable. Lots of silly stuff changed.
1535
+ * now it has a constructor.
1536
+ * does not do any work other than init.
1537
+ * more reusable than earlier.
1538
+
1539
+ * * *
1540
+ **2008-10-08 18:16**
1541
+
1542
+ ## handling of cursor and selection in subseq queries ##
1543
+
1544
+ especially if:
1545
+
1546
+ * fewer queries returned in second query
1547
+ * no queries returned in second query
1548
+
1549
+ Now cursor will always be in row one after a fresh query when you tab.
1550
+ Can't tab in if no rows.
1551
+
1552
+ * * *
1553
+ **2008-10-08 17:51**
1554
+
1555
+ ## get_curr_index bug ##
1556
+
1557
+ this was returning one more (base 1) so some users were doing -1
1558
+ Some methods were getting wrong curr_item like the handle_? methods.
1559
+
1560
+ User cannot tab into table if no data.
1561
+
1562
+ Issue of wrong header count if no rows also fixed.
1563
+
1564
+ * * *
1565
+
1566
+ **2008-10-08 14:48**
1567
+
1568
+ Moved stuff to Datasource class.
1569
+ Also checked out more stuff from DSL
1570
+ Added keys_handled to DLS and tested it.
1571
+
1572
+ * * *
1573
+
1574
+ **2008-10-07 22:40**
1575
+
1576
+ 1. based on datatype, aligning fields in table
1577
+ 2. based on datatype, using = in search query for integer and real and smallint