📄 batchprefs.h
字号:
/********************************************************************** Audacity: A Digital Audio Editor BatchPrefs.h Dominic Mazzoni James Crook**********************************************************************/#ifndef __AUDACITY_BATCH_PREFS__#define __AUDACITY_BATCH_PREFS__#include <wx/defs.h>#include <wx/string.h>#include "PrefsPanel.h"#include "../BatchCommands.h"#ifdef __WXMSW__ #include <wx/ownerdrw.h>#endif//#include "wx/log.h"#include <wx/sizer.h>#include <wx/menuitem.h>#include <wx/checklst.h>#if wxUSE_CHECKLISTBOX// JKC: uncomment the #define to convert the lists of checkboxes// into scrollable lists. We're likely to need this when the // list of preferences is longer.//#define USE_SCROLLING_CHECK_LISTBOX_IN_PREFS 1#endifclass wxWindow;class wxCheckBox;class wxChoice;class wxTextCtrl;class wxStaticText;class wxRadioButton;class wxListCtrl;class wxListEvent;//CheckBox containers may be sizers or CCheckListBoxes.class BatchPrefs;const int MAX_BATCH_CHECKBOXES=30;const int MAX_BATCH_RADIO_BUTTONS=5;const int NUM_BATCH_CHECKBOX_CONTAINERS=2;class BatchPrefs : public PrefsPanel {public: BatchPrefs(wxWindow * parent); ~BatchPrefs(); bool Apply();private: wxCheckBox * CreateCheckBox( const wxString Description, const bool State); void CheckBoxAction(const wxString mDescription, const wxString mSettingName, bool bDefault, int mWindowID=0); //0 should be NoneID. void AllCheckBoxActions(); void AddItem( wxString const & Action, wxString const & Params); void OnItemSelected(wxListEvent &event); void OnDrag(wxListEvent &event); void OnDragEnd(wxListEvent &event); void OnSetChainMp3(wxCommandEvent &event); void OnSetChainCleanSpeech(wxCommandEvent &event); void OnSetChainEmpty(wxCommandEvent &event);// These private member variables are used in// creating lists of checkboxes. wxCheckBox *mCheckBoxes[MAX_BATCH_CHECKBOXES]; // CheckBoxes not contained in a ListBox.#if USE_SCROLLING_CHECK_LISTBOX_IN_PREFS wxCheckListBox *mCheckListBoxes[ NUM_BATCH_CHECKBOX_CONTAINERS]; // (Optional) ListBoxes of checkboxes#endif wxSizer *mCheckListSizers[ NUM_BATCH_CHECKBOX_CONTAINERS]; // Sizers that contain them. int mCheckBoxCounters[NUM_BATCH_CHECKBOX_CONTAINERS]; // How many in each list? wxListCtrl * mList; int mCurrentCheckBoxContainer; // Current container when creating / applying. wxSizer * mCurrentSizer; int mCurrentCheckBox; // 0..MAX_BATCH_CHECKBOXES-1 int mCurrentRadioButton; int mSelectedRadioButton; wxString mCurrentPrefName; int mCurrentPrefValue; bool mbCreating; // Are we currently creating the checkboxes? public: void SetItem( int ItemNo, const wxString command, const wxString params ); void PopulateList(); BatchCommands mBatchCommands; 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: 57018e2b-d264-4f93-bfa7-06752ebf631e
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -