Audacity  3.0.3
Classes | Macros | Functions
KeyConfigPrefs.h File Reference
#include <wx/defs.h>
#include <wx/timer.h>
#include "PrefsPanel.h"
Include dependency graph for KeyConfigPrefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  KeyConfigPrefs
 A PrefsPanel for keybindings. More...


#define KEY_CONFIG_PREFS_PLUGIN_SYMBOL   ComponentInterfaceSymbol{ XO("Key Config") }


PrefsPanel::Factory KeyConfigPrefsFactory (const CommandID &name={})

Macro Definition Documentation


#define KEY_CONFIG_PREFS_PLUGIN_SYMBOL   ComponentInterfaceSymbol{ XO("Key Config") }

Definition at line 30 of file KeyConfigPrefs.h.

Function Documentation

◆ KeyConfigPrefsFactory()

PrefsPanel::Factory KeyConfigPrefsFactory ( const CommandID name = {})

A PrefsPanel::Factory that creates one KeyConfigPrefs panel. This factory can be parametrized by name, which specifies a command to be focused initially

Definition at line 941 of file KeyConfigPrefs.cpp.

942 {
943  return [=](wxWindow *parent, wxWindowID winid, AudacityProject *pProject)
944  {
945  wxASSERT(parent); // to justify safenew
946  auto result = safenew KeyConfigPrefs{ parent, winid, pProject, name };
947  return result;
948  };
949 }

References name, and safenew.

Referenced by AudacityApp::InitPart2().

Here is the caller graph for this function:
const TranslatableString name
Definition: Distortion.cpp:98
A PrefsPanel for keybindings.
Definition: KeyConfigPrefs.h:33
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:92
#define safenew
Definition: MemoryX.h:10