mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-28 14:39:28 +02:00
... Should have no effect on generated code, except perhaps some slight faster virtual function calls. Mostly useful as documentation of design intent. Tried to mark every one of our classes that inherits from another, or is a base for others, or has abstract virtual functions, and a few others besides.
73 lines
1.3 KiB
C++
73 lines
1.3 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
AudioIOPrefs.h
|
|
|
|
Joshua Haberman
|
|
James Crook
|
|
|
|
**********************************************************************/
|
|
|
|
#include "../Experimental.h"
|
|
|
|
class ShuttleGui;
|
|
|
|
#ifdef EXPERIMENTAL_MIDI_OUT
|
|
|
|
#ifndef __AUDACITY_MIDI_IO_PREFS__
|
|
#define __AUDACITY_MIDI_IO_PREFS__
|
|
|
|
#include <wx/defs.h>
|
|
|
|
#include <wx/choice.h>
|
|
#include <wx/string.h>
|
|
#include <wx/window.h>
|
|
|
|
#include "PrefsPanel.h"
|
|
|
|
class MidiIOPrefs final : public PrefsPanel
|
|
{
|
|
public:
|
|
MidiIOPrefs(wxWindow * parent);
|
|
virtual ~MidiIOPrefs();
|
|
virtual bool Apply();
|
|
virtual bool Validate();
|
|
|
|
private:
|
|
void Populate();
|
|
void PopulateOrExchange(ShuttleGui & S);
|
|
void GetNamesAndLabels();
|
|
|
|
void OnHost(wxCommandEvent & e);
|
|
// void OnDevice(wxCommandEvent & e);
|
|
|
|
wxArrayString mHostNames;
|
|
wxArrayString mHostLabels;
|
|
|
|
wxString mPlayDevice;
|
|
#ifdef EXPERIMENTAL_MIDI_IN
|
|
wxString mRecordDevice;
|
|
#endif
|
|
// long mRecordChannels;
|
|
|
|
wxChoice *mHost;
|
|
wxChoice *mPlay;
|
|
wxTextCtrl *mLatency;
|
|
#ifdef EXPERIMENTAL_MIDI_IN
|
|
wxChoice *mRecord;
|
|
#endif
|
|
// wxChoice *mChannels;
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
};
|
|
|
|
class MidiIOPrefsFactory final : public PrefsPanelFactory
|
|
{
|
|
public:
|
|
virtual PrefsPanel *Create(wxWindow *parent);
|
|
};
|
|
#endif
|
|
|
|
#endif
|