mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-26 01:18:06 +02:00
Update status bar field widths in case of language change
This commit is contained in:
parent
68999934e0
commit
312911645e
@ -899,6 +899,12 @@ void ProjectWindow::OnThemeChange(wxCommandEvent& evt)
|
|||||||
AdornedRulerPanel::Get( project ).ReCreateButtons();
|
AdornedRulerPanel::Get( project ).ReCreateButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ProjectWindow::UpdatePrefs()
|
||||||
|
{
|
||||||
|
// Update status bar widths in case of language change
|
||||||
|
UpdateStatusWidths();
|
||||||
|
}
|
||||||
|
|
||||||
void ProjectWindow::FinishAutoScroll()
|
void ProjectWindow::FinishAutoScroll()
|
||||||
{
|
{
|
||||||
// Set a flag so we don't have to generate two update events
|
// Set a flag so we don't have to generate two update events
|
||||||
|
@ -14,6 +14,7 @@ Paul Licameli split from AudacityProject.h
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
#include <wx/frame.h> // to inherit
|
#include <wx/frame.h> // to inherit
|
||||||
#include "TrackPanelListener.h" // to inherit
|
#include "TrackPanelListener.h" // to inherit
|
||||||
|
#include "Prefs.h"
|
||||||
|
|
||||||
class AudacityProject;
|
class AudacityProject;
|
||||||
class Track;
|
class Track;
|
||||||
@ -25,6 +26,7 @@ class wxPanel;
|
|||||||
/// and zooming
|
/// and zooming
|
||||||
class ProjectWindow final : public wxFrame
|
class ProjectWindow final : public wxFrame
|
||||||
, public TrackPanelListener
|
, public TrackPanelListener
|
||||||
|
, public PrefsListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static ProjectWindow &Get( AudacityProject &project );
|
static ProjectWindow &Get( AudacityProject &project );
|
||||||
@ -138,6 +140,9 @@ public:
|
|||||||
|
|
||||||
void OnThemeChange(wxCommandEvent & evt);
|
void OnThemeChange(wxCommandEvent & evt);
|
||||||
|
|
||||||
|
// PrefsListener implementation
|
||||||
|
void UpdatePrefs() override;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// Message Handlers
|
// Message Handlers
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user