1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-10 00:15:31 +01:00

Facade class for basic UI, injection of a wxWidgets implementation...

... but none of the methods is defined yet.

The intention is to inject dependencies on wxWidgets (or other) toolkit so that
lower-level files have less build dependency on wxCore classes or on the
event loop.
This commit is contained in:
Paul Licameli
2021-02-07 21:17:45 -05:00
parent 2133e42938
commit d20cf01255
8 changed files with 140 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
/*!********************************************************************
Audacity: A Digital Audio Editor
@file BasicUI.cpp
Paul Licameli
**********************************************************************/
#include "BasicUI.h"
namespace BasicUI {
Services::~Services() = default;
static Services *theInstance = nullptr;
Services *Get() { return theInstance; }
Services *Install(Services *pInstance)
{
auto result = theInstance;
theInstance = pInstance;
return result;
}
}