![]() |
Audacity 3.2.0
|
A PrefsPanel used to select extended import filter options. More...
#include <ExtImportPrefs.h>
Public Member Functions | |
| ExtImportPrefs (wxWindow *parent, wxWindowID winid) | |
| ~ExtImportPrefs () | |
| ComponentInterfaceSymbol | GetSymbol () const override |
| TranslatableString | GetDescription () const override |
| bool | Commit () override |
| ManualPageID | HelpPageName () override |
| If not empty string, the Help button is added below the panel. More... | |
| void | PopulateOrExchange (ShuttleGui &S) override |
| void | OnShow (wxShowEvent &event) |
| void | OnPluginKeyDown (wxListEvent &event) |
| void | OnPluginBeginDrag (wxListEvent &event) |
| void | OnRuleTableKeyDown (wxKeyEvent &event) |
| void | OnRuleTableSelect (wxGridEvent &event) |
| void | OnRuleTableEdit (wxGridEvent &event) |
| void | OnRuleTableSelectRange (wxGridRangeSelectEvent &event) |
| void | OnRuleTableCellClick (wxGridEvent &event) |
| void | OnAddRule (wxCommandEvent &event) |
| void | OnDelRule (wxCommandEvent &event) |
| void | OnRuleMoveUp (wxCommandEvent &event) |
| void | OnRuleMoveDown (wxCommandEvent &event) |
| void | OnFilterMoveUp (wxCommandEvent &event) |
| void | OnFilterMoveDown (wxCommandEvent &event) |
| void | OnNavKey (wxNavigationKeyEvent &event) |
| void | SwapRows (int row1, int row2) |
| void | SwapPluginRows (int row1, int row2) |
| Grid * | GetRuleTable () |
| wxListCtrl * | GetPluginList () |
| wxWindow * | GetDragFocus () |
Public Member Functions inherited from PrefsPanel | |
| PrefsPanel (wxWindow *parent, wxWindowID winid, const TranslatableString &title) | |
| virtual | ~PrefsPanel () |
| virtual void | Preview () |
| virtual bool | Commit ()=0 |
| virtual PluginPath | GetPath () const override |
| virtual VendorSymbol | GetVendor () const override |
| virtual wxString | GetVersion () const override |
| virtual bool | ShowsPreviewButton () |
| virtual void | PopulateOrExchange (ShuttleGui &WXUNUSED(S)) |
| virtual ManualPageID | HelpPageName () |
| If not empty string, the Help button is added below the panel. More... | |
| virtual void | Cancel () |
Public Member Functions inherited from wxPanelWrapper | |
| wxPanelWrapper () | |
| wxPanelWrapper (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) | |
| bool | Create (wxWindow *parent, wxWindowID winid=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, const TranslatableString &name=XO("Panel")) |
| void | SetLabel (const TranslatableString &label) |
| void | SetName (const TranslatableString &name) |
| void | SetToolTip (const TranslatableString &toolTip) |
| void | SetName () |
Public Member Functions inherited from wxTabTraversalWrapper< wxPanel > | |
| wxTabTraversalWrapper (Args &&... args) | |
| wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
| wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
| wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
| wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Private Member Functions | |
| void | FakeOnPluginKeyDown (int keycode) |
| void | DoOnRuleTableKeyDown (int keycode) |
| bool | DoOnPluginKeyDown (int code) |
| void | DoOnRuleTableSelect (int toprow) |
| void | AddItemToTable (int index, const ExtImportItem *item) |
| void | Populate () |
| Creates the dialog and its contents. More... | |
Private Attributes | |
| Grid * | RuleTable |
| wxListCtrl * | PluginList |
| wxButton * | AddRule |
| wxButton * | DelRule |
| wxButton * | MoveRuleUp |
| wxButton * | MoveRuleDown |
| wxButton * | MoveFilterUp |
| wxButton * | MoveFilterDown |
| wxTextDataObject * | dragtext1 {} |
| wxTextDataObject * | dragtext2 {} |
| bool | mCreateTable |
| wxWindow * | mDragFocus |
| bool | mFakeKeyEvent |
| bool | mStopRecursiveSelection |
| int | last_selected |
Additional Inherited Members | |
Public Types inherited from PrefsPanel | |
| using | Factories = std::vector< PrefsPanel::PrefsNode > |
| using | Factory = std::function< PrefsPanel *(wxWindow *parent, wxWindowID winid, AudacityProject *) > |
Static Public Member Functions inherited from PrefsPanel | |
| static Factories & | DefaultFactories () |
A PrefsPanel used to select extended import filter options.
Definition at line 49 of file ExtImportPrefs.h.
| ExtImportPrefs::ExtImportPrefs | ( | wxWindow * | parent, |
| wxWindowID | winid | ||
| ) |
Definition at line 60 of file ExtImportPrefs.cpp.
References OnShow().
| ExtImportPrefs::~ExtImportPrefs | ( | ) |
Definition at line 73 of file ExtImportPrefs.cpp.
|
private |
Definition at line 592 of file ExtImportPrefs.cpp.
References ExtImportItem::extensions, ExtImportItem::mime_types, RuleTable, and wxT().
Referenced by OnAddRule(), and PopulateOrExchange().
|
overridevirtual |
Implements PrefsPanel.
Definition at line 214 of file ExtImportPrefs.cpp.
References eIsSavingToPrefs, Importer::Get(), PopulateOrExchange(), S, and Importer::WriteImportItems().
|
private |
Definition at line 299 of file ExtImportPrefs.cpp.
References ExtImportItem::divider, ExtImportItem::filter_objects, Importer::Get(), Importer::GetImportItems(), last_selected, mFakeKeyEvent, PluginList, and SwapPluginRows().
Referenced by OnPluginKeyDown().
|
private |
Definition at line 411 of file ExtImportPrefs.cpp.
References RuleTable, and SwapRows().
Referenced by OnRuleMoveDown(), OnRuleMoveUp(), and OnRuleTableKeyDown().
|
private |
Definition at line 465 of file ExtImportPrefs.cpp.
References _, ExtImportItem::divider, ExtImportItem::filter_objects, ExtImportItem::filters, Importer::Get(), Importer::GetImportItems(), last_selected, and PluginList.
Referenced by OnDelRule(), OnRuleTableSelect(), and OnRuleTableSelectRange().
|
private |
Definition at line 675 of file ExtImportPrefs.cpp.
References EIPPluginList, and mFakeKeyEvent.
Referenced by OnFilterMoveDown(), and OnFilterMoveUp().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 82 of file ExtImportPrefs.cpp.
References XO().
|
inline |
Definition at line 87 of file ExtImportPrefs.h.
References mDragFocus.
Referenced by ExtImportPrefsDropTarget::OnDragOver(), and ExtImportPrefsDropTarget::OnDrop().
|
inline |
Definition at line 85 of file ExtImportPrefs.h.
References PluginList.
Referenced by ExtImportPrefsDropTarget::OnDragOver(), and ExtImportPrefsDropTarget::OnDrop().
|
inline |
Definition at line 84 of file ExtImportPrefs.h.
References RuleTable.
Referenced by ExtImportPrefsDropTarget::OnDragOver(), and ExtImportPrefsDropTarget::OnDrop().
|
overridevirtual |
Implements ComponentInterface.
Definition at line 77 of file ExtImportPrefs.cpp.
References EXT_IMPORT_PREFS_PLUGIN_SYMBOL.
|
overridevirtual |
If not empty string, the Help button is added below the panel.
Default returns empty string.
Reimplemented from PrefsPanel.
Definition at line 87 of file ExtImportPrefs.cpp.
| void ExtImportPrefs::OnAddRule | ( | wxCommandEvent & | event | ) |
Definition at line 622 of file ExtImportPrefs.cpp.
References AddItemToTable(), Importer::CreateDefaultImportItem(), Importer::Get(), Importer::GetImportItems(), and RuleTable.
| void ExtImportPrefs::OnDelRule | ( | wxCommandEvent & | event | ) |
Definition at line 635 of file ExtImportPrefs.cpp.
References AudacityMessageBox(), DoOnRuleTableSelect(), Importer::Get(), Importer::GetImportItems(), last_selected, PluginList, RuleTable, and XO().
| void ExtImportPrefs::OnFilterMoveDown | ( | wxCommandEvent & | event | ) |
Definition at line 690 of file ExtImportPrefs.cpp.
References FakeOnPluginKeyDown().
| void ExtImportPrefs::OnFilterMoveUp | ( | wxCommandEvent & | event | ) |
Definition at line 685 of file ExtImportPrefs.cpp.
References FakeOnPluginKeyDown().
| void ExtImportPrefs::OnNavKey | ( | wxNavigationKeyEvent & | event | ) |
| void ExtImportPrefs::OnPluginBeginDrag | ( | wxListEvent & | event | ) |
Definition at line 375 of file ExtImportPrefs.cpp.
References dragtext2, mDragFocus, PluginList, and wxT().
| void ExtImportPrefs::OnPluginKeyDown | ( | wxListEvent & | event | ) |
Definition at line 236 of file ExtImportPrefs.cpp.
References DoOnPluginKeyDown(), and mFakeKeyEvent.
| void ExtImportPrefs::OnRuleMoveDown | ( | wxCommandEvent & | event | ) |
Definition at line 670 of file ExtImportPrefs.cpp.
References DoOnRuleTableKeyDown().
| void ExtImportPrefs::OnRuleMoveUp | ( | wxCommandEvent & | event | ) |
Definition at line 665 of file ExtImportPrefs.cpp.
References DoOnRuleTableKeyDown().
| void ExtImportPrefs::OnRuleTableCellClick | ( | wxGridEvent & | event | ) |
Definition at line 696 of file ExtImportPrefs.cpp.
References dragtext1, mDragFocus, RuleTable, and wxT().
| void ExtImportPrefs::OnRuleTableEdit | ( | wxGridEvent & | event | ) |
Definition at line 515 of file ExtImportPrefs.cpp.
References AudacityMessageBox(), ExtImportItem::extensions, Importer::Get(), Importer::GetImportItems(), ExtImportItem::mime_types, RuleTable, Importer::StringToList(), wxT(), and XO().
| void ExtImportPrefs::OnRuleTableKeyDown | ( | wxKeyEvent & | event | ) |
Definition at line 397 of file ExtImportPrefs.cpp.
References DoOnRuleTableKeyDown().
| void ExtImportPrefs::OnRuleTableSelect | ( | wxGridEvent & | event | ) |
Definition at line 433 of file ExtImportPrefs.cpp.
References DoOnRuleTableSelect(), and mStopRecursiveSelection.
| void ExtImportPrefs::OnRuleTableSelectRange | ( | wxGridRangeSelectEvent & | event | ) |
Definition at line 447 of file ExtImportPrefs.cpp.
References DoOnRuleTableSelect(), mStopRecursiveSelection, and RuleTable.
| void ExtImportPrefs::OnShow | ( | wxShowEvent & | event | ) |
Definition at line 226 of file ExtImportPrefs.cpp.
References PluginList, and RuleTable.
Referenced by ExtImportPrefs().
|
private |
Creates the dialog and its contents.
Definition at line 93 of file ExtImportPrefs.cpp.
References eIsCreatingFromPrefs, Importer::Get(), PopulateOrExchange(), Importer::ReadImportItems(), and S.
|
override |
Definition at line 107 of file ExtImportPrefs.cpp.
References _, AddItemToTable(), AddRule, DelRule, dragtext1, dragtext2, EIPAddRule, EIPDelRule, EIPMoveFilterDown, EIPMoveFilterUp, EIPMoveRuleDown, EIPMoveRuleUp, EIPPluginList, EIPRuleTable, FormatterContext::EmptyContext(), Importer::Get(), Importer::GetImportItems(), MoveFilterDown, MoveFilterUp, MoveRuleDown, MoveRuleUp, PluginList, RuleTable, S, safenew, wxT(), XO(), and XXO().
Referenced by Commit(), and Populate().
| void ExtImportPrefs::SwapPluginRows | ( | int | row1, |
| int | row2 | ||
| ) |
Definition at line 253 of file ExtImportPrefs.cpp.
References ExtImportItem::divider, ExtImportItem::filter_objects, ExtImportItem::filters, Importer::Get(), Importer::GetImportItems(), last_selected, and PluginList.
Referenced by DoOnPluginKeyDown(), and ExtImportPrefsDropTarget::OnDragOver().
| void ExtImportPrefs::SwapRows | ( | int | row1, |
| int | row2 | ||
| ) |
Definition at line 349 of file ExtImportPrefs.cpp.
References Importer::Get(), Importer::GetImportItems(), RuleTable, and anonymous_namespace{NoteTrack.cpp}::swap().
Referenced by DoOnRuleTableKeyDown(), and ExtImportPrefsDropTarget::OnDragOver().
|
private |
Definition at line 94 of file ExtImportPrefs.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 95 of file ExtImportPrefs.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 101 of file ExtImportPrefs.h.
Referenced by OnRuleTableCellClick(), and PopulateOrExchange().
|
private |
Definition at line 102 of file ExtImportPrefs.h.
Referenced by OnPluginBeginDrag(), and PopulateOrExchange().
|
private |
Definition at line 109 of file ExtImportPrefs.h.
Referenced by DoOnPluginKeyDown(), DoOnRuleTableSelect(), OnDelRule(), and SwapPluginRows().
|
private |
Definition at line 104 of file ExtImportPrefs.h.
|
private |
Definition at line 105 of file ExtImportPrefs.h.
Referenced by GetDragFocus(), OnPluginBeginDrag(), and OnRuleTableCellClick().
|
private |
Definition at line 106 of file ExtImportPrefs.h.
Referenced by DoOnPluginKeyDown(), FakeOnPluginKeyDown(), and OnPluginKeyDown().
|
private |
Definition at line 99 of file ExtImportPrefs.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 98 of file ExtImportPrefs.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 97 of file ExtImportPrefs.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 96 of file ExtImportPrefs.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 107 of file ExtImportPrefs.h.
Referenced by OnRuleTableSelect(), and OnRuleTableSelectRange().
|
private |
Definition at line 92 of file ExtImportPrefs.h.
Referenced by DoOnPluginKeyDown(), DoOnRuleTableSelect(), GetPluginList(), OnDelRule(), OnPluginBeginDrag(), OnShow(), PopulateOrExchange(), and SwapPluginRows().
|
private |
Definition at line 91 of file ExtImportPrefs.h.
Referenced by AddItemToTable(), DoOnRuleTableKeyDown(), GetRuleTable(), OnAddRule(), OnDelRule(), OnRuleTableCellClick(), OnRuleTableEdit(), OnRuleTableSelectRange(), OnShow(), PopulateOrExchange(), and SwapRows().