1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-10 09:01:13 +02:00
Paul Licameli 2d0394796e
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.

Original commit: d20cf012556a819e68515d86bb66a2c047007539

Signed-off-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
2021-10-05 08:06:23 +02:00

26 lines
493 B
C++

/*!********************************************************************
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;
}
}