rbcurse 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/CHANGELOG +33 -0
  2. data/README.markdown +7 -1
  3. data/TODO2.txt +21 -15
  4. data/VERSION +1 -1
  5. data/examples/abasiclist.rb +2 -2
  6. data/examples/alpmenu.rb +1 -1
  7. data/examples/app.rb +0 -1
  8. data/examples/appdirtree.rb +4 -2
  9. data/examples/appemail.rb +7 -3
  10. data/examples/appemaillb.rb +1 -1
  11. data/examples/appgcompose.rb +2 -2
  12. data/examples/appgmail.rb +1 -1
  13. data/examples/appmethods.rb +20 -2
  14. data/examples/atree.rb +9 -1
  15. data/examples/dbdemo.rb +460 -0
  16. data/examples/dirtree.rb +1 -1
  17. data/examples/menu1.rb +37 -5
  18. data/examples/multispl.rb +1 -1
  19. data/examples/rfe.rb +9 -2
  20. data/examples/splitp.rb +1 -1
  21. data/examples/sqlc.rb +6 -10
  22. data/examples/sqlm.rb +2 -20
  23. data/examples/sqlt.rb +408 -0
  24. data/examples/term2.rb +1 -1
  25. data/examples/test2.rb +169 -97
  26. data/examples/testapp.rb +1 -1
  27. data/examples/testapp2.rb +1 -1
  28. data/examples/testkeypress.rb +4 -2
  29. data/examples/testtable.rb +6 -0
  30. data/examples/testtpane.rb +35 -23
  31. data/examples/testvimsplit.rb +3 -2
  32. data/lib/rbcurse.rb +1 -1
  33. data/lib/rbcurse/action.rb +8 -0
  34. data/lib/rbcurse/app.rb +39 -23
  35. data/lib/rbcurse/extras/bottomline.rb +101 -13
  36. data/lib/rbcurse/extras/directorylist.rb +14 -5
  37. data/lib/rbcurse/extras/divider.rb +1 -1
  38. data/lib/rbcurse/extras/listselectable.rb +42 -8
  39. data/lib/rbcurse/extras/masterdetail.rb +2 -2
  40. data/lib/rbcurse/extras/scrollbar.rb +11 -2
  41. data/lib/rbcurse/extras/statusline.rb +56 -0
  42. data/lib/rbcurse/extras/stdscrwindow.rb +11 -0
  43. data/lib/rbcurse/extras/tabular.rb +2 -1
  44. data/lib/rbcurse/extras/tabularwidget.rb +60 -17
  45. data/lib/rbcurse/extras/viewer.rb +16 -4
  46. data/lib/rbcurse/keylabelprinter.rb +34 -4
  47. data/lib/rbcurse/listeditable.rb +5 -1
  48. data/lib/rbcurse/listkeys.rb +1 -1
  49. data/lib/rbcurse/listscrollable.rb +15 -8
  50. data/lib/rbcurse/rbasiclistbox.rb +44 -23
  51. data/lib/rbcurse/rcommandwindow.rb +8 -14
  52. data/lib/rbcurse/rdialogs.rb +187 -2
  53. data/lib/rbcurse/rlistbox.rb +38 -19
  54. data/lib/rbcurse/rmenu.rb +313 -93
  55. data/lib/rbcurse/rmessagebox.rb +3 -2
  56. data/lib/rbcurse/rmulticontainer.rb +5 -3
  57. data/lib/rbcurse/rmultisplit.rb +2 -11
  58. data/lib/rbcurse/rmultitextview.rb +4 -5
  59. data/lib/rbcurse/rtabbedpane.rb +223 -69
  60. data/lib/rbcurse/rtable.rb +6 -10
  61. data/lib/rbcurse/rtextarea.rb +57 -36
  62. data/lib/rbcurse/rtextview.rb +12 -15
  63. data/lib/rbcurse/rtree.rb +79 -22
  64. data/lib/rbcurse/rvimsplit.rb +16 -25
  65. data/lib/rbcurse/rwidget.rb +376 -523
  66. data/lib/rbcurse/tree/treecellrenderer.rb +24 -11
  67. data/lib/rbcurse/tree/treemodel.rb +1 -1
  68. data/lib/ver/window.rb +130 -66
  69. metadata +5 -3
  70. data/examples/term.rb +0 -48
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rbcurse
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.3.0
5
+ version: 1.4.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rahul Kumar
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-09-28 00:00:00 Z
13
+ date: 2011-10-11 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ffi-ncurses
@@ -55,6 +55,7 @@ files:
55
55
  - examples/appmethods.rb
