ui: the readouts show in a strip under the plot when the dock is hidden
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
54f2722fea
commit
c8d9d04f59
7 files changed
+282
-22
No files matched your search
@@ -610,6 +610,17 @@ struct App {
|
||||
GtkWidget* dock_measures_edit = nullptr;
|
||||
/// One value label per measurement, in `measures` order (the dock's copy of `measure_labels`).
|
||||
std::vector<GtkWidget*> dock_measure_labels;
|
||||
/// The readouts strip under the plot (`main-window.ui` `readouts_strip`, `src/ui_dock.cpp`): shown only
|
||||
/// while the dock is not. Its value labels mirror the dock's one for one -- `strip_cursor_deltas` the
|
||||
/// `d` cell of each `dock_cursor_lines` entry, `strip_measure_labels` each of `dock_measure_labels` --
|
||||
/// and `strip_cursor_who` the cursor lines' `who` cells, all written from the dock setters' arguments.
|
||||
GtkWidget* readouts_strip = nullptr;
|
||||
GtkWidget* strip_box = nullptr;
|
||||
GtkWidget* strip_cursor_box = nullptr; ///< the cursor chips; insensitive with the cursors off
|
||||
GtkWidget* strip_measure_box = nullptr; ///< the measurement chips
|
||||
std::vector<GtkWidget*> strip_cursor_who;
|
||||
std::vector<GtkWidget*> strip_cursor_deltas;
|
||||
std::vector<GtkWidget*> strip_measure_labels;
|
||||
/// The measurements the user set up, and what they last computed. The list is the state;
|
||||
/// the results are recomputed on a throttle (the numbers are window statistics, and the
|
||||
/// window scrolls every frame -- 60 recomputations a second of every sample is not a
|
||||
@@ -1784,6 +1795,13 @@ void dock_rebuild_measures(App& app);
|
||||
void dock_cursor_cell(App& app, std::size_t line, const std::string& a, const std::string& b,
|
||||
const std::string& d);
|
||||
void dock_measure_value(App& app, std::size_t i, const std::string& text);
|
||||
/// The readouts strip under the plot (`src/ui_dock.cpp`): the third reader of the same strings. It is
|
||||
/// filled by the `dock_*` rebuilds and written by the `dock_*` setters above (so nothing here formats),
|
||||
/// and shown exactly when the dock is not: `sync_readouts_strip()` is called by the tick after the
|
||||
/// show-sidebar reconciliation. `dock_set_cursors_sensitive()` is the one writer of the cursor readouts'
|
||||
/// sensitivity, for the dock's grid and the strip's chips together.
|
||||
void sync_readouts_strip(App& app);
|
||||
void dock_set_cursors_sensitive(App& app, bool on);
|
||||
/// The Events block under the readouts (`src/ui_dock.cpp`): compact rows (marker, title, time; no
|
||||
/// thumbnails) from `event_store->list()`, newest first, and a Manage button for the `events` page.
|
||||
/// `dock_rebuild_events()` follows every change of what is *cached*, `dock_mark_events()` every change
|
||||
|
||||
Reference in new issue
Block a user