rbhex-core 1.1.0.alpha3 → 1.1.0.alpha4

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 (75) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +1 -1
  3. data/examples/atree.rb +1 -1
  4. data/examples/common/file.rb +2 -2
  5. data/examples/dbdemo.rb +1 -1
  6. data/examples/newtabbedwindow.rb +1 -1
  7. data/examples/newtesttabp.rb +4 -4
  8. data/examples/testbuttons.rb +3 -3
  9. data/examples/testcombo.rb +2 -2
  10. data/examples/testfields.rb +3 -3
  11. data/examples/testkeypress.rb +4 -4
  12. data/examples/testlistbox.rb +5 -5
  13. data/examples/testmessagebox.rb +4 -4
  14. data/examples/testprogress.rb +1 -1
  15. data/examples/testree.rb +3 -3
  16. data/examples/testwsshortcuts.rb +2 -2
  17. data/examples/testwsshortcuts2.rb +3 -3
  18. data/lib/rbhex/core/include/action.rb +2 -2
  19. data/lib/rbhex/core/include/actionmanager.rb +1 -1
  20. data/lib/rbhex/core/include/appmethods.rb +4 -4
  21. data/lib/rbhex/core/include/bordertitle.rb +6 -6
  22. data/lib/rbhex/core/include/chunk.rb +1 -1
  23. data/lib/rbhex/core/include/io.rb +2 -2
  24. data/lib/rbhex/core/include/listbindings.rb +2 -2
  25. data/lib/rbhex/core/include/listcellrenderer.rb +3 -3
  26. data/lib/rbhex/core/include/listscrollable.rb +1 -1
  27. data/lib/rbhex/core/include/listselectable.rb +13 -13
  28. data/lib/rbhex/core/include/multibuffer.rb +5 -5
  29. data/lib/rbhex/core/include/ractionevent.rb +4 -4
  30. data/lib/rbhex/core/include/rchangeevent.rb +3 -3
  31. data/lib/rbhex/core/include/rhistory.rb +1 -1
  32. data/lib/rbhex/core/include/rinputdataevent.rb +6 -6
  33. data/lib/rbhex/core/include/vieditable.rb +1 -1
  34. data/lib/rbhex/core/include/widgetmenu.rb +1 -1
  35. data/lib/rbhex/core/system/colormap.rb +1 -1
  36. data/lib/rbhex/core/system/ncurses.rb +1 -1
  37. data/lib/rbhex/core/system/window.rb +1 -1
  38. data/lib/rbhex/core/util/ansiparser.rb +1 -1
  39. data/lib/rbhex/core/util/app.rb +7 -7
  40. data/lib/rbhex/core/util/basestack.rb +20 -20
  41. data/lib/rbhex/core/util/bottomline.rb +2 -2
  42. data/lib/rbhex/core/util/colorparser.rb +1 -1
  43. data/lib/rbhex/core/util/focusmanager.rb +1 -1
  44. data/lib/rbhex/core/util/padreader.rb +2 -2
  45. data/lib/rbhex/core/util/rcommandwindow.rb +2 -2
  46. data/lib/rbhex/core/util/rdialogs.rb +7 -7
  47. data/lib/rbhex/core/util/viewer.rb +5 -5
  48. data/lib/rbhex/core/util/widgetshortcuts.rb +3 -3
  49. data/lib/rbhex/core/version.rb +1 -1
  50. data/lib/rbhex/core/widgets/applicationheader.rb +2 -2
  51. data/lib/rbhex/core/widgets/box.rb +3 -3
  52. data/lib/rbhex/core/widgets/divider.rb +2 -2
  53. data/lib/rbhex/core/widgets/keylabelprinter.rb +2 -2
  54. data/lib/rbhex/core/widgets/rcombo.rb +5 -5
  55. data/lib/rbhex/core/widgets/rcontainer.rb +2 -2
  56. data/lib/rbhex/core/widgets/rlink.rb +1 -1
  57. data/lib/rbhex/core/widgets/rlist.rb +1 -1
  58. data/lib/rbhex/core/widgets/rmenu.rb +15 -15
  59. data/lib/rbhex/core/widgets/rmenulink.rb +1 -1
  60. data/lib/rbhex/core/widgets/rmessagebox.rb +6 -6
  61. data/lib/rbhex/core/widgets/rprogress.rb +2 -2
  62. data/lib/rbhex/core/widgets/rtabbedpane.rb +3 -3
  63. data/lib/rbhex/core/widgets/rtabbedwindow.rb +2 -2
  64. data/lib/rbhex/core/widgets/rtextarea.rb +2 -2
  65. data/lib/rbhex/core/widgets/rtextview.rb +3 -3
  66. data/lib/rbhex/core/widgets/rtree.rb +6 -6
  67. data/lib/rbhex/core/widgets/rwidget.rb +12 -12
  68. data/lib/rbhex/core/widgets/scrollbar.rb +2 -2
  69. data/lib/rbhex/core/widgets/statusline.rb +1 -1
  70. data/lib/rbhex/core/widgets/tabular.rb +32 -32
  71. data/lib/rbhex/core/widgets/tabularwidget.rb +3 -3
  72. data/lib/rbhex/core/widgets/textpad.rb +3 -3
  73. data/lib/rbhex/core/widgets/tree/treecellrenderer.rb +3 -3
  74. data/lib/rbhex/core/widgets/tree/treemodel.rb +3 -3
  75. metadata +11 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8249886c3aa7b09b2f82814c33d958c4f20a5fe
