Audacity
3.2.0
src
widgets
RulerFormat.h
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity: A Digital Audio Editor
4
5
RulerFormat.h
6
7
Michael Papadopoulos
8
9
**********************************************************************/
10
11
#ifndef __AUDACITY_RULER_FORMAT__
12
#define __AUDACITY_RULER_FORMAT__
13
14
#include <wx/string.h>
15
#include <cmath>
16
17
class
RulerFormat
{
18
public
:
19
enum
TickType
{
20
t_major
,
t_minor
,
t_minorMinor
21
};
22
explicit
RulerFormat
() {}
23
virtual
~RulerFormat
();
24
25
virtual
void
SetTickSizes
(
26
double
units,
double
& major,
double
& minor,
double
&minorMinor,
27
int
&mDigits
28
)
const
= 0;
29
30
virtual
void
SetLabelString
(
31
wxString& s,
double
d,
double
units,
double
minor,
int
mDigits,
TickType
tickType
32
)
const
= 0;
33
};
34
35
#endif
RulerFormat
Definition:
RulerFormat.h:17
RulerFormat::~RulerFormat
virtual ~RulerFormat()
RulerFormat::SetLabelString
virtual void SetLabelString(wxString &s, double d, double units, double minor, int mDigits, TickType tickType) const =0
RulerFormat::RulerFormat
RulerFormat()
Definition:
RulerFormat.h:22
RulerFormat::TickType
TickType
Definition:
RulerFormat.h:19
RulerFormat::t_major
@ t_major
Definition:
RulerFormat.h:20
RulerFormat::t_minorMinor
@ t_minorMinor
Definition:
RulerFormat.h:20
RulerFormat::t_minor
@ t_minor
Definition:
RulerFormat.h:20
RulerFormat::SetTickSizes
virtual void SetTickSizes(double units, double &major, double &minor, double &minorMinor, int &mDigits) const =0
Generated by
1.9.3