![]() |
Audacity 3.2.0
|
Modified version of wxGridChoiceEditor using wxChoice instead of wxComboBox. More...
#include <Grid.h>
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) override |
| void | BeginEdit (int row, int col, wxGrid *grid) override |
| bool | EndEdit (int row, int col, wxGrid *grid) |
| bool | EndEdit (int row, int col, const wxGrid *grid, const wxString &oldval, wxString *newval) override |
| void | ApplyEdit (int row, int col, wxGrid *grid) override |
| void | Reset () override |
| wxGridCellEditor * | Clone () const override |
| void | SetChoices (const wxArrayString &choices) |
| wxString | GetValue () const override |
Protected Member Functions | |
| wxChoice * | Choice () const |
Private Attributes | |
| ChoiceEditor::FocusHandler | mHandler |
| wxArrayString | mChoices |
| wxString | mOld |
| wxString | mValueAsString |
Modified version of wxGridChoiceEditor using wxChoice instead of wxComboBox.
| ChoiceEditor::ChoiceEditor | ( | size_t | count = 0, |
| const wxString | choices[] = NULL |
||
| ) |
| ChoiceEditor::ChoiceEditor | ( | const wxArrayString & | choices | ) |
| ChoiceEditor::~ChoiceEditor | ( | ) |
Definition at line 350 of file Grid.cpp.
References ChoiceEditor::FocusHandler::DisconnectEvent(), and mHandler.
|
override |
Definition at line 432 of file Grid.cpp.
References mValueAsString.
Referenced by EndEdit().
|
override |
Definition at line 385 of file Grid.cpp.
References Choice(), make_iterator_range(), mChoices, and mOld.
|
inlineprotected |
Definition at line 155 of file Grid.h.
Referenced by BeginEdit(), GetValue(), and Reset().
|
override |
Definition at line 357 of file Grid.cpp.
References ChoiceEditor(), mChoices, and safenew.
|
override |
Definition at line 362 of file Grid.cpp.
References ChoiceEditor::FocusHandler::ConnectEvent(), mChoices, mHandler, and safenew.
|
override |
| bool ChoiceEditor::EndEdit | ( | int | row, |
| int | col, | ||
| wxGrid * | grid | ||
| ) |
Definition at line 398 of file Grid.cpp.
References ApplyEdit(), EndEdit(), and mOld.
Referenced by EndEdit().
|
override |
|
override |
| void ChoiceEditor::SetChoices | ( | const wxArrayString & | choices | ) |
Definition at line 442 of file Grid.cpp.
References mChoices.
Referenced by LabelDialog::TransferDataToWindow().
|
override |
|
private |
Definition at line 179 of file Grid.h.
Referenced by BeginEdit(), ChoiceEditor(), Clone(), Create(), GetValue(), Reset(), and SetChoices().
|
private |
Referenced by Create(), and ~ChoiceEditor().
|
private |
Definition at line 180 of file Grid.h.
Referenced by BeginEdit(), EndEdit(), and Reset().
|
private |
Definition at line 181 of file Grid.h.
Referenced by ApplyEdit().