mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-28 14:18:41 +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.
61 lines
1.3 KiB
C++
61 lines
1.3 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
HistoryWindow.h
|
|
|
|
Joshua Haberman
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_HISTORY_WINDOW__
|
|
#define __AUDACITY_HISTORY_WINDOW__
|
|
|
|
#include <wx/button.h>
|
|
#include <wx/dialog.h>
|
|
#include <wx/event.h>
|
|
#include <wx/frame.h>
|
|
#include <wx/listctrl.h>
|
|
#include <wx/spinctrl.h>
|
|
#include <wx/textctrl.h>
|
|
|
|
class AudacityProject;
|
|
class ShuttleGui;
|
|
class UndoManager;
|
|
|
|
class HistoryWindow final : public wxDialog {
|
|
|
|
public:
|
|
HistoryWindow(AudacityProject * parent, UndoManager *manager);
|
|
~HistoryWindow();
|
|
|
|
void UpdateDisplay();
|
|
|
|
private:
|
|
void OnAudioIO(wxCommandEvent & evt);
|
|
void DoUpdate();
|
|
void UpdateLevels();
|
|
|
|
void OnSize(wxSizeEvent & event);
|
|
void OnCloseWindow(wxCloseEvent & WXUNUSED(event));
|
|
void OnChar(wxKeyEvent & event);
|
|
void OnItemSelected(wxListEvent & event);
|
|
void OnDiscard(wxCommandEvent & event);
|
|
|
|
AudacityProject *mProject;
|
|
UndoManager *mManager;
|
|
wxListCtrl *mList;
|
|
wxTextCtrl *mTotal;
|
|
wxTextCtrl *mAvail;
|
|
wxSpinCtrl *mLevels;
|
|
wxButton *mDiscard;
|
|
|
|
int mSelected;
|
|
bool mAudioIOBusy;
|
|
|
|
public:
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
#endif
|