Audacity 3.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 "Observer.h"
15#include "Prefs.h"
16#include "wxPanelWrapper.h" // to inherit
17
18class wxButton;
19class wxListCtrl;
20class wxListEvent;
21class wxSpinCtrl;
22class wxTextCtrl;
23struct AudioIOEvent;
24class AudacityProject;
25class ShuttleGui;
26class UndoManager;
27
28class HistoryDialog final : public wxDialogWrapper,
29 public PrefsListener
30{
31
32 public:
34
36 void UpdateDisplay(struct UndoRedoMessage);
37 void DoUpdateDisplay();
38
39 bool Show( bool show = true ) override;
40
41 private:
42 void Populate(ShuttleGui & S);
43
45 void DoUpdate();
46 void UpdateLevels();
47
48 void OnShow(wxShowEvent & event);
49 void OnSize(wxSizeEvent & event);
50 void OnCloseWindow(wxCloseEvent & event);
51 void OnListKeyDown(wxKeyEvent & event);
52 void OnItemSelected(wxListEvent & event);
53 void OnDiscard(wxCommandEvent & event);
54 void OnDiscardClipboard(wxCommandEvent & event);
55 void OnCompact(wxCommandEvent & event);
56 void OnGetURL(wxCommandEvent & event);
57
58 // PrefsListener implementation
59 void UpdatePrefs() override;
60
64 ;
65
68 wxListCtrl *mList;
69 wxTextCtrl *mTotal;
70 wxTextCtrl *mClipboard;
71 wxTextCtrl *mAvail;
72 wxSpinCtrl *mLevels;
73 wxButton *mDiscard;
74 wxButton *mCompact;
75
78
79 public:
80 DECLARE_EVENT_TABLE()
81};
82
83#endif
static const AttachedProjectObjects::RegisteredFactory manager
#define S(N)
Definition: ToChars.cpp:64
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
Works with UndoManager to allow user to see descriptions of and undo previous commands....
Definition: HistoryWindow.h:30
void OnListKeyDown(wxKeyEvent &event)
bool Show(bool show=true) override
void UpdateDisplayForClipboard(struct ClipboardChangeMessage)
wxTextCtrl * mTotal
Definition: HistoryWindow.h:69
void OnSize(wxSizeEvent &event)
AudacityProject * mProject
Definition: HistoryWindow.h:66
Observer::Subscription mClipboardSubscription
Definition: HistoryWindow.h:64
void OnAudioIO(AudioIOEvent)
void OnDiscard(wxCommandEvent &event)
Observer::Subscription mUndoSubscription
Definition: HistoryWindow.h:63
wxTextCtrl * mClipboard
Definition: HistoryWindow.h:70
void OnDiscardClipboard(wxCommandEvent &event)
void UpdateDisplay(struct UndoRedoMessage)
HistoryDialog(AudacityProject *parent, UndoManager *manager)
void UpdatePrefs() override
void OnCompact(wxCommandEvent &event)
wxButton * mCompact
Definition: HistoryWindow.h:74
wxButton * mDiscard
Definition: HistoryWindow.h:73
wxListCtrl * mList
Definition: HistoryWindow.h:68
void OnShow(wxShowEvent &event)
void OnGetURL(wxCommandEvent &event)
void OnCloseWindow(wxCloseEvent &event)
void OnItemSelected(wxListEvent &event)
void DoUpdateDisplay()
wxTextCtrl * mAvail
Definition: HistoryWindow.h:71
void Populate(ShuttleGui &S)
UndoManager * mManager
Definition: HistoryWindow.h:67
Observer::Subscription mAudioIOSubscription
Definition: HistoryWindow.h:62
wxSpinCtrl * mLevels
Definition: HistoryWindow.h:72
A move-only handle representing a connection to a Publisher.
Definition: Observer.h:70
A listener notified of changes in preferences.
Definition: Prefs.h:652
Derived from ShuttleGuiBase, an Audacity specific class for shuttling data to and from GUI.
Definition: ShuttleGui.h:640
Maintain a non-persistent list of states of the project, to support undo and redo commands.
Definition: UndoManager.h:155
Message is sent during idle time by the global clipboard.
Definition: Clipboard.h:24
Type of message published by UndoManager.
Definition: UndoManager.h:55