Audacity  3.0.3
Namespaces | Macros | Functions | Variables
KeyConfigPrefs.cpp File Reference
#include "KeyConfigPrefs.h"
#include <wx/setup.h>
#include <wx/defs.h>
#include <wx/ffile.h>
#include <wx/intl.h>
#include <wx/menu.h>
#include <wx/button.h>
#include <wx/radiobut.h>
#include <wx/stattext.h>
#include <wx/statbox.h>
#include <wx/textctrl.h>
#include "ActiveProject.h"
#include "Prefs.h"
#include "Project.h"
#include "../ProjectWindows.h"
#include "../commands/CommandManager.h"
#include "XMLFileReader.h"
#include "../SelectFile.h"
#include "../ShuttleGui.h"
#include "FileNames.h"
#include "../widgets/BasicMenu.h"
#include "../widgets/KeyView.h"
#include "../widgets/AudacityMessageBox.h"
#include "../widgets/wxWidgetsWindowPlacement.h"
Include dependency graph for KeyConfigPrefs.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{KeyConfigPrefs.cpp}
 

Macros

#define AssignDefaultsButtonID   17001
 
#define CurrentComboID   17002
 
#define SetButtonID   17003
 
#define ClearButtonID   17004
 
#define CommandsListID   17005
 
#define ExportButtonID   17006
 
#define ImportButtonID   17007
 
#define FilterID   17008
 
#define ViewByTreeID   17009
 
#define ViewByNameID   17010
 
#define ViewByKeyID   17011
 
#define FilterTimerID   17012
 
#define EMPTY_SHORTCUT   ("")
 
#define NO_SHORTCUT   (wxString)((wxChar)7)
 

Functions

PrefsPanel::Factory KeyConfigPrefsFactory (const CommandID &name)
 

Variables

PrefsPanel::Registration anonymous_namespace{KeyConfigPrefs.cpp}::sAttachment
 

Macro Definition Documentation

◆ AssignDefaultsButtonID

#define AssignDefaultsButtonID   17001

Definition at line 61 of file KeyConfigPrefs.cpp.

◆ ClearButtonID

#define ClearButtonID   17004

Definition at line 64 of file KeyConfigPrefs.cpp.

◆ CommandsListID

#define CommandsListID   17005

Definition at line 65 of file KeyConfigPrefs.cpp.

◆ CurrentComboID

#define CurrentComboID   17002

Definition at line 62 of file KeyConfigPrefs.cpp.

◆ EMPTY_SHORTCUT

#define EMPTY_SHORTCUT   ("")

Definition at line 75 of file KeyConfigPrefs.cpp.

◆ ExportButtonID

#define ExportButtonID   17006

Definition at line 66 of file KeyConfigPrefs.cpp.

◆ FilterID

#define FilterID   17008

Definition at line 68 of file KeyConfigPrefs.cpp.

◆ FilterTimerID

#define FilterTimerID   17012

Definition at line 72 of file KeyConfigPrefs.cpp.

◆ ImportButtonID

#define ImportButtonID   17007

Definition at line 67 of file KeyConfigPrefs.cpp.

◆ NO_SHORTCUT

#define NO_SHORTCUT   (wxString)((wxChar)7)

Definition at line 77 of file KeyConfigPrefs.cpp.

◆ SetButtonID

#define SetButtonID   17003

Definition at line 63 of file KeyConfigPrefs.cpp.

◆ ViewByKeyID

#define ViewByKeyID   17011

Definition at line 71 of file KeyConfigPrefs.cpp.

◆ ViewByNameID

#define ViewByNameID   17010

Definition at line 70 of file KeyConfigPrefs.cpp.

◆ ViewByTreeID

#define ViewByTreeID   17009

Definition at line 69 of file KeyConfigPrefs.cpp.

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:
name
const TranslatableString name
Definition: Distortion.cpp:98
KeyConfigPrefs
A PrefsPanel for keybindings.
Definition: KeyConfigPrefs.h:33
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:92
safenew
#define safenew
Definition: MemoryX.h:10