1
0
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:
Paul Licameli 2016-05-29 12:07:01 -04:00
parent 7d265dc3d4
commit 8d8c7b7f00
3 changed files with 9 additions and 0 deletions

View File

@ -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()

View File

@ -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 };

View File

@ -315,6 +315,7 @@ public:
void InvalidateRuler();
void UpdatePrefs();
void ReCreateButtons();
enum class StatusChoice {
FirstButton = 0,