Commit c7e0d7c
SG-40371: Presentation Mode Enhancements (#850)
### Summarize your change.
This PR add some features to aid in automating Presentation mode
#### Add command to set the presentation device
Add new command `setPresentationDevice`. You can do this with the
writeSettings command but that requires a restart of RV or opening of
the preference window to trigger the the preference being applied.
#### Fix Video Format Overlay
View->Presentation Settings->Video Format overlay was disable because it
was causing a crash in `RV-4.0+`. I fixed the crash and it works again.
It is useful for debugging presentation devices.
<img width="1382" height="380" alt="image"
src="https://github.com/user-attachments/assets/75b53c6c-a934-4a74-8f06-1cd0d65cf1ab"
/>
<img width="1445" height="839" alt="image"
src="https://github.com/user-attachments/assets/4ec4410b-7fb4-4ed9-ac93-a49adc8c0af4"
/>
#### Presentation device additional options
This is pretty funny, **disable** the rich text option on this widget.
don't think this widget needs bold, underline text, colors etc. Can
happen if you are copy pasting text into widget
<img width="701" height="231" alt="image"
src="https://github.com/user-attachments/assets/4baca019-86f6-44c5-8f23-201c0a381236"
/>
#### Add command to apply preferences
`rv.commands.writeSetting` command does not immediately apply the
preferences you set. It only saves them to the configuration file. A
restart of RV or opening of the preference window is required to trigger
the changes to take effect. The `loadSettingsIntoOptions` command
addresses this issue by allowing preferences to be applied. I used the
same name as the c++ function for the command. This name might not be
ideal, I’m open to suggestions for a better name. This command has
proven to be very useful, for setting additional preferences like
modifying `Treat Stylus Events as Mouse Events` which currently not
possible.
### Describe what you have tested and on which operating system.
Linux, macOS
---------
Signed-off-by: Mark Reid <[email protected]>
Signed-off-by: Bernard Laberge <[email protected]>
Co-authored-by: pbergeron-adsk <[email protected]>
Co-authored-by: Bernard Laberge <[email protected]>1 parent 2787ab2 commit c7e0d7c
File tree
5 files changed
+141
-64
lines changed- src/lib/app
- RvCommon
- RvCommon
- ui/RvPreferences/Qt5
- mu_rvui
- py_rvui
5 files changed
+141
-64
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
479 | 486 | | |
480 | 487 | | |
481 | 488 | | |
| |||
2261 | 2268 | | |
2262 | 2269 | | |
2263 | 2270 | | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
2264 | 2322 | | |
2265 | 2323 | | |
2266 | 2324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1719 | 1719 | | |
1720 | 1720 | | |
1721 | 1721 | | |
1722 | | - | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
1723 | 1727 | | |
1724 | 1728 | | |
1725 | 1729 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
238 | 311 | | |
239 | 312 | | |
240 | 313 | | |
| |||
313 | 386 | | |
314 | 387 | | |
315 | 388 | | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
| 389 | + | |
377 | 390 | | |
378 | 391 | | |
379 | 392 | | |
| |||
510 | 523 | | |
511 | 524 | | |
512 | 525 | | |
513 | | - | |
514 | | - | |
515 | 526 | | |
516 | 527 | | |
517 | 528 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| 180 | + | |
| 181 | + | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| |||
0 commit comments