Audacity  2.2.0
ExtImportPrefs Class Referencefinal

A PrefsPanel used to select extended import filter options. More...

#include <ExtImportPrefs.h>

Inheritance diagram for ExtImportPrefs:
PrefsPanel wxTabTraversalWrapper< Base >

Public Member Functions

 ExtImportPrefs (wxWindow *parent)
 
 ~ExtImportPrefs ()
 
bool Commit () override
 
wxString HelpPageName () override
 
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)
 
GridGetRuleTable ()
 
wxListCtrl * GetPluginList ()
 
wxWindow * GetDragFocus ()
 
- Public Member Functions inherited from PrefsPanel
 PrefsPanel (wxWindow *parent, const wxString &title)
 
virtual ~PrefsPanel ()
 
virtual void Preview ()
 
virtual bool ShowsPreviewButton ()
 
virtual void Cancel ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< Base >
template<typename... Args>
 wxTabTraversalWrapper (Args &&...args)
 
 ~wxTabTraversalWrapper ()
 

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...
 
void PopulateOrExchange (ShuttleGui &S)
 

Private Attributes

GridRuleTable
 
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
 

Detailed Description

A PrefsPanel used to select extended import filter options.

Constructor & Destructor Documentation

ExtImportPrefs::ExtImportPrefs ( wxWindow *  parent)
ExtImportPrefs::~ExtImportPrefs ( )

Member Function Documentation

void ExtImportPrefs::AddItemToTable ( int  index,
const ExtImportItem item 
)
private
bool ExtImportPrefs::Commit ( )
overridevirtual

Implements PrefsPanel.

References eIsSavingToPrefs, and PopulateOrExchange().

bool ExtImportPrefs::DoOnPluginKeyDown ( int  code)
private
void ExtImportPrefs::DoOnRuleTableKeyDown ( int  keycode)
private
void ExtImportPrefs::FakeOnPluginKeyDown ( int  keycode)
private

References EIPPluginList, and mFakeKeyEvent.

Referenced by OnFilterMoveDown(), and OnFilterMoveUp().

wxWindow* ExtImportPrefs::GetDragFocus ( )
inline
wxListCtrl* ExtImportPrefs::GetPluginList ( )
inline
Grid* ExtImportPrefs::GetRuleTable ( )
inline
wxString ExtImportPrefs::HelpPageName ( )
overridevirtual

Reimplemented from PrefsPanel.

void ExtImportPrefs::OnAddRule ( wxCommandEvent &  event)
void ExtImportPrefs::OnDelRule ( wxCommandEvent &  event)
void ExtImportPrefs::OnFilterMoveDown ( wxCommandEvent &  event)

References FakeOnPluginKeyDown().

void ExtImportPrefs::OnFilterMoveUp ( wxCommandEvent &  event)

References FakeOnPluginKeyDown().

void ExtImportPrefs::OnNavKey ( wxNavigationKeyEvent &  event)
void ExtImportPrefs::OnPluginBeginDrag ( wxListEvent &  event)

References dragtext2, mDragFocus, and PluginList.

void ExtImportPrefs::OnPluginKeyDown ( wxListEvent &  event)
void ExtImportPrefs::OnRuleMoveDown ( wxCommandEvent &  event)
void ExtImportPrefs::OnRuleMoveUp ( wxCommandEvent &  event)
void ExtImportPrefs::OnRuleTableCellClick ( wxGridEvent &  event)

References dragtext1, mDragFocus, and RuleTable.

void ExtImportPrefs::OnRuleTableEdit ( wxGridEvent &  event)
void ExtImportPrefs::OnRuleTableKeyDown ( wxKeyEvent &  event)
void ExtImportPrefs::OnRuleTableSelect ( wxGridEvent &  event)
void ExtImportPrefs::OnRuleTableSelectRange ( wxGridRangeSelectEvent &  event)
void ExtImportPrefs::Populate ( )
private

Creates the dialog and its contents.

References eIsCreatingFromPrefs, and PopulateOrExchange().

void ExtImportPrefs::SwapRows ( int  row1,
int  row2 
)

Member Data Documentation

wxButton* ExtImportPrefs::AddRule
private

Referenced by PopulateOrExchange().

wxButton* ExtImportPrefs::DelRule
private

Referenced by PopulateOrExchange().

wxTextDataObject* ExtImportPrefs::dragtext1 {}
private
wxTextDataObject* ExtImportPrefs::dragtext2 {}
private
int ExtImportPrefs::last_selected
private
bool ExtImportPrefs::mCreateTable
private
wxWindow* ExtImportPrefs::mDragFocus
private
bool ExtImportPrefs::mFakeKeyEvent
private
wxButton* ExtImportPrefs::MoveFilterDown
private

Referenced by PopulateOrExchange().

wxButton* ExtImportPrefs::MoveFilterUp
private

Referenced by PopulateOrExchange().

wxButton* ExtImportPrefs::MoveRuleDown
private

Referenced by PopulateOrExchange().

wxButton* ExtImportPrefs::MoveRuleUp
private

Referenced by PopulateOrExchange().

bool ExtImportPrefs::mStopRecursiveSelection
private
wxListCtrl* ExtImportPrefs::PluginList
private

The documentation for this class was generated from the following files: