Skip to content

Commit

Permalink
Updated network commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Apr 20, 2024
1 parent fe1da2c commit be190c6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions mrv2/docs/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ v1.1.3
- Added instructions on Windows on how to retrieve the Explorer thumbnails.
- Darby has been busy! He added automatic scrolling of the timeline when
playing and ability to toggle track and clip info.
- Added Darby's new options to Network connections.
- New action icons, which should display properly at high resolutions.
- Sped up comparison wipes with Alt and Shift dragging.
- Sped up color corrections from the Color Panel.
Expand Down
9 changes: 9 additions & 0 deletions mrv2/lib/mrvFl/mrvCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,10 @@ namespace mrv

void timeline_frame_view_cb(Fl_Menu_* m, ViewerUI* ui)
{
Message msg;
msg["command"] = "Timeline/FrameView";
if (ui->uiPrefs->SendUI->value())
tcp->pushMessage(msg);
ui->uiTimeline->frameView();
ui->uiMain->fill_menu(ui->uiMenuBar);
}
Expand All @@ -1614,6 +1618,11 @@ namespace mrv
Fl_Menu_Item* item = const_cast< Fl_Menu_Item* >(m->mvalue());
bool value = item->checked();
auto settings = ui->app->settings();
Message msg;
msg["command"] = "Timeline/ScrollToCurrentFrame";
msg["value"] = value;
if (ui->uiPrefs->SendUI->value())
tcp->pushMessage(msg);
settings->setValue("Timeline/ScrollToCurrentFrame", value);
ui->uiTimeline->setScrollToCurrentFrame(value);
ui->uiMain->fill_menu(ui->uiMenuBar);
Expand Down
21 changes: 21 additions & 0 deletions mrv2/lib/mrvNetwork/mrvCommandInterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,27 @@ namespace mrv
timelineui::ItemOptions value = message["value"];
ui->uiTimeline->setItemOptions(value);
}
else if (c == "Timeline/FrameView")
{
bool receive = prefs->ReceiveUI->value();
if (!receive)
{
tcp->unlock();
return;
}
ui->uiTimeline->frameView();
}
else if (c == "Timeline/ScrollToCurrentFrame")
{
bool receive = prefs->ReceiveUI->value();
if (!receive)
{
tcp->unlock();
return;
}
bool value = message["value"];
ui->uiTimeline->setScrollToCurrentFrame(value);
}
else if (c == "setTimelineEditable")
{
bool receive = prefs->ReceiveUI->value();
Expand Down

0 comments on commit be190c6

Please sign in to comment.