mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 02:40:00 +01:00
Cleanup of Session loading, saving, embedding in source and added option
to make sessionSource the current Session.
This commit is contained in:
@@ -265,18 +265,25 @@ void ImGuiVisitor::visit (Source& s)
|
||||
s.groupNode(View::GEOMETRY)->accept(*this);
|
||||
|
||||
// Action on source
|
||||
ImGui::Button("Clone", ImVec2(IMGUI_RIGHT_ALIGN, 0));
|
||||
// ImGui::Button("Clone", ImVec2(IMGUI_RIGHT_ALIGN, 0));
|
||||
}
|
||||
|
||||
void ImGuiVisitor::visit (MediaSource& s)
|
||||
{
|
||||
if (ImGui::Button("Open Media Player", ImVec2(IMGUI_RIGHT_ALIGN, 0)) )
|
||||
Settings::application.media_player = !Settings::application.media_player;
|
||||
if ( s.mediaplayer()->duration() == GST_CLOCK_TIME_NONE) {
|
||||
ImGui::Text("Image");
|
||||
}
|
||||
else {
|
||||
ImGui::Text("Video");
|
||||
if (ImGui::Button("Open Media Player", ImVec2(IMGUI_RIGHT_ALIGN, 0)) )
|
||||
Settings::application.media_player = true;
|
||||
}
|
||||
}
|
||||
|
||||
void ImGuiVisitor::visit (SessionSource& s)
|
||||
{
|
||||
// ImGui::Button("Expand", ImVec2(IMGUI_RIGHT_ALIGN, 0));
|
||||
ImGui::Text("Session");
|
||||
if (ImGui::Button("Make Current", ImVec2(IMGUI_RIGHT_ALIGN, 0)) )
|
||||
Mixer::manager().open( s.path() );
|
||||
Mixer::manager().set( s.detach() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user