4
- data.tar.gz: 17d86a8d7df2a52ea6a5a56afb4b5fa741e44a32
3
+ metadata.gz: 8fb9b0f63825d41458840c2638790750b30e1970
4
+ data.tar.gz: f704e44634bd8b7ae07871514edbe34ab86c0ef3
5
5
  SHA512:
6
- metadata.gz: bef8ff648502591c11b0ec8a293cf01292e9c269e14c4ff79477aa4aeed0dc08abafcf432e49a9247125c84777a053ca82715d6e6c23f576b6ee52a1eb2f6b2d
7
- data.tar.gz: 9759629c4583b0d8a0b16a5c311946bbf635fa6b637a01bff6d85d5c469cf4814573ee163c35a009f6d24550d9dd9a5a0261d4abd4bdead8bf2e6e423b33c2a9
6
+ metadata.gz: 8a60685fd1600d79e00afc9e70115f170ebf25bdfba115cd2c12eeb6ff8a0fca2b1dde13cc40246eb2bba0ab10e42a4cb70b63f04b836f650dea74ad464ec767
7
+ data.tar.gz: 514890e0d39eea4c7dbc2b937429814ff8a736894b59e5fc9b2069df2d48e9ac490a71b29e7f4629f080c6afd7d67d6c818bca02cc0ed29232388e1681fd681e
data/CHANGELOG CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  **2013-04-01**
8
8
  ## 0.0.14 rbcurse-core
9
- * added module RubyCurses to various modules that were coming as top layer
9
+ * added module Rbhex to various modules that were coming as top layer
10
10
  Things could break !!!
11
11
  * minor fix in rlist list()
12
12
 
data/examples/atree.rb CHANGED
@@ -7,7 +7,7 @@ App.new do
7
7
 
8
8
  @form.bind_key(FFI::NCurses::KEY_F3) {
9
9
  require 'rbhex/core/util/viewer'
10
- RubyCurses::Viewer.view("rbc13.log", :close_key => KEY_ENTER, :title => "<Enter> to close")
10
+ Rbhex::Viewer.view("rbc13.log", :close_key => KEY_ENTER, :title => "<Enter> to close")
11
11
  }
12
12
 
13
13
  ww = FFI::NCurses.COLS-0
@@ -10,7 +10,7 @@
10
10
  #
11
11
 
