Mouse over icons on source (on Symbol and Characters)

Rename class Glyph in Decoration to Character ('Glyph' was used in system X typedef). Added MouseOver in Mixing and Layers view to show highlight color on icons of Symbol and Initials of source. Show left panel on clic on source Initials.
This commit is contained in:
Bruno Herbelin
2023-04-16 23:21:08 +02:00
parent f9caa75aa7
commit 4ed884de55
13 changed files with 132 additions and 23 deletions

View File

@@ -1166,6 +1166,14 @@ int UserInterface::RenderViewNavigator(int *shift)
return target_index;
}
void UserInterface::showSourcePanel(Source *s)
{
if (s) {
Mixer::manager().setCurrentSource( s );
navigator.showPannelSource( Mixer::manager().indexCurrentSource() );
}
}
void UserInterface::showSourceEditor(Source *s)
{
Mixer::manager().unsetCurrentSource();
@@ -1178,7 +1186,8 @@ void UserInterface::showSourceEditor(Source *s)
sourcecontrol.resetActiveSelection();
return;
}
navigator.showPannelSource( Mixer::manager().indexCurrentSource() );
else
showSourcePanel(s);
}
}
@@ -1729,9 +1738,9 @@ void UserInterface::RenderSourceToolbar(bool *p_open, int* p_border, int *p_mode
// NO SOURCE and not auto hide
else {
ImGui::TextDisabled("");
ImGui::TextDisabled(" ");
ImGui::TextDisabled("No source selected");
ImGui::TextDisabled("");
ImGui::TextDisabled(" ");
}
}