Skip to content

Commit d7f7cc7

Browse files
Report visibility of video window
1 parent 0d2daa9 commit d7f7cc7

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ SWS/FNG: Time stretch selected items (fine): Control+Alt+=
346346
#### View
347347
- View: Toggle master track visible: Control+Alt+Shift+M
348348
- Toggle fullscreen: F11, Command+F11 on Mac
349+
- Show/hide video window: Control+Shift+V
349350

350351
#### Grid
351352
- Grid: Set to 1: Control+Shift+1

src/reaper_osara.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5632,6 +5632,18 @@ void cmdJumpToTime(Command* command) {
56325632
}, 50);
56335633
}
56345634

5635+
void cmdVideoWindowVisibility(Command* command) {
5636+
Main_OnCommand(command->gaccel.accel.cmd, 0);
5637+
// Delay the report to avoid it being clobbered when GUI updates.
5638+
CallLater([]() {
5639+
if (GetToggleCommandState(50125)) { // Show/hide video window
5640+
outputMessage(translate("showed video window"));
5641+
} else {
5642+
outputMessage(translate("hid video window"));
5643+
}
5644+
}, 50);
5645+
}
5646+
56355647
void cmdReportAndEditScrubSegmentOffsets(Command* command) {
56365648
int sizeStart = 0;
56375649
int sizeEnd = 0;
@@ -5881,6 +5893,7 @@ Command COMMANDS[] = {
58815893
{MAIN_SECTION, {{0, 0, 42207}, nullptr}, nullptr, cmdAddAutoItems}, // Envelope: Convert all project automation to automation items
58825894
{MAIN_SECTION, {{0, 0, 42089}, nullptr}, nullptr, cmdGlueAutoItems}, // Envelope: Glue automation items
58835895
{MAIN_SECTION, {{0, 0, 40069}, nullptr}, nullptr, cmdJumpToTime}, // View: Jump (go) to time window
5896+
{MAIN_SECTION, {{0, 0, 50125}, nullptr}, nullptr, cmdVideoWindowVisibility}, // Video: Show/hide video window
58845897
{MIDI_EDITOR_SECTION, {{0, 0, 40036}, nullptr}, nullptr, cmdMidiMoveCursor}, // View: Go to start of file
58855898
{MIDI_EVENT_LIST_SECTION, {{0, 0, 40036}, nullptr}, nullptr, cmdMidiMoveCursor}, // View: Go to start of file
58865899
{MIDI_EDITOR_SECTION, {{0, 0, 40037}, nullptr}, nullptr, cmdMidiMoveCursor}, // View: Go to end of file

0 commit comments

Comments
 (0)