rbcurse 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +33 -0
- data/README.markdown +7 -1
- data/TODO2.txt +21 -15
- data/VERSION +1 -1
- data/examples/abasiclist.rb +2 -2
- data/examples/alpmenu.rb +1 -1
- data/examples/app.rb +0 -1
- data/examples/appdirtree.rb +4 -2
- data/examples/appemail.rb +7 -3
- data/examples/appemaillb.rb +1 -1
- data/examples/appgcompose.rb +2 -2
- data/examples/appgmail.rb +1 -1
- data/examples/appmethods.rb +20 -2
- data/examples/atree.rb +9 -1
- data/examples/dbdemo.rb +460 -0
- data/examples/dirtree.rb +1 -1
- data/examples/menu1.rb +37 -5
- data/examples/multispl.rb +1 -1
- data/examples/rfe.rb +9 -2
- data/examples/splitp.rb +1 -1
- data/examples/sqlc.rb +6 -10
- data/examples/sqlm.rb +2 -20
- data/examples/sqlt.rb +408 -0
- data/examples/term2.rb +1 -1
- data/examples/test2.rb +169 -97
- data/examples/testapp.rb +1 -1
- data/examples/testapp2.rb +1 -1
- data/examples/testkeypress.rb +4 -2
- data/examples/testtable.rb +6 -0
- data/examples/testtpane.rb +35 -23
- data/examples/testvimsplit.rb +3 -2
- data/lib/rbcurse.rb +1 -1
- data/lib/rbcurse/action.rb +8 -0
- data/lib/rbcurse/app.rb +39 -23
- data/lib/rbcurse/extras/bottomline.rb +101 -13
- data/lib/rbcurse/extras/directorylist.rb +14 -5
- data/lib/rbcurse/extras/divider.rb +1 -1
- data/lib/rbcurse/extras/listselectable.rb +42 -8
- data/lib/rbcurse/extras/masterdetail.rb +2 -2
- data/lib/rbcurse/extras/scrollbar.rb +11 -2
- data/lib/rbcurse/extras/statusline.rb +56 -0
- data/lib/rbcurse/extras/stdscrwindow.rb +11 -0
- data/lib/rbcurse/extras/tabular.rb +2 -1
- data/lib/rbcurse/extras/tabularwidget.rb +60 -17
- data/lib/rbcurse/extras/viewer.rb +16 -4
- data/lib/rbcurse/keylabelprinter.rb +34 -4
- data/lib/rbcurse/listeditable.rb +5 -1
- data/lib/rbcurse/listkeys.rb +1 -1
- data/lib/rbcurse/listscrollable.rb +15 -8
- data/lib/rbcurse/rbasiclistbox.rb +44 -23
- data/lib/rbcurse/rcommandwindow.rb +8 -14
- data/lib/rbcurse/rdialogs.rb +187 -2
- data/lib/rbcurse/rlistbox.rb +38 -19
- data/lib/rbcurse/rmenu.rb +313 -93
- data/lib/rbcurse/rmessagebox.rb +3 -2
- data/lib/rbcurse/rmulticontainer.rb +5 -3
- data/lib/rbcurse/rmultisplit.rb +2 -11
- data/lib/rbcurse/rmultitextview.rb +4 -5
- data/lib/rbcurse/rtabbedpane.rb +223 -69
- data/lib/rbcurse/rtable.rb +6 -10
- data/lib/rbcurse/rtextarea.rb +57 -36
- data/lib/rbcurse/rtextview.rb +12 -15
- data/lib/rbcurse/rtree.rb +79 -22
- data/lib/rbcurse/rvimsplit.rb +16 -25
- data/lib/rbcurse/rwidget.rb +376 -523
- data/lib/rbcurse/tree/treecellrenderer.rb +24 -11
- data/lib/rbcurse/tree/treemodel.rb +1 -1
- data/lib/ver/window.rb +130 -66
- metadata +5 -3
- 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.
|
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-
|
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
|