67 TextEditHelper(
const std::weak_ptr<TextEditDelegate>& delegate,
const wxString& text,
const wxFont& font);
92 bool Draw(wxDC& dc,
const wxRect& rect);
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
virtual ~TextEditDelegate()
virtual void OnTextModified(AudacityProject *project, const wxString &text)=0
virtual void OnTextEditCancelled(AudacityProject *project)=0
virtual void OnTextEditFinished(AudacityProject *project, const wxString &text)=0
virtual void OnTextContextMenu(AudacityProject *project, const wxPoint &position)=0
bool HandleDragRelease(const wxMouseEvent &event, AudacityProject *project)
void SetTextSelectionColor(const wxColor &textSelectionColor)
bool OnChar(int charCode, AudacityProject *project)
bool OnDrag(const wxMouseEvent &event, AudacityProject *project)
static bool IsGoodEditKeyCode(int keyCode)
bool OnKeyDown(int keyCode, int mods, AudacityProject *project)
void Finish(AudacityProject *project)
bool OnClick(const wxMouseEvent &event, AudacityProject *project)
bool CaptureKey(int keyCode, int mods)
int FindCursorIndex(const wxPoint &point)
bool CutSelectedText(AudacityProject &project)
bool GetCharPositionX(int index, int *outX)
bool Draw(wxDC &dc, const wxRect &rect)
void RemoveSelectedText(AudacityProject *project)
const wxRect & GetBBox() const
TextEditHelper(const std::weak_ptr< TextEditDelegate > &delegate, const wxString &text, const wxFont &font)
void SetSelection(int from, int to)
bool PasteSelectedText(AudacityProject &project)
bool OnRelease(const wxMouseEvent &event, AudacityProject *project)
void SetTextColor(const wxColor &textColor)
bool CopySelectedText(AudacityProject &project)
void Cancel(AudacityProject *project)
std::pair< int, int > GetSelection() const
wxColor mTextSelectionColor
std::weak_ptr< TextEditDelegate > mDelegate
Abstract base class for an object holding data associated with points on a time axis.