mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 17:09:26 +02:00
Fix whitespace inconsistencies
Signed-off-by: abb128 <alexx128p@gmail.com>
This commit is contained in:
parent
02000a97d5
commit
298ccd94d3
@ -976,8 +976,8 @@ void AdornedRulerPanel::UpdatePrefs()
|
|||||||
|
|
||||||
if ( mode != mEditMode )
|
if ( mode != mEditMode )
|
||||||
{
|
{
|
||||||
mEditMode = mode;
|
mEditMode = mode;
|
||||||
ReCreateButtons();
|
ReCreateButtons();
|
||||||
}else if (mNeedButtonUpdate) {
|
}else if (mNeedButtonUpdate) {
|
||||||
// Visit this block once only in the lifetime of this panel
|
// Visit this block once only in the lifetime of this panel
|
||||||
mNeedButtonUpdate = false;
|
mNeedButtonUpdate = false;
|
||||||
|
@ -64,9 +64,9 @@ BaseItemSharedPtr ToolbarsMenu()
|
|||||||
Menu( wxT("Toolbars"), XXO("&Toolbars"),
|
Menu( wxT("Toolbars"), XXO("&Toolbars"),
|
||||||
Section( "Manage",
|
Section( "Manage",
|
||||||
/* i18n-hint: (verb)*/
|
/* i18n-hint: (verb)*/
|
||||||
Command( wxT("EditMode"), XXO("&Edit Mode (on/off)"),
|
Command( wxT("EditMode"), XXO("&Edit Mode (on/off)"),
|
||||||
FN(OnEditMode), AudioIONotBusyFlag(),
|
FN(OnEditMode), AudioIONotBusyFlag(),
|
||||||
Options{}.CheckTest( wxT("/GUI/Toolbars/EditMode"), true ) ),
|
Options{}.CheckTest( wxT("/GUI/Toolbars/EditMode"), true ) ),
|
||||||
Command( wxT("ResetToolbars"), XXO("Reset Toolb&ars"),
|
Command( wxT("ResetToolbars"), XXO("Reset Toolb&ars"),
|
||||||
FN(OnResetToolBars), AlwaysEnabledFlag )
|
FN(OnResetToolBars), AlwaysEnabledFlag )
|
||||||
),
|
),
|
||||||
|
@ -542,11 +542,11 @@ void ToolBar::ReCreateButtons()
|
|||||||
// Grabber is created only when editing, or when it's undocked
|
// Grabber is created only when editing, or when it's undocked
|
||||||
// (as otherwise the undocked toolbar can't be moved around)
|
// (as otherwise the undocked toolbar can't be moved around)
|
||||||
if (mEditMode || !IsDocked())
|
if (mEditMode || !IsDocked())
|
||||||
{
|
{
|
||||||
// Create the grabber and add it to the main sizer
|
// Create the grabber and add it to the main sizer
|
||||||
mGrabber = safenew Grabber(this, mType);
|
mGrabber = safenew Grabber(this, mType);
|
||||||
ms->Add(mGrabber, 0, wxEXPAND | wxALIGN_LEFT | wxALIGN_TOP | wxRIGHT, 1);
|
ms->Add(mGrabber, 0, wxEXPAND | wxALIGN_LEFT | wxALIGN_TOP | wxRIGHT, 1);
|
||||||
}
|
}
|
||||||
// Use a box sizer for laying out controls
|
// Use a box sizer for laying out controls
|
||||||
ms->Add((mHSizer = safenew wxBoxSizer(wxHORIZONTAL)), 1, wxEXPAND);
|
ms->Add((mHSizer = safenew wxBoxSizer(wxHORIZONTAL)), 1, wxEXPAND);
|
||||||
|
|
||||||
@ -631,14 +631,14 @@ void ToolBar::UpdatePrefs()
|
|||||||
|
|
||||||
if ( editing != mEditMode )
|
if ( editing != mEditMode )
|
||||||
{
|
{
|
||||||
mEditMode = editing;
|
mEditMode = editing;
|
||||||
updated = true;
|
updated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( updated )
|
if ( updated )
|
||||||
{
|
{
|
||||||
ReCreateButtons();
|
ReCreateButtons();
|
||||||
Updated();
|
Updated();
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user