keyconfigprefs.h

来自「Audacity是一款用於錄音和編輯聲音的、免費的開放源碼軟體。它可以執行於Ma」· C头文件 代码 · 共 93 行

H
93
字号
/**********************************************************************  Audacity: A Digital Audio Editor  KeyConfigPrefs.h  Brian Gunlogson  Dominic Mazzoni**********************************************************************/#ifndef __AUDACITY_KEY_CONFIG_PREFS__#define __AUDACITY_KEY_CONFIG_PREFS__#include <wx/defs.h>#include <wx/textctrl.h>#include <wx/string.h>#include "PrefsPanel.h"#include "../Project.h"class wxChoice;class wxCharEvent;class wxStaticText;class wxListCtrl;class wxListEvent;class wxWindow;class SysKeyTextCtrl;class CommandManager;class KeyConfigPrefs:public PrefsPanel { public:   KeyConfigPrefs(wxWindow * parent);   ~KeyConfigPrefs();   bool Apply(); private:   void OnDefaults(wxCommandEvent& event);   void OnLoad(wxCommandEvent& event);   void OnSave(wxCommandEvent& event);   void OnSet(wxCommandEvent& event);   void OnClear(wxCommandEvent& event);   void OnItemSelected(wxListEvent &event);   void RepopulateBindingsList();   SysKeyTextCtrl *mCurrentComboText;   wxListCtrl * mList;   CommandManager *mManager;   int mCommandSelected;   wxArrayString mNames; public:   DECLARE_EVENT_TABLE();};//BG: A quick and dirty override of wxTextCtrl to capture keys like Ctrl, Altclass SysKeyTextCtrl:public wxTextCtrl{public:   SysKeyTextCtrl(wxWindow *parent, wxWindowID id,                  const wxString& value = wxEmptyString,                  const wxPoint& pos = wxDefaultPosition,                  const wxSize& size = wxDefaultSize,                  long style = 0,                  const wxValidator& validator = wxDefaultValidator,                  const wxString& name = wxTextCtrlNameStr);   ~SysKeyTextCtrl();private:   void OnKey(wxKeyEvent& event);   void OnChar(wxKeyEvent& event);protected:   DECLARE_EVENT_TABLE()};#endif// Indentation settings for Vim and Emacs and unique identifier for Arch, a// version control system. Please do not modify past this point.//// Local Variables:// c-basic-offset: 3// indent-tabs-mode: nil// End://// vim: et sts=3 sw=3// arch-tag: 40d9b726-ab6b-431f-b384-e1a66303dba5

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?