![]() |
Audacity 3.2.0
|
#include "AudacityApp.h"#include <wx/setup.h>#include <wx/wxcrtvararg.h>#include <wx/defs.h>#include <wx/evtloop.h>#include <wx/bitmap.h>#include <wx/docview.h>#include <wx/ipc.h>#include <wx/window.h>#include <wx/menu.h>#include <wx/snglinst.h>#include <wx/splash.h>#include <wx/stdpaths.h>#include <wx/sysopt.h>#include <wx/fontmap.h>#include <wx/fs_zip.h>#include <wx/dir.h>#include <wx/file.h>#include <wx/filename.h>#include <unistd.h>#include <wx/msw/registry.h>#include "AudacityLogger.h"#include "AboutDialog.h"#include "ActiveProject.h"#include "AColor.h"#include "AudacityFileConfig.h"#include "AudioIO.h"#include "Benchmark.h"#include "Clipboard.h"#include "CommandLineArgs.h"#include "CrashReport.h"#include "commands/CommandHandler.h"#include "commands/AppCommandEvent.h"#include "widgets/ASlider.h"#include "Journal.h"#include "Languages.h"#include "MenuCreator.h"#include "PathList.h"#include "PendingTracks.h"#include "PluginManager.h"#include "Project.h"#include "ProjectAudioIO.h"#include "ProjectAudioManager.h"#include "ProjectFileIO.h"#include "ProjectFileManager.h"#include "ProjectHistory.h"#include "ProjectManager.h"#include "ProjectSettings.h"#include "ProjectWindow.h"#include "ProjectWindows.h"#include "Sequence.h"#include "SelectFile.h"#include "TempDirectory.h"#include "LoadThemeResources.h"#include "Track.h"#include "prefs/PrefsDialog.h"#include "Theme.h"#include "Viewport.h"#include "PlatformCompatibility.h"#include "AutoRecoveryDialog.h"#include "FFT.h"#include "AudacityMessageBox.h"#include "prefs/DirectoriesPrefs.h"#include "prefs/GUISettings.h"#include "tracks/ui/Scrubbing.h"#include "widgets/FileHistory.h"#include "wxWidgetsBasicUI.h"#include "LogWindow.h"#include "FrameStatisticsDialog.h"#include "PluginStartupRegistration.h"#include "IncompatiblePluginsDialog.h"#include "wxWidgetsWindowPlacement.h"#include "effects/RegisterBuiltinEffects.h"#include "ModuleManager.h"#include "PluginHost.h"#include "Import.h"#include "../images/Audacity-splash.xpm"#include <thread>#include "ExportPluginRegistry.h"#include "SettingsWX.h"#include "prefs/EffectsPrefs.h"#include <ApplicationServices/ApplicationServices.h>Go to the source code of this file.
Classes | |
| class | IPCConn |
| class | IPCServ |
Namespaces | |
| namespace | anonymous_namespace{AudacityApp.cpp} |
| Custom events. | |
| namespace | IMPLEMENT_WX_THEME_SUPPORT |
Macros | |
| #define | IPC_APPL wxT("audacity") |
| #define | IPC_TOPIC wxT("System") |
| #define | ID_IPC_SERVER 6200 |
| #define | ID_IPC_SOCKET 6201 |
| #define | kAudacityAppTimerID 0 |
| #define | WL(lang, sublang) (lang), (sublang), |
Functions | |
| void | anonymous_namespace{AudacityApp.cpp}::PopulatePreferences () |
| void | anonymous_namespace{AudacityApp.cpp}::InitCrashreports () |
| static bool | CloseAllProjects (bool force) |
| static void | QuitAudacity (bool bForce) |
| static void | QuitAudacity () |
| int | main (int argc, char *argv[]) |
| EVT_MENU_RANGE (FileHistory::ID_RECENT_FIRST, FileHistory::ID_RECENT_LAST, AudacityApp::OnMRUFile) bool AudacityApp | |
| void | SetToExtantDirectory (wxString &result, const wxString &dir) |
Variables | |
| static bool | gInited = false |
| static bool | gIsQuitting = false |
| static std::shared_ptr< wxConfigBase > | gConfig |
| static wxArrayString | ofqueue |
| bool | IMPLEMENT_WX_THEME_SUPPORT::sOSXIsGUIApplication { true } |
| static audacity::ApplicationSettings::Scope | applicationSettingsScope |
| #define ID_IPC_SERVER 6200 |
Definition at line 986 of file AudacityApp.cpp.
| #define ID_IPC_SOCKET 6201 |
Definition at line 987 of file AudacityApp.cpp.
| #define IPC_APPL wxT("audacity") |
Definition at line 808 of file AudacityApp.cpp.
| #define IPC_TOPIC wxT("System") |
Definition at line 809 of file AudacityApp.cpp.
| #define kAudacityAppTimerID 0 |
Definition at line 990 of file AudacityApp.cpp.
| #define WL | ( | lang, | |
| sublang | |||
| ) | (lang), (sublang), |
Definition at line 1159 of file AudacityApp.cpp.
|
static |
Definition at line 518 of file AudacityApp.cpp.
References AllProjects::begin(), GetProjectFrame(), ProjectManager::SetClosingAll(), and AllProjects::size().
Referenced by AudacityApp::OnEndSession(), and QuitAudacity().
| EVT_MENU_RANGE | ( | FileHistory::ID_RECENT_FIRST | , |
| FileHistory::ID_RECENT_LAST | , | ||
| AudacityApp::OnMRUFile | |||
| ) |
proj may be null
Definition at line 1019 of file AudacityApp.cpp.
References AudacityMessageBox(), GetActiveProject(), ProjectFileManager::IsAlreadyOpen(), ProjectManager::OpenProject(), FileNames::UpdateDefaultPath(), and XO().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 870 of file AudacityApp.cpp.
References CommandLineArgs::argc, CommandLineArgs::argv, PluginHost::IsHostProcess(), and IMPLEMENT_WX_THEME_SUPPORT::sOSXIsGUIApplication.
Referenced by ToolDock::VisitLayout().
|
static |
Definition at line 612 of file AudacityApp.cpp.
References QuitAudacity().
|
static |
Definition at line 539 of file AudacityApp.cpp.
References AppQuiting, Clipboard::Clear(), CloseAllProjects(), FileNames::DataDir(), LogWindow::Destroy(), FrameStatisticsDialog::Destroy(), ModuleManager::Dispatch(), AllProjects::empty(), AudacityLogger::Get(), ModuleManager::Get(), Clipboard::Get(), gIsQuitting, ProjectManager::SaveWindowSize(), AllProjects::size(), and wxT().
Referenced by AudacityApp::InitPart2(), AudacityApp::OnInit0(), AudacityApp::OnMenuExit(), and QuitAudacity().
| void SetToExtantDirectory | ( | wxString & | result, |
| const wxString & | dir | ||
| ) |
Definition at line 1889 of file AudacityApp.cpp.
References name.
Referenced by AudacityApp::InitTempDir().
|
static |
Definition at line 2815 of file AudacityApp.cpp.
|
static |
Definition at line 516 of file AudacityApp.cpp.
Referenced by AudacityApp::CleanUp().
|
static |
Definition at line 509 of file AudacityApp.cpp.
Referenced by AudacityApp::InitPart2(), AudacityApp::MacNewFile(), and AudacityApp::OnTimer().
|
static |
Definition at line 510 of file AudacityApp.cpp.
Referenced by AudacityApp::OnEndSession(), AudacityApp::OnExit(), and QuitAudacity().
|
static |
Definition at line 801 of file AudacityApp.cpp.
Referenced by AudacityApp::MacOpenFile(), AudacityApp::MacPrintFile(), IPCConn::OnExec(), and AudacityApp::OnTimer().