12#ifndef __AUDACITY_UPDATER__
13#define __AUDACITY_UPDATER__
67 std::optional<TranslatableString>
text;
71 void Draw(wxDC& dc,
bool twoTone, wxColour c,
72 std::unique_ptr<RulerStruct::Fonts>& fonts)
const;
76 using Bits = std::vector< bool >;
114 static std::pair< wxRect, Label >
MakeTick(
116 wxDC& dc, wxFont font,
117 std::vector<bool>& bits,
118 int left,
int top,
int spacing,
int lead,
119 bool flip,
int orientation);
Piecewise linear or piecewise exponential function from double to double.
std::vector< Label > Labels
void BoxAdjust(UpdateOutputs &allOutputs, const RulerStruct &context) const
virtual void Update(wxDC &dc, const Envelope *envelope, UpdateOutputs &allOutputs, const RulerStruct &context) const =0
virtual ~RulerUpdater()=0
static std::pair< wxRect, Label > MakeTick(RulerUpdater::Label lab, wxDC &dc, wxFont font, std::vector< bool > &bits, int left, int top, int spacing, int lead, bool flip, int orientation)
Holds a msgid for the translation catalog; may also bind format arguments.
std::unique_ptr< Fonts > mpFonts
TranslatableString mUnits
const RulerFormat * mpRulerFormat
An array of these created by the Updater is used to determine what and where text annotations to the ...
std::optional< TranslatableString > text
void Draw(wxDC &dc, bool twoTone, wxColour c, std::unique_ptr< RulerStruct::Fonts > &fonts) const
TranslatableString LabelString(double d, const RulerFormat *format) const
TickSizes(double UPP, int orientation, const RulerFormat *format, bool log)
RulerFormat::TickType tickType
Labels & minorMinorLabels