vedeu 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +9 -0
- data/README.md +1 -1
- data/docs/api.md +60 -67
- data/docs/configuration.md +8 -5
- data/docs/events.md +31 -15
- data/docs/events/application.md +12 -0
- data/docs/events/document.md +57 -0
- data/docs/events/drb.md +43 -0
- data/docs/events/focus.md +24 -0
- data/docs/events/menu.md +57 -0
- data/docs/events/movement.md +57 -0
- data/docs/events/refresh.md +25 -0
- data/docs/events/system.md +90 -0
- data/docs/events/visibility.md +68 -0
- data/lib/vedeu.rb +2 -2
- data/lib/vedeu/all.rb +3 -2
- data/lib/vedeu/api.rb +18 -18
- data/lib/vedeu/application/controller.rb +1 -1
- data/lib/vedeu/application/helper.rb +1 -1
- data/lib/vedeu/application/view.rb +1 -1
- data/lib/vedeu/bindings/application.rb +1 -12
- data/lib/vedeu/bindings/bindings.rb +3 -1
- data/lib/vedeu/bindings/document.rb +9 -62
- data/lib/vedeu/bindings/drb.rb +12 -56
- data/lib/vedeu/bindings/focus.rb +3 -28
- data/lib/vedeu/bindings/menus.rb +10 -66
- data/lib/vedeu/bindings/movement.rb +4 -69
- data/lib/vedeu/bindings/refresh.rb +3 -33
- data/lib/vedeu/bindings/system.rb +14 -100
- data/lib/vedeu/bindings/visibility.rb +20 -71
- data/lib/vedeu/borders/all.rb +4 -3
- data/lib/vedeu/borders/border.rb +39 -33
- data/lib/vedeu/borders/dsl.rb +40 -33
- data/lib/vedeu/borders/null.rb +2 -2
- data/lib/vedeu/borders/render.rb +29 -24
- data/lib/vedeu/borders/repository.rb +2 -2
- data/lib/vedeu/buffers/all.rb +8 -7
- data/lib/vedeu/buffers/buffer.rb +47 -39
- data/lib/vedeu/buffers/null.rb +2 -2
- data/lib/vedeu/buffers/refresh.rb +4 -3
- data/lib/vedeu/buffers/virtual_buffer.rb +122 -118
- data/lib/vedeu/buffers/virtual_buffers.rb +62 -56
- data/lib/vedeu/colours/background.rb +2 -1
- data/lib/vedeu/colours/colour.rb +21 -19
- data/lib/vedeu/colours/foreground.rb +2 -1
- data/lib/vedeu/colours/repository.rb +6 -5
- data/lib/vedeu/colours/translator.rb +39 -35
- data/lib/vedeu/configuration/api.rb +59 -51
- data/lib/vedeu/configuration/cli.rb +9 -7
- data/lib/vedeu/configuration/configuration.rb +41 -32
- data/lib/vedeu/cursors/cursor.rb +1 -1
- data/lib/vedeu/cursors/refresh.rb +20 -16
- data/lib/vedeu/distributed/server.rb +8 -6
- data/lib/vedeu/distributed/subprocess.rb +90 -86
- data/lib/vedeu/distributed/uri.rb +4 -3
- data/lib/vedeu/dsl/composition.rb +2 -2
- data/lib/vedeu/dsl/group.rb +4 -4
- data/lib/vedeu/dsl/interface.rb +5 -5
- data/lib/vedeu/dsl/presentation.rb +2 -2
- data/lib/vedeu/dsl/text.rb +1 -1
- data/lib/vedeu/editor/cropper.rb +4 -4
- data/lib/vedeu/editor/cursor.rb +6 -4
- data/lib/vedeu/editor/document.rb +20 -18
- data/lib/vedeu/editor/editor.rb +2 -2
- data/lib/vedeu/editor/line.rb +10 -5
- data/lib/vedeu/editor/lines.rb +2 -2
- data/lib/vedeu/internal_api.rb +4 -4
- data/lib/vedeu/models/focus.rb +197 -191
- data/lib/vedeu/models/group.rb +171 -159
- data/lib/vedeu/models/groups.rb +14 -10
- data/lib/vedeu/models/interface.rb +116 -110
- data/lib/vedeu/models/interfaces.rb +24 -20
- data/lib/vedeu/models/toggleable.rb +4 -4
- data/lib/vedeu/models/views/char.rb +1 -1
- data/lib/vedeu/models/views/composition.rb +1 -1
- data/lib/vedeu/models/views/line.rb +1 -1
- data/lib/vedeu/models/views/stream.rb +1 -1
- data/lib/vedeu/models/views/view.rb +1 -1
- data/lib/vedeu/null/interface.rb +1 -1
- data/lib/vedeu/null/view.rb +1 -1
- data/lib/vedeu/output/clear/named_interface.rb +1 -1
- data/lib/vedeu/output/compressor.rb +78 -73
- data/lib/vedeu/output/direct.rb +61 -57
- data/lib/vedeu/output/output.rb +34 -29
- data/lib/vedeu/output/{presentation.rb → presentation/presentation.rb} +2 -1
- data/lib/vedeu/output/presentation/style.rb +64 -18
- data/lib/vedeu/output/presentation/styles.rb +39 -0
- data/lib/vedeu/output/renderers/html.rb +2 -2
- data/lib/vedeu/output/renderers/json.rb +2 -1
- data/lib/vedeu/output/renderers/terminal.rb +3 -3
- data/lib/vedeu/output/renderers/text.rb +3 -3
- data/lib/vedeu/output/text.rb +186 -180
- data/lib/vedeu/output/wordwrap.rb +142 -138
- data/lib/vedeu/refresh/refresh.rb +2 -2
- data/lib/vedeu/templating/helpers.rb +11 -6
- data/lib/vedeu/templating/view_template.rb +1 -1
- data/lib/vedeu/terminal/terminal.rb +2 -2
- data/lib/vedeu/version.rb +1 -1
- data/test/lib/vedeu/borders/render_test.rb +1 -1
- data/test/lib/vedeu/buffers/buffer_test.rb +16 -14
- data/test/lib/vedeu/buffers/virtual_buffer_test.rb +105 -101
- data/test/lib/vedeu/buffers/virtual_buffers_test.rb +43 -39
- data/test/lib/vedeu/colours/colour_test.rb +4 -4
- data/test/lib/vedeu/cursors/cursor_test.rb +2 -2
- data/test/lib/vedeu/cursors/repository_test.rb +3 -3
- data/test/lib/vedeu/distributed/subprocess_test.rb +33 -29
- data/test/lib/vedeu/dsl/group_test.rb +3 -3
- data/test/lib/vedeu/dsl/interface_test.rb +6 -5
- data/test/lib/vedeu/dsl/line_test.rb +4 -2
- data/test/lib/vedeu/dsl/presentation_test.rb +2 -2
- data/test/lib/vedeu/dsl/text_test.rb +8 -8
- data/test/lib/vedeu/editor/document_test.rb +10 -6
- data/test/lib/vedeu/input/keymap_test.rb +1 -10
- data/test/lib/vedeu/models/focus_test.rb +177 -170
- data/test/lib/vedeu/models/group_test.rb +99 -95
- data/test/lib/vedeu/models/groups_test.rb +13 -9
- data/test/lib/vedeu/models/interface_test.rb +93 -87
- data/test/lib/vedeu/models/interfaces_test.rb +24 -20
- data/test/lib/vedeu/models/views/char_test.rb +2 -2
- data/test/lib/vedeu/models/views/line_test.rb +11 -7
- data/test/lib/vedeu/models/views/stream_test.rb +1 -1
- data/test/lib/vedeu/models/views/view_test.rb +1 -1
- data/test/lib/vedeu/output/clear/named_group_test.rb +1 -1
- data/test/lib/vedeu/output/clear/named_interface_test.rb +3 -1
- data/test/lib/vedeu/output/compressor_test.rb +126 -122
- data/test/lib/vedeu/output/direct_test.rb +49 -43
- data/test/lib/vedeu/output/output_test.rb +35 -31
- data/test/lib/vedeu/output/{presentation_test.rb → presentation/presentation_test.rb} +11 -7
- data/test/lib/vedeu/output/presentation/style_test.rb +88 -48
- data/test/lib/vedeu/output/presentation/styles_test.rb +84 -0
- data/test/lib/vedeu/output/text_test.rb +109 -105
- data/test/lib/vedeu/output/viewport_test.rb +3 -1
- data/test/lib/vedeu/output/wordwrap_test.rb +209 -205
- data/test/lib/vedeu/refresh/refresh_test.rb +3 -1
- data/test/lib/vedeu/templating/helpers_test.rb +6 -6
- data/test/lib/vedeu/templating/view_template_test.rb +1 -1
- metadata +17 -8
- data/lib/vedeu/output/style.rb +0 -76
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa52a712311446668b8375072ffb067393505997
|
4
|
+
data.tar.gz: 27a321fa1c2ee654042819f339e5cb59a004a472
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
8
|
-
|
9
|
-
# ...
|
7
|
+
class OtherClassInYourApplication
|
8
|
+
# ...
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
def some_method
|
11
|
+
Vedeu.some_api_method
|
12
|
+
end
|
14
13
|
|
15
|
-
|
16
|
-
|
14
|
+
# ...
|
15
|
+
end
|
17
16
|
|
18
|
-
|
17
|
+
## Configuration
|
19
18
|
|
20
|
-
|
19
|
+
See {file:docs/configuration.md}
|
21
20
|
|
22
|
-
|
21
|
+
## Events
|
23
22
|
|
24
|
-
|
23
|
+
See {file:docs/events.md}
|
25
24
|
|
26
|
-
|
27
|
-
- Vedeu.configuration
|
25
|
+
## Borders
|
28
26
|
|
29
|
-
###
|
27
|
+
### Vedeu.border
|
30
28
|
|
31
|
-
|
32
|
-
- Vedeu.bind_alias
|
33
|
-
- Vedeu.trigger
|
34
|
-
- Vedeu.unbind
|
35
|
-
- Vedeu.unbind_alias
|
29
|
+
## Geometry
|
36
30
|
|
37
|
-
###
|
31
|
+
### Vedeu.geometry
|
38
32
|
|
39
|
-
|
33
|
+
## Groups
|
40
34
|
|
41
|
-
###
|
35
|
+
### Vedeu.group
|
42
36
|
|
43
|
-
|
37
|
+
## Input
|
44
38
|
|
45
|
-
###
|
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
|
-
|
45
|
+
## Interfaces
|
54
46
|
|
55
|
-
|
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
|
-
|
71
|
+
## Views
|
80
72
|
|
81
|
-
|
82
|
-
|
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
|
-
|
104
|
+
|
105
|
+
### Vedeu.views
|
113
106
|
- ... as #renders
|
114
107
|
|
115
|
-
|
108
|
+
## Menus
|
116
109
|
|
117
|
-
|
110
|
+
### Vedeu.menu
|
118
111
|
- items
|
119
112
|
- name
|
120
113
|
|
121
|
-
|
114
|
+
## Renderers
|
122
115
|
|
123
|
-
|
124
|
-
|
116
|
+
### Vedeu.renderer
|
117
|
+
### Vedeu.renderers
|
125
118
|
|
126
|
-
|
119
|
+
## Repositories
|
127
120
|
|
128
121
|
These are collections which you can access:
|
129
122
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
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
|
data/docs/configuration.md
CHANGED
@@ -3,13 +3,16 @@
|
|
3
3
|
|
4
4
|
Vedeu provides a simple DSL for configuration.
|
5
5
|
|
6
|
-
|
7
|
-
Vedeu.configure do
|
6
|
+
Vedeu.configure do
|
8
7
|
|
9
|
-
|
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
|
-
|
3
|
+
# Vedeu Provided Events
|
5
4
|
|
6
|
-
|
5
|
+
Vedeu provides a bunch of events which you can use to control its
|
6
|
+
behaviour. These are listed below:
|
7
7
|
|
8
|
-
|
8
|
+
### Application Events
|
9
|
+
See {file:docs/events/application.md}
|
9
10
|
|
10
|
-
|
11
|
-
See {
|
12
|
-
See {Vedeu::Bindings::System}
|
11
|
+
### Document Events
|
12
|
+
See {file:docs/events/document.md}
|
13
13
|
|
14
|
-
|
14
|
+
### Focus Events
|
15
|
+
See {file:docs/events/focus.md}
|
15
16
|
|
16
|
-
|
17
|
+
### Refresh Events
|
18
|
+
See {file:docs/events/refresh.md}
|
17
19
|
|
18
|
-
|
20
|
+
### System Events
|
21
|
+
See {file:docs/events/system.md}
|
19
22
|
|
20
|
-
|
23
|
+
### DRB Events
|
24
|
+
See {file:docs/events/drb.md}
|
21
25
|
|
22
|
-
|
26
|
+
### Menu Events
|
27
|
+
See {file:docs/events/menu.md}
|
23
28
|
|
24
|
-
|
29
|
+
### Movement Events
|
30
|
+
See {file:docs/events/movement.md}
|
25
31
|
|
26
|
-
|
32
|
+
### Visibility Events
|
33
|
+
See {file:docs/events/visibility.md}
|
27
34
|
|
28
|
-
|
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)
|
data/docs/events/drb.md
ADDED
@@ -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
|
data/docs/events/menu.md
ADDED
@@ -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)
|