1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-22 22:21:11 +02:00

Bug 1872 - Most Non-Modal dialogs do not update buttons when language changed

This commit is contained in:
Leland Lucius
2021-02-14 01:25:52 -06:00
parent 0ab7645105
commit 20ace313fa
13 changed files with 279 additions and 79 deletions

View File

@@ -15,6 +15,7 @@
#include <wx/defs.h>
#include "BatchCommands.h"
#include "Prefs.h"
class wxWindow;
class wxTextCtrl;
@@ -47,7 +48,6 @@ class ApplyMacroDialog : public wxDialogWrapper {
void ApplyMacroToProject( int iMacro, bool bHasGui=true );
void ApplyMacroToProject( const CommandID & MacroID, bool bHasGui=true );
// These will be reused in the derived class...
wxListCtrl *mList;
wxListCtrl *mMacros;
@@ -69,7 +69,8 @@ protected:
DECLARE_EVENT_TABLE()
};
class MacrosWindow final : public ApplyMacroDialog
class MacrosWindow final : public ApplyMacroDialog,
public PrefsListener
{
public:
MacrosWindow(
@@ -125,6 +126,9 @@ private:
void InsertCommandAt(int item);
bool SaveChanges();
// PrefsListener implementation
void UpdatePrefs() override;
AudacityProject &mProject;
wxButton *mRemove;