12
12
  require 'rbhex/core/include/appmethods'
13
- module RubyCurses
13
+ module Rbhex
14
14
  def file_edit fp #=@current_list.filepath
15
15
  #$log.debug " edit #{fp}"
16
16
  editor = ENV['EDITOR'] || 'vi'
@@ -42,4 +42,4 @@ module RubyCurses
42
42
  end
43
43
 
44
44
  end # module
45
- include RubyCurses
45
+ include Rbhex
data/examples/dbdemo.rb CHANGED
@@ -494,7 +494,7 @@ App.new do
494
494
  #end
495
495
  end
496
496
  blank
497
- #tv = RubyCurses::ResultsetTextView.new @form, :row => 1, :col => 1, :width => 50, :height => 16
497
+ #tv = Rbhex::ResultsetTextView.new @form, :row => 1, :col => 1, :width => 50, :height => 16
498
498
  #tv = resultsettextview :name => 'resultset', :height => 18 , :title => 'DB Browser', :print_footer => true
499
499
 
500
500
  end
@@ -7,7 +7,7 @@ require 'rbhex/core/widgets/rcontainer'
7
7
  require 'rbhex/core/widgets/rcombo'
8
8
  require 'rbhex/core/widgets/rtabbedwindow'
9
9
 
10
- include RubyCurses
10
+ include Rbhex
11
11
  class SetupTabbedPane
12
12
  def run
13
13
  $config_hash ||= Variable.new Hash.new
@@ -17,7 +17,7 @@ class TestTabbedPane
17
17
  @window = VER::Window.root_window
18
18
  @form = Form.new @window
19
19
  r = 1; c = 30;
20
- tp = RubyCurses::TabbedPane.new @form, :height => 12, :width => 50,
20
+ tp = Rbhex::TabbedPane.new @form, :height => 12, :width => 50,
21
21
  :row => 13, :col => 10 do
22
22
  button_type :ok
23
23
  end
@@ -40,7 +40,7 @@ class TestTabbedPane
40
40
  butts = [ "Use &HTTP/1.0", "Use &frames", "&Use SSL" ]
41
41
  bcodes = %w[ HTTP, FRAMES, SSL ]
42
42
  butts.each_with_index do |t, i|
43
- item RubyCurses::CheckBox.new nil,
43
+ item Rbhex::CheckBox.new nil,
44
44
  :text => butts[i],
45
45
  :variable => $config_hash,
46
46
  :name => bcodes[i],
@@ -53,7 +53,7 @@ class TestTabbedPane
53
53
  bcodes = %w[ VIM EMACS JED OTHER]
54
54
  row = 2
55
55
  butts.each_with_index do |name, i|
56
- item RubyCurses::CheckBox.new nil ,
56
+ item Rbhex::CheckBox.new nil ,
57
57
  :text => name,
58
58
  :variable => $config_hash,
59
59
  :name => bcodes[i],
@@ -62,7 +62,7 @@ class TestTabbedPane
62
62
  end
63
63
  end
64
64
  help = "q to quit. <TAB> through tabs, Space or Enter to select Tab."
65
- RubyCurses::Label.new @form, {:text => help, :row => 1, :col => 2, :color => :yellow}
65
+ Rbhex::Label.new @form, {:text => help, :row => 1, :col => 2, :color => :yellow}
66
66
  @form.repaint
67
67
  @window.wrefresh
68
68
  Ncurses::Panel.update_panels
@@ -33,8 +33,8 @@ def help_text
33
33
  end
34
34
  if $0 == __FILE__
35
35
 
36
- include RubyCurses
37
- include RubyCurses::Utils
36
+ include Rbhex
37
+ include Rbhex::Utils
38
38
 
39
39
  begin
40
40
  # Initialize curses
@@ -65,7 +65,7 @@ if $0 == __FILE__
65
65
 
66
66
  $message = Variable.new
67
67
  $message.value = "Message Comes Here"
