NCBI C++ ToolKit
Public Member Functions | Protected Attributes | List of all members
CRichTextCtrl Class Reference

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>

+ Inheritance diagram for CRichTextCtrl:
+ Collaboration diagram for CRichTextCtrl:

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
 

Detailed Description

CRichTextCtrl - a wrapper for wxRichTextCtrl that handles additional keyboard events (such as Clipboard shortcuts).

Definition at line 48 of file richtextctrl.hpp.

Constructor & Destructor Documentation

◆ CRichTextCtrl() [1/2]

CRichTextCtrl::CRichTextCtrl ( )

Definition at line 64 of file richtextctrl.cpp.

◆ CRichTextCtrl() [2/2]

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()

CRichTextCtrl::~CRichTextCtrl ( )

Definition at line 80 of file richtextctrl.cpp.

References m_ContextMenu.

Member Function Documentation

◆ Create()

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().

◆ DECLARE_EVENT_TABLE()

CRichTextCtrl::DECLARE_EVENT_TABLE ( )

◆ GetUtf8()

string CRichTextCtrl::GetUtf8 ( ) const

◆ OnContextMenu()

void CRichTextCtrl::OnContextMenu ( wxContextMenuEvent &  event)

Definition at line 129 of file richtextctrl.cpp.

References _, and m_ContextMenu.

◆ OnKeyDown()

void CRichTextCtrl::OnKeyDown ( wxKeyEvent &  event)

Definition at line 117 of file richtextctrl.cpp.

References IsForward().

◆ RemoveFormatting()

void CRichTextCtrl::RemoveFormatting ( )

◆ SetContextMenu()

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().

Member Data Documentation

◆ m_ContextMenu

wxMenu* CRichTextCtrl::m_ContextMenu
protected

Definition at line 93 of file richtextctrl.hpp.

Referenced by OnContextMenu(), SetContextMenu(), and ~CRichTextCtrl().


The documentation for this class was generated from the following files:
Modified on Thu May 23 12:34:23 2024 by modify_doxy.py rev. 669887