audacia/src/prefs/RecordingPrefs.h
2016-09-11 20:31:49 +01:00

49 lines
958 B
C++

/**********************************************************************
Audacity: A Digital Audio Editor
RecordingPrefs.h
Joshua Haberman
James Crook
**********************************************************************/
#ifndef __AUDACITY_RECORDING_PREFS__
#define __AUDACITY_RECORDING_PREFS__
#include <wx/defs.h>
#include <wx/textctrl.h>
#include <wx/window.h>
#include "PrefsPanel.h"
class ShuttleGui;
class RecordingPrefs final : public PrefsPanel
{
public:
RecordingPrefs(wxWindow * parent);
virtual ~RecordingPrefs();
bool Apply() override;
private:
void Populate();
void PopulateOrExchange(ShuttleGui & S);
void OnToggleCustomName(wxCommandEvent & /* Evt */);
wxTextCtrl *mToggleCustomName;
bool mUseCustomTrackName;
bool mOldNameChoice;
DECLARE_EVENT_TABLE();
};
class RecordingPrefsFactory final : public PrefsPanelFactory
{
public:
PrefsPanel *Create(wxWindow *parent) override;
};
#endif