Audacity 3.2.0
Namespaces | Macros | Functions | Variables
BasicUI.cpp File Reference
#include "BasicUI.h"
#include <mutex>
#include <vector>
Include dependency graph for BasicUI.cpp:

Go to the source code of this file.

Namespaces

namespace  BasicUI
 

Macros

#define HAS_XDG_OPEN_HELPER   (defined(__linux__) && !defined __ANDROID__) || defined (__FreeBSD__) || defined (__NetBSD__) || defined(__OpenBSD__)
 

Functions

Services * BasicUI::Get ()
 Fetch the global instance, or nullptr if none is yet installed. More...
 
Services * BasicUI::Install (Services *pInstance)
 Install an implementation; return the previously installed instance. More...
 
Functions that invoke global Services

These dispatch to the global Services, if supplied. If none was supplied, they are mostly no-ops, with exceptions as noted. All should be called on the main thread only, except as noted.

void BasicUI::CallAfter (Action action)
 Schedule an action to be done later, and in the main thread. More...
 
void BasicUI::Yield ()
 Dispatch waiting events, including actions enqueued by CallAfter. More...
 
bool BasicUI::OpenInDefaultBrowser (const wxString &url)
 Open an URL in default browser. More...
 
Types used in the Services interface
TranslatableString BasicUI::DefaultCaption ()
 "Message", suitably translated More...
 

Variables

static Services * BasicUI::theInstance = nullptr
 
static std::recursive_mutex BasicUI::sActionsMutex
 
static std::vector< Action > BasicUI::sActions
 

Detailed Description


Audacity: A Digital Audio Editor

Paul Licameli

Definition in file BasicUI.cpp.

Macro Definition Documentation

◆ HAS_XDG_OPEN_HELPER

#define HAS_XDG_OPEN_HELPER   (defined(__linux__) && !defined __ANDROID__) || defined (__FreeBSD__) || defined (__NetBSD__) || defined(__OpenBSD__)

Definition at line 15 of file BasicUI.cpp.