Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 1961 lines (1435 sloc) 50.337 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960
**2012-01-04**
## 0.0.3 rbcurse-core
   * ActionManager added to widgets so actions can be
used from multiple places
   * changes in ncurses setting cbreak and halfdelay etc
since C-c was crashing program out
* Added history to field

**2011-12-13**
## 0.0.2 rbcurse-core
Mostly refactoring of multi-row components

## 0.0.1 rbcurse-core
Added help system, and printing of key bindings

**2011-12-05**
## 0.0.0 rbcurse-core

1. Added a help system - on F1.
   '?' reveals key-bindings for form and current widget.

2. bind_key includes string parameter which documents binding

3. KEY_RETURN and KEY_ENTER fixed (values switched)

4. textview can extend MultiBuffer (simple multibuffering)

5. Moving map_keys prior to super in constructor of widgets
   so app can override keys.

6. textview: set_content second param is a Hash.

7. App.rb: shortcuts and stack flow removed and replaced
   with widgetshortcuts.rb.
Now there should be an outer flow or stack. Earlier,
there could be two stacks with no outer stack or flow.

New implementation allows height_pc and width_pc.
Widgets can also have height_pc and width_pc if placed in stacks or flows
in an App. Please check samples to see.

8. Window has close event, to do any tidying up, releasing etc
   Also a confirm_close option.

**2011-11-17**
## 1.5.0

### split rbcurse into core, extras and experimental
    Now rbcurse is a meta-gem which includes the other three.

### major rehaul of directory structures
    ilb/core/widgets, lib/core/include, lib/core/system etc

### class name changes

    * rbasiclistbox -> rlist, shortcut: basic_list -> listbox
* rlistbox , shortcut: list_box -> edit_list
    * rtable , shortcut: table -> edit_table
    * rtabularwidget , shortcut: tabular_widget -> table (alias)


**2011-11-06**
## 1.4.1

### More cleanup of widget and form and window

### Rewrite of tabbedpane and messagebox but not replaced old classes

### Textview and Window and Statusline now can print colored text
    Colored interface not yet final.

### Some experimental work that will trickle into core classes in 1.5.0

### Some standardization of core classes, more to follow.

**2011-10-06**
## 1.3.1 or 1.4.0

### Major cleanup of widget class
  Scrollpane support (buffering stuff all removed)

### TabbedPane
  Corrected, major changes

### dsl_accessor and dsl_property
  Now return self so we can chain.

### return values of some keys (Class Form)
  Earlier not returning anything meaningful or returning last_key
  Now return NO_NEXT_FIELD or NO_PREVIOUS_FIELD

### j and k keys used for down and up where possible
   e.g. button and its children including checkbox

### Miscellaneous

  * Dynamic menuitems in menu (see menu1.tb)
  * rework on menu and menubar, and keys using them
  * FieldVetoException (see test2.rb)
  * valid_range for Field (see test2.rb)
  * fixed field's type method, earlier non-functional
  * array and 4 integer constructor for Window
  * StatusWindow class - 2 line window for alert, confirm and statuses as an
    alternative to dialogs.
  * status_dialog returning a handle so we can keep updating status then
  close.
  * many more minor adjustments, tweaks, issues

**2011-09-26**
## 1.3.0

### Moving to ffi-ncurses
   Essentially code changes for ffi-ncurses. ncurses gem no longer supported
   as it was painful to install. Required ffi-ncurses >= 0.4.0
   
   Some bugfixes in demos and samples due to changes in 1.2.0, or ruby 1.9, which went
   unnoticed.

### Deprecations
   Some classes being deprecated:
   - SplitPane (use vimsplit instead)
   - ScrollPane (no substitute) Code supporting scrollpane will be removed
   by 1.3.1 or 1.3.2 and this will not work.

### Tabbedpane
   Not working correctly since moving to ffi-ncurses. Will be completely
   rewritten by 1.3.2.

**2010-09-11**
## 1.2.0

### Additions

 - App class that allows easy application development (like Shoes)
 - MultiSplit class: Multicolumn widget (like SplitPane but allows many splits).
   aka Column Browse pattern (like OSX Finder). See examples/testmultisplit.rb
 - Added Progress Bar class

 - Added methods to Menu (rmenu.rb), so easy creation through DSL. See
 examples/menu1.rb

 - Added VimSplit - can have multiple splits stacked and flowed
 - Added Tree - tree control
 - Added Scrollbar class
 - Added Tabular - quick readonly tabular data generator that can be used with
 listboxes or textviews.
 - Added BasicList - a stripped down, readonly version of Listbox.
 -

### Changes

 - Field class now passes InputDataEvent when firing event, not self.
   Earlier, user trapping :CHANGE would not know what happened (delete,
   insert, etc) and what char was added, deleted.
 - List and ListData and ListSelection listener
   Many changes, new methods, def list(), space bar selects,
   List listens to selection changes, selectionEvent contains List as source
   not ListSelectionModel.
 - Widget checks event names before firing and binding to save time in wrong
 events.
 - Listbox, some refactoring of `repaint`. Added convert_value_to_text since
 we subclass this a lot.
 - Listcellrenderer: refactoring and changes, will break extending classes!!
 - Combolist - popup on spacebar
 - replaced to_print_borders with suppress_borders in list related classes

### Bugfixes

 - TextArea would crash if user entered long line with no space (line >
 display length) - fixed

 - Menu items will not show mnemonic highlighted, if disabled.
   They will not fire if mnemonic key pressed, when disabled.

**2010-08-30 11:59**
## 1.1.4

 - Some missing files such as tableextended.rb and vieditable
   These got missed out in the gemspec.
 - Added slice! to listdatamodel
 - Also see ruby 1.9.2 changes below

