Sequencer - Minor changes to toolbar

This commit is contained in:
Emmanuel BENOîT 2017-11-30 09:31:55 +01:00
parent b284c2ecc2
commit 2c7fd87c48

View file

@ -644,6 +644,11 @@ void T_SyncViewImpl_::displayToolbar( ) noexcept
TimeToString_( tBuffer , sizeof( tBuffer ) , sync.time( ) );
Text( "%s" , tBuffer );
}
SameLine( );
if ( ToolbarButton( ICON_FA_CLOCK_O , BtSize , "Change duration and time units." ) ) {
UI::Main( ).pushDialog( NewOwned< T_ChangeDurationDialog_ >(
sync.durationUnits( ) , sync.durationUnitSize( ) ) );
}
ToolbarSeparator( );
@ -663,20 +668,14 @@ void T_SyncViewImpl_::displayToolbar( ) noexcept
if ( ToolbarButton( followTime ? ICON_FA_LOCK : ICON_FA_UNLOCK , BtSize ,
followTime ? "Follows the current position.\nClick to untie."
: "Not tied to the current position.\nClick to follow." ) ) {
: "Not tied to the current position.\nClick to follow." ,
true , followTime ) ) {
followTime = !followTime;
}
ToolbarSeparator( );
if ( ToolbarButton( ICON_FA_CLOCK_O , BtSize , "Change duration and time units." ) ) {
UI::Main( ).pushDialog( NewOwned< T_ChangeDurationDialog_ >(
sync.durationUnits( ) , sync.durationUnitSize( ) ) );
}
ToolbarSeparator( );
if ( ToolbarButton( ICON_FA_TAGS , BtSize , "Toggle track labels." ) ) {
if ( ToolbarButton( ICON_FA_TAGS , BtSize , "Toggle track labels." , true , showLabels ) ) {
showLabels = !showLabels;
}
SameLine( );