Sequencer - Minor changes to toolbar
This commit is contained in:
parent
b284c2ecc2
commit
2c7fd87c48
1 changed files with 8 additions and 9 deletions
|
@ -644,6 +644,11 @@ void T_SyncViewImpl_::displayToolbar( ) noexcept
|
||||||
TimeToString_( tBuffer , sizeof( tBuffer ) , sync.time( ) );
|
TimeToString_( tBuffer , sizeof( tBuffer ) , sync.time( ) );
|
||||||
Text( "%s" , tBuffer );
|
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( );
|
ToolbarSeparator( );
|
||||||
|
|
||||||
|
@ -663,20 +668,14 @@ void T_SyncViewImpl_::displayToolbar( ) noexcept
|
||||||
|
|
||||||
if ( ToolbarButton( followTime ? ICON_FA_LOCK : ICON_FA_UNLOCK , BtSize ,
|
if ( ToolbarButton( followTime ? ICON_FA_LOCK : ICON_FA_UNLOCK , BtSize ,
|
||||||
followTime ? "Follows the current position.\nClick to untie."
|
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;
|
followTime = !followTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
ToolbarSeparator( );
|
ToolbarSeparator( );
|
||||||
|
|
||||||
if ( ToolbarButton( ICON_FA_CLOCK_O , BtSize , "Change duration and time units." ) ) {
|
if ( ToolbarButton( ICON_FA_TAGS , BtSize , "Toggle track labels." , true , showLabels ) ) {
|
||||||
UI::Main( ).pushDialog( NewOwned< T_ChangeDurationDialog_ >(
|
|
||||||
sync.durationUnits( ) , sync.durationUnitSize( ) ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
ToolbarSeparator( );
|
|
||||||
|
|
||||||
if ( ToolbarButton( ICON_FA_TAGS , BtSize , "Toggle track labels." ) ) {
|
|
||||||
showLabels = !showLabels;
|
showLabels = !showLabels;
|
||||||
}
|
}
|
||||||
SameLine( );
|
SameLine( );
|
||||||
|
|
Loading…
Reference in a new issue