1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Move ProjectWindowBase to new files...

... So that you can use GetProject without other linkage dependencies
This commit is contained in:
Paul Licameli
2020-01-02 19:43:37 -05:00
parent be24e6b5a1
commit 973f15c5ac
10 changed files with 251 additions and 180 deletions

37
src/ProjectWindowBase.h Normal file
View File

@@ -0,0 +1,37 @@
/**********************************************************************
Audacity: A Digital Audio Editor
ProjectWindowBase.h
Paul Licameli split from ProjectWindow.h
**********************************************************************/
#ifndef __AUDACITY_PROJECT_WINDOW_BASE__
#define __AUDACITY_PROJECT_WINDOW_BASE__
#include <wx/frame.h> // to inherit
class AudacityProject;
///\brief A top-level window associated with a project
class ProjectWindowBase /* not final */ : public wxFrame
{
public:
explicit ProjectWindowBase(
wxWindow * parent, wxWindowID id,
const wxPoint & pos, const wxSize &size,
AudacityProject &project );
~ProjectWindowBase() override;
AudacityProject &GetProject() { return mProject; }
const AudacityProject &GetProject() const { return mProject; }
protected:
AudacityProject &mProject;
};
#endif