src/appshell/appshellcommands.h
Rama master · réplica de lectura del repositorio original.
/*
* Audacity: A Digital Audio Editor
*/
#pragma once
#include <map>
#include "framework/rcommand/commandtypes.h"
#include "appshelltypes.h"
namespace au::appshell {
inline static const muse::rcommand::Command APP_TOGGLE_FULLSCREEN_COMMAND("command://app/toggle-fullscreen");
inline static const muse::rcommand::Command APP_ABOUT_COMMAND("command://app/about");
inline static const muse::rcommand::Command APP_ABOUT_QT_COMMAND("command://app/about-qt");
inline static const muse::rcommand::Command APP_ONLINE_HANDBOOK_COMMAND("command://app/online-handbook");
inline static const muse::rcommand::Command APP_ASK_HELP_COMMAND("command://app/ask-help");
inline static const muse::rcommand::Command APP_PREFERENCES_COMMAND("command://app/preferences");
inline static const muse::rcommand::Command APP_REVERT_FACTORY_COMMAND("command://app/revert-factory");
inline static const muse::rcommand::Command APP_AUDIO_SETTINGS_COMMAND("command://app/audio-settings");
inline static const muse::rcommand::Command APP_SHORTCUTS_PREFERENCES_COMMAND("command://app/shortcuts-preferences");
inline static const muse::rcommand::Command APP_EDITING_PREFERENCES_COMMAND("command://app/editing-preferences");
inline static const muse::rcommand::Command APP_SPECTROGRAM_PREFERENCES_COMMAND("command://app/spectrogram-preferences");
//! TODO: The framework's all_instances semantics aren't implemented yet.
//! SingleProcessProvider::quitForAll and AppUpdateScenario dispatch this command
//! with all_instances=false, expecting only the current window to close.
inline static const muse::rcommand::Command APP_QUIT_COMMAND("command://app/quit");
inline static const std::string INSTALLER_PATH_PARAM("installer_path");
inline static const muse::rcommand::Command APP_RESTART_COMMAND("command://app/restart");
inline static const muse::rcommand::Command APP_CONTEXT_MENU_COMMAND("command://app/context-menu");
inline static const muse::rcommand::Command APP_TOGGLE_TRANSPORT_TOOLBAR_COMMAND("command://app/toggle-transport-toolbar");
inline static const muse::rcommand::Command APP_TOGGLE_TRACKS_PANEL_COMMAND("command://app/toggle-tracks-panel");
inline static const muse::rcommand::Command APP_TOGGLE_HISTORY_PANEL_COMMAND("command://app/toggle-history-panel");
inline static const muse::rcommand::Command APP_TOGGLE_MACRO_MANAGER_PANEL_COMMAND("command://app/toggle-macro-manager-panel");
inline static const muse::rcommand::Command APP_TOGGLE_STATUSBAR_COMMAND("command://app/toggle-statusbar");
inline const std::map<muse::rcommand::Command, DockName>& toggleDockCommands()
{
static const std::map<muse::rcommand::Command, DockName> commands {
{ APP_TOGGLE_TRANSPORT_TOOLBAR_COMMAND, PLAYBACK_TOOLBAR_NAME },
{ APP_TOGGLE_TRACKS_PANEL_COMMAND, TRACKS_PANEL_NAME },
{ APP_TOGGLE_HISTORY_PANEL_COMMAND, HISTORY_PANEL_NAME },
{ APP_TOGGLE_MACRO_MANAGER_PANEL_COMMAND, MACRO_MANAGER_PANEL_NAME },
{ APP_TOGGLE_STATUSBAR_COMMAND, PROJECT_STATUSBAR_NAME },
};
return commands;
}
}