larrygram-commands
Cada acción de Larrygram es un comando con un identificador estable, como edit.undo o file.export. Los menús, la barra de comandos, los atajos de teclado y la herramienta de línea de comandos despachan los mismos identificadores a través de un único registro, así que siempre se comportan igual. El registro también gestiona deshacer, rehacer y la selección.
Los datos de las disposiciones enumeran 977 identificadores de comando. Los comandos que aún no están implementados se registran como stubs (marcadores de posición): aparecen en las disposiciones, desactivados, con la descripción emergente «Not yet implemented» (aún no implementado).
Un comando recibe argumentos con nombre. Los contratos documentados incluyen:
| Comando |
Argumentos |
file.open |
path (o name y data para archivos en memoria) |
file.save_as |
path |
file.inspect |
path, page, json |
file.render |
path, out, page, format, scale, background, strict |
file.export |
path, out, format, scale, strict |
file.close |
confirm opcional (la respuesta a la confirmación de cierre) |
view.zoom.fit |
width, height (puntos) |
view.units |
units (el nombre de una unidad de visualización) |
Cada comando tiene también una comprobación de habilitado. Por ejemplo, edit.undo solo está habilitado cuando hay algo que deshacer.
Generados a partir de las tablas de comandos de la aplicación.
app.*
| Identificador | Etiqueta |
|---|
app.office.center.options | Options |
app.quit | Exit |
arrange.*
| Identificador | Etiqueta |
|---|
arrange.align.bottom | Bottom |
arrange.align.center_x | Align Center |
arrange.align.left | Align Left |
arrange.align.middle | Middle |
arrange.align.right | Align Right |
arrange.align.top | Top |
arrange.bring_forward | Bring Forward |
arrange.bring_to_front | Bring to Front |
arrange.distribute.horizontal | Distribute Horizontally |
arrange.distribute.vertical | Distribute Vertically |
arrange.group | Group |
arrange.send_backward | Send Backward |
arrange.send_to_back | Send to Back |
arrange.ungroup | Ungroup |
connector.*
| Identificador | Etiqueta |
|---|
connector.draw | Draw Connector |
connector.glue_begin | Glue Begin |
connector.glue_end | Glue End |
connector.reroute_all | Reroute All |
connector.style | Connector Style |
connector.unglue | Unglue |
edit.*
| Identificador | Etiqueta |
|---|
edit.copy | Copy |
edit.cut | Cut |
edit.delete | Delete |
edit.deselect | Deselect |
edit.duplicate | Duplicate |
edit.paste | Paste |
edit.redo | Redo |
edit.select | Select |
edit.select_all | Select All |
edit.undo | Undo |
file.*
| Identificador | Etiqueta |
|---|
file.close | Close |
file.exit | Exit |
file.export | Export |
file.inspect | Inspect |
file.new | New |
file.open | Open |
file.render | Render |
file.save | Save |
file.save_as | Save As |
help.*
| Identificador | Etiqueta |
|---|
help.about | About |
insert.*
| Identificador | Etiqueta |
|---|
insert.drawing.ellipse | Ellipse |
insert.drawing.line | Line |
insert.drawing.rectangle | Rectangle |
insert.drawing.text_box | Text Box |
insert.shape | Shape |
page.*
| Identificador | Etiqueta |
|---|
page.add | New Page |
page.delete | Delete Page |
page.move_left | Move Page Left |
page.move_right | Move Page Right |
page.next | Next Page |
page.previous | Previous Page |
page.rename | Rename Page |
page.reorder | Reorder |
shape.*
| Identificador | Etiqueta |
|---|
shape.ellipse | Ellipse |
shape.enter_group | Enter Group |
shape.exit_group | Exit Group |
shape.line | Line |
shape.move | Move |
shape.rectangle | Rectangle |
shape.resize | Resize |
shape.rotate | Rotate |
shape.set.angle | Angle |
shape.set.height | Height |
shape.set.pin | Position |
shape.set.text | Shape Text |
shape.set.width | Width |
text.*
| Identificador | Etiqueta |
|---|
text.begin | Edit Text |
text.cancel | Cancel Text |
text.commit | Commit Text |
| Identificador | Etiqueta |
|---|
tools.connector | Connector Tool |
tools.ellipse | Ellipse |
tools.pointer | Pointer Tool |
tools.rectangle | Rectangle |
tools.text | Text Tool |
view.*
| Identificador | Etiqueta |
|---|
view.rulers | Rulers |
view.toggle_grid | Toggle Grid |
view.ui_layout.visio_2016 | Visio 2016 Ribbon |
view.ui_layout.visio_365 | Microsoft 365 Ribbon |
view.units | Units |
view.zoom.fit | Fit to Window |
view.zoom.in | Zoom In |
view.zoom.out | Zoom Out |
84 comandos implementados, commit de la app 4112a26.