vedeu 0.6.8 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +9 -0
  3. data/README.md +1 -1
  4. data/docs/api.md +60 -67
  5. data/docs/configuration.md +8 -5
  6. data/docs/events.md +31 -15
  7. data/docs/events/application.md +12 -0
  8. data/docs/events/document.md +57 -0
  9. data/docs/events/drb.md +43 -0
  10. data/docs/events/focus.md +24 -0
  11. data/docs/events/menu.md +57 -0
  12. data/docs/events/movement.md +57 -0
  13. data/docs/events/refresh.md +25 -0
  14. data/docs/events/system.md +90 -0
  15. data/docs/events/visibility.md +68 -0
  16. data/lib/vedeu.rb +2 -2
  17. data/lib/vedeu/all.rb +3 -2
  18. data/lib/vedeu/api.rb +18 -18
  19. data/lib/vedeu/application/controller.rb +1 -1
  20. data/lib/vedeu/application/helper.rb +1 -1
  21. data/lib/vedeu/application/view.rb +1 -1
  22. data/lib/vedeu/bindings/application.rb +1 -12
  23. data/lib/vedeu/bindings/bindings.rb +3 -1
  24. data/lib/vedeu/bindings/document.rb +9 -62
  25. data/lib/vedeu/bindings/drb.rb +12 -56
  26. data/lib/vedeu/bindings/focus.rb +3 -28
  27. data/lib/vedeu/bindings/menus.rb +10 -66
  28. data/lib/vedeu/bindings/movement.rb +4 -69
  29. data/lib/vedeu/bindings/refresh.rb +3 -33
  30. data/lib/vedeu/bindings/system.rb +14 -100
  31. data/lib/vedeu/bindings/visibility.rb +20 -71
  32. data/lib/vedeu/borders/all.rb +4 -3
  33. data/lib/vedeu/borders/border.rb +39 -33
  34. data/lib/vedeu/borders/dsl.rb +40 -33
  35. data/lib/vedeu/borders/null.rb +2 -2
  36. data/lib/vedeu/borders/render.rb +29 -24
  37. data/lib/vedeu/borders/repository.rb +2 -2
  38. data/lib/vedeu/buffers/all.rb +8 -7
  39. data/lib/vedeu/buffers/buffer.rb +47 -39
  40. data/lib/vedeu/buffers/null.rb +2 -2
  41. data/lib/vedeu/buffers/refresh.rb +4 -3
  42. data/lib/vedeu/buffers/virtual_buffer.rb +122 -118
  43. data/lib/vedeu/buffers/virtual_buffers.rb +62 -56
  44. data/lib/vedeu/colours/background.rb +2 -1
  45. data/lib/vedeu/colours/colour.rb +21 -19
  46. data/lib/vedeu/colours/foreground.rb +2 -1
  47. data/lib/vedeu/colours/repository.rb +6 -5
  48. data/lib/vedeu/colours/translator.rb +39 -35
  49. data/lib/vedeu/configuration/api.rb +59 -51
  50. data/lib/vedeu/configuration/cli.rb +9 -7
  51. data/lib/vedeu/configuration/configuration.rb +41 -32
  52. data/lib/vedeu/cursors/cursor.rb +1 -1
  53. data/lib/vedeu/cursors/refresh.rb +20 -16
  54. data/lib/vedeu/distributed/server.rb +8 -6
  55. data/lib/vedeu/distributed/subprocess.rb +90 -86
  56. data/lib/vedeu/distributed/uri.rb +4 -3
  57. data/lib/vedeu/dsl/composition.rb +2 -2
  58. data/lib/vedeu/dsl/group.rb +4 -4
  59. data/lib/vedeu/dsl/interface.rb +5 -5
  60. data/lib/vedeu/dsl/presentation.rb +2 -2
  61. data/lib/vedeu/dsl/text.rb +1 -1
  62. data/lib/vedeu/editor/cropper.rb +4 -4
  63. data/lib/vedeu/editor/cursor.rb +6 -4
  64. data/lib/vedeu/editor/document.rb +20 -18
  65. data/lib/vedeu/editor/editor.rb +2 -2
  66. data/lib/vedeu/editor/line.rb +10 -5
  67. data/lib/vedeu/editor/lines.rb +2 -2
  68. data/lib/vedeu/internal_api.rb +4 -4
  69. data/lib/vedeu/models/focus.rb +197 -191
  70. data/lib/vedeu/models/group.rb +171 -159
  71. data/lib/vedeu/models/groups.rb +14 -10
  72. data/lib/vedeu/models/interface.rb +116 -110
  73. data/lib/vedeu/models/interfaces.rb +24 -20
  74. data/lib/vedeu/models/toggleable.rb +4 -4
  75. data/lib/vedeu/models/views/char.rb +1 -1
  76. data/lib/vedeu/models/views/composition.rb +1 -1
  77. data/lib/vedeu/models/views/line.rb +1 -1
  78. data/lib/vedeu/models/views/stream.rb +1 -1
  79. data/lib/vedeu/models/views/view.rb +1 -1
  80. data/lib/vedeu/null/interface.rb +1 -1
  81. data/lib/vedeu/null/view.rb +1 -1
  82. data/lib/vedeu/output/clear/named_interface.rb +1 -1
  83. data/lib/vedeu/output/compressor.rb +78 -73
  84. data/lib/vedeu/output/direct.rb +61 -57
  85. data/lib/vedeu/output/output.rb +34 -29
  86. data/lib/vedeu/output/{presentation.rb → presentation/presentation.rb} +2 -1
  87. data/lib/vedeu/output/presentation/style.rb +64 -18
  88. data/lib/vedeu/output/presentation/styles.rb +39 -0
  89. data/lib/vedeu/output/renderers/html.rb +2 -2
  90. data/lib/vedeu/output/renderers/json.rb +2 -1
  91. data/lib/vedeu/output/renderers/terminal.rb +3 -3
  92. data/lib/vedeu/output/renderers/text.rb +3 -3
  93. data/lib/vedeu/output/text.rb +186 -180
  94. data/lib/vedeu/output/wordwrap.rb +142 -138
  95. data/lib/vedeu/refresh/refresh.rb +2 -2
  96. data/lib/vedeu/templating/helpers.rb +11 -6
  97. data/lib/vedeu/templating/view_template.rb +1 -1
  98. data/lib/vedeu/terminal/terminal.rb +2 -2
  99. data/lib/vedeu/version.rb +1 -1
  100. data/test/lib/vedeu/borders/render_test.rb +1 -1
  101. data/test/lib/vedeu/buffers/buffer_test.rb +16 -14
  102. data/test/lib/vedeu/buffers/virtual_buffer_test.rb +105 -101
  103. data/test/lib/vedeu/buffers/virtual_buffers_test.rb +43 -39
  104. data/test/lib/vedeu/colours/colour_test.rb +4 -4
  105. data/test/lib/vedeu/cursors/cursor_test.rb +2 -2
  106. data/test/lib/vedeu/cursors/repository_test.rb +3 -3
  107. data/test/lib/vedeu/distributed/subprocess_test.rb +33 -29
  108. data/test/lib/vedeu/dsl/group_test.rb +3 -3
  109. data/test/lib/vedeu/dsl/interface_test.rb +6 -5
  110. data/test/lib/vedeu/dsl/line_test.rb +4 -2
  111. data/test/lib/vedeu/dsl/presentation_test.rb +2 -2
  112. data/test/lib/vedeu/dsl/text_test.rb +8 -8
  113. data/test/lib/vedeu/editor/document_test.rb +10 -6
  114. data/test/lib/vedeu/input/keymap_test.rb +1 -10
  115. data/test/lib/vedeu/models/focus_test.rb +177 -170
  116. data/test/lib/vedeu/models/group_test.rb +99 -95
  117. data/test/lib/vedeu/models/groups_test.rb +13 -9
  118. data/test/lib/vedeu/models/interface_test.rb +93 -87
  119. data/test/lib/vedeu/models/interfaces_test.rb +24 -20
  120. data/test/lib/vedeu/models/views/char_test.rb +2 -2
  121. data/test/lib/vedeu/models/views/line_test.rb +11 -7
  122. data/test/lib/vedeu/models/views/stream_test.rb +1 -1
  123. data/test/lib/vedeu/models/views/view_test.rb +1 -1
  124. data/test/lib/vedeu/output/clear/named_group_test.rb +1 -1
  125. data/test/lib/vedeu/output/clear/named_interface_test.rb +3 -1
  126. data/test/lib/vedeu/output/compressor_test.rb +126 -122
  127. data/test/lib/vedeu/output/direct_test.rb +49 -43
  128. data/test/lib/vedeu/output/output_test.rb +35 -31
  129. data/test/lib/vedeu/output/{presentation_test.rb → presentation/presentation_test.rb} +11 -7
  130. data/test/lib/vedeu/output/presentation/style_test.rb +88 -48
  131. data/test/lib/vedeu/output/presentation/styles_test.rb +84 -0
  132. data/test/lib/vedeu/output/text_test.rb +109 -105
  133. data/test/lib/vedeu/output/viewport_test.rb +3 -1
  134. data/test/lib/vedeu/output/wordwrap_test.rb +209 -205
  135. data/test/lib/vedeu/refresh/refresh_test.rb +3 -1
  136. data/test/lib/vedeu/templating/helpers_test.rb +6 -6
  137. data/test/lib/vedeu/templating/view_template_test.rb +1 -1
  138. metadata +17 -8
  139. data/lib/vedeu/output/style.rb +0 -76
  140. data/test/lib/vedeu/output/style_test.rb +0 -120
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43c20341c0356017348e3f761aa1b1371b5d5d53
4
- data.tar.gz: bc914cbb3ca7912bc37b6d519edd74caafc71945
3
+ metadata.gz: aa52a712311446668b8375072ffb067393505997
4
+ data.tar.gz: 27a321fa1c2ee654042819f339e5cb59a004a472
5
5
  SHA512:
