mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-24 08:10:05 +02:00
Calls to time ruler button creation/update, but it does nothing yet
This commit is contained in:
parent
7d265dc3d4
commit
8d8c7b7f00
@ -65,6 +65,7 @@ and use it for toolbar and window layouts too.
|
||||
#include "Project.h"
|
||||
#include "toolbars/ToolBar.h"
|
||||
#include "toolbars/ToolManager.h"
|
||||
#include "widgets/Ruler.h"
|
||||
#include "ImageManipulation.h"
|
||||
#include "Theme.h"
|
||||
#include "Experimental.h"
|
||||
@ -230,6 +231,7 @@ void Theme::ApplyUpdatedImages()
|
||||
if( pToolBar )
|
||||
pToolBar->ReCreateButtons();
|
||||
}
|
||||
p->GetRulerPanel()->ReCreateButtons();
|
||||
}
|
||||
|
||||
void Theme::RegisterImages()
|
||||
|
@ -1957,6 +1957,8 @@ AdornedRulerPanel::AdornedRulerPanel(AudacityProject* parent,
|
||||
, mProject(parent)
|
||||
, mViewInfo(viewinfo)
|
||||
{
|
||||
ReCreateButtons();
|
||||
|
||||
SetLabel( _("Timeline") );
|
||||
SetName(GetLabel());
|
||||
SetBackgroundStyle(wxBG_STYLE_PAINT);
|
||||
@ -2062,6 +2064,10 @@ void AdornedRulerPanel::UpdatePrefs()
|
||||
mButtonFontSize = -1;
|
||||
}
|
||||
|
||||
void AdornedRulerPanel::ReCreateButtons()
|
||||
{
|
||||
}
|
||||
|
||||
namespace {
|
||||
enum { ArrowWidth = 8, ArrowSpacing = 1, ArrowHeight = ArrowWidth / 2 };
|
||||
|
||||
|
@ -315,6 +315,7 @@ public:
|
||||
void InvalidateRuler();
|
||||
|
||||
void UpdatePrefs();
|
||||
void ReCreateButtons();
|
||||
|
||||
enum class StatusChoice {
|
||||
FirstButton = 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user