Split the settings page controller: the audio form, the switches and the volume dialog into voelin-ui-vm
settings_page/logic.rs now has what the page shows when it opens (the device choices, the form, the push-to-talk and H.264 switches), what a change of the form sends to the engine, the microphone test, the push-to-talk key to register, the crash notice and the H.264 rows, and the client volume dialog (what it fills from, what it plays and keeps, which client VOELIN_OPEN=client opens). The audio settings and the clients' volumes are kept through Persist::Audio and Persist::Playback. The Slint side (settings_page/bind.rs) lists the devices, owns the hotkey, the codec and the crash reports, and writes the Bridge. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
156df9d95b
commit
52e39f0b5a
9 files changed
+672
-286
No files matched your search
+9
-4
@@ -39,6 +39,9 @@ crates/voelin-ui-vm/ view models and state, no UI toolkit
|
||||
settings.rs the UI's settings keys, the audio form
|
||||
settings_pages/logic.rs, studio/logic.rs
|
||||
the decisions of the settings pages and of the Stream Studio
|
||||
settings_page/logic.rs
|
||||
the audio settings page (devices, form, microphone test, push to
|
||||
talk), the crash notice and the volume dialog of a client
|
||||
bbcode.rs emoji.rs chat formatting; the Twemoji archive, text → runs of text and emoji
|
||||
crates/voelin-ui/ the Slint front end
|
||||
ui/
|
||||
@@ -69,7 +72,7 @@ crates/voelin-ui/ the Slint front end
|
||||
a `voelin_ui_vm::state::AppState` and the window
|
||||
host.rs SlintHost (the answers the transitions ask for), `App::apply_event`,
|
||||
`transition` and `perform`: doing what an `Update` says
|
||||
members.rs settings_page.rs appearance.rs
|
||||
members.rs appearance.rs
|
||||
home.rs social.rs messages.rs events.rs previews.rs popout.rs
|
||||
the Slint side of each area (social.rs: contacts, the bell and the
|
||||
search; previews.rs: pictures in chat; popout.rs: the stream's own
|
||||
@@ -77,6 +80,8 @@ crates/voelin-ui/ the Slint front end
|
||||
chat/ mod.rs, bind.rs: the chat view's Bridge writes and models
|
||||
servers/ mod.rs, bind.rs: connecting and observing (store, secrets, engine),
|
||||
the rail, the server card and the tree on the Bridge
|
||||
settings_page/ mod.rs, bind.rs: the audio devices, the hotkey, the codec download,
|
||||
the crash reports and the Bridge writes of the settings page
|
||||
settings_pages/ mod.rs (Pages), bind.rs: the settings pages on the Bridge
|
||||
streams/ mod.rs (Share: the capture), bind.rs: the streams panel, the share
|
||||
dialog and the viewer on the Bridge, the capture and the decoder
|
||||
@@ -154,7 +159,7 @@ this file is `voelin_ui_vm::chat`. The boundary:
|
||||
settings service, the `AppState` and plain rows; they return rows,
|
||||
commands or messages for the status line, and write no Bridge) and
|
||||
`<area>/bind.rs` in `voelin-ui` (the Bridge and model writes, windows,
|
||||
timers, threads, engine commands). Done: `settings_pages`, `studio`, `streams`, `chat` and `servers`.
|
||||
timers, threads, engine commands). Done: `settings_pages`, `studio`, `streams`, `chat`, `servers` and `settings_page`.
|
||||
|
||||
The pure code is tested in `voelin-ui-vm` (`cargo test -p voelin-ui-vm`,
|
||||
no display); the Slint crate's tests are what needs the window types.
|
||||
@@ -176,7 +181,6 @@ the same shape as `settings_pages` and `studio`: move the decisions into
|
||||
| File | `.set_` calls | What it mixes |
|
||||
|---|---|---|
|
||||
| `app.rs` | 31 | setup, the status line, the toolbar and tree refreshes (the event dispatch is `vm::events::apply`) |
|
||||
| `settings_page.rs` | 26 | the audio settings page and the devices |
|
||||
| `social.rs` | 23 | home's contacts, the bell and the search |
|
||||
| `dev.rs` | 23 | development switches and the sample data (the switches stay with the window; the sample rows can move) |
|
||||
| `images.rs` | 13 | the decoded-picture cache |
|
||||
@@ -191,7 +195,8 @@ and `settings_pages.rs` 52 (the two with the most, then `streams.rs` with 45;
|
||||
gone with them). Their `bind.rs` files still show 58 and 51 (and
|
||||
`streams/bind.rs`, split from the 45 of `streams.rs`, 38, and
|
||||
`chat/bind.rs`, from the 38 of `chat.rs`, 31, and `servers/bind.rs`, from
|
||||
the 32 of `servers.rs`, 31): the Bridge and
|
||||
the 32 of `servers.rs`, 31, and `settings_page/bind.rs`, from the 26 of
|
||||
`settings_page.rs`, 26): the Bridge and
|
||||
model writes stay where the toolkit is, and what each write says now comes
|
||||
from `logic.rs`, which has tests of its own.
|
||||
|
||||
|
||||
Reference in new issue
Block a user