2010-01-23 19:44:49 +00:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
Audacity: A Digital Audio Editor
|
|
|
|
|
|
|
|
HistoryWindow.h
|
|
|
|
|
|
|
|
Joshua Haberman
|
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
#ifndef __AUDACITY_HISTORY_WINDOW__
|
|
|
|
#define __AUDACITY_HISTORY_WINDOW__
|
|
|
|
|
|
|
|
#include <wx/button.h>
|
|
|
|
#include <wx/frame.h>
|
|
|
|
#include <wx/listctrl.h>
|
|
|
|
#include <wx/spinctrl.h>
|
|
|
|
#include <wx/textctrl.h>
|
|
|
|
|
2016-07-10 21:10:50 +00:00
|
|
|
#include "widgets/wxPanelWrapper.h"
|
|
|
|
|
2010-01-23 19:44:49 +00:00
|
|
|
class AudacityProject;
|
|
|
|
class ShuttleGui;
|
|
|
|
class UndoManager;
|
|
|
|
|
2016-07-10 21:10:50 +00:00
|
|
|
class HistoryWindow final : public wxDialogWrapper {
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
HistoryWindow(AudacityProject * parent, UndoManager *manager);
|
|
|
|
|
2018-02-17 20:31:18 +00:00
|
|
|
void UpdateDisplay(wxEvent &e);
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
private:
|
2015-08-23 23:36:40 +00:00
|
|
|
void OnAudioIO(wxCommandEvent & evt);
|
2010-01-23 19:44:49 +00:00
|
|
|
void DoUpdate();
|
|
|
|
void UpdateLevels();
|
|
|
|
|
|
|
|
void OnSize(wxSizeEvent & event);
|
|
|
|
void OnCloseWindow(wxCloseEvent & WXUNUSED(event));
|
|
|
|
void OnItemSelected(wxListEvent & event);
|
|
|
|
void OnDiscard(wxCommandEvent & event);
|
2016-11-07 16:25:27 +00:00
|
|
|
void OnDiscardClipboard(wxCommandEvent & event);
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
AudacityProject *mProject;
|
|
|
|
UndoManager *mManager;
|
|
|
|
wxListCtrl *mList;
|
2015-05-30 20:56:46 +00:00
|
|
|
wxTextCtrl *mTotal;
|
2016-11-07 16:25:27 +00:00
|
|
|
wxTextCtrl *mClipboard;
|
2010-01-23 19:44:49 +00:00
|
|
|
wxTextCtrl *mAvail;
|
|
|
|
wxSpinCtrl *mLevels;
|
|
|
|
wxButton *mDiscard;
|
2015-08-23 23:36:40 +00:00
|
|
|
|
2010-01-23 19:44:49 +00:00
|
|
|
int mSelected;
|
2015-08-23 23:36:40 +00:00
|
|
|
bool mAudioIOBusy;
|
2010-01-23 19:44:49 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|