56
56
  - examples/atree.rb
57
57
  - examples/data.txt
58
+ - examples/dbdemo.rb
58
59
  - examples/dirtree.rb
59
60
  - examples/menu1.rb
60
61
  - examples/multispl.rb
@@ -66,9 +67,9 @@ files:
66
67
  - examples/splitp.rb
67
68
  - examples/sqlc.rb
68
69
  - examples/sqlm.rb
70
+ - examples/sqlt.rb
69
71
  - examples/status.txt
70
72
  - examples/table1.rb
71
- - examples/term.rb
72
73
  - examples/term2.rb
73
74
  - examples/test1.rb
74
75
  - examples/test2.rb
@@ -127,6 +128,7 @@ files:
127
128
  - lib/rbcurse/extras/rlink.rb
128
129
  - lib/rbcurse/extras/rmenulink.rb
129
130
  - lib/rbcurse/extras/scrollbar.rb
131
+ - lib/rbcurse/extras/statusline.rb
130
132
  - lib/rbcurse/extras/stdscrwindow.rb
131
133
  - lib/rbcurse/extras/tableextended.rb
132
134
  - lib/rbcurse/extras/tabular.rb
data/examples/term.rb DELETED
@@ -1,48 +0,0 @@
1
- require 'rbcurse/app'
2
- require 'terminal-table/import'
3
-
4
- App.new do
5
- header = app_header "rbcurse 1.2.0", :text_center => "**** Demo", :text_right =>"New Improved!", :color => :black, :bgcolor => :white, :attr => :bold
6
- message "Press F1 to escape from here"
7
-
8
- stack :margin_top => 2, :margin => 5, :width => 30 do
9
- t = Terminal::Table.table(['a', 'b'], [1, 2], [3, 4])
10
- $log.debug "YYY table #{t.class} "
11
- list_box :list => t.render2
12
- t = Terminal::Table.table ['a', 'b']
13
- t << [1, 2]
14
- t << [3, 4]
15
- t << :separator
16
- t << [4, 6]
17
- #list_box :list => t.to_s.split("\n")
18
- list_box :list => t.render2
19
- end # stack
20
- t = Terminal::Table.table do |t|
21
- t.headings = 'First Name', 'Last Name', 'Email'
22
- t << %w( TJ Holowaychuk tj@vision-media.ca )
23
- t << %w( Bob Someone bob@vision-media.ca )
24
- t << %w( Joe Whatever bob@vision-media.ca )
25
- end
26
- #t = t.to_s.split(/[|+]\n/)
27
- t = t.render2
28
- wid = t[0].length + 2
29
- stack :margin_top => 2, :margin => 35, :width => wid do
30
- list_box :list => t
31
- t = Terminal::Table.table do
32
- self.headings = 'First Name', 'Last Name', 'Email'
33
- add_row ['TJ', 'Holowaychuk', 'tj@vision-media.ca']
34
- add_row ['Bob', 'Someone', 'bob@vision-media.ca']
35
- add_row ['Joe', 'Whatever', 'joe@vision-media.ca']
36
- add_separator
37
- add_row ['Total', { :value => '3', :colspan => 2, :alignment => :right }]
38
- align_column 1, :center
39
- end
40
- #lb = list_box :list => t.render2
41
- lb = textview :set_content => t.render2, :height => 10
42
- lb.bind(:PRESS){|tae|
43
- alert "Pressed list on #{tae.word_under_cursor(nil, nil, "|")} "
44
- }
45
- # make a textview that is vienabled by default.
46
- end
47
-
48
- end # app