mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-01 09:24:22 +01:00
Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches
This commit is contained in:
74
src/TimerRecordDialog.h
Normal file
74
src/TimerRecordDialog.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/**********************************************************************
|
||||
|
||||
Audacity: A Digital Audio Editor
|
||||
|
||||
TimerRecordDialog.h
|
||||
|
||||
Copyright 2006 by Vaughan Johnson
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __AUDACITY_TIMERRECORD_DIALOG__
|
||||
#define __AUDACITY_TIMERRECORD_DIALOG__
|
||||
|
||||
#include <wx/dialog.h>
|
||||
#include <wx/datectrl.h>
|
||||
#include <wx/calctrl.h>
|
||||
|
||||
#include "widgets/TimeTextCtrl.h"
|
||||
|
||||
#include "ShuttleGui.h"
|
||||
|
||||
class TimerRecordDialog : public wxDialog
|
||||
{
|
||||
public:
|
||||
TimerRecordDialog(wxWindow* parent);
|
||||
~TimerRecordDialog();
|
||||
|
||||
void OnTimer(wxTimerEvent& event);
|
||||
///Runs the wait for start dialog. Returns false if the user clicks stop.
|
||||
bool RunWaitDialog();
|
||||
|
||||
private:
|
||||
void OnDatePicker_Start(wxDateEvent& event);
|
||||
void OnTimeText_Start(wxCommandEvent& event);
|
||||
|
||||
void OnDatePicker_End(wxDateEvent& event);
|
||||
void OnTimeText_End(wxCommandEvent& event);
|
||||
|
||||
void OnTimeText_Duration(wxCommandEvent & event);
|
||||
|
||||
void OnOK(wxCommandEvent& event);
|
||||
|
||||
wxString GetDisplayDate(wxDateTime & dt);
|
||||
void PopulateOrExchange(ShuttleGui& S);
|
||||
bool TransferDataFromWindow();
|
||||
void UpdateDuration(); // Update m_TimeSpan_Duration and ctrl based on m_DateTime_Start and m_DateTime_End.
|
||||
void UpdateEnd(); // Update m_DateTime_End and ctrls based on m_DateTime_Start and m_TimeSpan_Duration.
|
||||
int WaitForStart();
|
||||
|
||||
private:
|
||||
wxDateTime m_DateTime_Start;
|
||||
wxDateTime m_DateTime_End;
|
||||
wxTimeSpan m_TimeSpan_Duration;
|
||||
|
||||
// controls
|
||||
wxDatePickerCtrl* m_pDatePickerCtrl_Start;
|
||||
TimeTextCtrl* m_pTimeTextCtrl_Start;
|
||||
|
||||
wxDatePickerCtrl* m_pDatePickerCtrl_End;
|
||||
TimeTextCtrl* m_pTimeTextCtrl_End;
|
||||
|
||||
TimeTextCtrl* m_pTimeTextCtrl_Duration;
|
||||
|
||||
wxTimer m_timer;
|
||||
|
||||
DECLARE_EVENT_TABLE();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user