1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-24 00:18:07 +02:00
audacity/src/prefs/DirectoriesPrefs.h

48 lines
1.0 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
DirectoriesPrefs.h
Joshua Haberman
**********************************************************************/
#ifndef __AUDACITY_DIRECTORIES_PREFS__
#define __AUDACITY_DIRECTORIES_PREFS__
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include "PrefsPanel.h"
class ShuttleGui;
class DirectoriesPrefs final : public PrefsPanel
{
public:
DirectoriesPrefs(wxWindow * parent, wxWindowID winid);
~DirectoriesPrefs();
bool Commit() override;
bool Validate() override;
wxString HelpPageName() override;
private:
void Populate();
void PopulateOrExchange(ShuttleGui & S);
void UpdateFreeSpace(wxCommandEvent & e);
void OnChooseTempDir(wxCommandEvent & e);
wxStaticText *mFreeSpace;
wxTextCtrl *mTempDir;
DECLARE_EVENT_TABLE()
};
class DirectoriesPrefsFactory final : public PrefsPanelFactory
{
public:
PrefsPanel *operator () (wxWindow *parent, wxWindowID winid) override;
};
#endif