68
- message_label = RubyCurses::Label.new @form, {'text_variable' => $message,
68
+ message_label = Rbhex::Label.new @form, {'text_variable' => $message,
69
69
  "name"=>"message_label","row" => Ncurses.LINES-1, "col" => 1, "display_length" => 60,
70
70
  "height" => 2, 'color' => 'cyan'}
71
71
 
@@ -23,8 +23,8 @@ def help_text
23
23
  end
24
24
  if $0 == __FILE__
25
25
 
26
- include RubyCurses
27
- include RubyCurses::Utils
26
+ include Rbhex
27
+ include Rbhex::Utils
28
28
 
29
29
  begin
30
30
  # Initialize curses
@@ -40,8 +40,8 @@ def help_text
40
40
  end
41
41
  if $0 == __FILE__
42
42
 
43
- include RubyCurses
44
- include RubyCurses::Utils
43
+ include Rbhex
44
+ include Rbhex::Utils
45
45
 
46
46
  begin
47
47
  # Initialize curses
@@ -124,7 +124,7 @@ if $0 == __FILE__
124
124
 
125
125
  @form.bind_key(FFI::NCurses::KEY_F3,'view log') {
126
126
  require 'rbhex/core/util/viewer'
127
- RubyCurses::Viewer.view(path || "rbc13.log", :close_key => KEY_ENTER, :title => "<Enter> to close")
127
+ Rbhex::Viewer.view(path || "rbc13.log", :close_key => KEY_ENTER, :title => "<Enter> to close")
128
128
  }
129
129
  @form.bind_key(FFI::NCurses::KEY_F4, 'system command') { shell_output }
130
130
  @form.bind_key(FFI::NCurses::KEY_F5, 'shell') { suspend }
@@ -9,8 +9,8 @@ require 'logger'
9
9
  require 'rbhex/core'
10
10
  require 'rbhex/core/widgets/rtextview'
11
11
  if $0 == __FILE__
12
- include RubyCurses
13
- include RubyCurses::Utils
12
+ include Rbhex
13
+ include Rbhex::Utils
14
14
 
15
15
  begin
16
16
  # Initialize curses
@@ -43,8 +43,8 @@ if $0 == __FILE__
43
43
  end
44
44
  help = "q to quit. Check keys. F1..10, C-a..z, Alt a-zA-Z0-9, C-left,rt, Sh-F5..10 .: #{$0}"
45
45
  help1 = "Press in quick succession: 1) M-[, w and (2) M-[, M-w. (3) M-Sh-O, w."
46
- RubyCurses::Label.new @form, {'text' => help, "row" => 21, "col" => 2, "color" => "yellow"}
47
- RubyCurses::Label.new @form, {'text' => help1, "row" => 22, "col" => 2, "color" => "green"}
46
+ Rbhex::Label.new @form, {'text' => help, "row" => 21, "col" => 2, "color" => "yellow"}
47
+ Rbhex::Label.new @form, {'text' => help1, "row" => 22, "col" => 2, "color" => "green"}
48
48
 
49
49
  @form.repaint
50
50
  @window.wrefresh
@@ -19,7 +19,7 @@ require 'rbhex/core/widgets/rlist'
19
19
  require 'rbhex/core/widgets/rtextview'
20
20
  require 'rbhex/core/include/vieditable'
21
21
  #require 'rbhex/experimental/widgets/undomanager'
22
- class RubyCurses::List
22
+ class Rbhex::List
23
23
  # vieditable includes listeditable which
24
24
  # does bring in some functions which can crash program like x and X TODO
25
25
  # also, f overrides list f mapping. TODO
@@ -67,7 +67,7 @@ end
67
67
  eos
68
68
  end
69
69
  if $0 == __FILE__
70
- include RubyCurses
70
+ include Rbhex
71
71
 
72
72
  begin
73
73
  # Initialize curses
@@ -94,7 +94,7 @@ if $0 == __FILE__
94
94
  # this is the old style of using a label at the screen bottom, you can use the status_line
95
95
 
96
96
  v = "F10 quits. F1 Help. Try j k gg G o O C dd f<char> w yy p P / . Press ENTER on Class or Method"
97
- var = RubyCurses::Label.new @form, {'text' => v, "row" => FFI::NCurses.LINES-2,
97
+ var = Rbhex::Label.new @form, {'text' => v, "row" => FFI::NCurses.LINES-2,
98
98
  "col" => fc, "display_length" => 100}
99
99
 
100
100
  h = FFI::NCurses.LINES-3
@@ -129,12 +129,12 @@ if $0 == __FILE__
129
129
  #w.title = listb.text
130
130
  }
131
131
 
132
- tv = RubyCurses::TextView.new @form, :row => r, :col => w+1, :height => h, :width => FFI::NCurses.COLS-w-1,
132
+ tv = Rbhex::TextView.new @form, :row => r, :col => w+1, :height => h, :width => FFI::NCurses.COLS-w-1,
133
133
  :name => "tv", :title => "Press Enter on method"
134
134
  tv.set_content ["Press Enter on list to view ri information in this area.",
135
135
  "Press ENTER on method name to see details"]
136
136
  require 'rbhex/core/include/multibuffer'
137
- tv.extend(RubyCurses::MultiBuffers)
137
+ tv.extend(Rbhex::MultiBuffers)
138
138
 
139
139
  # pressing ENTER on a method name will popup details for that method
140
140
  tv.bind(:PRESS) { |ev|
@@ -44,7 +44,7 @@ if $0 == __FILE__
44
44
  n = @mb.widget(nn)
45
45
  $log.debug "XXXX: #{n.selected_indices}, #{n.name} "
46
46
  when 2
47
- @mb = RubyCurses::MessageBox.new do
47
+ @mb = Rbhex::MessageBox.new do
48
48
  title "Color selector"
49
49
  message "Select a color"
50
50
  #item Label.new :text => "Select a color", :row => 1 , :col => 2
@@ -63,7 +63,7 @@ if $0 == __FILE__
63
63
  index = @mb.run
64
64
  $log.debug "XXX: messagebox 2 ret #{index} "
65
65
  when 3
66
- @mb = RubyCurses::MessageBox.new do
66
+ @mb = Rbhex::MessageBox.new do
67
67
  title "Enter your name"
68
68
  #message "Enter your first name. You are not permitted to enter x z or q and must enter a capital first"
69
69
  message "Enter your first name. Initcaps "
@@ -79,7 +79,7 @@ if $0 == __FILE__
79
79
  add CheckBox.new :text => "Use &HTTP/1.0", :value => true
80
80
  add CheckBox.new :text => "Use &passive FTP"
81
81
  add Label.new :text => " Language ", :attr => REVERSE
82
- $radio = RubyCurses::Variable.new
82
+ $radio = Rbhex::Variable.new
83
83
  add RadioButton.new :text => "py&thon", :value => "python", :color => :blue, :variable => $radio
84
84
  add RadioButton.new :text => "rub&y", :color => :red, :variable => $radio
85
85
  button_type :ok
@@ -110,7 +110,7 @@ if $0 == __FILE__
110
110
  #l.insert( 0, *flist) if flist
111
111
  listb.list flist
112
112
  end
113
- mb = RubyCurses::MessageBox.new :height => 20, :width => 60 do
113
+ mb = Rbhex::MessageBox.new :height => 20, :width => 60 do
114
114
  title "Sample File Selector"
115
115
  add label
116
116
  add field
@@ -14,7 +14,7 @@ require 'rbhex/core'
14
14
  require 'rbhex/core/widgets/rprogress'
15
15
  if $0 == __FILE__
16
16
 
17
- #include RubyCurses
17
+ #include Rbhex
18
18
 
19
19
  begin
20
20
  # Initialize curses
data/examples/testree.rb CHANGED
@@ -68,7 +68,7 @@ class Tester
68
68
 
69
69
  #
70
70
  help = "C-q to quit. <ENTER> to expand nodes. j/k to navigate. Pass command-line argument 1,2,3,4 #{$0} "
71
- RubyCurses::Label.new @form, {:text => help, :row => 1, :col => 2, :color => :cyan}
71
+ Rbhex::Label.new @form, {:text => help, :row => 1, :col => 2, :color => :cyan}
72
72
  @form.repaint
73
73
  @window.wrefresh
74
74
  Ncurses::Panel.update_panels
@@ -85,8 +85,8 @@ class Tester
85
85
 
86
86
  end
87
87
  end
88
- include RubyCurses
89
- include RubyCurses::Utils
88
+ include Rbhex
89
+ include Rbhex::Utils
90
90
  # Initialize curses
91
91
  begin
92
92
  # XXX update with new color and kb
@@ -3,10 +3,10 @@
3
3
  require 'rbhex/core'
4
4
  require 'rbhex/core/util/widgetshortcuts'
5
5
 
6
- include RubyCurses
6
+ include Rbhex
7
7
 
8
8
  class SetupMessagebox
9
- include RubyCurses::WidgetShortcuts
9
+ include Rbhex::WidgetShortcuts
10
10
  def initialize config={}, &block
11
11
  @window = VER::Window.root_window
12
12
  @form = Form.new @window
@@ -3,11 +3,11 @@
3
3
  require 'rbhex/core'
4
4
  require 'rbhex/core/util/widgetshortcuts'
5
5
 
6
- include RubyCurses
7
- include RubyCurses::Utils
6
+ include Rbhex
7
+ include Rbhex::Utils
8
8
 
9
9
  class SetupMessagebox
10
- include RubyCurses::WidgetShortcuts
10
+ include Rbhex::WidgetShortcuts
11
11
  def initialize config={}, &block
12
12
  @window = VER::Window.root_window
13
13
  @form = Form.new @window
@@ -16,8 +16,8 @@
16
16
  # ----------------------------------------------------------------------------- #
17
17
  #
18
18
  require 'rbhex/core/widgets/rwidget'
19
- include RubyCurses
20
- module RubyCurses
19
+ include Rbhex
20
+ module Rbhex
21
21
  ## encapsulates behaviour allowing centralization
22
22
  # == Example
23
23
  # a = Action.new("&New Row") { commands }
@@ -9,7 +9,7 @@
9
9
  # ----------------------------------------------------------------------------- #
10
10
  #
11
11
  # Maintains actions for a widget
12
- module RubyCurses
12
+ module Rbhex
13
13
  class ActionManager
14
14
  include Io
15
15
  attr_reader :actions
@@ -1,4 +1,4 @@
1
- module RubyCurses
1
+ module Rbhex
2
2
  module Utils
3
3
  private
4
4
  def _suspend clear=true
@@ -65,7 +65,7 @@ module RubyCurses
65
65
  w = arr.max_by(&:length).length
66
66
 
67
67
  require 'rbhex/core/util/viewer'
68
- RubyCurses::Viewer.view(arr, :layout => [2, 10, [4+arr.size, 24].min, w+2],:close_key => KEY_ENTER, :title => "<Enter> to close", :print_footer => true) do |t|
68
+ Rbhex::Viewer.view(arr, :layout => [2, 10, [4+arr.size, 24].min, w+2],:close_key => KEY_ENTER, :title => "<Enter> to close", :print_footer => true) do |t|
69
69
  # you may configure textview further here.
70
70
  #t.suppress_borders true
71
71
  #t.color = :black
@@ -103,7 +103,7 @@ module RubyCurses
103
103
  res << ex.backtrace.join("\n")
104
104
  end
105
105
  res.gsub!("\t"," ")
106
- RubyCurses::Viewer.view(res.split("\n"), :close_key => KEY_ENTER, :title => "<Enter> to close, M-l M-h to scroll")
106
+ Rbhex::Viewer.view(res.split("\n"), :close_key => KEY_ENTER, :title => "<Enter> to close, M-l M-h to scroll")
107
107
  end
108
108
  def shell_out command
109
109
  w = @window || @form.window
@@ -211,4 +211,4 @@ module RubyCurses
211
211
  alias :key :define_key
212
212
  end
213
213
  end # module RubyC
214
- include RubyCurses::Utils
214
+ include Rbhex::Utils
@@ -1,6 +1,6 @@
1
- # I am moving the common title and border printing stuff into
1
+ # I am moving the common title and border printing stuff into
2
2
  # a separate module.
3
- module RubyCurses
3
+ module Rbhex
4
4
  module BorderTitle
5
5
  dsl_accessor :suppress_borders #to_print_borders
6
6
  dsl_accessor :border_attrib, :border_color
@@ -9,7 +9,7 @@ module RubyCurses
9
9
 
10
10
  def bordertitle_init
11
11
  @_bordertitle_init_called = true
12
- @row_offset = @col_offset = 0 if @suppress_borders
12
+ @row_offset = @col_offset = 0 if @suppress_borders
13
13
  @internal_width = 1 if @suppress_borders # the other programs have zero not 1 NOTE
14
14
  end
15
15
  # why the dash does it reduce height by one.
@@ -21,8 +21,8 @@ module RubyCurses
21
21
  width = @width
22
22
  height = @height-1
23
23
  window = @graphic
24
- startcol = @col
25
- startrow = @row
24
+ startcol = @col
25
+ startrow = @row
26
26
  @color_pair = get_color($datacolor)
27
27
  bordercolor = @border_color || @color_pair
28
28
  borderatt = @border_attrib || Ncurses::A_NORMAL
@@ -33,7 +33,7 @@ module RubyCurses
33
33
  bordertitle_init unless @_bordertitle_init_called
34
34
  return unless @title
35
35
  raise "#{self} needs width" unless @width
36
- @color_pair ||= get_color($datacolor) # should we not use this ??? XXX
36
+ @color_pair ||= get_color($datacolor) # should we not use this ??? XXX
37
37
  #$log.debug " print_title #{@row}, #{@col}, #{@width} "
38
38
  # check title.length and truncate if exceeds width
39
39
  _title = @title
@@ -8,7 +8,7 @@
8
8
  # ------------------------------------------------------------ #
9
9
  #
10
10
 
11
- module RubyCurses
11
+ module Rbhex
12
12
  module Chunks
13
13
  extend self
14
14
  class Chunk
@@ -10,7 +10,7 @@
10
10
  # Changes:
11
11
  # 2011-12-6 : removed many old, outdated methods.
12
12
  #*******************************************************#
13
- module RubyCurses
13
+ module Rbhex
14
14
  module Io
15
15
 
16
16
  # create a 2 line window at bottom to accept user input
@@ -357,7 +357,7 @@ module RubyCurses
357
357
  # and actual proc from the caller using this code.
358
358
  def menu_tree mt, pm = self
359
359
  mt.each_pair { |ch, code|
360
- if code.is_a? RubyCurses::MenuTree
360
+ if code.is_a? Rbhex::MenuTree
361
361
  item = pm.add(ch, code.value, "")
362
362
  current = PromptMenu.new @caller, code.value
363
363
  item.action = current
@@ -7,7 +7,7 @@
7
7
  # Last update: 2013-03-25 01:53
8
8
  # ----------------------------------------------------------------------------- #
9
9
  #
10
- module RubyCurses
10
+ module Rbhex
11
11
  #
12
12
  # bindings for multi-row widgets such as listbox, table, textview
13
13
  #
@@ -71,4 +71,4 @@ module RubyCurses
71
71
  end # def
72
72
  end
73
73
  end
74
- include RubyCurses::ListBindings
74
+ include Rbhex::ListBindings