Audacity  2.2.0
EditChainsDialog Class Referencefinal

#include <BatchProcessDialog.h>

Inheritance diagram for EditChainsDialog:
wxTabTraversalWrapper< Base >

Public Member Functions

 EditChainsDialog (wxWindow *parent)
 Constructor. More...
 
 ~EditChainsDialog ()
 
- Public Member Functions inherited from wxTabTraversalWrapper< Base >
template<typename... Args>
 wxTabTraversalWrapper (Args &&...args)
 
 ~wxTabTraversalWrapper ()
 

Private Member Functions

void Populate ()
 Creates the dialog and its contents. More...
 
void PopulateOrExchange (ShuttleGui &S)
 Defines the dialog and does data exchange with it. More...
 
void PopulateChains ()
 This clears and updates the contents of mChains. More...
 
void PopulateList ()
 This clears and updates the contents of mList. More...
 
void AddItem (const wxString &command, wxString const &params)
 Add one item into mList. More...
 
bool ChangeOK ()
 
void OnChainSelected (wxListEvent &event)
 An item in the chains list has been selected. More...
 
void OnListSelected (wxListEvent &event)
 An item in the chains list has been selected. More...
 
void OnChainsBeginEdit (wxListEvent &event)
 
void OnChainsEndEdit (wxListEvent &event)
 
void OnAdd (wxCommandEvent &event)
 
void OnRemove (wxCommandEvent &event)
 
void OnRename (wxCommandEvent &event)
 
void OnSize (wxSizeEvent &event)
 The window has been resized. More...
 
void OnCommandActivated (wxListEvent &event)
 
void OnInsert (wxCommandEvent &event)
 
void OnDelete (wxCommandEvent &event)
 
void OnUp (wxCommandEvent &event)
 
void OnDown (wxCommandEvent &event)
 
void OnDefaults (wxCommandEvent &event)
 Select the empty Command chain. More...
 
void OnOK (wxCommandEvent &event)
 Send changed values back to Prefs, and update Audacity. More...
 
void OnCancel (wxCommandEvent &event)
 
void OnKeyDown (wxKeyEvent &event)
 
void FitColumns ()
 

Private Attributes

wxListCtrl * mChains
 
wxListCtrl * mList
 List of chains. More...
 
wxButton * mRemove
 List of commands in current command chain. More...
 
wxButton * mRename
 
wxButton * mDefaults
 
BatchCommands mBatchCommands
 
wxString mActiveChain
 Provides list of available commands. More...
 
int mSelectedCommand
 
bool mChanged
 

Constructor & Destructor Documentation

EditChainsDialog::EditChainsDialog ( wxWindow *  parent)

Constructor.

References _(), mChanged, mSelectedCommand, and Populate().

EditChainsDialog::~EditChainsDialog ( )

Member Function Documentation

void EditChainsDialog::AddItem ( const wxString &  command,
wxString const &  params 
)
private

Add one item into mList.

References ActionColumn, ItemNumberColumn, mList, and ParamsColumn.

Referenced by PopulateList().

bool EditChainsDialog::ChangeOK ( )
private
void EditChainsDialog::FitColumns ( )
private

References mList.

Referenced by OnListSelected(), OnSize(), and Populate().

void EditChainsDialog::OnAdd ( wxCommandEvent &  event)
private
void EditChainsDialog::OnCancel ( wxCommandEvent &  event)
private

References ChangeOK().

void EditChainsDialog::OnChainsBeginEdit ( wxListEvent &  event)
private
void EditChainsDialog::OnChainSelected ( wxListEvent &  event)
private
void EditChainsDialog::OnChainsEndEdit ( wxListEvent &  event)
private
void EditChainsDialog::OnCommandActivated ( wxListEvent &  event)
private
void EditChainsDialog::OnDefaults ( wxCommandEvent &  event)
private
void EditChainsDialog::OnDelete ( wxCommandEvent &  event)
private
void EditChainsDialog::OnKeyDown ( wxKeyEvent &  event)
private
void EditChainsDialog::OnListSelected ( wxListEvent &  event)
private

An item in the chains list has been selected.

References FitColumns().

void EditChainsDialog::OnOK ( wxCommandEvent &  event)
private

Send changed values back to Prefs, and update Audacity.

References gPrefs, mActiveChain, mBatchCommands, mChanged, and BatchCommands::WriteChain().

void EditChainsDialog::OnRemove ( wxCommandEvent &  event)
private
void EditChainsDialog::OnRename ( wxCommandEvent &  event)
private

References mChains.

void EditChainsDialog::OnSize ( wxSizeEvent &  event)
private

The window has been resized.

References FitColumns().

void EditChainsDialog::Populate ( )
private

Creates the dialog and its contents.

References eIsCreating, FitColumns(), gPrefs, mActiveChain, mChains, PopulateChains(), PopulateList(), and PopulateOrExchange().

Referenced by EditChainsDialog().

void EditChainsDialog::PopulateChains ( )
private

This clears and updates the contents of mChains.

References BatchCommands::GetNames(), mActiveChain, mBatchCommands, mChains, and names().

Referenced by OnAdd(), OnChainsEndEdit(), OnRemove(), and Populate().

void EditChainsDialog::PopulateList ( )
private

Member Data Documentation

wxString EditChainsDialog::mActiveChain
private
wxListCtrl* EditChainsDialog::mChains
private
bool EditChainsDialog::mChanged
private
wxButton* EditChainsDialog::mDefaults
private
wxListCtrl* EditChainsDialog::mList
private
wxButton* EditChainsDialog::mRemove
private

List of commands in current command chain.

Referenced by OnChainSelected(), and PopulateOrExchange().

wxButton* EditChainsDialog::mRename
private
int EditChainsDialog::mSelectedCommand
private

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