Audacity  2.2.0
HistoryWindow.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  HistoryWindow.h
6 
7  Joshua Haberman
8 
9 **********************************************************************/
10 
11 #ifndef __AUDACITY_HISTORY_WINDOW__
12 #define __AUDACITY_HISTORY_WINDOW__
13 
14 #include <wx/button.h>
15 #include <wx/event.h>
16 #include <wx/frame.h>
17 #include <wx/listctrl.h>
18 #include <wx/spinctrl.h>
19 #include <wx/textctrl.h>
20 
21 #include "widgets/wxPanelWrapper.h"
22 
23 class AudacityProject;
24 class ShuttleGui;
25 class UndoManager;
26 
27 class HistoryWindow final : public wxDialogWrapper {
28 
29  public:
30  HistoryWindow(AudacityProject * parent, UndoManager *manager);
32 
33  void UpdateDisplay();
34 
35  private:
36  void OnAudioIO(wxCommandEvent & evt);
37  void DoUpdate();
38  void UpdateLevels();
39 
40  void OnSize(wxSizeEvent & event);
41  void OnCloseWindow(wxCloseEvent & WXUNUSED(event));
42  void OnChar(wxKeyEvent & event);
43  void OnItemSelected(wxListEvent & event);
44  void OnDiscard(wxCommandEvent & event);
45  void OnDiscardClipboard(wxCommandEvent & event);
46 
49  wxListCtrl *mList;
50  wxTextCtrl *mTotal;
51  wxTextCtrl *mClipboard;
52  wxTextCtrl *mAvail;
53  wxSpinCtrl *mLevels;
54  wxButton *mDiscard;
55 
56  int mSelected;
58 
59  public:
60  DECLARE_EVENT_TABLE()
61 };
62 
63 #endif
void UpdateLevels()
Definition: HistoryWindow.cpp:221
void OnDiscardClipboard(wxCommandEvent &event)
Definition: HistoryWindow.cpp:262
Works with UndoManager to allow user to see descriptions of and undo previous commands. Also allows you to selectively clear the undo memory so as to free up space.
Definition: HistoryWindow.h:27
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI...
Definition: ShuttleGui.h:366
wxListCtrl * mList
Definition: HistoryWindow.h:49
void OnChar(wxKeyEvent &event)
Definition: HistoryWindow.cpp:313
wxTextCtrl * mAvail
Definition: HistoryWindow.h:52
~HistoryWindow()
Definition: HistoryWindow.cpp:155
wxSpinCtrl * mLevels
Definition: HistoryWindow.h:53
Definition: wxPanelWrapper.h:19
void OnItemSelected(wxListEvent &event)
Definition: HistoryWindow.cpp:268
void OnCloseWindow(wxCloseEvent &WXUNUSED(event))
Definition: HistoryWindow.cpp:300
AudacityProject provides the main window, with tools and tracks contained within it.
Definition: Project.h:161
void OnSize(wxSizeEvent &event)
Definition: HistoryWindow.cpp:305
HistoryWindow(AudacityProject *parent, UndoManager *manager)
Definition: HistoryWindow.cpp:58
void DoUpdate()
Definition: HistoryWindow.cpp:188
int mSelected
Definition: HistoryWindow.h:56
AudacityProject * mProject
Definition: HistoryWindow.h:47
void OnDiscard(wxCommandEvent &event)
Definition: HistoryWindow.cpp:248
bool mAudioIOBusy
Definition: HistoryWindow.h:57
wxButton * mDiscard
Definition: HistoryWindow.h:54
wxTextCtrl * mClipboard
Definition: HistoryWindow.h:51
void UpdateDisplay()
Definition: HistoryWindow.cpp:182
void OnAudioIO(wxCommandEvent &evt)
Definition: HistoryWindow.cpp:170
Works with HistoryWindow to provide the Undo functionality.
Definition: UndoManager.h:93
wxTextCtrl * mTotal
Definition: HistoryWindow.h:50
UndoManager * mManager
Definition: HistoryWindow.h:48