6
- metadata.gz: bc099e2bab2c7849429e57de5de0549889195bfc19833ee93644a45d609e8426cae6289c3df6e97846fe8d4a2eaecf3219ff4d1d32688387e69c4c2bf76e68af
7
- data.tar.gz: 2c28487ea4337f6887775d6eeedf9d77f70766a3e7db89e915f9e61577c7b9103574cf537536b1fac39b0b1ca9762832282fc06de0ed775bae0f6ea868ae410a
6
+ metadata.gz: f0a88fdd9757f20a6b4533b0e623c442b86487fbe3786293fd34323e1d5435352e73c41f6fe153bab9759eb1183615df21a8de50769aa43db1d57fa18e56b901
7
+ data.tar.gz: 8d1182b45e8085ce541777444a813919b65f61e2afd0cbfd46d0c6a75cce0743e4e2cea163516240d969def501b6ed3356d3b4235afc75f72cc987c0512a4470
data/.yardopts CHANGED
@@ -8,3 +8,12 @@ docs/dsl.md
8
8
  docs/events.md
9
9
  docs/getting_started.md
10
10
  docs/object_graph.md
11
+ docs/events/application.md
12
+ docs/events/document.md
13
+ docs/events/drb.md
14
+ docs/events/focus.md
15
+ docs/events/menu.md
16
+ docs/events/movement.md
17
+ docs/events/refresh.md
18
+ docs/events/system.md
19
+ docs/events/visibility.md
data/README.md CHANGED
@@ -25,7 +25,7 @@ have any problems with either of these operating systems.
25
25
 
