arcadia 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. data/README +69 -77
  2. data/arcadia.rb +1097 -770
  3. data/base/a-commons.rb +480 -0
  4. data/base/a-contracts.rb +207 -322
  5. data/base/{a-utils.rb → a-tkcommons.rb} +933 -993
  6. data/conf/arcadia.conf +130 -203
  7. data/conf/arcadia.res.rb +1332 -1325
  8. data/ext/ae-action-dispatcher/ae-action-dispatcher.conf +6 -0
  9. data/ext/ae-action-dispatcher/ae-action-dispatcher.rb +22 -0
  10. data/ext/ae-complete-code/ae-complete-code.conf +2 -2
  11. data/ext/ae-complete-code/ae-complete-code.rb +82 -80
  12. data/ext/ae-doc-code/ae-doc-code.conf +2 -2
  13. data/ext/ae-doc-code/ae-doc-code.rb +114 -111
  14. data/ext/ae-editor/ae-editor.conf +110 -105
  15. data/ext/ae-editor/ae-editor.rb +2501 -2287
  16. data/ext/ae-editor/langs/conf.lang +15 -0
  17. data/ext/ae-editor/langs/lang.lang.bind +1 -0
  18. data/ext/ae-editor/langs/rb.lang +67 -0
  19. data/ext/ae-editor/langs/rbw.lang.bind +1 -0
  20. data/ext/ae-event-log/ae-event-log.rb +45 -52
  21. data/ext/ae-file-history/ae-file-history.conf +4 -4
  22. data/ext/ae-file-history/ae-file-history.rb +298 -286
  23. data/ext/ae-flag/ae-flag.conf +6 -6
  24. data/ext/ae-flag/ae-flag.rb +12 -12
  25. data/ext/ae-inspector/ae-inspector.conf +3 -3
  26. data/ext/ae-inspector/ae-inspector.rb +2 -2
  27. data/ext/ae-output-event/ae-output-event.conf +15 -15
  28. data/ext/ae-output/ae-output.conf +5 -3
  29. data/ext/ae-output/ae-output.rb +62 -33
  30. data/ext/ae-palette/ae-palette.conf +3 -3
  31. data/ext/ae-palette/ae-palette.rb +265 -306
  32. data/ext/ae-rad/ae-rad-inspector.rb +1534 -0
  33. data/{base/a-libs.rb → ext/ae-rad/ae-rad-libs.rb} +1118 -846
  34. data/ext/ae-rad/ae-rad-palette.rb +273 -0
  35. data/ext/ae-rad/ae-rad.conf +71 -0
  36. data/ext/ae-rad/ae-rad.rb +56 -0
  37. data/{lib → ext/ae-rad/lib}/tk/al-tk.rb +21 -110
  38. data/{lib → ext/ae-rad/lib}/tk/al-tk.res.rb +0 -0
  39. data/{lib → ext/ae-rad/lib}/tk/al-tkarcadia.rb +26 -26
  40. data/{lib → ext/ae-rad/lib}/tk/al-tkcustom.rb +70 -70
  41. data/{lib → ext/ae-rad/lib}/tkext/al-bwidget.rb +194 -194
  42. data/{lib → ext/ae-rad/lib}/tkext/al-iwidgets.rb +25 -25
  43. data/{lib → ext/ae-rad/lib}/tkext/al-tile.rb +173 -173
  44. data/{lib → ext/ae-rad/lib}/tkext/al-tktable.rb +0 -0
  45. data/ext/ae-ruby-debug/ae-ruby-debug.conf +7 -4
  46. data/ext/ae-ruby-debug/ae-ruby-debug.rb +278 -142
  47. data/ext/ae-search-in-files/ae-search-in-files.conf +15 -0
  48. data/ext/ae-search-in-files/ae-search-in-files.rb +284 -0
  49. data/ext/ae-shell/ae-shell.rb +88 -8
  50. data/ext/ae-shell/sh.rb +7 -0
  51. metadata +93 -79
  52. data/base/a-contracts-work.rb +0 -219
  53. data/base/a-ext.rb +0 -280
  54. data/ext/ae-debug/ae-debug.conf +0 -7
  55. data/ext/ae-debug/ae-debug.rb +0 -601
  56. data/ext/ae-debug/debug1.57.rb +0 -998
