mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 22:12:58 +02:00
Remove TranslatedInternalString, use ComponentInterfaceSymbol
This commit is contained in:
@@ -51,10 +51,8 @@ TranslatableString MuteButtonHandle::Tip(const wxMouseState &) const
|
||||
return name;
|
||||
|
||||
auto &commandManager = CommandManager::Get( *project );
|
||||
TranslatedInternalString command{ wxT("TrackMute"), name.Translation() };
|
||||
return TranslatableString{
|
||||
commandManager.DescribeCommandsAndShortcuts(&command, 1u)
|
||||
};
|
||||
ComponentInterfaceSymbol command{ wxT("TrackMute"), name };
|
||||
return commandManager.DescribeCommandsAndShortcuts(&command, 1u);
|
||||
}
|
||||
|
||||
UIHandlePtr MuteButtonHandle::HitTest
|
||||
@@ -109,10 +107,8 @@ TranslatableString SoloButtonHandle::Tip(const wxMouseState &) const
|
||||
return name;
|
||||
|
||||
auto &commandManager = CommandManager::Get( *project );
|
||||
TranslatedInternalString command{ wxT("TrackSolo"), name.Translation() };
|
||||
return TranslatableString{
|
||||
commandManager.DescribeCommandsAndShortcuts( &command, 1u )
|
||||
};
|
||||
ComponentInterfaceSymbol command{ wxT("TrackSolo"), name };
|
||||
return commandManager.DescribeCommandsAndShortcuts( &command, 1u );
|
||||
}
|
||||
|
||||
UIHandlePtr SoloButtonHandle::HitTest
|
||||
|
@@ -180,10 +180,8 @@ TranslatableString CloseButtonHandle::Tip(const wxMouseState &) const
|
||||
return name;
|
||||
|
||||
auto &commandManager = CommandManager::Get( *project );
|
||||
TranslatedInternalString command{ wxT("TrackClose"), name.Translation() };
|
||||
return TranslatableString{
|
||||
commandManager.DescribeCommandsAndShortcuts( &command, 1u )
|
||||
};
|
||||
ComponentInterfaceSymbol command{ wxT("TrackClose"), name };
|
||||
return commandManager.DescribeCommandsAndShortcuts( &command, 1u );
|
||||
}
|
||||
|
||||
UIHandlePtr CloseButtonHandle::HitTest
|
||||
@@ -242,10 +240,8 @@ TranslatableString MenuButtonHandle::Tip(const wxMouseState &) const
|
||||
return name;
|
||||
|
||||
auto &commandManager = CommandManager::Get( *project );
|
||||
TranslatedInternalString command{ wxT("TrackMenu"), name.Translation() };
|
||||
return TranslatableString{
|
||||
commandManager.DescribeCommandsAndShortcuts( &command, 1u )
|
||||
};
|
||||
ComponentInterfaceSymbol command{ wxT("TrackMenu"), name };
|
||||
return commandManager.DescribeCommandsAndShortcuts( &command, 1u );
|
||||
}
|
||||
|
||||
UIHandlePtr MenuButtonHandle::HitTest
|
||||
|
Reference in New Issue
Block a user