A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/richtextctrl_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/wx/richtextctrl.cpp Source File

40 #ifdef __WXOSX_COCOA__ 41 #include <wx/osx/core/private.h> 42 #include <wx/osx/cocoa/private.h> 51 #ifdef __WXOSX_COCOA__ 52  EVT_MENU

(kCustomCut, wxTextCtrl::OnCut)

53  EVT_MENU

(kCustomCopy, wxTextCtrl::OnCopy)

54  EVT_MENU

(kCustomPaste, wxTextCtrl::OnPaste)

55  EVT_MENU

(kCustomDelete, wxTextCtrl::OnDelete)

69  const

wxString&

value

,

73  const

wxValidator& validator,

86  const

wxValidator& validator,

const

wxString& name)

88

wxTextCtrl::Create(parent,

id

,

value

, pos,

size

, style, validator, name);

97  entries

[0].Set(wxACCEL_CMD, (

int

)

'C'

, wxID_COPY);

98  entries

[1].Set(wxACCEL_CMD, (

int

)

'X'

, wxID_CUT);

99  entries

[2].Set(wxACCEL_CMD, (

int

)

'V'

, wxID_PASTE);

100  entries

[3].Set(wxACCEL_CMD, (

int

)

'A'

, wxID_SELECTALL);

101  entries

[4].Set(wxACCEL_CMD, 384, wxID_COPY);

102  entries

[5].Set(wxACCEL_SHIFT, 384, wxID_PASTE);

105

wxAcceleratorTable accel(6,

entries

);

106

SetAcceleratorTable(accel);

119  if

(event.GetKeyCode() != WXK_TAB) {

123

Navigate(wxGetKeyState(WXK_SHIFT)?

124

wxNavigationKeyEvent::IsBackward :

135 #ifdef __WXOSX_COCOA__ 160 #ifdef __WXOSX_COCOA__ 161

wxTextWidgetImpl*

impl

= GetTextPeer();

162

wxWidgetCocoaImpl *text_ctrl =

dynamic_cast<

wxWidgetCocoaImpl*

>

(

impl

);

163

NSView* w = text_ctrl->GetWXWidget();

168  if

([w isKindOfClass:[NSScrollView

class

]]) {

169

NSScrollView* sv = (NSScrollView*)w;

170

NSView* doc = [sv documentView];

171  if

([doc isKindOfClass:[NSTextView

class

]]) {

172

NSTextView* tv = (NSTextView*)doc;

174

NSParagraphStyle *paraStyle = [NSParagraphStyle defaultParagraphStyle];

175

[tv setDefaultParagraphStyle:paraStyle];

177

[[tv textStorage] addAttribute:NSParagraphStyleAttributeName

178  value

:paraStyle range:NSMakeRange(0, [[tv

string

] length])];

189

wxString query_wx = GetValue();

190  for

(

size_t i

=0;

i

<query_wx.length(); ++

i

) {

192  if

(query_wx[

i

] == L

'\u201c'

|| query_wx[

i

] == L

'\u201d'

)

193

query_wx[

i

] =

'\"'

;

195  if

(query_wx[

i

] == L

'\u2018'

|| query_wx[

i

] == L

'\u2019'

)

196

query_wx[

i

] =

'\''

;

bool IsForward(ENa_strand s)

CRichTextCtrl - a wrapper for wxRichTextCtrl that handles additional keyboard events (such as Clipboa...

void OnKeyDown(wxKeyEvent &event)

void OnContextMenu(wxContextMenuEvent &event)

void SetContextMenu(wxMenu *contextMenu)

bool Create(wxWindow *parent, wxWindowID id, const wxString &value, const wxPoint &pos, const wxSize &size, long style, const wxValidator &validator, const wxString &name)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

const struct ncbi::grid::netcache::search::fields::SIZE size

const GenericPointer< typename T::ValueType > T2 value

ViewerWindowBase::OnEditMenu ViewerWindowBase::OnJustification EVT_MENU(MID_SHOW_GEOM_VLTNS, ViewerWindowBase::OnShowGeomVltns) EVT_MENU(MID_FIND_PATTERN

static wxAcceleratorEntry entries[3]

string ToStdString(const wxString &s)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4