Audacity 3.2.0
TimeDialog.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 TimeDialog.h
6
7 Dominic Mazzoni
8
9**********************************************************************/
10
11#ifndef __AUDACITY_TimeDialog__
12#define __AUDACITY_TimeDialog__
13
14#include <wx/defs.h>
15
16#include "ComponentInterface.h" // member variable
17
18#include "wxPanelWrapper.h" // to inherit
19
20class NumericTextCtrl;
21class ShuttleGui;
22class AudacityProject;
23
24class AUDACITY_DLL_API TimeDialog final : public wxDialogWrapper
25{
26 public:
27
28 TimeDialog(wxWindow *parent,
32 double time,
33 const TranslatableString &prompt = XO("Duration"));
34
35 void SetFormatString(const NumericFormatID &formatString);
36 void SetTimeValue(double newTime);
37 const double GetTimeValue();
38
39 private:
40
41 void PopulateOrExchange(ShuttleGui & S);
42 bool TransferDataToWindow() override;
43 bool TransferDataFromWindow() override;
44
45 void OnUpdate(wxCommandEvent &event);
46
47 private:
48
52 double mTime;
53
55
56 DECLARE_EVENT_TABLE()
57};
58
59#endif
XO("Cut/Copy/Paste")
static const auto title
const auto project
#define S(N)
Definition: ToChars.cpp:64
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Dialog used to request a time value.
Definition: TimeDialog.h:25
double mTime
Definition: TimeDialog.h:52
NumericTextCtrl * mTimeCtrl
Definition: TimeDialog.h:54
const AudacityProject & mProject
Definition: TimeDialog.h:51
TranslatableString mPrompt
Definition: TimeDialog.h:49
NumericFormatID mFormat
Definition: TimeDialog.h:50
Holds a msgid for the translation catalog; may also bind format arguments.