Audacity  2.2.0
ChoiceEditor Class Referencefinal

#include <Grid.h>

Inheritance diagram for ChoiceEditor:

Classes

class  FocusHandler
 

Public Member Functions

 ChoiceEditor (size_t count=0, const wxString choices[]=NULL)
 
 ChoiceEditor (const wxArrayString &choices)
 
 ~ChoiceEditor ()
 
void Create (wxWindow *parent, wxWindowID id, wxEvtHandler *evtHandler) override
 
void SetSize (const wxRect &rect)
 
void BeginEdit (int row, int col, wxGrid *grid)
 
bool EndEdit (int row, int col, wxGrid *grid)
 
bool EndEdit (int row, int col, const wxGrid *grid, const wxString &oldval, wxString *newval)
 
void ApplyEdit (int row, int col, wxGrid *grid)
 
void Reset ()
 
wxGridCellEditor * Clone () const override
 
void SetChoices (const wxArrayString &choices)
 
wxString GetValue () const
 

Protected Member Functions

wxChoice * Choice () const
 

Private Attributes

ChoiceEditor::FocusHandler mHandler
 
wxArrayString mChoices
 
wxString mOld
 
wxString mValueAsString
 

Constructor & Destructor Documentation

ChoiceEditor::ChoiceEditor ( size_t  count = 0,
const wxString  choices[] = NULL 
)

References mChoices.

Referenced by Clone().

ChoiceEditor::ChoiceEditor ( const wxArrayString &  choices)

References mChoices.

ChoiceEditor::~ChoiceEditor ( )

Member Function Documentation

void ChoiceEditor::ApplyEdit ( int  row,
int  col,
wxGrid *  grid 
)

References mValueAsString.

Referenced by EndEdit().

void ChoiceEditor::BeginEdit ( int  row,
int  col,
wxGrid *  grid 
)

References Choice(), mChoices, and mOld.

wxChoice* ChoiceEditor::Choice ( ) const
inlineprotected

Referenced by BeginEdit(), GetValue(), and Reset().

wxGridCellEditor * ChoiceEditor::Clone ( ) const
override

References ChoiceEditor(), mChoices, and safenew.

void ChoiceEditor::Create ( wxWindow *  parent,
wxWindowID  id,
wxEvtHandler *  evtHandler 
)
override
bool ChoiceEditor::EndEdit ( int  row,
int  col,
wxGrid *  grid 
)

References ApplyEdit(), and mOld.

bool ChoiceEditor::EndEdit ( int  row,
int  col,
const wxGrid *  grid,
const wxString &  oldval,
wxString *  newval 
)
wxString ChoiceEditor::GetValue ( ) const

References Choice(), and mChoices.

void ChoiceEditor::Reset ( )

References Choice(), mChoices, and mOld.

void ChoiceEditor::SetChoices ( const wxArrayString &  choices)

References mChoices.

Referenced by LabelDialog::TransferDataToWindow().

void ChoiceEditor::SetSize ( const wxRect &  rect)

Member Data Documentation

wxArrayString ChoiceEditor::mChoices
private
ChoiceEditor::FocusHandler ChoiceEditor::mHandler
private

Referenced by Create(), and ~ChoiceEditor().

wxString ChoiceEditor::mOld
private

Referenced by BeginEdit(), EndEdit(), and Reset().

wxString ChoiceEditor::mValueAsString
private

Referenced by ApplyEdit().


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