**2010-08-23 11:50**
## ruby 1.9.2 related changes

 Changes in 1.9.2 require the following changes:
  - $: no longer includes ".".
    Fixed 2 examples.
  - hash_update: cannot update hash during iteration
    Modified rwidget.rb and rtable.rb

    (Ref http://svn.ruby-lang.org/repos/ruby/tags/v1_9_2_0/ChangeLog)

**2010-05-19 00:00**
## Table - added tableextended.rb for extended functions on tables

Currently, increase or decrease column width using numeric args.
You will have to bind the method to a key in your app.

**2010-05-13 00:00**
## Table - adding vim keys for navigation

If table is not editable, then j k l h gg G etc may be used for navigation.

**2010-03-01 00:00**
## Overhaul of tabbedpane

Simplified, and it more or less completely makes sense now.
A component may be added directly without creating a form
which allows the TP to set row, col, and height width.

At this moment, it no longer creates a form automatically, you have to call
tp.form(tab) to get a form associated with the tab. Check code for latest on
this. Or check samples: testtpane.rb and testtpane2.rb.

**2010-02-18 22:58**
## RFED16 new simplified buffering

Major changes. Most widgets redone (buffer part).
Containers majorly done. Table and TabbedPane still pending.

**2009-11-03 23:30**
## tabbedpanes ##

Now on first click of tabbed button, form is painted.
A form.repaint for the lower form was required.

frmincr200911032330.tgz
* * *
**2009-11-03 00:19**
## some progress on tabbedpanes ##

Ugly hacking and I really haven't a clue what's happening
since there's internal forms working.
Anyhow, its now showing up, can see form cursor moving.
Does not show up immediately, have to press key several times for form to display.

frmincr200911030018.tgz
* * *
**2009-11-02 13:15**
## before rtabbedpane ##

After all the changes, the new tabbedpane is not printing the form fields.
Working on that now.

frmincr200911021314.tgz
* * *
**2009-11-02 12:13**
## splitpane and scrollpane working ##

Both are working. Changes to copywin had caused issues. And printborder.
Decreasing comp width does not reduce pad size, but pad keeps printing larger size.
So in Splitpane it was overwriting. Now in Pad we maintain sheight as comp's height.
Major change in pad, but hope it works and doesn't bomb out somewhere.

frmincr200911021212.tgz
* * *
**2009-11-02 01:03**
## SplitPane retouching ##

began majorly misprinting after changes to printborder and copywin().
ALmost corrected. Still some issues in copywin which are making separator and border
to get eaten up.

frmincr200911020102.tgz
* * *
**2009-11-01 22:28**
## scrollbars in scrollpane ##

Added scrollbars in scrollpane. Sized and positioned nicely.

frmincr200911012228.tgz
* * *
**2009-11-01 01:05**
## scrollpane WIP ##

scrollpane with viewport and child object
i can see the child within. have to test scrolling now.
Issue is largely with copywin which gives errors.

frmincr200911010104.tgz
* * *
**2009-10-31 22:07**
## scrollpane WIP ##

,,,

frmincr200910312206.tgz
* * *
**2009-10-30 23:32**
## more testing with SplitPane and 2 splitpanes in it ##

vertical and horizontal
check against min sizes

frmincr200910302331.tgz
* * *
**2009-10-30 17:47**
## buffering ##

major change is buffering added (using pad)
height and width added to Widget
Splitpane added (midway)

frmincr200910301746.tgz
* * *
**2009-10-07 10:14**
## Prior to change in next_column ##

Currently, after last visible column tab goes to next row.
We want to scroll if more columns.
At present, table will not print if a col goes out of bounds. but this does not impact
first or last column to print variables.

frmincr200910071012.tgz
* * *
** 2009-10-05 11:00 **
## Horizontal scrolling in tables - some cleaning ##

When increasing the size of a column, other cols could write
outside the table. Fixed.

* * *
** 2009-10-05 00:00 **
## Making changes for 1.9 and testing ##

Mostly key related changes.
However, there could be some string index change lurking around

* * *
** 2009-02-22 20:48 **

## Released 0.1.2 ##

- search in textview with wrap, case insensitive, highlighting searched text
- table can have nil data
- tabbed pane has ok_cancel button, ok by default
- table autosizing - required for adhoc queries
- table horizontal scrolling
- editing when more columns than viewable in table
- confirm dialog, normal mnemonics for buttons

* * *
** 2009-02-17 12:10 **
## added table markers for data and columns before and after on border ##

also added putting space in intercell area, but today i am not getting any
junk there anywaym while scrolling etc.

* * *
** 2009-02-16 22:10 **
## added edit_length to TableColumn ##

This is max editable length of editor component in tables.

* * *
** 2009-02-13 13:48 **
## added button_type to tabbed pane ##

Now buttons at bottom of tabbed pane. Will return selected_index
to caller.
Uploaded to github, will be included in 0.1.2.

* * *
** 2009-02-12 22:48 **
## Code to stop table from printing a column if exceeding bounds ##

Uploaded to github, will be included in 0.1.2.

EXPERIMENTAL CODE: Affects only tables. Now table will not print a column or header
if columns width causes it to exceed width of table.

This means if you have a single column which is wider than table
then it wont print. In Listboxes we always truncate data and pass to
renderer. We could do that here, but it could get messy.

* * *
**2009-02-12 **
## Missed one parameter in Table's repaint, and some Table Cell Renderers

Fixed and uploaded as 0.1.1

* * *
**2009-02-11 00:57**
## Path changes in order to make first gem ##

the first gem is ready 0.1.0. So various path changes (removed all the lib's in require)

frmincr200902110056.tgz
* * *
**2009-01-21 18:30**
## Class Action ##

Added a class Action to centralize actions or behavior.
Popupmenu creates a jmenuitem with an action.

frmincr200901211826.tgz
* * *
**2009-01-20 22:50**
## Class PopupMenu ##

Based on menubar, a popup menu. Intended to be used with widgets / components.

frmincr200901202248.tgz
* * *
**2009-01-20 00:22**
## Application Header like Alpine ##

Similar application header made in applicationheader.rb

frmincr200901200022.tgz
* * *
**2009-01-19 21:41**
## Alpine Style Key Label Printing ##

See testtodo.rb for example.
Print Alpine Style labels at bottom

frmincr200901192140.tgz
* * *
**2009-01-19 15:53**
## Table Changed Event ##

One may either trap the CHANGED event of a component OR
a TABLE_EDITING_EVENT which gives us previous and new values, previous row and col.
This will fire for each cell exited, and on editing stopped (if a user presses ENTER after editing).

One example would be to set a date_modified if any column of a row changes.

Also am firing CHANGED from table for its cells.

frmincr200901191548.tgz
* * *
**2009-01-18 22:11**
## listbox, combo case insensitive match ##

Char matches use casecmp

Field was not calling process_key(ch) - now calling super in handle_key, so process_key is called
in handle_key.

frmincr200901182210.tgz
* * *
** 2009-01-18 12:37 **
## modified? and def modified tf##

changed fields modified? to check for change in field value

Field ESC puts back original value

TAB and BACKTAB in table. so you need to M-tab out of it.

**2009-01-17 01:56**
## Tables: editing options more polishing ##

also, columns may be marked as non-editable
calling on_leave of component


frmincr200901170155.tgz
* * *
**2009-01-16 20:13**
## Table - cyclic traversal to next column, auto editing of cells ##

Automatic editing on tabbing in and out on Table.
Trying this out. USe Alt-Tab for going to next cell if you are editing a cell.
If not editing then RIGHT and LEFT work.

frmincr200901162012.tgz
* * *
**2009-01-16 00:31**
## Tables: Events and Listeners implemented ##

on enter row, col and cell.
Table Column property change
Various others.

frmincr200901160030.tgz
* * *
**2009-01-15 01:23**
## Events in tables added ##

(just days backup)

frmincr200901150122.tgz
* * *
** 2009-01-15 00:17 **

Table on_enter and on_leave row, column and cell events

Also put key definitions for table and listbox in listkeys.rb
so they can be shared.
Fixed def handle_key of listbox so if key not handled, it still
tries further.

**2009-01-14 12:56**
## Forward and backward searching in Listbox ##

M-f to start a forward search (asks for regex)
M-F to start a backward search (asks for regex)
M-g to keep searching forward
M-G to reverse direction of search


* * *
**2009-01-13 23:29**
## Split messagebox and listbox to separate files ##

* * *
**2009-01-13 01:39**
## Table Editing ##

String, number, checkbox and combolist

frmincr200901130139.tgz
* * *
**2009-01-13 01:03**
## Table editing is on ##

Testing and working out visual glitch in checkbox edit.
One extra char displayed by editor but not by renderer.
So a white space gets left over.

frmincr200901130102.tgz
* * *
**2009-01-11 20:06**
## editable lists: check and combo boxes ##

Now you may edit a list of checkboxes or combo boxes

frmincr200901112006.tgz
* * *
**2009-01-11 16:32**
## combo box cell renderer in listbox ##

almost done. some touching up

frmincr200901111632.tgz
* * *
**2009-01-11 00:28**
## ComboBoxCellRenderer ##

For lists, to display combo boxes.
Althoght does not make much sense. THe normal list box already has
selection of rows. so its like a list which is now editable and selectable.

This has only checkboxes. How do i pass in text in addition to booleans
given that the method interface of renderers takes one value.

frmincr200901110026.tgz
* * *
**2009-01-10 23:18**
## About to move selector code up ##

To avoid duplication in renderers

frmincr200901102317.tgz
* * *
**2009-01-10 01:22**
## listbox editing ##

WIP, but i've got editing in.
To sort out key related issues. Editing keys are clashing with selection
and navig keys.
Touching up also.

frmincr200901100121.tgz
* * *
**2009-01-08 23:34**
## class Textarea moved to new scrollable ##

Thank God, done away with the old scrollable module.
Textarea is now in rtextarea.rb

frmincr200901082333.tgz
* * *
**2009-01-08 20:57**
## wrapping option in TextArea ##

WRAP_WORD passed with set_content

frmincr200901082057.tgz
* * *
**2009-01-08 19:21**
## New Listbox ##

Movement between selected items (using ' and ") and C-e to clear selection.

frmincr200901081921.tgz
* * *
**2009-01-08 14:38**
## before moving TextView to listscrollable ##

about to move

frmincr200901081438.tgz
* * *
**2009-01-08 01:41**
## firing property change and others ##

Some major changes (internal)

1. In order not to repaint the entire form each time, we must only repaint a widget when modified.
     However, as can be seen, widgets are being modified by other widgets. Thus whenever a property
     is changed, we need a flag to be set that repainting is required.

    Thus, copied dsl_accessor and made dsl_property. Whenever, such props are modified, a property
    change is now fired, and repaint_required is set to true.
    I am currently changing this. What this means is that on startup, fire_prop_change will be called
    many times, and i need to avoid this on first time instantiation. TODO.
    
2. The tricky part was text_variables. When there value changes any widget (such as label) auto
   changes. When a text_variable is defined for field, internally that field, adds itself as a
   dependent. When its value is changed, it fires a change to the dependent field.

3. The real worrisome part was this:
   When user passes in a hash in the constructor, i was directly setting variables, NOT calling
   methods. Tracked this down. Now i am calling methods and not setting variables. See rwidget.rb
   instance_variable_set (top). Only throrough testing will tell how much this change
   will affect stuff. Maybe not.

frmincr200901080133.tgz
* * *
**2009-01-07 23:35**
## New Listbox ##

with cleaner scrolling code, and cell renderer
Largely done.

frmincr200901072335.tgz
* * *
**2009-01-07 00:36**
## Field storing datatypes ##

1. set_buffer updates datatype of data
2. get_value reverts to original datatype (stored as a string since many methods
     do check length etc

Widget binds_keys
Certain widgets like tables etc would like to bind_keys which could be used by other
widgets. Such as left and right keys or del key. So these should not be at the program
level, but only at widget level.

frmincr200901070034.tgz
* * *
**2009-01-05 01:51**
## rtable with scrolling ##

simple scrolling unlike scrollable which sucked biggie time

frmincr200901050150.tgz
* * *
**2009-01-05 01:21**
## rtable.rb ##

more wip

frmincr200901050121.tgz
* * *
**2009-01-04 01:01**
## table wip ##



frmincr200901040100.tgz
* * *
**2009-01-01 23:45**
## before change to textare ##

abot to put back \n and see

frmincr200901012345.tgz
* * *
**2009-01-01 13:01**
## Boolean buttons use "variable" not "text_variable" ##

That was a misunderstanding. Checkbutton, Toggle and Radio use "variable" which
updates or gets updated by any changes.

frmincr200901011300.tgz
* * *
**2008-12-31 23:46**
## Variable modifications ##

Had to move to get_value and set_value so that Variable could support a hash or array without
anything else changing.
That means if a set of checkboxes and radio buttons are based on one Variable which is a Hash,
they will continue working as before, since they always pass t heir name as a second parm to set_value
(whch is used as a key, if Variable is a hash).
Earlier i was using value= but that does not allow 2 params.
In the case of a hash, even retrieving requires the widgt name as key.
So seeing how many params are coming in does not work. Thus moving from value() and value= to get and set value.

Currently, its there as RVariable. Will be moved to Variable in a day or so.

frmincr200812312341.tgz
* * *
**2008-12-29 17:50**
## textarea bugfixes in wrap and wrapping ##

more bug fixes
also added wrap_para (see menu Wrap)

* * *
**2008-12-28 21:05**
## Textarea wrapping bugs fixed ##

I believe things are working now.
ALso added footers to the text area and view. That could help me in debugging too.

frmincr200812282104.tgz
* * *
**2008-12-28 01:25**
## WIP in Table ##

working

frmincr200812280125.tgz
* * *
**2008-12-27 01:07**
## bug fixes in textarea cursor movement ##

with respect to wrapping lines
backspace behaviour.
newlines
still some glitches.

* * *
**2008-12-26 20:07**
## Missed one case of wrapping in Textarea ##

Whene there IS data in next row. Fixed.

* * *
**2008-12-25 18:30**
## ACS_ boxes in TextArea and TextView ##

ACS_ used for boxes

* * *
**2008-12-25 18:22**
## better boxes using ACS_ for messagebox and Listbox ##

Using ACS_ code to get boxes.

* * *
**2008-12-24 20:20**
## InputDataEvent: firing events on changes in TextArea ##

Now reporting changes in text happening in TextArea via InputDataEvent

* * *
**2008-12-24 15:51**
## Alt-keys in TextArea and View were getting eaten up ##

Returning alt keys so buttons and mnemonics can process

* * *
**2008-12-24 15:40**
## vertical alignment of combolists ##

ABove, below, center, and same row as field.

* * *
**2008-12-24 13:00**
## added autoscroll to TextArea ##

Goes to end with each "<<" command.
Also fixed goto_end and goto_start. I had changed the names in TextArea but not in scrollable.

* * *
**2008-12-23 23:49**
## Migrated buttons to mnemonic and ampersand for hotkeys ##

Unerline will result in underline, overriding that created by ampersand, but not register key.
mnemonic will register alt-key and underline first occurence
Using ampersand will register and underline given occurrence.

frmincr200812232347.tgz
* * *
**2008-12-23 13:38**
## Added observers to events ##

An object can listen in to events of another. Could be a hack.
Helps if user creates an object which further creates others. User binds actioon to top level object.
But we want internal objects events to also fire action.

frmincr200812231337.tgz
* * *
## Multiple bindings for each event ##

Each object can bind its actions without fear of overwriting each other.
Variables update_command also stacked.

**2008-12-22 15:13**

## class Field: CHANGED event, triggered when tabbing out after changing ##

.

frmincr200812221513.tgz
* * *
**2008-12-22 12:52**
## Added null_allowed to class Field ##

if null_allowed, validation will be skipped if empty, however
LEAVE event will be triggered.

frmincr200812221251.tgz
* * *
**2008-12-22 02:02**
## xterm-color key hacks and vt100/200 fixes ##

F1..F4 hack for xterm color
in getchar().
Menu selection (highlighting) in rform.rb

frmincr200812220201.tgz
* * *
**2008-12-20 22:05**
## Removed CommonIO includes ##

replaced with @window.printstring

frmincr200812202204.tgz
* * *
**2008-12-20 13:23**
## toggle_key for menu bar ##

menu bar now can define and bind its toggle key.

frmincr200812201322.tgz
* * *
**2008-12-19 21:28**
## scrolling in edit box ##

Implemented horiz scrolling in single line edit box
Forgot to add:
Editable and non-editabl combo-boxes were also added the other day.

frmincr200812192127.tgz
* * *
**2008-12-15 14:16**
## tabbedpanes - with radio buttons ##

Much improved. Uses an extended radio button, so states of selected, focussed and unfocussed
are easy to display.

frmincr200812151415.tgz
* * *
**2008-12-14 16:50**
## tabbedpane-part2 ##

with panels and forms. but how to navigate between buttons and form.

frmincr200812141650.tgz
* * *
**2008-12-14 14:24**
## preliminary tabbed pane ##

need to create form earlier so user can get the form and set it.

frmincr200812141424.tgz
* * *
**2008-12-11 22:32**
## Popuplist in action ##

sample of popuplist called whenever cursor falls in User field.
Pressing Enter passes the value.

frmincr200812112231.tgz
* * *
**2008-12-11 01:27**
## class PopupList ##

wip but almost done.
pops up a list which can be selected from.

frmincr200812110126.tgz
* * *
**2008-12-03 20:13**
## Field accepts values() and valid_regex() ##

Restrict entry to values

Validate field against valid_regex.

frmincr200812032012.tgz
* * *
**2008-12-01 18:34**
## Messagebox takes list ##

Allow user to make a messagebox passing a list.

frmincr200812011834.tgz
* * *
**2008-11-30 00:58**
## friendly colors - under testing ##

Have implemented human friendly colors for foreground and background
Tested out on some widgets but not all. Need to totally test and clean code.
Is functioning. See radio buttons and their label, see checkbox which makes the label bold.

frmincr200811300056.tgz
* * *
**2008-11-29 21:10**
## experimental Colormap to make color definitions easy ##

Added a Colormap module that helps create and retrieve colors by human names
so we can define colors in widgets without reference to color_pairs.

frmincr200811292109.tgz
* * *
**2008-11-28 00:30**
## CheckBoxMenuItem ##

Implemented a checkbox menu item, works but i am not pleased, quite dirty.

Widgets are tied to a form, for ease of construction.
In the case of menus they are not, and menus print in a different manner.

Submenu should also have been a class, perhaps.

frmincr200811280026.tgz
* * *
**2008-11-27 20:11**
## ToggleButton ##

Now a togglebutton class that is extended by Radio and checkbox
Togglebutton is itself a toggleable button.

frmincr200811272010.tgz
* * *
**2008-11-27 18:54**
## extended radiobutton from checkbox ##

to reduce code.
Now i am thinkig both shuold extend one class. My ole Swing book gaves me a cool
name to call it. ToggleButton!

frmincr200811271853.tgz
* * *
**2008-11-27 12:13**
## menubar hotkey ##

Done handling of hotkey/mnemonic in menu
and closing of menubar when action complete

frmincr200811271212.tgz
* * *
**2008-11-27 00:24**
## Titles in all scrollable views. ##

Added titles and title attribs.

frmincr200811270023.tgz
* * *
**2008-11-26 23:32**
## horiz scrolling in TextView ##

Textview now can scroll horiz.
Ctrl-E and Ctrl-A behavior in cases of data exceeding width taken care of.

frmincr200811262331.tgz
* * *
**2008-11-26 22:26**
## TextView and other fixes ##

Introduced a TextView widget which just shows multiline text, scrollable.
Allows us to programmatically scroll the same.

Tested and fixed LEAVE and ENTER of widgets (had forgotten that!).

frmincr200811262224.tgz
* * *
**2008-11-26 11:49**
## field.show ##

1. implemented Field.show (password field in example will show *)

2. created a method getvalue_for_paint, so that getvalue returns actual value for field
or widget and no display stuff.

3. Button. surround_chars. change the sq brackets to soething else.

frmincr200811261147.tgz
* * *
**2008-11-25 23:58**
## selectable in ListBox ##

added a new module selectable copying from sqlpopup
however, this is a window and not a pad so its much more diffucult.

Due to field_enter and exit, the selected row shows affter 2 movements!

Clear selection not yet functioning here. But select/deselect/next sel and prev sel are working.

frmincr200811252356.tgz
* * *
**2008-11-22 23:20**
## RadioButton ##

Added another widget. took less than 2 mins: a radio button. Praps I should just extend CheckButton
rather than copy. Just a couple of lines changed.
Some bugs may have cropped up in Textarea after introduction of hard and soft returns.
Entry was happening one col before where cursor was appearing.

frmincr200811222319.tgz
* * *
**2008-11-22 21:50**
## CheckBox ##

Took me less than 5 mins to implement a CheckBox inheriting from button.

frmincr200811222149.tgz
* * *
**2008-11-22 19:43**
## textarea ##

moving up characters when deleting
soft and hard return so wrapping can be respected when deleting.

frmincr200811221943.tgz
* * *
**2008-11-22 16:47**
## textarea ##

incoming data wrap it.
But i do need to look at newlines and preserve. current logic loses them.

frmincr200811221647.tgz
* * *
**2008-11-22 01:41**
## textarea word wrap when pushing from behind ##

still needs ironing out. could be some issues in rare cases.

frmincr200811220140.tgz
* * *
**2008-11-22 00:45**
## textarea with wrapping #1 ##

wrapping as cursor exceeds border. however, not yet when we insert chars anddelete.

frmincr200811220044.tgz
* * *
**2008-11-21 23:42**
## textarea ##

more issues in movement sorted out when end of length.
Box showing correctly now.

frmincr200811212342.tgz
* * *
**2008-11-21 22:16**
## textarea with newlines ##

added in newlines, and we don't print them.
also when joining we remove.
be careful i dont put two.

frmincr200811212215.tgz
* * *
**2008-11-21 21:54**
## Textarea more work on joining and spliting rows ##

wip

frmincr200811212153.tgz
* * *
**2008-11-21 17:39**
## Textarea starting ##

Have a basic textarea working
Still very rough.

frmincr200811211738.tgz
* * *
**2008-11-21 01:38**
## Listbox ##

created a scrollable listbox as a widget and put in my form.
Also a scrollable module to include to get the functionality

frmincr200811210137.tgz
* * *
**2008-11-20 15:58**
## Variable ##

Added custom to MessageBox

Added class Variable and tested out with button and label.

frmincr200811201558.tgz
* * *
**2008-11-20 01:38**
## MessageBox ##

Have made a messagebox just like links
   - uses Button class.
   - Not using labels etc yet. Not required. Keeping it simple.
   

frmincr200811200137.tgz
* * *
**2008-11-19 19:59**
## Widget class as super ##

Created the widget class with DSL properties
Now all widgets extend it,
so common functionality as well as DSLish.

frmincr200811191958.tgz
* * *
**2008-11-19 01:07**
## FIELD navigation ##

a small hack and we can circle and it does not cause an overflow now.
But the focusables array was much neater and less risky.

frmincr200811190106.tgz
* * *
**2008-11-19 00:53**
## FIELD ##

I have reworked the logic of traversal to use a loop, no extra array and no
recursion.
Only issue is i cant circle around snce it goes into a stack overflow.
The extra array was simpler though.

frmincr200811190052.tgz
* * *
**2008-11-18 20:41**
## menubar working !!! ##

menubar working with submenus. destroys and passes contrl back to parent on LEFT
and goes to nezt on RIGHT.

frmincr200811182040.tgz
* * *
**2008-11-18 19:43**
## menubar wip printing menu on leave and enter ##

1. now submenu showing , onleave onenter okay.

2. only thingie left is the navigation

frmincr200811181942.tgz
* * *
**2008-11-18 19:05**
## menubar wip ##

Now submenu is created at tright time and destroyed onleave.

     1. to take care of priting of menu as a menuitem
     2. to pass control ofkeys into the new menu

frmincr200811181904.tgz
* * *
**2008-11-18 18:18**
## menubar wip ##

paint does not create.
wip
but still to look into submenu

frmincr200811181818.tgz
* * *
**2008-11-18 16:18**
## menubar wip ##

submenu paints itself since it s on enter
need to make some changes ...
fire -paint submenu

frmincr200811181617.tgz
* * *
**2008-11-18 03:04**
## submenu ##

it is displaying now, but firing immeidately.
also we will need to walk down it and select.

frmincr200811180303.tgz
* * *
**2008-11-18 00:40**
## menu bar actions etc fine ##

Barring ability to hav submenu's actions are working.

frmincr200811180040.tgz
* * *
**2008-11-17 18:51**
## menubar wip ##

its up but no actions yet.

frmincr200811171851.tgz
* * *
**2008-11-17 03:14**
## menu menubar menuitem interim work ##

interim work in progress
things are showing need alignment and polishing
actions to do

frmincr200811170313.tgz
* * *
**2008-11-16 22:09**
## changed key handling down to objects ##

so they can take and ignore what they want
earlier form was trying to be too intelligent.

frmincr200811162208.tgz
* * *
**2008-11-16 19:18**
## Field form and label ##

Tried to do more of method_missing and define_method to make it dsl-ish but failed.
Added datatype, chars_allowed and some bug-fixing.
Need to put exit_proc.
Now to try out a menubar.

frmincr200811161916.tgz
* * *
**2008-11-16 03:16**
## Button which inherits label ##

circular order of navigation
editing taking care of different types of fields

WAIT. What is label doing inside FORM Why ? it can remain on Window, no ?
We are complicating code by inclusing in form and widgets.

frmincr200811160315.tgz
* * *
**2008-11-16 01:17**
## form implemented buttons too ##

but i dont like the focusable part. need to redo

frmincr200811160117.tgz
* * *
**2008-11-15 13:06**
## changed in forms and fields as per TK ##

changing things a bit.

frmincr200811151306.tgz
* * *
**2008-11-15 02:33**
## rform ruby forms fields ##

I am writing a simpler form and field thingie.
I know thats awfully ambitious, but the sequence of ncurses sucks.

We need to be more dynamic.
I have made a displayable form. But need to trap some keys are kick some asss.

frmincr200811150232.tgz
* * *
**2008-11-14 18:48**
## reintroduction of datasource ##

testing sqlpopup wiht processes and data

frmincr200811141847.tgz
* * *
**2008-11-14 00:01**
## Fixes for smaller screens ##

A lot of hardcoding for large screens

     - changes in key labels
     - changes in data and col names
     - padrefresh
     - bug in pressing space
     - printing messages in centre, no more beeps please.
Now small screens can be requested.

frmincr200811140000.tgz
* * *
**2008-11-13 21:52**
## Cleanup , Refact and polishing output ##

1. cleaned up junk code

2. moved classes out. made key label printer into a class

3. common print modules

4. common db module

5. sizing of columns and formatting of titles

6. align of num fields

frmincr200811132151.tgz
* * *
**2008-11-13 10:46**
## highlighting ##

Using wchgat for highlighting pad instead of rewriting data
Also, therefore changed select functionality.

frmincr200811131045.tgz
* * *
**2008-11-13 01:15**
## key_labels ##

Worked on much better coded key_labels which don't require the poor hacky format the old one did
 Saner.
Also putting a message in -3 row and letting it go off. Its on the window. Goes off in next keystroke auto.

frmincr200811130112.tgz
* * *
**2008-11-12 19:31**
## flickering and key movement ##

       - reduced flickering by doing werase only when absolutely nec. but this could lead
         to some situations where clearing is not done. to keep checking.

       - some errors in key movement due to wrong @window value or space etc
         having incorrect checks. Need to keep checking.

frmincr200811121929.tgz
* * *
**2008-11-12 12:41**
## Regexp and symbols in mappings ##

In order that printables can be used had to add REGEXP in mapping.

Also added symbols

So now we can't search Hash normally, have to iterate. So ordered hash hadto beused.
Tried to move to arrays, but pendingkeys would have not been possible.
Symbols are not tested yet.

frmincr200811121239.tgz
* * *
**2008-11-12 00:39**
## sqlpopup and keymapper ##


We have a much simpler than VER keymapper. Code is small.
      - Uses keyboard.rb from VER project to give us ESC and meta/alt keys.
      - We use same syntax for configuring such as class.let :mode do etc.
      - Provided:
               - single keys combinations
               - a mode with its set of keys
               - dual keys such as C-x C-c or C-x p etc which do not change mode.

frmincr200811120036.tgz
* * *
**2008-11-11 23:40**
## sqlpopup our own modes and key ##

allows cx mode with its keys
but its looks okay for a mode
for a multiple key we would prefer to say : C-c C-x
and not create a separate context./mode.

frmincr200811112339.tgz
* * *
**2008-11-11 23:12**
## sqlpopup my version ##

trying to build a simpler version of sqlpopup
that i can understand. VER is pretty complex and the scope is not relevant to our
kind of app.

frmincr200811112311.tgz
* * *
**2008-11-10 12:25**
## sqlpopup ##

after some minor bugfixes in space bar, and better messages
now i will try to integrate keymap and keyboard.

frmincr200811101224.tgz
* * *
**2008-11-09 23:50**
## sqlpopup out own keymapper ##


Implemented a small quick dirty key method mapper. This will make transition to keyboard.rb
easier.

frmincr200811092349.tgz
* * *
**2008-11-09 19:37**
## sqlpopup ##

removed blank line and now selector on actual row 1.

put columns on windw however, this means col names always shpwing but wont scroll!!

frmincr200811091935.tgz
* * *
**2008-11-09 15:43**
## clearing selection ##

sqlpopup
also numbering of lines based on content.length

frmincr200811091542.tgz
* * *
**2008-11-09 13:05**
## sqlpopup ##

    - row selection and navigation.
    - search was no longer scrolling, fixed that so prow is always displayed.

frmincr200811091304.tgz
* * *
**2008-11-09 01:24**
## sqlview.rb ##

TABULAR sql view with much better scrolling like our old tabular thingie
scrolling like alpine
allows selection, we need to allow UNselect all, goto-selected etc.

frmincr200811090123.tgz
* * *
**2008-11-08 22:03**
## tabular view in pad ##

Used the pad program to give TABULAR View too.
SIMPLE view has column name and data per row.
ALTERNATING has name followed by data in next row.
TABULAR gives the entire result in one tabular form
TABULAR implements a search using "/" and ^N and ^P to go back/forth in search.

I need to make a selectable list which will return selectedrow, simple for use
as help in dataentry forms.

frmincr200811082201.tgz
* * *
**2008-11-08 13:17**
## sqlresultsetpadviewer ##

Using pads, made a scrollable viewer for sql result sets.
Has a goto record also.

To make tabular, with option of selecting.

frmincr200811081316.tgz
* * *
**2008-11-08 01:09**
## sqlview.rb ##

a program to view an sql resultset on screen.
allows going through mult rows, and paging if more columns than will come on a screen.

Not tested with really long data. Will data get cut off or cause errors or what.

frmincr200811080108.tgz
* * *
**2008-11-07 20:24**
## mandatory fields ##

     - checking at time of get_current_values_as_hash
     - display with asterisk if passed before form creation

frmincr200811072023.tgz
* * *
**2008-11-07 13:10**
## messages on execute and checks ##

insert/del/update messages

check on update/del whether select was done or not.

frmincr200811071309.tgz
* * *
**2008-11-07 01:42**
## on_exit and post_proc ##

These 2 are duplicating each other,
Got both to work though. samples in contractedit1101.rb

frmincr200811070141.tgz
* * *
**2008-11-06 22:48**
## rowid and crud options ##

Have checked out contractedit1101 with view, edit, delete etc options.
Made sure that only relvnt keys are visible and active

## ROWID ##
Now rowid can be switched on so edit and delete use that. Same for find all.

frmincr200811062246.tgz
* * *
**2008-11-05 23:49**
## create_view_one_application ##

the first of the easy to call applications for a table, tell him you only want to view one
contract. The user can only quit from there. No operations possible.

Similarly now to do the view_any, delete_one, edit_one etc combinations.

frmincr200811052348.tgz
* * *
**2008-11-03 00:18**
## conditional submenu and sql options ##

Using @sql_actions, one can specify which options should be shown to user
   - retrict only to select, or upd/del etc, or give him no options
   - have to take care of bind keys also in this situation.
   - can start the program with a keyfield supplied
     or with the values to display supplied.
See contractedit1101.rb.

frmincr200811030016.tgz
* * *
**2008-11-02 11:55**
## basiceditform.rb ##

functionality moved down from rbeditform to basicedit which should be instantiated
hightlighting and helpproc display moved
Now rbedit may either be extended and its handlers overridden,
or else you can set handlers (if composing).

frmincr200811021154.tgz
* * *
**2008-11-01 23:47**
## contractedit1101.rb ##

This conttains the contract edit with:
    - calls to create_default_application which takes care of windows etc
      So calling code is very few lines. Fully functional table realted CRUD screen.
    - ADded WHERE and ORDER BY in actions.
    - The search interface is still not clear. Using ^X-M for clearing screen and inserting.
      Can be confusing.

frmincr200811012345.tgz
* * *
**2008-10-31 14:48**
## Actions: CRUD and FIND-all ##

crud actions working
findall, first, last, next, previous.

frmincr200810311448.tgz
* * *
**2008-10-29 23:53**
## SingleTable ##

Have moved generic methods into a module which can be called or bound to keys.
generic update,delete,select, insert and create_fields.
Or maybe we can extend a class from rbedit. lets see.

frmincr200810292352.tgz
* * *
**2008-10-29 00:32**
## contractedit new_create_fields ##

this method uses the newly pimped FIELD object, hoping to make it MUCHO easier to create fields.
Still a lot more that can go in, validate against values.

frmincr200810290030.tgz
* * *
**2008-10-28 11:26**
## more fields ##

more touching.

frmincr200810281126.tgz
* * *
**2008-10-28 11:16**
## work on create_field ##

an easier create_field method
and many convenence methods for field settings and creation.
not tested.
changes are in rbform.rb

frmincr200810281115.tgz
* * *
**2008-10-28 00:13**
## contractedit.rb ##

a lot of generic stuff
does insert/update
    - generic field creation

frmincr200810280013.tgz
* * *
**2008-10-26 13:27**
## new folder structure ##

Finally used hoe
    - created new structure
    - called it rbcurse
    - updated requires
    - moved dsls to dsl and outputs to out. (older ones)
    - now i will create DSLS and OUTs in a totally different area so i don't
      clutter up the project.

frmincr200810261325.tgz
* * *
**2008-10-26 00:57**
## contractedit.rb ##

passing a values hash and displaying values
to pass an ID and have it select
to save data on screen

frmincr200810260057.tgz
* * *
**2008-10-25 23:08**
## query and table app rewrite ##

with yield
and some awful changes in main variable so that printing of header and footer can happen
header and footer win is driving me NUTS !!!!!

frmincr200810252307.tgz
* * *
**2008-10-25 10:37**
## update DSL to give edit app for emailer.rb ##

_skelform2.rb generates emailer.rb with the block.

frmincr200810251036.tgz
* * *
**2008-10-25 00:20**
## more touches ##

     - moved commons into EditApplication, removed from main
     - entire header, footer creation in Edit Application.
     - Is this causing more confusion, or reducing,
     - main and app point to EA.
     - perhaps emailer should not extend Application ?

frmincr200810250019.tgz
* * *
**2008-10-24 22:03**
## before yielding self ##

making a zip before yielding self in EditApplication.

frmincr200810242202.tgz
* * *
**2008-10-24 17:58**
## lambda and method from DSL ##

Did some crappy stuff so that you can use method or lambda from DSL.

frmincr200810241757.tgz
* * *
**2008-10-24 14:34**
## form and field handlers ##

Done some changes to handlers,
    
    - moved handle_unhandled_keys up to rbform
    - used method(:) while passing procs
    - trying to enforce usage of Proc or Method in handlers and not going to main
      or datasource to check for an existing name
      i.e. reduce coupling.
    - tested with emailer.rb

Am hoping to make sqlite etc based rbeditforms simpler to implement
by cutting out dataasource nad passing handlers in to the form.

frmincr200810241431.tgz
* * *
**2008-10-19 00:13**
## proc ##

bind and keys_handled has a proc too now

passing form to handlers not curritem and listselected from rbeditform.
to be done in tableapplication too.

frmincr200810190012.tgz
* * *
**2008-10-18 22:37**
## set_proc ##

one can set a proc for populating form and saving.
Some other cleaning up too.

frmincr200810182236.tgz
* * *
**2008-10-17 12:51**
## FIELD related factoring ##

A lot of stuff has gone into Field, valid, default, postproc
This happens on get_value, set_value and field_term.

frmincr200810171250.tgz
* * *
**2008-10-16 14:58**
## touching up ##

a few more touches so that DSL generates exactly like pines mailer.
Some form refreshing so that focus is on first field.
Also, clearing error at top of loop.

frmincr200810161457.tgz
* * *
**2008-10-15 15:07**
## cleanup ##

removed @window, its already there are form_win() !

frmincr200810151506.tgz
* * *
**2008-10-15 12:57**
## set_value and get_value in FIELD ##

Taking care of ML fields and chomp inside FIELD
Next change is to knock off @current.

frmincr200810151256.tgz
* * *
**2008-10-15 12:28**
## Changes to FIELD ##

set_value and get_value doing ML processing.
But not calling it yet.

frmincr200810151227.tgz
* * *
**2008-10-15 11:34**
## email multiline format ##

This was having to be called by the user in form_post_proc
Now before save, heightwill be checked.

Howevr, this should happen auto. Added get_value and set_value in FIELD. and maybe thats
where it shouldhappen.
But we have to use it, too. We are using @current.

frmincr200810151133.tgz
* * *
**2008-10-15 01:40**
## Edit DSL ##

Finally got the email program running from a DSL.
One job pending still ... update_current_values.
Some things could be generated at generate time, setup observers, rather
than at load time.

Still then need to start getting a proper datasource into place.

frmincr200810150138.tgz
* * *
**2008-10-14 14:29**
## C-c ##

1. Now getting c-y, c-z, c-s and c-q
2. We seem to have lost C-c
    The trap is eating it up totally.
    Finally i am trapping and doing an ungetch for which had to open the Ncurses class
    and fix.
3. Also allowing user to bind_key and use the REQ_ values
4. Fixed bugs so that keys_handled is called in rbeditform.

frmincr200810141427.tgz
* * *
**2008-10-13 20:44**
## Edit Emailer ##

More cleaning u and corrections in C-x method.

frmincr200810132044.tgz
* * *
**2008-10-13 18:50**
## highlighting field ##

Some cute coding, and we've got the current field label hightlighted.
Sadly Message Text shows that : after it ;-(. That's the default.

Now to get the silly keylabels functional.

frmincr200810131848.tgz
* * *
**2008-10-13 17:32**
## Edit screen ##

More refactoring on editapplication and rbeditforms.
Moved a lot iinto form. App should have less. Form should not keep calling into app.

Also this version has fields centered abd reverse video. I am now going the alpine way.

frmincr200810131731.tgz
* * *
**2008-10-13 12:57**
## gen4.rb EDIT FORM ##

I have the old gen2.rb redone into a datasource, rbeditform, editapplication.
Just about coming up!
Still many errors de to references from form to app.

Totally unclear here as to what the app is doing, and should it have all thefunctinolity
in it or not. Too much calling from form to app.

Its quite a mess and needs a major overhaul.

I also need to make changes so that rt_hashes and rt_fields dont have to be passed.

Application should only have what is required by the main app for setting up and cleaning ==
not all the stuff for regular work.

Form should contain all else.

frmincr200810131253.tgz
* * *
**2008-10-12 13:32**
## MENU ##

Updated menu.skel so it generates a class that inherits from menuApplication.
It generates a menu class.
It is working !

frmincr200810121331.tgz
* * *
**2008-10-12 00:29**
## running from menu ##

1. Got the menu program working after all the changes in base classes.

2. Got programs running from menu. Apparently, some panels were not being
   destroyed, so there was a BUS ERROR in update_panels.

3. There was a warning of BOTTOM_WIN_WIDTH already defined that was messing the screen
   and i could not see it clearly, so it bugged me a long time.

All's okay but the skel programs have to be updated. The menu DSL minp1 has to be rerun to see
if it gives correct output as per menu1.rb.
Basically, panels have to be returned with windows so they can be destroyed.

frmincr200810120025.tgz
* * *
**2008-10-10 20:48**
## padreader and panelreader ##

touched up both and maximized them.
worked on keys of padreader.
Called both from commons1. Seems okay.

frmincr200810102048.tgz
* * *
**2008-10-10 18:19**
## padreader.rb ##

Made a class out of it
Can view files using padreader using view_file(filename).
Have not put buttons, and headers like in panelreader yet.

frmincr200810101818.tgz
* * *

**2008-10-10 14:36**
## form specific key labels - wip ##

It is working but not standard
Need to simplify it.
qapp returns keylabels but does not support a keys_handled
tapp has keyhasharray but does not generate its labels.
we should junk app labels. that complicates things.

frmincr200810101433.tgz
* * *
**2008-10-10 11:58**
## tab and enter behaviour in query apps ##

Tab moves between fields in query form
Tab in table moves back to query form.
Enter in table runs query as b4, but now also moves focus to table

frmincr200810101157.tgz

**2008-10-09 22:23**

## HELP ##
Using __FILE__ in constructor of major programs to determine a name for file
to check for help when user presses ?
Application.rb checks for this.

* * *
**2008-10-09 19:14**

## panelreader ##
deleting panel in ensure otherwise previous screen wuld be scr00d.

## help ##
Added a generic application_key_handler in Application.rb which shows
page specific help. Currently, i have to work that out. Application should
define a page. It by default pops up TODO !

* * *
**2008-10-09 18:02**

More polishing on panelreader.rb
But cannot get the line numbers correct.
Also if I display line # on top, then cursor remains there.
If i put the print statemnet at beg of loop, the line number is wonky.
It is correct at end of loop, but then the cursor is stuck on top.

* * *
**2008-10-09 13:34**

panelreader and editor
so i can pop it up and view or edit content or a file

* * *
**2008-10-09 01:05**

## datasource class ##

  Made this more reusable. Lots of silly stuff changed.
  * now it has a constructor.
  * does not do any work other than init.
  * more reusable than earlier.

* * *
**2008-10-08 18:16**

## handling of cursor and selection in subseq queries ##

especially if:
  
  * fewer queries returned in second query
  * no queries returned in second query

  Now cursor will always be in row one after a fresh query when you tab.
  Can't tab in if no rows.

* * *
**2008-10-08 17:51**

## get_curr_index bug ##

this was returning one more (base 1) so some users were doing -1
Some methods were getting wrong curr_item like the handle_? methods.

User cannot tab into table if no data.

Issue of wrong header count if no rows also fixed.

* * *

**2008-10-08 14:48**

Moved stuff to Datasource class.
Also checked out more stuff from DSL
Added keys_handled to DLS and tested it.

* * *

**2008-10-07 22:40**

1. based on datatype, aligning fields in table
2. based on datatype, using = in search query for integer and real and smallint
Something went wrong with that request. Please try again.