Audacity  2.2.2
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);
31 
32  void UpdateDisplay();
33 
34  private:
35  void OnAudioIO(wxCommandEvent & evt);
36  void DoUpdate();
37  void UpdateLevels();
38 
39  void OnSize(wxSizeEvent & event);
40  void OnCloseWindow(wxCloseEvent & WXUNUSED(event));
41  void OnItemSelected(wxListEvent & event);
42  void OnDiscard(wxCommandEvent & event);
43  void OnDiscardClipboard(wxCommandEvent & event);
44 
47  wxListCtrl *mList;
48  wxTextCtrl *mTotal;
49  wxTextCtrl *mClipboard;
50  wxTextCtrl *mAvail;
51  wxSpinCtrl *mLevels;
52  wxButton *mDiscard;
53 
54  int mSelected;
56 
57  public:
58  DECLARE_EVENT_TABLE()
59 };
60 
61 #endif
void OnDiscardClipboard(wxCommandEvent &event)
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:47
wxTextCtrl * mAvail
Definition: HistoryWindow.h:50
wxSpinCtrl * mLevels
Definition: HistoryWindow.h:51
void OnItemSelected(wxListEvent &event)
void OnCloseWindow(wxCloseEvent &WXUNUSED(event))
AudacityProject provides the main window, with tools and tracks contained within it.
Definition: Project.h:158
void OnSize(wxSizeEvent &event)
HistoryWindow(AudacityProject *parent, UndoManager *manager)
AudacityProject * mProject
Definition: HistoryWindow.h:45
void OnDiscard(wxCommandEvent &event)
wxButton * mDiscard
Definition: HistoryWindow.h:52
wxTextCtrl * mClipboard
Definition: HistoryWindow.h:49
void OnAudioIO(wxCommandEvent &evt)
Works with HistoryWindow to provide the Undo functionality.
Definition: UndoManager.h:93
wxTextCtrl * mTotal
Definition: HistoryWindow.h:48
UndoManager * mManager
Definition: HistoryWindow.h:46