vedeu 0.4.45 → 0.4.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/Guardfile +1 -1
- data/docs/dsl.md +4 -4
- data/docs/events/drb.md +49 -0
- data/docs/events/main.md +109 -0
- data/docs/events/menus.md +72 -0
- data/docs/events/movement.md +105 -0
- data/docs/events/visibility.md +61 -0
- data/docs/events.md +13 -0
- data/lib/vedeu/api.rb +23 -0
- data/lib/vedeu/application/controller.rb +1 -0
- data/lib/vedeu/application.rb +25 -20
- data/lib/vedeu/bindings/bindings.rb +2 -41
- data/lib/vedeu/bindings/drb.rb +2 -11
- data/lib/vedeu/bindings/menus.rb +1 -19
- data/lib/vedeu/bindings/movement.rb +6 -18
- data/lib/vedeu/bindings/visibility.rb +5 -26
- data/lib/vedeu/configuration/configuration.rb +1 -1
- data/lib/vedeu/distributed/server.rb +15 -0
- data/lib/vedeu/dsl/presentation.rb +13 -7
- data/lib/vedeu/dsl/view.rb +1 -1
- data/lib/vedeu/events/event.rb +1 -1
- data/lib/vedeu/main_loop.rb +1 -1
- data/lib/vedeu/models/interface.rb +3 -0
- data/lib/vedeu/null/interface.rb +11 -0
- data/lib/vedeu/output/clear.rb +3 -1
- data/lib/vedeu/repositories/repositories/borders.rb +7 -3
- data/lib/vedeu/repositories/repositories/buffers.rb +7 -3
- data/lib/vedeu/repositories/repositories/cursors.rb +3 -2
- data/lib/vedeu/repositories/repositories/events.rb +3 -2
- data/lib/vedeu/repositories/repositories/geometries.rb +6 -2
- data/lib/vedeu/repositories/repositories/groups.rb +2 -1
- data/lib/vedeu/repositories/repositories/interfaces.rb +6 -2
- data/lib/vedeu/repositories/repositories/keymaps.rb +2 -1
- data/lib/vedeu/repositories/repositories/menus.rb +2 -1
- data/lib/vedeu/support/log.rb +1 -1
- data/lib/vedeu/support/timer.rb +1 -1
- data/lib/vedeu/support/visibility.rb +31 -3
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/bindings/bindings_test.rb +0 -3
- data/test/lib/vedeu/bindings/movement_test.rb +1 -0
- data/test/lib/vedeu/buffers/buffer_test.rb +9 -17
- data/test/lib/vedeu/null/interface_test.rb +6 -0
- data/test/lib/vedeu/repositories/repositories/borders_test.rb +5 -1
- data/test/lib/vedeu/repositories/repositories/buffers_test.rb +2 -0
- data/test/lib/vedeu/repositories/repositories/cursors_test.rb +2 -0
- data/test/lib/vedeu/repositories/repositories/events_test.rb +2 -0
- data/test/lib/vedeu/repositories/repositories/geometries_test.rb +2 -0
- data/test/lib/vedeu/repositories/repositories/groups_test.rb +2 -0
- data/test/lib/vedeu/repositories/repositories/interfaces_test.rb +2 -0
- data/test/lib/vedeu/repositories/repositories/keymaps_test.rb +2 -0
- data/test/lib/vedeu/repositories/repositories/menus_test.rb +2 -0
- data/test/lib/vedeu/support/visibility_test.rb +14 -8
- data/test/test_helper.rb +12 -6
- metadata +8 -2
data/lib/vedeu/bindings/drb.rb
CHANGED
@@ -5,10 +5,9 @@ module Vedeu
|
|
5
5
|
# System events relating to the DRb server implementation.
|
6
6
|
#
|
7
7
|
# @api public
|
8
|
+
# {include:file:docs/events/drb.md}
|
8
9
|
module DRB
|
9
10
|
|
10
|
-
# Triggering this event will send input to the running application as long
|
11
|
-
# as it has the DRb server running.
|
12
11
|
Vedeu.bind(:_drb_input_) do |data, type|
|
13
12
|
Vedeu.log(type: :drb, message: "Sending input (#{type})")
|
14
13
|
|
@@ -18,24 +17,16 @@ module Vedeu
|
|
18
17
|
end
|
19
18
|
end
|
20
19
|
|
20
|
+
# @todo This event queries Vedeu. Events should only be commands.
|
21
21
|
Vedeu.bind(:_drb_retrieve_output_) { Vedeu::VirtualBuffer.retrieve }
|
22
22
|
|
23
|
-
# Triggering this event with 'data' will push data into the running
|
24
|
-
# application's virtual buffer.
|
25
23
|
Vedeu.bind(:_drb_store_output_) do |data|
|
26
24
|
Vedeu::VirtualBuffer.store(Vedeu::Terminal.virtual.output(data))
|
27
25
|
end
|
28
26
|
|
29
|
-
# Use the DRb server to request the client application to restart.
|
30
27
|
Vedeu.bind(:_drb_restart_) { Vedeu::Distributed::Server.restart }
|
31
|
-
|
32
|
-
# Use the DRb server to request the client application to start.
|
33
28
|
Vedeu.bind(:_drb_start_) { Vedeu::Distributed::Server.start }
|
34
|
-
|
35
|
-
# Use the DRb server to request the status of the client application.
|
36
29
|
Vedeu.bind(:_drb_status_) { Vedeu::Distributed::Server.status }
|
37
|
-
|
38
|
-
# Use the DRb server to request the client application to stop.
|
39
30
|
Vedeu.bind(:_drb_stop_) { Vedeu::Distributed::Server.stop }
|
40
31
|
|
41
32
|
end # DRB
|
data/lib/vedeu/bindings/menus.rb
CHANGED
@@ -6,44 +6,26 @@ module Vedeu
|
|
6
6
|
# argument.
|
7
7
|
#
|
8
8
|
# @api public
|
9
|
+
# {include:file:docs/events/menus.md}
|
9
10
|
module Menus
|
10
11
|
|
11
|
-
# Makes the last menu item the current menu item.
|
12
12
|
Vedeu.bind(:_menu_bottom_) { |name| Vedeu.menus.find(name).bottom_item }
|
13
|
-
|
14
|
-
# Returns the current menu item.
|
15
13
|
Vedeu.bind(:_menu_current_) { |name| Vedeu.menus.find(name).current_item }
|
16
14
|
|
17
|
-
# Deselects all menu items.
|
18
15
|
Vedeu.bind(:_menu_deselect_) do |name|
|
19
16
|
Vedeu.menus.find(name).deselect_item
|
20
17
|
end
|
21
18
|
|
22
|
-
# Returns all the menu items with respective `current` or `selected`
|
23
|
-
# boolean indicators.
|
24
19
|
Vedeu.bind(:_menu_items_) { |name| Vedeu.menus.find(name).items }
|
25
|
-
|
26
|
-
# Makes the next menu item the current menu item, until it reaches the
|
27
|
-
# last item.
|
28
20
|
Vedeu.bind(:_menu_next_) { |name| Vedeu.menus.find(name).next_item }
|
29
|
-
|
30
|
-
# Makes the previous menu item the current menu item, until it reaches the
|
31
|
-
# first item.
|
32
21
|
Vedeu.bind(:_menu_prev_) { |name| Vedeu.menus.find(name).prev_item }
|
33
22
|
|
34
|
-
# Returns the selected menu item.
|
35
23
|
Vedeu.bind(:_menu_selected_) do |name|
|
36
24
|
Vedeu.menus.find(name).selected_item
|
37
25
|
end
|
38
26
|
|
39
|
-
# Makes the current menu item also the selected menu item.
|
40
27
|
Vedeu.bind(:_menu_select_) { |name| Vedeu.menus.find(name).select_item }
|
41
|
-
|
42
|
-
# Makes the first menu item the current menu item.
|
43
28
|
Vedeu.bind(:_menu_top_) { |name| Vedeu.menus.find(name).top_item }
|
44
|
-
|
45
|
-
# Returns a subset of the menu items; starting at the current item to the
|
46
|
-
# last item.
|
47
29
|
Vedeu.bind(:_menu_view_) { |name| Vedeu.menus.find(name).view }
|
48
30
|
|
49
31
|
end # Menus
|
@@ -5,66 +5,54 @@ module Vedeu
|
|
5
5
|
# System events relating to movement of cursors or interfaces.
|
6
6
|
#
|
7
7
|
# @api public
|
8
|
+
# {include:file:docs/events/movement.md}
|
8
9
|
module Movement
|
9
10
|
|
10
|
-
# @see {Vedeu::Move}
|
11
11
|
Vedeu.bind(:_cursor_down_) do |name|
|
12
12
|
Vedeu::Move.by_name(Vedeu::Cursor, :down, name)
|
13
13
|
end
|
14
14
|
|
15
|
-
# @see {Vedeu::Move}
|
16
15
|
Vedeu.bind(:_cursor_left_) do |name|
|
17
16
|
Vedeu::Move.by_name(Vedeu::Cursor, :left, name)
|
18
17
|
end
|
19
18
|
|
20
|
-
# @see {Vedeu::Move}
|
21
19
|
Vedeu.bind(:_cursor_origin_) do |name|
|
22
20
|
Vedeu::Move.by_name(Vedeu::Cursor, :origin, name)
|
23
21
|
end
|
24
22
|
|
25
|
-
#
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
# - How do we represent cursors which are deliberately positioned
|
31
|
-
# outside of the viewable area?
|
32
|
-
#
|
23
|
+
# @todo This event queries Vedeu. Events should only be commands.
|
24
|
+
Vedeu.bind(:_cursor_position_) do |name|
|
25
|
+
Vedeu.cursors.by_name(name).position
|
26
|
+
end
|
27
|
+
|
33
28
|
Vedeu.bind(:_cursor_reposition_) do |name, y, x|
|
34
29
|
Vedeu::Reposition.to(Vedeu::Cursor, name, y, x)
|
35
30
|
end
|
36
31
|
|
37
|
-
# @see {Vedeu::Move}
|
38
32
|
Vedeu.bind(:_cursor_reset_) do |name|
|
39
33
|
Vedeu.trigger(:_cursor_origin_, name)
|
40
34
|
end
|
41
35
|
|
42
|
-
# @see {Vedeu::Move}
|
43
36
|
Vedeu.bind(:_cursor_right_) do |name|
|
44
37
|
Vedeu::Move.by_name(Vedeu::Cursor, :right, name)
|
45
38
|
end
|
46
39
|
|
47
|
-
# @see {Vedeu::Move}
|
48
40
|
Vedeu.bind(:_cursor_up_) do |name|
|
49
41
|
Vedeu::Move.by_name(Vedeu::Cursor, :up, name)
|
50
42
|
end
|
51
43
|
|
52
|
-
# @see {Vedeu::Move}
|
53
44
|
Vedeu.bind(:_geometry_down_) do |name|
|
54
45
|
Vedeu::Move.by_name(Vedeu::Geometry, :down, name)
|
55
46
|
end
|
56
47
|
|
57
|
-
# @see {Vedeu::Move}
|
58
48
|
Vedeu.bind(:_geometry_left_) do |name|
|
59
49
|
Vedeu::Move.by_name(Vedeu::Geometry, :left, name)
|
60
50
|
end
|
61
51
|
|
62
|
-
# @see {Vedeu::Move}
|
63
52
|
Vedeu.bind(:_geometry_right_) do |name|
|
64
53
|
Vedeu::Move.by_name(Vedeu::Geometry, :right, name)
|
65
54
|
end
|
66
55
|
|
67
|
-
# @see {Vedeu::Move}
|
68
56
|
Vedeu.bind(:_geometry_up_) do |name|
|
69
57
|
Vedeu::Move.by_name(Vedeu::Geometry, :up, name)
|
70
58
|
end
|
@@ -5,43 +5,22 @@ module Vedeu
|
|
5
5
|
# System events relating to the visibility of cursors or interfaces.
|
6
6
|
#
|
7
7
|
# @api public
|
8
|
+
# {include:file:docs/events/visibility.md}
|
8
9
|
module Visibility
|
9
10
|
|
10
|
-
|
11
|
-
Vedeu.bind(:_hide_cursor_) do |name|
|
12
|
-
Vedeu::Visibility.for_cursor(name).hide
|
13
|
-
end
|
11
|
+
Vedeu.bind(:_hide_cursor_) { |name| Vedeu::Visibility.hide_cursor(name) }
|
14
12
|
Vedeu.bind(:_cursor_hide_) { |name| Vedeu.trigger(:_hide_cursor_, name) }
|
15
|
-
|
16
|
-
# Will hide all of the interfaces belonging to the named group. Useful for
|
17
|
-
# hiding part of that which is currently displaying in the terminal.
|
18
|
-
#
|
19
|
-
# @note
|
20
|
-
# This may be rarely used, since the action of showing a group using
|
21
|
-
# `Vedeu.trigger(:_show_group_, group_name)` will effectively clear the
|
22
|
-
# terminal and show the new group.}
|
23
|
-
Vedeu.bind(:_hide_group_) { |name| Vedeu.trigger(:_clear_group_, name) }
|
24
|
-
|
25
|
-
# @see Vedeu::Buffer#hide
|
26
|
-
Vedeu.bind(:_hide_interface_) { |name| Vedeu.buffers.by_name(name).hide }
|
27
|
-
|
28
|
-
# Show the cursor of the named interface or interface currently in focus.
|
29
|
-
Vedeu.bind(:_show_cursor_) do |name|
|
30
|
-
Vedeu::Visibility.for_cursor(name).show
|
31
|
-
end
|
13
|
+
Vedeu.bind(:_show_cursor_) { |name| Vedeu::Visibility.show_cursor(name) }
|
32
14
|
Vedeu.bind(:_cursor_show_) { |name| Vedeu.trigger(:_show_cursor_, name) }
|
33
15
|
|
34
|
-
|
35
|
-
# the named group.
|
16
|
+
Vedeu.bind(:_hide_group_) { |name| Vedeu.trigger(:_clear_group_, name) }
|
36
17
|
Vedeu.bind(:_show_group_) do |name|
|
37
18
|
Vedeu.trigger(:_clear_)
|
38
19
|
Vedeu.trigger(:_refresh_group_, name)
|
39
20
|
end
|
40
21
|
|
41
|
-
|
22
|
+
Vedeu.bind(:_hide_interface_) { |name| Vedeu.buffers.by_name(name).hide }
|
42
23
|
Vedeu.bind(:_show_interface_) { |name| Vedeu.buffers.by_name(name).show }
|
43
|
-
|
44
|
-
# @see Vedeu::Buffer#toggle
|
45
24
|
Vedeu.bind(:_toggle_interface_) do |name|
|
46
25
|
Vedeu.buffers.by_name(name).toggle
|
47
26
|
end
|
@@ -10,36 +10,43 @@ module Vedeu
|
|
10
10
|
include Singleton
|
11
11
|
|
12
12
|
# @param (see #input)
|
13
|
+
# @see #input
|
13
14
|
def self.input(data, type = :key)
|
14
15
|
instance.input(data, type)
|
15
16
|
end
|
16
17
|
|
17
18
|
# @return [void]
|
19
|
+
# @see #output
|
18
20
|
def self.output
|
19
21
|
instance.output
|
20
22
|
end
|
21
23
|
|
22
24
|
# @return [void]
|
25
|
+
# @see #restart
|
23
26
|
def self.restart
|
24
27
|
instance.restart
|
25
28
|
end
|
26
29
|
|
27
30
|
# @return [void]
|
31
|
+
# @see #shutdown
|
28
32
|
def self.shutdown
|
29
33
|
instance.shutdown
|
30
34
|
end
|
31
35
|
|
32
36
|
# @return [void]
|
37
|
+
# @see #start
|
33
38
|
def self.start
|
34
39
|
instance.start
|
35
40
|
end
|
36
41
|
|
37
42
|
# @return [Symbol]
|
43
|
+
# @see #status
|
38
44
|
def self.status
|
39
45
|
instance.status
|
40
46
|
end
|
41
47
|
|
42
48
|
# @return [void]
|
49
|
+
# @see #stop
|
43
50
|
def self.stop
|
44
51
|
instance.stop
|
45
52
|
end
|
@@ -63,6 +70,8 @@ module Vedeu
|
|
63
70
|
Process.pid
|
64
71
|
end
|
65
72
|
|
73
|
+
# Restart the DRb server.
|
74
|
+
#
|
66
75
|
# @return [void]
|
67
76
|
def restart
|
68
77
|
log('Attempting to restart')
|
@@ -102,6 +111,8 @@ module Vedeu
|
|
102
111
|
Vedeu::Terminal.restore_screen
|
103
112
|
end
|
104
113
|
|
114
|
+
# Start the DRb server.
|
115
|
+
#
|
105
116
|
# @return [Vedeu::Distributed::Server]
|
106
117
|
def start
|
107
118
|
log('Attempting to start')
|
@@ -120,6 +131,8 @@ module Vedeu
|
|
120
131
|
end
|
121
132
|
end
|
122
133
|
|
134
|
+
# Fetch the status of the DRb server.
|
135
|
+
#
|
123
136
|
# @return [Symbol]
|
124
137
|
def status
|
125
138
|
log('Fetching status')
|
@@ -139,6 +152,8 @@ module Vedeu
|
|
139
152
|
end
|
140
153
|
end
|
141
154
|
|
155
|
+
# Stop the DRb server.
|
156
|
+
#
|
142
157
|
# @return [void]
|
143
158
|
def stop
|
144
159
|
log('Attempting to stop')
|
@@ -38,18 +38,14 @@ module Vedeu
|
|
38
38
|
#
|
39
39
|
# @return [String]
|
40
40
|
def background(value = '')
|
41
|
-
|
42
|
-
background: Vedeu::Background.coerce(value),
|
43
|
-
foreground: model.colour.foreground)
|
41
|
+
colour(background: Vedeu::Background.coerce(value))
|
44
42
|
end
|
45
43
|
alias_method :bg, :background
|
46
44
|
alias_method :bgcolor, :background
|
47
45
|
|
48
46
|
# @see Vedeu::DSL::Presentation#background
|
49
47
|
def foreground(value = '')
|
50
|
-
|
51
|
-
foreground: Vedeu::Foreground.coerce(value),
|
52
|
-
background: model.colour.background)
|
48
|
+
colour(foreground: Vedeu::Foreground.coerce(value))
|
53
49
|
end
|
54
50
|
alias_method :fg, :foreground
|
55
51
|
alias_method :fgcolor, :foreground
|
@@ -81,7 +77,7 @@ module Vedeu
|
|
81
77
|
#
|
82
78
|
# @return [Vedeu::Colour]
|
83
79
|
def colour(attributes = {})
|
84
|
-
model.colour = Vedeu::Colour.coerce(attributes)
|
80
|
+
model.colour = Vedeu::Colour.coerce(colour_attributes.merge(attributes))
|
85
81
|
end
|
86
82
|
|
87
83
|
# Define a style or styles for an interface, line or a stream.
|
@@ -110,6 +106,16 @@ module Vedeu
|
|
110
106
|
end
|
111
107
|
alias_method :styles, :style
|
112
108
|
|
109
|
+
private
|
110
|
+
|
111
|
+
# @return [Hash<Symbol => String>]
|
112
|
+
def colour_attributes
|
113
|
+
{
|
114
|
+
background: model.colour.background,
|
115
|
+
foreground: model.colour.foreground,
|
116
|
+
}
|
117
|
+
end
|
118
|
+
|
113
119
|
end # Presentation
|
114
120
|
|
115
121
|
end # DSL
|
data/lib/vedeu/dsl/view.rb
CHANGED
data/lib/vedeu/events/event.rb
CHANGED
data/lib/vedeu/main_loop.rb
CHANGED
data/lib/vedeu/null/interface.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'vedeu/output/presentation'
|
2
|
+
|
1
3
|
module Vedeu
|
2
4
|
|
3
5
|
module Null
|
@@ -7,6 +9,8 @@ module Vedeu
|
|
7
9
|
# @api private
|
8
10
|
class Interface
|
9
11
|
|
12
|
+
include Vedeu::Presentation
|
13
|
+
|
10
14
|
# Returns a new instance of Vedeu::Null::Interface.
|
11
15
|
#
|
12
16
|
# @param name [String]
|
@@ -22,6 +26,13 @@ module Vedeu
|
|
22
26
|
}
|
23
27
|
end
|
24
28
|
|
29
|
+
# The null interface should not have a parent.
|
30
|
+
#
|
31
|
+
# @return [NilClass]
|
32
|
+
def parent
|
33
|
+
nil
|
34
|
+
end
|
35
|
+
|
25
36
|
# Pretend to store this model in the repository.
|
26
37
|
#
|
27
38
|
# @return [Vedeu::Null::Interface]
|
data/lib/vedeu/output/clear.rb
CHANGED
@@ -30,6 +30,7 @@ module Vedeu
|
|
30
30
|
|
31
31
|
Vedeu.groups.find(group).members.each { |name| clear(name) }
|
32
32
|
end
|
33
|
+
alias_method :clear_by_group, :by_group
|
33
34
|
|
34
35
|
# @param name [String]
|
35
36
|
# @return [void]
|
@@ -40,6 +41,7 @@ module Vedeu
|
|
40
41
|
clear_border: true,
|
41
42
|
use_terminal_colours: true)
|
42
43
|
end
|
44
|
+
alias_method :clear_by_name, :by_name
|
43
45
|
|
44
46
|
# Clears the area defined by the interface.
|
45
47
|
#
|
@@ -56,7 +58,7 @@ module Vedeu
|
|
56
58
|
end
|
57
59
|
alias_method :render, :clear
|
58
60
|
|
59
|
-
end
|
61
|
+
end # Eigenclass
|
60
62
|
|
61
63
|
# Return a new instance of Vedeu::Clear.
|
62
64
|
#
|
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'vedeu/null/border'
|
2
|
+
require 'vedeu/output/border'
|
3
|
+
|
1
4
|
module Vedeu
|
2
5
|
|
3
6
|
# Allows the storing of interface/view borders independent of the interface
|
@@ -13,17 +16,18 @@ module Vedeu
|
|
13
16
|
# Remove all stored models from the repository.
|
14
17
|
#
|
15
18
|
# @example
|
16
|
-
# Vedeu.borders.reset
|
19
|
+
# Vedeu.borders.reset!
|
17
20
|
#
|
18
21
|
# @return [Vedeu::Borders]
|
19
22
|
def reset!
|
20
23
|
@borders = register(Vedeu::Border)
|
21
24
|
end
|
25
|
+
alias_method :reset, :reset!
|
22
26
|
|
23
|
-
end
|
27
|
+
end # Eigenclass
|
24
28
|
|
25
29
|
null Vedeu::Null::Border
|
26
|
-
|
30
|
+
real Vedeu::Border
|
27
31
|
|
28
32
|
end # Borders
|
29
33
|
|
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'vedeu/null/buffer'
|
2
|
+
require 'vedeu/buffers/buffer'
|
3
|
+
|
1
4
|
module Vedeu
|
2
5
|
|
3
6
|
# Allows the storing of view buffers.
|
@@ -12,17 +15,18 @@ module Vedeu
|
|
12
15
|
# Remove all stored models from the repository.
|
13
16
|
#
|
14
17
|
# @example
|
15
|
-
# Vedeu.buffers.reset
|
18
|
+
# Vedeu.buffers.reset!
|
16
19
|
#
|
17
20
|
# @return [Vedeu::Buffers]
|
18
21
|
def reset!
|
19
22
|
@buffers = register(Vedeu::Buffer)
|
20
23
|
end
|
24
|
+
alias_method :reset, :reset!
|
21
25
|
|
22
|
-
end
|
26
|
+
end # Eigenclass
|
23
27
|
|
24
28
|
null Vedeu::Null::Buffer
|
25
|
-
|
29
|
+
real Vedeu::Buffer
|
26
30
|
|
27
31
|
end # Buffers
|
28
32
|
|
@@ -18,14 +18,15 @@ module Vedeu
|
|
18
18
|
# Remove all stored models from the repository.
|
19
19
|
#
|
20
20
|
# @example
|
21
|
-
# Vedeu.cursors.reset
|
21
|
+
# Vedeu.cursors.reset!
|
22
22
|
#
|
23
23
|
# @return [Vedeu::Cursors]
|
24
24
|
def reset!
|
25
25
|
@cursors = register(Vedeu::Cursor)
|
26
26
|
end
|
27
|
+
alias_method :reset, :reset!
|
27
28
|
|
28
|
-
end
|
29
|
+
end # Eigenclass
|
29
30
|
|
30
31
|
# @example
|
31
32
|
# Vedeu.cursors.by_name('some_name')
|
@@ -12,14 +12,15 @@ module Vedeu
|
|
12
12
|
# Remove all stored models from the repository.
|
13
13
|
#
|
14
14
|
# @example
|
15
|
-
# Vedeu.events.reset
|
15
|
+
# Vedeu.events.reset!
|
16
16
|
#
|
17
17
|
# @return [Vedeu::Events]
|
18
18
|
def reset!
|
19
19
|
@events = new(Vedeu::EventCollection)
|
20
20
|
end
|
21
|
+
alias_method :reset, :reset!
|
21
22
|
|
22
|
-
end
|
23
|
+
end # Eigenclass
|
23
24
|
|
24
25
|
end # Events
|
25
26
|
|
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'vedeu/null/geometry'
|
2
|
+
require 'vedeu/geometry/geometry'
|
3
|
+
|
1
4
|
module Vedeu
|
2
5
|
|
3
6
|
# Allows the storing of interface/view geometry independent of the interface
|
@@ -19,11 +22,12 @@ module Vedeu
|
|
19
22
|
def reset!
|
20
23
|
@geometries = register(Vedeu::Geometry)
|
21
24
|
end
|
25
|
+
alias_method :reset, :reset!
|
22
26
|
|
23
|
-
end
|
27
|
+
end # Eigenclass
|
24
28
|
|
25
29
|
null Vedeu::Null::Geometry
|
26
|
-
|
30
|
+
real Vedeu::Geometry
|
27
31
|
|
28
32
|
end # Geometries
|
29
33
|
|
@@ -1,3 +1,6 @@
|
|
1
|
+
require 'vedeu/null/interface'
|
2
|
+
require 'vedeu/models/interface'
|
3
|
+
|
1
4
|
module Vedeu
|
2
5
|
|
3
6
|
# Allows the storing of interfaces and views.
|
@@ -18,11 +21,12 @@ module Vedeu
|
|
18
21
|
def reset!
|
19
22
|
@interfaces = register(Vedeu::Interface)
|
20
23
|
end
|
24
|
+
alias_method :reset, :reset!
|
21
25
|
|
22
|
-
end
|
26
|
+
end # Eigenclass
|
23
27
|
|
24
28
|
null Vedeu::Null::Interface
|
25
|
-
|
29
|
+
real Vedeu::Interface
|
26
30
|
|
27
31
|
# Returns the interfaces in zindex order.
|
28
32
|
#
|
data/lib/vedeu/support/log.rb
CHANGED