File without changes
@@ -1,26 +1,26 @@
1
- #
2
- # al-tkarcadia.rb - Arcadia Ruby ide
3
- # by Antonio Galeone <antonio-galeone@rubyforge.org>
4
- #
5
-
6
- require 'lib/tk/al-tk'
7
- require 'base/a-utils'
8
-
9
- class WAGTkVSplittedFrames < AGTkFrame
10
- def WAGTkVSplittedFrames.class_wrapped
11
- AGTkVSplittedFrames
12
- end
13
- def new_object
14
- @obj = AGTkVSplittedFrames.new(@ag_parent.obj)
15
- end
16
-
17
- def properties
18
- super()
19
- end
20
- end
21
-
22
- class ArcadiaLibArcadiaTk < ArcadiaLib
23
- def register_classes
24
- self.add_class(WAGTkVSplittedFrames)
25
- end
26
- end
1
+ #
2
+ # al-tkarcadia.rb - Arcadia Ruby ide
3
+ # by Antonio Galeone <antonio-galeone@rubyforge.org>
4
+ #
5
+
6
+ require 'ext/ae-rad/lib/tk/al-tk'
7
+ require 'base/a-tkcommons'
8
+
9
+ class WAGTkVSplittedFrames < AGTkFrame
10
+ def WAGTkVSplittedFrames.class_wrapped
11
+ AGTkVSplittedFrames
12
+ end
13
+ def new_object
14
+ @obj = AGTkVSplittedFrames.new(@ag_parent.obj)
15
+ end
16
+
17
+ def properties
18
+ super()
19
+ end
20
+ end
21
+
22
+ class ArcadiaLibArcadiaTk < ArcadiaLib
23
+ def register_classes
24
+ self.add_class(WAGTkVSplittedFrames)
25
+ end
26
+ end
@@ -1,70 +1,70 @@
1
- #
2
- # al-tkcustom.rb - Arcadia Ruby ide
3
- # by Antonio Galeone <antonio-galeone@rubyforge.org>
4
- #
5
-
6
- require 'lib/tk/al-tk'
7
-
8
- class TkLabelWatch < TkLabel
9
- def show(_format="%I:%M:%S %p")
10
- t = Time.now
11
- configure('text'=>t.strftime(_format))
12
- end
13
-
14
- def start
15
- @active = true
16
- @t_clock = Thread.new {
17
- loop {
18
- show
19
- sleep 1
20
- }
21
- }
22
- end
23
- def stop
24
- @active = false
25
- @t_clock.exit if defined? @t_clock
26
- end
27
- def active?
28
- @active
29
- end
30
- end
31
-
32
- class AGTkLabelWatch < AGTkLabel
33
- def AGTkLabelWatch.class_wrapped
34
- TkLabelWatch
35
- end
36
-
37
- def new_object
38
- @obj = TkLabelWatch.new(@ag_parent.obj)
39
- @obj.show
40
- end
41
-
42
- def properties
43
- super()
44
- mod_publish('property','name'=>'text','default'=> nil)
45
- publish('property','name'=>'active',
46
- 'get'=> proc{ @obj.active? },
47
- 'set'=> proc{|_val|
48
- if _val
49
- @obj.start
50
- else
51
- @obj.stop
52
- end
53
- },
54
- 'def'=> proc{|value|
55
- if value
56
- return "start"
57
- else
58
- return ""
59
- end
60
- },
61
- 'type'=> TkType::TkagBool
62
- )
63
- end
64
- end
65
-
66
- class ArcadiaLibTkCustom < ArcadiaLib
67
- def register_classes
68
- self.add_class(AGTkLabelWatch)
69
- end
70
- end
1
+ #
2
+ # al-tkcustom.rb - Arcadia Ruby ide
3
+ # by Antonio Galeone <antonio-galeone@rubyforge.org>
4
+ #
5
+
6
+ require 'ext/ae-rad/lib/tk/al-tk'
7
+
8
+ class TkLabelWatch < TkLabel
9
+ def show(_format="%I:%M:%S %p")
10
+ t = Time.now
11
+ configure('text'=>t.strftime(_format))
12
+ end
13
+
14
+ def start
15
+ @active = true
16
+ @t_clock = Thread.new {
17
+ loop {
18
+ show
19
+ sleep 1
20
+ }
21
+ }
22
+ end
23
+ def stop
24
+ @active = false
25
+ @t_clock.exit if defined? @t_clock
26
+ end
27
+ def active?
28
+ @active
29
+ end
30
+ end
31
+
32
+ class AGTkLabelWatch < AGTkLabel
33
+ def AGTkLabelWatch.class_wrapped
34
+ TkLabelWatch
35
+ end
36
+
37
+ def new_object
38
+ @obj = TkLabelWatch.new(@ag_parent.obj)
39
+ @obj.show
40
+ end
41
+
42
+ def properties
43
+ super()
44
+ mod_publish('property','name'=>'text','default'=> nil)
45
+ publish('property','name'=>'active',
46
+ 'get'=> proc{ @obj.active? },
47
+ 'set'=> proc{|_val|
48
+ if _val
49
+ @obj.start
50
+ else
51
+ @obj.stop
52
+ end
53
+ },
54
+ 'def'=> proc{|value|
55
+ if value
56
+ return "start"
57
+ else
58
+ return ""
59
+ end
60
+ },
61
+ 'type'=> TkType::TkagBool
62
+ )
63
+ end
64
+ end
65
+
66
+ class ArcadiaLibTkCustom < ArcadiaLib
67
+ def register_classes
68
+ self.add_class(AGTkLabelWatch)
69
+ end
70
+ end
@@ -1,194 +1,194 @@
1
- #
2
- # al-bwidget.rb - Arcadia Ruby ide
3
- # by Antonio Galeone <antonio-galeone@rubyforge.org>
4
- #
5
-
6
- require 'lib/tk/al-tk'
7
- require 'tkextlib/bwidget'
8
- require "base/a-libs"
9
-
10
- class AGBWidgetMainFrame < AGTkContainer
11
-
12
- def AGBWidgetMainFrame.class_wrapped
13
- Tk::BWidget::MainFrame
14
- end
15
-
16
- def properties
17
- super()
18
- # publish_del('property','visual')
19
- # publish_del('property','container')
20
- # publish_del('property','class')
21
- publish_del('property','cursor')
22
- end
23
-
24
- end
25
-
26
- class AGBWidgetComboBox < AGTkBase
27
-
28
- def initialize(_ag_parent = nil, _object = nil)
29
- super(_ag_parent, _object)
30
- ppress = proc{@l_manager.deactivate;@obj.callback_break}
31
- prelease = proc{@l_manager.activate;@obj.callback_break}
32
- @obj.e.bind("ButtonPress-1", proc{|e|
33
- @l_manager.place_manager.do_press_obj(e.x, e.y)
34
- @obj.callback_break
35
- }
36
- )
37
- @obj.e.bind_append("ButtonPress-1", ppress)
38
- @obj.e.bind("ButtonRelease-1", prelease)
39
- @obj.e.bind("B1-Motion", proc{|x, y| @l_manager.place_manager.do_mov_obj(x,y); @obj.callback_break},"%x %y")
40
- end
41
-
42
- def AGBWidgetComboBox.class_wrapped
43
- Tk::BWidget::ComboBox
44
- end
45
-
46
- def new_object
47
- super
48
- initobj
49
- end
50
-
51
- def initobj
52
- def @obj.e
53
- TkWinfo.children(self)[0]
54
- end
55
-
56
- def @obj.b
57
- TkWinfo.children(self)[1]
58
- end
59
-
60
- end
61
-
62
- def passedobject(_obj)
63
- super
64
- initobj
65
- end
66
-
67
- def properties
68
- super()
69
-
70
- publish_mod('place','name'=>'width',
71
- 'get'=> proc{if TkWinfo.mapped?(@obj)
72
- TkWinfo.width(@obj.e)+ TkWinfo.width(@obj.b)
73
- else
74
- TkWinfo.reqwidth(@obj.e)+ TkWinfo.reqwidth(@obj.b)
75
- end
76
- }
77
- )
78
-
79
- publish_mod('place','name'=>'height',
80
- 'get'=> proc{ if TkWinfo.mapped?(@obj)
81
- TkWinfo.height(@obj)
82
- else
83
- TkWinfo.reqheight(@obj.b)
84
- end
85
- }
86
- )
87
-
88
- publish('property','name'=>'entry-background',
89
- 'get'=> proc{@obj.e.cget('background')},
90
- 'set'=> proc{|background| @obj.e.configure('background'=>background)},
91
- 'def'=> proc{|x| "TkWinfo.children(self)[0].configure('background'=>#{x})"},
92
- 'type'=> TkType::TkagColor
93
- )
94
- publish('property','name'=>'button-background',
95
- 'get'=> proc{@obj.b.cget('background')},
96
- 'set'=> proc{|background| @obj.b.configure('background'=>background)},
97
- 'def'=> proc{|x| "TkWinfo.children(self)[1].configure('background'=>#{x})"},
98
- 'type'=> TkType::TkagColor
99
- )
100
- publish('property','name'=>'values',
101
- 'get'=> proc{@obj.cget('values')},
102
- 'set'=> proc{|v| @obj.configure('values'=>v)},
103
- 'def'=> ""
104
- )
105
- end
106
- end
107
-
108
- class AGTkBwProgressBar < AGTkBase
109
- def AGTkBwProgressBar.class_wrapped
110
- Tk::BWidget::ProgressBar
111
- end
112
-
113
- def properties
114
- super()
115
- publish('property','name'=>'variable',
116
- 'get'=> proc{@obj.cget('variable')},
117
- 'set'=> proc{|variable| @obj.configure('variable'=>variable)},
118
- 'def'=> ''
119
- )
120
- end
121
- end
122
-
123
- class AGTkBwButton < AGTkButton
124
- def AGTkBwButton.class_wrapped
125
- Tk::BWidget::Button
126
- end
127
- def properties
128
- super()
129
- publish('property','name'=>'helptype',
130
- 'get'=> proc{@obj.cget('helptype')},
131
- 'set'=> proc{|v| @obj.configure('helptype'=>v)},
132
- 'def'=> "",
133
- 'type'=> EnumType.new('balloon','variable')
134
- )
135
- publish('property','name'=>'helptext',
136
- 'get'=> proc{@obj.cget('helptext')},
137
- 'set'=> proc{|v| @obj.configure('helptext'=>v)},
138
- 'def'=> ""
139
- )
140
- end
141
- end
142
-
143
- class AGTkBwSeparator < AGTkBase
144
- def new_object
145
- @obj = Tk::BWidget::Separator.new(@ag_parent.obj)
146
- end
147
- end
148
-
149
- class AGTkBwPanedWindow < AGTkFrame
150
- def new_object
151
- @obj = Tk::BWidget::PanedWindow.new(@ag_parent.obj)
152
- end
153
- end
154
-
155
- class AGTkBwNoteBook < AGTkBwPanedWindow
156
- def new_object
157
- @obj = Tk::BWidget::NoteBook.new(@ag_parent.obj)
158
- end
159
-
160
- def AGTkBwNoteBook.class_wrapped
161
- Tk::BWidget::NoteBook
162
- end
163
-
164
-
165
- def properties
166
- super
167
- publish('property','name'=>'background',
168
- 'get'=> proc{@obj.cget('background')},
169
- 'set'=> proc{|background| @obj.configure('background'=>background)},
170
- 'def'=> '',
171
- 'type'=> TkType::TkagColor
172
- )
173
- end
174
- end
175
-
176
- class AGTkBwTree < AGTkBase
177
- def new_object
178
- @obj = Tk::BWidget::Tree.new(@ag_parent.obj)
179
- end
180
- end
181
-
182
-
183
- class ArcadiaLibBWidget < ArcadiaLib
184
- def register_classes
185
- self.add_class(AGBWidgetMainFrame)
186
- self.add_class(AGBWidgetComboBox)
187
- self.add_class(AGTkBwProgressBar)
188
- self.add_class(AGTkBwSeparator)
189
- self.add_class(AGTkBwPanedWindow)
190
- self.add_class(AGTkBwNoteBook)
191
- self.add_class(AGTkBwTree)
192
- self.add_class(AGTkBwButton)
193
- end
194
- end
1
+ #
2
+ # al-bwidget.rb - Arcadia Ruby ide
3
+ # by Antonio Galeone <antonio-galeone@rubyforge.org>
4
+ #
5
+
6
+ require 'ext/ae-rad/lib/tk/al-tk'
7
+ require 'tkextlib/bwidget'
8
+ require "ext/ae-rad/ae-rad-libs"
9
+
10
+ class AGBWidgetMainFrame < AGTkContainer
11
+
12
+ def AGBWidgetMainFrame.class_wrapped
13
+ Tk::BWidget::MainFrame
14
+ end
15
+
16
+ def properties
17
+ super()
18
+ # publish_del('property','visual')
19
+ # publish_del('property','container')
20
+ # publish_del('property','class')
21
+ publish_del('property','cursor')
22
+ end
23
+
24
+ end
25
+
26
+ class AGBWidgetComboBox < AGTkBase
27
+
28
+ def initialize(_ag_parent = nil, _object = nil)
29
+ super(_ag_parent, _object)
30
+ ppress = proc{@l_manager.deactivate;@obj.callback_break}
31
+ prelease = proc{@l_manager.activate;@obj.callback_break}
32
+ @obj.e.bind("ButtonPress-1", proc{|e|
33
+ @l_manager.place_manager.do_press_obj(e.x, e.y)
34
+ @obj.callback_break
35
+ }
36
+ )
37
+ @obj.e.bind_append("ButtonPress-1", ppress)
38
+ @obj.e.bind("ButtonRelease-1", prelease)
39
+ @obj.e.bind("B1-Motion", proc{|x, y| @l_manager.place_manager.do_mov_obj(x,y); @obj.callback_break},"%x %y")
40
+ end
41
+
42
+ def AGBWidgetComboBox.class_wrapped
43
+ Tk::BWidget::ComboBox
44
+ end
45
+
46
+ def new_object
47
+ super
48
+ initobj
49
+ end
50
+
51
+ def initobj
52
+ def @obj.e
53
+ TkWinfo.children(self)[0]
54
+ end
55
+
56
+ def @obj.b
57
+ TkWinfo.children(self)[1]
58
+ end
59
+
60
+ end
61
+
62
+ def passedobject(_obj)
63
+ super
64
+ initobj
65
+ end
66
+
67
+ def properties
68
+ super()
69
+
70
+ publish_mod('place','name'=>'width',
71
+ 'get'=> proc{if TkWinfo.mapped?(@obj)
72
+ TkWinfo.width(@obj.e)+ TkWinfo.width(@obj.b)
73
+ else
74
+ TkWinfo.reqwidth(@obj.e)+ TkWinfo.reqwidth(@obj.b)
75
+ end
76
+ }
77
+ )
78
+
79
+ publish_mod('place','name'=>'height',
80
+ 'get'=> proc{ if TkWinfo.mapped?(@obj)
81
+ TkWinfo.height(@obj)
82
+ else
83
+ TkWinfo.reqheight(@obj.b)
84
+ end
85
+ }
86
+ )
87
+
88
+ publish('property','name'=>'entry-background',
89
+ 'get'=> proc{@obj.e.cget('background')},
90
+ 'set'=> proc{|background| @obj.e.configure('background'=>background)},
91
+ 'def'=> proc{|x| "TkWinfo.children(self)[0].configure('background'=>#{x})"},
92
+ 'type'=> TkType::TkagColor
93
+ )
94
+ publish('property','name'=>'button-background',
95
+ 'get'=> proc{@obj.b.cget('background')},
96
+ 'set'=> proc{|background| @obj.b.configure('background'=>background)},
97
+ 'def'=> proc{|x| "TkWinfo.children(self)[1].configure('background'=>#{x})"},
98
+ 'type'=> TkType::TkagColor
99
+ )
100
+ publish('property','name'=>'values',
101
+ 'get'=> proc{@obj.cget('values')},
102
+ 'set'=> proc{|v| @obj.configure('values'=>v)},
103
+ 'def'=> ""
104
+ )
105
+ end
106
+ end
107
+
108
+ class AGTkBwProgressBar < AGTkBase
109
+ def AGTkBwProgressBar.class_wrapped
110
+ Tk::BWidget::ProgressBar
111
+ end
112
+
113
+ def properties
114
+ super()
115
+ publish('property','name'=>'variable',
116
+ 'get'=> proc{@obj.cget('variable')},
117
+ 'set'=> proc{|variable| @obj.configure('variable'=>variable)},
118
+ 'def'=> ''
119
+ )
120
+ end
121
+ end
122
+
123
+ class AGTkBwButton < AGTkButton
124
+ def AGTkBwButton.class_wrapped
125
+ Tk::BWidget::Button
126
+ end
127
+ def properties
128
+ super()
129
+ publish('property','name'=>'helptype',
130
+ 'get'=> proc{@obj.cget('helptype')},
131
+ 'set'=> proc{|v| @obj.configure('helptype'=>v)},
132
+ 'def'=> "",
133
+ 'type'=> EnumType.new('balloon','variable')
134
+ )
135
+ publish('property','name'=>'helptext',
136
+ 'get'=> proc{@obj.cget('helptext')},
137
+ 'set'=> proc{|v| @obj.configure('helptext'=>v)},
138
+ 'def'=> ""
139
+ )
140
+ end
141
+ end
142
+
143
+ class AGTkBwSeparator < AGTkBase
144
+ def new_object
145
+ @obj = Tk::BWidget::Separator.new(@ag_parent.obj)
146
+ end
147
+ end
148
+
149
+ class AGTkBwPanedWindow < AGTkFrame
150
+ def new_object
151
+ @obj = Tk::BWidget::PanedWindow.new(@ag_parent.obj)
152
+ end
153
+ end
154
+
155
+ class AGTkBwNoteBook < AGTkBwPanedWindow
156
+ def new_object
157
+ @obj = Tk::BWidget::NoteBook.new(@ag_parent.obj)
158
+ end
159
+
160
+ def AGTkBwNoteBook.class_wrapped
161
+ Tk::BWidget::NoteBook
162
+ end
163
+
164
+
165
+ def properties
166
+ super
167
+ publish('property','name'=>'background',
168
+ 'get'=> proc{@obj.cget('background')},
169
+ 'set'=> proc{|background| @obj.configure('background'=>background)},
170
+ 'def'=> '',
171
+ 'type'=> TkType::TkagColor
172
+ )
173
+ end
174
+ end
175
+
176
+ class AGTkBwTree < AGTkBase
177
+ def new_object
178
+ @obj = Tk::BWidget::Tree.new(@ag_parent.obj)
179
+ end
180
+ end
181
+
182
+
183
+ class ArcadiaLibBWidget < ArcadiaLib
184
+ def register_classes
185
+ self.add_class(AGBWidgetMainFrame)
186
+ self.add_class(AGBWidgetComboBox)
187
+ self.add_class(AGTkBwProgressBar)
188
+ self.add_class(AGTkBwSeparator)
189
+ self.add_class(AGTkBwPanedWindow)
190
+ self.add_class(AGTkBwNoteBook)
191
+ self.add_class(AGTkBwTree)
192
+ self.add_class(AGTkBwButton)
193
+ end
194
+ end