Audacity  3.0.3
JournalWindowPaths.h
Go to the documentation of this file.
1 /*!********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  @name JournalWindowPaths.h
6 
7  @brief utilities to identify corresponding windows between recording
8  and playback runs
9 
10  Paul Licameli
11 
12 **********************************************************************/
13 
14 #ifndef __AUDACITY_JOURNAL_WINDOW_PATHS__
15 #define __AUDACITY_JOURNAL_WINDOW_PATHS__
16 
17 class Identifier;
18 class wxWindow;
19 
20 namespace Journal
21 {
22 namespace WindowPaths
23 {
24  using Path = Identifier;
25 
26  // When recording, find a string to identify the window in the journal
27  Path FindPath( const wxWindow &window );
28 
29  // When playing, find a window by path, corresponding to the window that had the
30  // same path in a previous run
31  wxWindow *FindByPath( const Path &path );
32 }
33 }
34 
35 #endif
Journal
Facilities for recording and playback of sequences of user interaction.
Journal::WindowPaths::FindByPath
wxWindow * FindByPath(const Path &path)
Definition: JournalWindowPaths.cpp:116
Journal::WindowPaths::FindPath
Path FindPath(const wxWindow &window)
Definition: JournalWindowPaths.cpp:109
Identifier
An explicitly nonlocalized string, not meant for the user to see.
Definition: Identifier.h:22