mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-12 22:57:43 +02:00
Remove ProjectsPrefs.* ...
... the class became unused, never constructed, at commit cbf1bb558e094e24cbb54c3bbd2bd45a1abbfb2a
This commit is contained in:
parent
f82b23d9d4
commit
0203205cf6
@ -708,8 +708,6 @@ list( APPEND SOURCES
|
||||
prefs/PrefsDialog.h
|
||||
prefs/PrefsPanel.cpp
|
||||
prefs/PrefsPanel.h
|
||||
prefs/ProjectsPrefs.cpp
|
||||
prefs/ProjectsPrefs.h
|
||||
prefs/QualityPrefs.cpp
|
||||
prefs/QualityPrefs.h
|
||||
prefs/RecordingPrefs.cpp
|
||||
|
@ -1,99 +0,0 @@
|
||||
/**********************************************************************
|
||||
|
||||
Audacity: A Digital Audio Editor
|
||||
|
||||
ProjectsPrefs.cpp
|
||||
|
||||
Joshua Haberman
|
||||
Dominic Mazzoni
|
||||
James Crook
|
||||
|
||||
*******************************************************************//**
|
||||
|
||||
\class ProjectsPrefs
|
||||
\brief A PrefsPanel used to select options related to Audacity Project
|
||||
handling.
|
||||
|
||||
*//*******************************************************************/
|
||||
|
||||
#include "../Audacity.h"
|
||||
#include "ProjectsPrefs.h"
|
||||
|
||||
#include "../Experimental.h"
|
||||
|
||||
#include <wx/defs.h>
|
||||
#include <wx/textctrl.h>
|
||||
|
||||
#include "../FileFormats.h"
|
||||
#include "../Prefs.h"
|
||||
#include "../ShuttleGui.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
ProjectsPrefs::ProjectsPrefs(wxWindow * parent, wxWindowID winid)
|
||||
: PrefsPanel(parent, winid,
|
||||
/* i18n-hint: (noun) i.e Audacity projects. */
|
||||
XO("Projects"))
|
||||
{
|
||||
Populate();
|
||||
}
|
||||
|
||||
ProjectsPrefs::~ProjectsPrefs()
|
||||
{
|
||||
}
|
||||
|
||||
ComponentInterfaceSymbol ProjectsPrefs::GetSymbol()
|
||||
{
|
||||
return PROJECTS_PREFS_PLUGIN_SYMBOL;
|
||||
}
|
||||
|
||||
TranslatableString ProjectsPrefs::GetDescription()
|
||||
{
|
||||
return XO("Preferences for Projects");
|
||||
}
|
||||
|
||||
wxString ProjectsPrefs::HelpPageName()
|
||||
{
|
||||
return "Projects_Preferences";
|
||||
}
|
||||
|
||||
/// Creates the dialog and its contents.
|
||||
void ProjectsPrefs::Populate()
|
||||
{
|
||||
//------------------------- Main section --------------------
|
||||
// Now construct the GUI itself.
|
||||
// Use 'eIsCreatingFromPrefs' so that the GUI is
|
||||
// initialised with values from gPrefs.
|
||||
ShuttleGui S(this, eIsCreatingFromPrefs);
|
||||
PopulateOrExchange(S);
|
||||
// ----------------------- End of main section --------------
|
||||
}
|
||||
|
||||
void ProjectsPrefs::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
S.SetBorder(2);
|
||||
S.StartScroller();
|
||||
|
||||
S.StartStatic(XO("When saving a project that depends on other audio files"));
|
||||
{
|
||||
S.StartRadioButtonGroup(FileFormatsSaveWithDependenciesSetting);
|
||||
{
|
||||
S.TieRadioButton();
|
||||
S.TieRadioButton();
|
||||
S.TieRadioButton();
|
||||
}
|
||||
S.EndRadioButtonGroup();
|
||||
}
|
||||
S.EndStatic();
|
||||
S.EndScroller();
|
||||
|
||||
}
|
||||
|
||||
bool ProjectsPrefs::Commit()
|
||||
{
|
||||
ShuttleGui S(this, eIsSavingToPrefs);
|
||||
PopulateOrExchange(S);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -1,40 +0,0 @@
|
||||
/**********************************************************************
|
||||
|
||||
Audacity: A Digital Audio Editor
|
||||
|
||||
ProjectsPrefs.h
|
||||
|
||||
Joshua Haberman
|
||||
Dominic Mazzoni
|
||||
James Crook
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __AUDACITY_PROJECT_PREFS__
|
||||
#define __AUDACITY_PROJECT_PREFS__
|
||||
|
||||
#include <wx/defs.h>
|
||||
|
||||
#include "PrefsPanel.h"
|
||||
|
||||
class ShuttleGui;
|
||||
|
||||
#define PROJECTS_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Projects") }
|
||||
|
||||
class ProjectsPrefs final : public PrefsPanel
|
||||
{
|
||||
public:
|
||||
ProjectsPrefs(wxWindow * parent, wxWindowID winid);
|
||||
~ProjectsPrefs();
|
||||
ComponentInterfaceSymbol GetSymbol() override;
|
||||
TranslatableString GetDescription() override;
|
||||
|
||||
bool Commit() override;
|
||||
wxString HelpPageName() override;
|
||||
void PopulateOrExchange(ShuttleGui & S) override;
|
||||
|
||||
private:
|
||||
void Populate();
|
||||
};
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user