Sequencer - Buttons to switch info windows

If a segment is selected, one can switch between the track and segment
info windows.
If a point is selected, one can switch between track, segment and point
info windows.
This commit is contained in:
Emmanuel BENOîT 2017-11-30 10:23:53 +01:00
parent b30e361fd3
commit 49acb73e26

View file

@ -701,6 +701,22 @@ void T_SyncViewImpl_::displayToolbar( ) noexcept
if ( ToolbarButton( ICON_FA_COG , BtSize , "Select tracks automatically." ) ) { if ( ToolbarButton( ICON_FA_COG , BtSize , "Select tracks automatically." ) ) {
autoselectTracks( ); autoselectTracks( );
} }
ToolbarSeparator( );
if ( ToolbarButton( ICON_FA_MINUS , BtSize , "Show track info." ,
selId && sub != SW_TRACK ) ) {
sub = SW_TRACK;
}
SameLine( );
if ( ToolbarButton( ICON_FA_ARROWS_H , BtSize , "Show segment info." ,
selId && selSegment && sub != SW_SEGMENT ) ) {
sub = SW_SEGMENT;
}
SameLine( );
if ( ToolbarButton( ICON_FA_CIRCLE , BtSize , "Show point info." ,
selId && selSegment && selPoint && sub != SW_POINT ) ) {
sub = SW_POINT;
}
} }
/*------------------------------------------------------------------------------*/ /*------------------------------------------------------------------------------*/