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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user