NCBI C++ ToolKit
|
Search Toolkit Book for CRichTextCtrl
CRichTextCtrl - a wrapper for wxRichTextCtrl that handles additional keyboard events (such as Clipboard shortcuts). More...
#include <gui/widgets/wx/richtextctrl.hpp>
Public Member Functions | |
CRichTextCtrl () | |
CRichTextCtrl (wxWindow *parent, wxWindowID id=-1, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=wxTextCtrlNameStr) | |
~CRichTextCtrl () | |
bool | Create (wxWindow *parent, wxWindowID id, const wxString &value, const wxPoint &pos, const wxSize &size, long style, const wxValidator &validator, const wxString &name) |
void | OnKeyDown (wxKeyEvent &event) |
void | OnContextMenu (wxContextMenuEvent &event) |
void | RemoveFormatting () |
string | GetUtf8 () const |
void | SetContextMenu (wxMenu *contextMenu) |
DECLARE_EVENT_TABLE () | |
Protected Attributes | |
wxMenu * | m_ContextMenu |
CRichTextCtrl - a wrapper for wxRichTextCtrl that handles additional keyboard events (such as Clipboard shortcuts).
Definition at line 48 of file richtextctrl.hpp.
CRichTextCtrl::CRichTextCtrl | ( | ) |
Definition at line 64 of file richtextctrl.cpp.
CRichTextCtrl::CRichTextCtrl | ( | wxWindow * | parent, |
wxWindowID | id = -1 , |
||
const wxString & | value = wxEmptyString , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
const wxValidator & | validator = wxDefaultValidator , |
||
const wxString & | name = wxTextCtrlNameStr |
||
) |
Definition at line 68 of file richtextctrl.cpp.
References Create(), ncbi::grid::netcache::search::fields::size, and rapidjson::value.
CRichTextCtrl::~CRichTextCtrl | ( | ) |
Definition at line 80 of file richtextctrl.cpp.
References m_ContextMenu.
bool CRichTextCtrl::Create | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxString & | value, | ||
const wxPoint & | pos, | ||
const wxSize & | size, | ||
long | style, | ||
const wxValidator & | validator, | ||
const wxString & | name | ||
) |
Definition at line 85 of file richtextctrl.cpp.
References entries, ncbi::grid::netcache::search::fields::size, and rapidjson::value.
Referenced by CRichTextCtrl().
CRichTextCtrl::DECLARE_EVENT_TABLE | ( | ) |
string CRichTextCtrl::GetUtf8 | ( | ) | const |
Definition at line 185 of file richtextctrl.cpp.
References i, and ToStdString().
Referenced by CQueryParsePanel::AddQueryText(), CQueryParsePanel::OnSearchctrlTextEnter(), CQueryParsePanel::OnToggleHideUnselected(), and CQueryParsePanel::x_ExecuteQuery().
void CRichTextCtrl::OnContextMenu | ( | wxContextMenuEvent & | event | ) |
Definition at line 129 of file richtextctrl.cpp.
References _, and m_ContextMenu.
void CRichTextCtrl::OnKeyDown | ( | wxKeyEvent & | event | ) |
Definition at line 117 of file richtextctrl.cpp.
References IsForward().
void CRichTextCtrl::RemoveFormatting | ( | ) |
Definition at line 158 of file richtextctrl.cpp.
References compile_time_bits::range(), and rapidjson::value.
Referenced by CBamLoadOptionPanel::OnBamInputTextUpdated().
void CRichTextCtrl::SetContextMenu | ( | wxMenu * | contextMenu | ) |
Definition at line 111 of file richtextctrl.cpp.
References m_ContextMenu.
Referenced by CTextPanel::x_CreateMainToolbar(), and CGraphicPanel::x_CreateToolbar().
|
protected |
Definition at line 93 of file richtextctrl.hpp.
Referenced by OnContextMenu(), SetContextMenu(), and ~CRichTextCtrl().