26
26
  To install Vedeu, simply:
27
27
 
28
- gem install 'vedeu'
28
+ gem install vedeu
29
29
 
30
30
  To use Vedeu's application scaffolding, see the
31
31
  [RubyDoc](http://www.rubydoc.info/gems/vedeu/file/docs/getting_started.md)
data/docs/api.md CHANGED
@@ -4,55 +4,47 @@
4
4
  Vedeu provides a simple DSL for the creation of terminal/console based
5
5
  applications. Below is a list of all the API methods:
6
6
 
7
- ```ruby
8
- class OtherClassInYourApplication
9
- # ...
7
+ class OtherClassInYourApplication
8
+ # ...
10
9
 
11
- def some_method
12
- Vedeu.some_api_method
13
- end
10
+ def some_method
11
+ Vedeu.some_api_method
12
+ end
14
13
 
15
- # ...
16
- ```
14
+ # ...
15
+ end
17
16
 
18
- Note: Nesting indicates where an API method is allowed/supposed to be used.
17
+ ## Configuration
19
18
 
20
- ### Borders
19
+ See {file:docs/configuration.md}
21
20
 
22
- - Vedeu.border
21
+ ## Events
23
22
 
24
- ### Configuration
23
+ See {file:docs/events.md}
25
24
 
26
- - Vedeu.configure
27
- - Vedeu.configuration
25
+ ## Borders
28
26
 
29
- ### Events
27
+ ### Vedeu.border
30
28
 
31
- - Vedeu.bind
32
- - Vedeu.bind_alias
33
- - Vedeu.trigger
34
- - Vedeu.unbind
35
- - Vedeu.unbind_alias
29
+ ## Geometry
36
30
 
37
- ### Geometry
31
+ ### Vedeu.geometry
38
32
 
39
- - Vedeu.geometry
33
+ ## Groups
40
34
 
41
- ### Groups
35
+ ### Vedeu.group
42
36
 
43
- - Vedeu.group
37
+ ## Input
44
38
 
45
- ### Input
46
-
47
- - Vedeu.keypress
48
- - Vedeu.keymap
39
+ ### Vedeu.keypress
40
+ ### Vedeu.keymap
49
41
  - key
50
42
  - name
51
43
  - interface
52
44
 
53
- ### Interfaces
45
+ ## Interfaces
54
46
 
55
- - Vedeu.interface
47
+ ### Vedeu.interface
56
48
  - background
57
49
  - border
58
50
  - cursor
@@ -76,10 +68,10 @@ Note: Nesting indicates where an API method is allowed/supposed to be used.
76
68
  - style
77
69
  - use
78
70
 
79
- ### Views
71
+ ## Views
80
72
 
81
- - Vedeu.renders
82
- - Vedeu.render
73
+ ### Vedeu.renders
74
+ ### Vedeu.render
83
75
  - view
84
76
  - colour
85
77
  - cursor
@@ -109,48 +101,49 @@ Note: Nesting indicates where an API method is allowed/supposed to be used.
109
101
  - name
110
102
  - style
111
103
  - use
112
- - Vedeu.views
104
+
105
+ ### Vedeu.views
113
106
  - ... as #renders
114
107
 
115
- ### Menus
108
+ ## Menus
116
109
 
117
- - Vedeu.menu
110
+ ### Vedeu.menu
118
111
  - items
119
112
  - name
120
113
 
121
- ### Renderers
114
+ ## Renderers
122
115
 
123
- - Vedeu.renderer
124
- - Vedeu.renderers
116
+ ### Vedeu.renderer
117
+ ### Vedeu.renderers
125
118
 
126
- ### Repositories
119
+ ## Repositories
127
120
 
128
121
  These are collections which you can access:
129
122
 
130
- - Vedeu.background_colours
131
- - Vedeu.foreground_colours
132
- - Vedeu.borders
133
- - Vedeu.buffers
134
- - Vedeu.cursors
135
- - Vedeu.events
136
- - Vedeu.geometries
137
- - Vedeu.groups
138
- - Vedeu.interfaces
139
- - Vedeu.keymaps
140
- - Vedeu.menus
141
-
142
- ### Miscellany
143
-
144
- - Vedeu.cursor
145
- - Vedeu.focus
146
- - Vedeu.focus_by_name
147
- - Vedeu.focussed?
148
- - Vedeu.focus_next
149
- - Vedeu.focus_previous
150
- - Vedeu.height
151
- - Vedeu.log
152
- - Vedeu.log_stdout
153
- - Vedeu.log_stderr
154
- - Vedeu.resize
155
- - Vedeu.timer
156
- - Vedeu.width
123
+ ### Vedeu.background_colours
124
+ ### Vedeu.foreground_colours
125
+ ### Vedeu.borders
126
+ ### Vedeu.buffers
127
+ ### Vedeu.cursors
128
+ ### Vedeu.events
129
+ ### Vedeu.geometries
130
+ ### Vedeu.groups
131
+ ### Vedeu.interfaces
132
+ ### Vedeu.keymaps
133
+ ### Vedeu.menus
134
+
135
+ ## Miscellany
136
+
137
+ ### Vedeu.cursor
138
+ ### Vedeu.focus
139
+ ### Vedeu.focus_by_name
140
+ ### Vedeu.focussed?
141
+ ### Vedeu.focus_next
142
+ ### Vedeu.focus_previous
143
+ ### Vedeu.height
144
+ ### Vedeu.log
145
+ ### Vedeu.log_stdout
146
+ ### Vedeu.log_stderr
147
+ ### Vedeu.resize
148
+ ### Vedeu.timer
149
+ ### Vedeu.width
@@ -3,13 +3,16 @@
3
3
 
4
4
  Vedeu provides a simple DSL for configuration.
5
5
 
6
- ```ruby
7
- Vedeu.configure do
6
+ Vedeu.configure do
8
7
 
9
- # add configuration options here...
8
+ # add configuration options here, each of which are listed below...
10
9
 
11
- end
12
- ```
10
+ end
11
+
12
+ If you need to access the value of Vedeu's configuration for whatever reason,
13
+ simply ask for it:
14
+
15
+ Vedeu.configuration.base_path # => The current value of 'base_path'
13
16
 
14
17
  ## Configuration Options
15
18
 
data/docs/events.md CHANGED
@@ -1,28 +1,44 @@
1
1
  # @title Vedeu Events
2
- # Vedeu Events
3
2
 
4
- ## Application Events
3
+ # Vedeu Provided Events
5
4
 
6
- See {Vedeu::Bindings::Application}
5
+ Vedeu provides a bunch of events which you can use to control its
6
+ behaviour. These are listed below:
7
7
 
8
- ## System Events
8
+ ### Application Events
9
+ See {file:docs/events/application.md}
9
10
 
10
- See {Vedeu::Bindings::Focus}
11
- See {Vedeu::Bindings::Refresh}
12
- See {Vedeu::Bindings::System}
11
+ ### Document Events
12
+ See {file:docs/events/document.md}
13
13
 
14
- ## DRB Events
14
+ ### Focus Events
15
+ See {file:docs/events/focus.md}
15
16
 
16
- See {Vedeu::Bindings::DRB}
17
+ ### Refresh Events
18
+ See {file:docs/events/refresh.md}
17
19
 
18
- ## Menu Events
20
+ ### System Events
21
+ See {file:docs/events/system.md}
19
22
 
20
- See {Vedeu::Bindings::Menus}
23
+ ### DRB Events
24
+ See {file:docs/events/drb.md}
21
25
 
22
- ## Movement Events
26
+ ### Menu Events
27
+ See {file:docs/events/menu.md}
23
28
 
24
- See {Vedeu::Bindings::Movement}
29
+ ### Movement Events
30
+ See {file:docs/events/movement.md}
25
31
 
26
- ## Visibility Events
32
+ ### Visibility Events
33
+ See {file:docs/events/visibility.md}
27
34
 
28
- See {Vedeu::Bindings::Visibility}
35
+ # Vedeu Custom Events
36
+
37
+ You can bind or unbind your own events using Vedeu's event system. It
38
+ provides:
39
+
40
+ ### Vedeu.bind
41
+ ### Vedeu.bind_alias
42
+ ### Vedeu.trigger
43
+ ### Vedeu.unbind
44
+ ### Vedeu.unbind_alias
@@ -0,0 +1,12 @@
1
+ # @title Vedeu Application Events
2
+
3
+ ## Application Events
4
+
5
+ ### :_goto_
6
+ Call a client application controller's action with parameters.
7
+
8
+ Vedeu.trigger(:_goto_,
9
+ :your_controller,
10
+ :some_action,
11
+ { id: 7 })
12
+ Vedeu.goto(:your_controller, :some_action, { id: 7 })
@@ -0,0 +1,57 @@
1
+ # @title Vedeu Document Events
2
+
3
+ ## Document Events
4
+
5
+ ### :_editor_execute_
6
+
7
+ Vedeu.trigger(:_editor_execute_, name)
8
+
9
+ ### :_editor_delete_character_
10
+ This event attempts to delete the character in the named
11
+ document at the current virtual cursor position.
12
+
13
+ Vedeu.trigger(:_editor_delete_character_, name)
14
+
15
+ ### :_editor_delete_line_
16
+ This event attempts to delete the line in the named document
17
+ at the current virtual cursor position.
18
+
19
+ Vedeu.trigger(:_editor_delete_line_, name)
20
+
21
+ ### :_editor_down_
22
+ This event attempts to move the virtual cursor down by one
23
+ line in the named document.
24
+
25
+ Vedeu.trigger(:_editor_down_, name)
26
+
27
+ ### :_editor_insert_character_
28
+ This event attempts to insert the given character in the named
29
+ document at the current virtual cursor position.
30
+
31
+ Vedeu.trigger(:_editor_insert_character_, name, character)
32
+
33
+ ### :_editor_insert_line_
34
+ This event attempts to insert a new line in the named document
35
+ at the current virtual cursor position.
36
+
37
+ Vedeu.trigger(:_editor_insert_line_, name)
38
+
39
+ ### :_editor_left_
40
+ This event attempts to move the virtual cursor left by one
41
+ character in the named document.
42
+
43
+ Vedeu.trigger(:_editor_left_, name)
44
+
45
+
46
+ ### :_editor_right_
47
+ This event attempts to move the virtual cursor right by one
48
+ character in the named document.
49
+
50
+ Vedeu.trigger(:_editor_right_, name)
51
+
52
+
53
+ ### :_editor_up_
54
+ This event attempts to move the virtual cursor up by one line
55
+ in the named document.
56
+
57
+ Vedeu.trigger(:_editor_up_, name)
@@ -0,0 +1,43 @@
1
+ # @title Vedeu DRb Events
2
+
3
+ ## DRB Events
4
+
5
+ ### :_drb_input_
6
+ Triggering this event will send input to the running application as
7
+ long as it has the DRb server running.
8
+
9
+ Vedeu.trigger(:_drb_input_, data, type)
10
+
11
+ ### :_drb_retrieve_output_
12
+
13
+ Vedeu.trigger(:_drb_retrieve_output_)
14
+
15
+ ### :_drb_store_output_
16
+ Triggering this event with 'data' will push data into the running
17
+ application's virtual buffer.
18
+
19
+ Vedeu.trigger(:_drb_store_output_, data)
20
+
21
+ ### :_drb_restart_
22
+ Use the DRb server to request the client application to restart.
23
+
24
+ Vedeu.trigger(:_drb_restart_)
25
+ Vedeu.drb_restart
26
+
27
+ ### :_drb_start_
28
+ Use the DRb server to request the client application to start.
29
+
30
+ Vedeu.trigger(:_drb_start_)
31
+ Vedeu.drb_start
32
+
33
+ ### :_drb_status_
34
+ Use the DRb server to request the status of the client application.
35
+
36
+ Vedeu.trigger(:_drb_status_)
37
+ Vedeu.drb_status
38
+
39
+ ### :_drb_stop_
40
+ Use the DRb server to request the client application to stop.
41
+
42
+ Vedeu.trigger(:_drb_stop_)
43
+ Vedeu.drb_stop
@@ -0,0 +1,24 @@
1
+ # @title Vedeu Focus Events
2
+
3
+ ## Focus Events
4
+
5
+ ### :_focus_by_name_
6
+ When triggered with an interface name will focus that interface and
7
+ restore the cursor position and visibility.
8
+
9
+ Vedeu.trigger(:_focus_by_name_, name) # or
10
+ Vedeu.focus_by_name(name)
11
+
12
+ ### :_focus_next_
13
+ When triggered will focus the next visible interface and restore the
14
+ cursor position and visibility.
15
+
16
+ Vedeu.trigger(:_focus_next_) # or
17
+ Vedeu.focus_next
18
+
19
+ ### :_focus_prev_
20
+ When triggered will focus the previous visible interface and restore
21
+ the cursor position and visibility.
22
+
23
+ Vedeu.trigger(:_focus_prev_) # or
24
+ Vedeu.focus_previous
@@ -0,0 +1,57 @@
1
+ # @title Vedeu Menu Events
2
+
3
+ ## Menu Events
4
+
5
+ ### :_menu_bottom_
6
+ Makes the last menu item the current menu item.
7
+
8
+ Vedeu.trigger(:_menu_bottom_, name)
9
+
10
+ ### :_menu_current_
11
+ Returns the current menu item.
12
+
13
+ Vedeu.trigger(:_menu_current_, name)
14
+
15
+ ### :_menu_deselect_
16
+ Deselects all menu items.
17
+
18
+ Vedeu.trigger(:_menu_deselect_, name)
19
+
20
+ ### :_menu_items_
21
+ Returns all the menu items with respective `current` or `selected`
22
+ boolean indicators.
23
+
24
+ Vedeu.trigger(:_menu_items_, name)
25
+
26
+ ### :_menu_next_
27
+ Makes the next menu item the current menu item, until it reaches the
28
+ last item.
29
+
30
+ Vedeu.trigger(:_menu_next_, name)
31
+
32
+ ### :_menu_prev_
33
+ Makes the previous menu item the current menu item, until it reaches
34
+ the first item.
35
+
36
+ Vedeu.trigger(:_menu_prev_, name)
37
+
38
+ ### :_menu_selected_
39
+ Returns the selected menu item.
40
+
41
+ Vedeu.trigger(:_menu_selected_, name)
42
+
43
+ ### :_menu_select_
44
+ Makes the current menu item also the selected menu item.
45
+
46
+ Vedeu.trigger(:_menu_select_, name)
47
+
48
+ ### :_menu_top_
49
+ Makes the first menu item the current menu item.
50
+
51
+ Vedeu.trigger(:_menu_top_, name)
52
+
53
+ ### :_menu_view_
54
+ Returns a subset of the menu items; starting at the current item to
55
+ the last item.
56
+
57
+ Vedeu.trigger(:_menu_view_, name)