Audacity 3.2.0
TimeFormat.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 TimeFormat.h
6
7 Dominic Mazzoni
8 Michael Papadopoulos split from Ruler.h
9
10**********************************************************************/
11
12#ifndef __AUDACITY_TIME_FORMAT__
13#define __AUDACITY_TIME_FORMAT__
14
15#include "RulerFormat.h"
16
17class TimeFormat final : public RulerFormat {
18public:
19 static const TimeFormat &Instance();
20 ~TimeFormat() override;
21
22 void SetTickSizes(
23 double units, double& major, double& minor, double& minorMinor,
24 int& mDigits
25 ) const override;
26
27 void SetLabelString(
28 wxString& s, double d, double units, double minor, int mDigits, TickType tickType
29 ) const override;
30
31private:
33};
34
35#endif
~TimeFormat() override
void SetLabelString(wxString &s, double d, double units, double minor, int mDigits, TickType tickType) const override
Definition: TimeFormat.cpp:105
static const TimeFormat & Instance()
Definition: TimeFormat.cpp:15
void SetTickSizes(double units, double &major, double &minor, double &minorMinor, int &mDigits) const override
Definition: TimeFormat.cpp:21