Matthijs Kooijman
c5314fe17a
custom-module: Call reload() function on auto-reload
...
This allows modules to re-initialize any state they need whenever the
module is reloaded.
Without this, any such initialization can also be done in the top
level of the custom module, but this has two problems:
1. Top-level module code runs on load and reload, and for the initial
load, it runs *before* the connections are set up, so trying to use
send() would produce an error on load (not reload).
2. Top-level module code runs for the primary custom module, but also
for any nested modules, removing control about the process and
ordering from the primary custom module. In addition, a module that
can be used both as primary and nested module, there is no clean way
to distinguish between these cases.
Both of these problems can be solved by doing some bookkeeping in the
global object, but that produces messy code.
This commit allows modules to define a reload() function, which is
called (for the primary module only) after the module is reloaded. This
means that any initialization for the first load can be done in init()
and for reloads in reload(), and in both cases all connections will
already have been set up solving issue 1. In addition, neither of these
functions are called for nested modules, solving issue 2 (and the
primary module can then stil explicitly call a reload function on nested
modules if needed, as shown in the examples).
2024-06-18 09:37:01 +02:00
Matthijs Kooijman
a3194a3bb8
custom-module: Fix example for unload with nested modules
...
The unload method is actually called on all modules, not just the main
one, so it makes no sense to have the module merger example call it
explicitly on its submodules.
2024-06-18 09:32:35 +02:00
jean-emmanuel
b63402fce8
docs: update widget ref
2024-02-21 11:06:09 +01:00
jean-emmanuel
3ed11f3894
custom-module: expose tcpServer
2024-02-21 10:52:40 +01:00
jean-emmanuel
ebd14015de
docs: client sync dets
2024-02-15 08:34:31 +01:00
jean-emmanuel
e2215b865a
docs: python-rtmidi manual install update
2024-02-13 14:31:33 +01:00
jean-emmanuel
8c77ab7ca6
docs: update ref
2024-01-17 16:43:22 +01:00
jean-emmanuel
86e819870c
root: add onPreload scripting property
2024-01-17 16:31:27 +01:00
jean-emmanuel
9181c2a3aa
remote control: /EDIT* commands sent by a custom module are not affected by the server's read-only option anymore
2024-01-17 16:05:03 +01:00
jean-emmanuel
0d66f2b8a8
docs: add tutorial, rm cpu warning for /EDIT (mostly irrelevant today)
2023-11-30 13:21:20 +01:00
jean-emmanuel
a6237a0aac
scripting: stateSet: add optional {send: false} flag
2023-11-22 10:15:40 +01:00
jean-emmanuel
2c97ac662c
docs: small fix
2023-10-14 11:51:31 +02:00
jean-emmanuel
f2f1949053
docs: update
2023-08-22 00:37:12 +02:00
jean-emmanuel
c766370db7
scripting: using external: true in set() should prevent affected widget from sending any message
2023-08-21 23:33:22 +02:00
jean-emmanuel
28d06cc14a
docs: typo in syntax example
2023-08-16 10:36:23 +02:00
jean-emmanuel
19a4a62a3e
docs: minor change
2023-07-05 17:29:49 +02:00
jean-emmanuel
617cc915bf
docs: update
2023-05-13 14:39:05 +02:00
jean-emmanuel
d0d73e4d44
remote control: /STATE/SET add optional argument to prevent widgets from sending their value
2023-05-13 12:21:44 +02:00
jean-emmanuel
808b8b3176
docs: new langs
2023-04-15 10:42:52 +02:00
jean-emmanuel
2b84e5dd9e
docs: fix pretty download names
2023-04-06 01:25:07 +02:00
jean-emmanuel
5f39ae3e9e
docs: update refs
2023-04-06 01:00:57 +02:00
jean-emmanuel
645bba0402
docs: fix opening url with anchors to widget properties
2023-04-06 01:00:23 +02:00
jean-emmanuel
b480889b70
custom module: add optional errorCallback argument toloadJSON and saveJSON
2023-04-05 22:57:50 +02:00
jean-emmanuel
bb42439caf
docs: update widget ref
2023-03-15 08:42:54 +01:00
jean-emmanuel
8861c3d3a9
docs: midi rpn nrpn
2023-03-15 08:41:30 +01:00
jean-emmanuel
28bc7d87b5
docs: relative link
2023-02-20 17:47:25 +01:00
jean-emmanuel
bcb8f45505
docs: user-contrib tutorial
2023-02-07 13:10:28 +01:00
jean-emmanuel
e95cad07dd
docs: v0 is too old
2023-02-07 12:47:36 +01:00
jean-emmanuel
0ea2c49860
scripting: expose file browser (from the file widget) as a scripting function
2023-02-02 10:56:04 +01:00
jean-emmanuel
d9b1342e1d
docs: midi conf disambiguation
2023-01-09 10:08:42 +01:00
jean-emmanuel
10efd5bd94
docs: update
2023-01-03 09:06:12 +01:00
jean-emmanuel
5f1081a835
docs: dead link
2023-01-03 09:05:59 +01:00
jean-emmanuel
fe9e988d3e
docs: small changes
2023-01-03 09:02:12 +01:00
jean-emmanuel
cebca61e30
qrcode: optional (cli) and on demand (launcher)
2022-12-25 17:17:08 +01:00
jean-emmanuel
d4d0d18de1
docs: update
2022-11-29 17:00:28 +01:00
jean-emmanuel
5230eb2d4b
scripting: onCreate: expose value and call onCreate after default value is applied
2022-11-29 08:57:38 +01:00
jean-emmanuel
6ef1d412f9
custom module: expose global object that persists accross module reloads.
2022-11-29 08:36:09 +01:00
Eric Theise
89da9d5417
Typos.
2022-11-13 09:12:24 -08:00
jean-emmanuel
c4b8aea5f7
docs: update
2022-11-09 10:23:42 +01:00
jean-emmanuel
865147477f
scripting: expose Navigator object with `getNavigator()
2022-11-07 15:01:15 +01:00
jean-emmanuel
a90211223f
scripting: soft and hard reload
2022-11-07 13:07:02 +01:00
jean-emmanuel
a77a9c01dd
scripting: add reload() function
2022-11-07 13:02:01 +01:00
jean-emmanuel
2164964116
cli: add --client-size & --client-position options
2022-11-07 10:26:05 +01:00
jean-emmanuel
74f6c289e5
builtin client:change noFocus client option behavior: the defalt client window now doesn't take the focus at all, even when a text input is clicked.
2022-11-01 18:11:49 +01:00
jean-emmanuel
88ef6d1cd9
misc: doc update & locales
2022-10-30 15:58:36 +01:00
jean-emmanuel
3f2828ab65
docs: update
2022-10-29 20:22:53 +02:00
jean-emmanuel
d7bdb092c2
docs: new local zoom behavior
2022-10-26 10:46:28 +02:00
jean-emmanuel
a19a6ac22d
editor: add keyboard shortcut "h" to hide selection and widget drag / resize handles while pressed
2022-10-25 18:12:19 +02:00
jean-emmanuel
3f30ec32d3
ui: add virtual keyboard for keyboard-less desktop clients
2022-10-25 14:04:14 +02:00
jean-emmanuel
33e1d0a16b
docs: small fix
2022-10-21 16:15:05 +02:00