亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? stc.cpp

?? wxGTK 是 wxWidgets 的 linux GTK+ (>2.2.3)版本。wxWidgets 是一個跨平臺的 GUI 框架
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
////////////////////////////////////////////////////////////////////////////// Name:        stc.cpp// Purpose:     A wxWidgets implementation of Scintilla.  This class is the//              one meant to be used directly by wx applications.  It does not//              derive directly from the Scintilla classes, but instead//              delegates most things to the real Scintilla class.//              This allows the use of Scintilla without polluting the//              namespace with all the classes and identifiers from Scintilla.//// Author:      Robin Dunn//// Created:     13-Jan-2000// RCS-ID:      $Id: stc.cpp,v 1.104 2006/10/31 08:50:15 RD Exp $// Copyright:   (c) 2000 by Total Control Software// Licence:     wxWindows license/////////////////////////////////////////////////////////////////////////////#include <ctype.h>#include "wx/wx.h"#include "wx/tokenzr.h"#include "wx/mstream.h"#include "wx/image.h"#include "wx/file.h"#include "wx/stc/stc.h"#include "ScintillaWX.h"//----------------------------------------------------------------------const wxChar* wxSTCNameStr = wxT("stcwindow");#ifdef MAKELONG#undef MAKELONG#endif#define MAKELONG(a, b) ((a) | ((b) << 16))static long wxColourAsLong(const wxColour& co) {    return (((long)co.Blue()  << 16) |            ((long)co.Green() <<  8) |            ((long)co.Red()));}static wxColour wxColourFromLong(long c) {    wxColour clr;    clr.Set((unsigned char)(c & 0xff),            (unsigned char)((c >> 8) & 0xff),            (unsigned char)((c >> 16) & 0xff));    return clr;}static wxColour wxColourFromSpec(const wxString& spec) {    // spec should be a colour name or "#RRGGBB"    if (spec.GetChar(0) == wxT('#')) {        long red, green, blue;        red = green = blue = 0;        spec.Mid(1,2).ToLong(&red,   16);        spec.Mid(3,2).ToLong(&green, 16);        spec.Mid(5,2).ToLong(&blue,  16);        return wxColour((unsigned char)red,                        (unsigned char)green,                        (unsigned char)blue);    }    else        return wxColour(spec);}//----------------------------------------------------------------------DEFINE_EVENT_TYPE( wxEVT_STC_CHANGE )DEFINE_EVENT_TYPE( wxEVT_STC_STYLENEEDED )DEFINE_EVENT_TYPE( wxEVT_STC_CHARADDED )DEFINE_EVENT_TYPE( wxEVT_STC_SAVEPOINTREACHED )DEFINE_EVENT_TYPE( wxEVT_STC_SAVEPOINTLEFT )DEFINE_EVENT_TYPE( wxEVT_STC_ROMODIFYATTEMPT )DEFINE_EVENT_TYPE( wxEVT_STC_KEY )DEFINE_EVENT_TYPE( wxEVT_STC_DOUBLECLICK )DEFINE_EVENT_TYPE( wxEVT_STC_UPDATEUI )DEFINE_EVENT_TYPE( wxEVT_STC_MODIFIED )DEFINE_EVENT_TYPE( wxEVT_STC_MACRORECORD )DEFINE_EVENT_TYPE( wxEVT_STC_MARGINCLICK )DEFINE_EVENT_TYPE( wxEVT_STC_NEEDSHOWN )DEFINE_EVENT_TYPE( wxEVT_STC_PAINTED )DEFINE_EVENT_TYPE( wxEVT_STC_USERLISTSELECTION )DEFINE_EVENT_TYPE( wxEVT_STC_URIDROPPED )DEFINE_EVENT_TYPE( wxEVT_STC_DWELLSTART )DEFINE_EVENT_TYPE( wxEVT_STC_DWELLEND )DEFINE_EVENT_TYPE( wxEVT_STC_START_DRAG )DEFINE_EVENT_TYPE( wxEVT_STC_DRAG_OVER )DEFINE_EVENT_TYPE( wxEVT_STC_DO_DROP )DEFINE_EVENT_TYPE( wxEVT_STC_ZOOM )DEFINE_EVENT_TYPE( wxEVT_STC_HOTSPOT_CLICK )DEFINE_EVENT_TYPE( wxEVT_STC_HOTSPOT_DCLICK )DEFINE_EVENT_TYPE( wxEVT_STC_CALLTIP_CLICK )DEFINE_EVENT_TYPE( wxEVT_STC_AUTOCOMP_SELECTION )    BEGIN_EVENT_TABLE(wxStyledTextCtrl, wxControl)    EVT_PAINT                   (wxStyledTextCtrl::OnPaint)    EVT_SCROLLWIN               (wxStyledTextCtrl::OnScrollWin)    EVT_SCROLL                  (wxStyledTextCtrl::OnScroll)    EVT_SIZE                    (wxStyledTextCtrl::OnSize)    EVT_LEFT_DOWN               (wxStyledTextCtrl::OnMouseLeftDown)    // Let Scintilla see the double click as a second click    EVT_LEFT_DCLICK             (wxStyledTextCtrl::OnMouseLeftDown)    EVT_MOTION                  (wxStyledTextCtrl::OnMouseMove)    EVT_LEFT_UP                 (wxStyledTextCtrl::OnMouseLeftUp)#if defined(__WXGTK__) || defined(__WXMAC__)    EVT_RIGHT_UP                (wxStyledTextCtrl::OnMouseRightUp)#else    EVT_CONTEXT_MENU            (wxStyledTextCtrl::OnContextMenu)#endif    EVT_MOUSEWHEEL              (wxStyledTextCtrl::OnMouseWheel)    EVT_MIDDLE_UP               (wxStyledTextCtrl::OnMouseMiddleUp)    EVT_CHAR                    (wxStyledTextCtrl::OnChar)    EVT_KEY_DOWN                (wxStyledTextCtrl::OnKeyDown)    EVT_KILL_FOCUS              (wxStyledTextCtrl::OnLoseFocus)    EVT_SET_FOCUS               (wxStyledTextCtrl::OnGainFocus)    EVT_SYS_COLOUR_CHANGED      (wxStyledTextCtrl::OnSysColourChanged)    EVT_ERASE_BACKGROUND        (wxStyledTextCtrl::OnEraseBackground)    EVT_MENU_RANGE              (10, 16, wxStyledTextCtrl::OnMenu)    EVT_LISTBOX_DCLICK          (wxID_ANY, wxStyledTextCtrl::OnListBox)END_EVENT_TABLE()IMPLEMENT_CLASS(wxStyledTextCtrl, wxControl)IMPLEMENT_DYNAMIC_CLASS(wxStyledTextEvent, wxCommandEvent)#ifdef LINK_LEXERS// forces the linking of the lexer modulesint Scintilla_LinkLexers();#endif//----------------------------------------------------------------------// Constructor and DestructorwxStyledTextCtrl::wxStyledTextCtrl(wxWindow *parent,                                   wxWindowID id,                                   const wxPoint& pos,                                   const wxSize& size,                                   long style,                                   const wxString& name){    m_swx = NULL;    Create(parent, id, pos, size, style, name);}bool wxStyledTextCtrl::Create(wxWindow *parent,                              wxWindowID id,                              const wxPoint& pos,                              const wxSize& size,                              long style,                              const wxString& name){#ifdef __WXMAC__    style |= wxVSCROLL | wxHSCROLL;#endif    if (!wxControl::Create(parent, id, pos, size,                           style | wxWANTS_CHARS | wxCLIP_CHILDREN,                           wxDefaultValidator, name))        return false;#ifdef LINK_LEXERS    Scintilla_LinkLexers();#endif    m_swx = new ScintillaWX(this);    m_stopWatch.Start();    m_lastKeyDownConsumed = false;    m_vScrollBar = NULL;    m_hScrollBar = NULL;#if wxUSE_UNICODE    // Put Scintilla into unicode (UTF-8) mode    SetCodePage(wxSTC_CP_UTF8);#endif    SetInitialSize(size);    // Reduces flicker on GTK+/X11    SetBackgroundStyle(wxBG_STYLE_CUSTOM);    return true;}wxStyledTextCtrl::~wxStyledTextCtrl() {    delete m_swx;}//----------------------------------------------------------------------long wxStyledTextCtrl::SendMsg(int msg, long wp, long lp) {    return m_swx->WndProc(msg, wp, lp);}//----------------------------------------------------------------------// Set the vertical scrollbar to use instead of the ont that's built-in.void wxStyledTextCtrl::SetVScrollBar(wxScrollBar* bar)  {    m_vScrollBar = bar;    if (bar != NULL) {        // ensure that the built-in scrollbar is not visible        SetScrollbar(wxVERTICAL, 0, 0, 0);    }}// Set the horizontal scrollbar to use instead of the ont that's built-in.void wxStyledTextCtrl::SetHScrollBar(wxScrollBar* bar)  {    m_hScrollBar = bar;    if (bar != NULL) {        // ensure that the built-in scrollbar is not visible        SetScrollbar(wxHORIZONTAL, 0, 0, 0);    }}//----------------------------------------------------------------------// BEGIN generated section.  The following code is automatically generated//       by gen_iface.py from the contents of Scintilla.iface.  Do not edit//       this file.  Edit stc.cpp.in or gen_iface.py instead and regenerate.// Add text to the document at current position.void wxStyledTextCtrl::AddText(const wxString& text) {                    wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);                    SendMsg(2001, strlen(buf), (long)(const char*)buf);}// Add array of cells to document.void wxStyledTextCtrl::AddStyledText(const wxMemoryBuffer& data) {                          SendMsg(2002, data.GetDataLen(), (long)data.GetData());}// Insert string at a position.void wxStyledTextCtrl::InsertText(int pos, const wxString& text) {    SendMsg(2003, pos, (long)(const char*)wx2stc(text));}// Delete all text in the document.void wxStyledTextCtrl::ClearAll() {    SendMsg(2004, 0, 0);}// Set all style bytes to 0, remove all folding information.void wxStyledTextCtrl::ClearDocumentStyle() {    SendMsg(2005, 0, 0);}// Returns the number of characters in the document.int wxStyledTextCtrl::GetLength() {    return SendMsg(2006, 0, 0);}// Returns the character byte at the position.int wxStyledTextCtrl::GetCharAt(int pos) {         return (unsigned char)SendMsg(2007, pos, 0);}// Returns the position of the caret.int wxStyledTextCtrl::GetCurrentPos() {    return SendMsg(2008, 0, 0);}// Returns the position of the opposite end of the selection to the caret.int wxStyledTextCtrl::GetAnchor() {    return SendMsg(2009, 0, 0);}// Returns the style byte at the position.int wxStyledTextCtrl::GetStyleAt(int pos) {         return (unsigned char)SendMsg(2010, pos, 0);}// Redoes the next action on the undo history.void wxStyledTextCtrl::Redo() {    SendMsg(2011, 0, 0);}// Choose between collecting actions into the undo// history and discarding them.void wxStyledTextCtrl::SetUndoCollection(bool collectUndo) {    SendMsg(2012, collectUndo, 0);}// Select all the text in the document.void wxStyledTextCtrl::SelectAll() {    SendMsg(2013, 0, 0);}// Remember the current position in the undo history as the position// at which the document was saved.void wxStyledTextCtrl::SetSavePoint() {    SendMsg(2014, 0, 0);}// Retrieve a buffer of cells.wxMemoryBuffer wxStyledTextCtrl::GetStyledText(int startPos, int endPos) {        wxMemoryBuffer buf;        if (endPos < startPos) {            int temp = startPos;            startPos = endPos;            endPos = temp;        }        int len = endPos - startPos;        if (!len) return buf;        TextRange tr;        tr.lpstrText = (char*)buf.GetWriteBuf(len*2+1);        tr.chrg.cpMin = startPos;        tr.chrg.cpMax = endPos;        len = SendMsg(2015, 0, (long)&tr);        buf.UngetWriteBuf(len);        return buf;}// Are there any redoable actions in the undo history?bool wxStyledTextCtrl::CanRedo() {    return SendMsg(2016, 0, 0) != 0;}// Retrieve the line number at which a particular marker is located.int wxStyledTextCtrl::MarkerLineFromHandle(int handle) {    return SendMsg(2017, handle, 0);}// Delete a marker.void wxStyledTextCtrl::MarkerDeleteHandle(int handle) {    SendMsg(2018, handle, 0);}// Is undo history being collected?bool wxStyledTextCtrl::GetUndoCollection() {    return SendMsg(2019, 0, 0) != 0;}// Are white space characters currently visible?// Returns one of SCWS_* constants.int wxStyledTextCtrl::GetViewWhiteSpace() {    return SendMsg(2020, 0, 0);}// Make white space characters invisible, always visible or visible outside indentation.void wxStyledTextCtrl::SetViewWhiteSpace(int viewWS) {    SendMsg(2021, viewWS, 0);}// Find the position from a point within the window.int wxStyledTextCtrl::PositionFromPoint(wxPoint pt) {        return SendMsg(2022, pt.x, pt.y);}// Find the position from a point within the window but return// INVALID_POSITION if not close to text.int wxStyledTextCtrl::PositionFromPointClose(int x, int y) {    return SendMsg(2023, x, y);}// Set caret to start of a line and ensure it is visible.void wxStyledTextCtrl::GotoLine(int line) {    SendMsg(2024, line, 0);}// Set caret to a position and ensure it is visible.void wxStyledTextCtrl::GotoPos(int pos) {    SendMsg(2025, pos, 0);}// Set the selection anchor to a position. The anchor is the opposite// end of the selection from the caret.void wxStyledTextCtrl::SetAnchor(int posAnchor) {    SendMsg(2026, posAnchor, 0);}// Retrieve the text of the line containing the caret.// Returns the index of the caret on the line.wxString wxStyledTextCtrl::GetCurLine(int* linePos) {        int len = LineLength(GetCurrentLine());        if (!len) {            if (linePos)  *linePos = 0;            return wxEmptyString;        }        wxMemoryBuffer mbuf(len+1);        char* buf = (char*)mbuf.GetWriteBuf(len+1);        int pos = SendMsg(2027, len+1, (long)buf);        mbuf.UngetWriteBuf(len);        mbuf.AppendByte(0);        if (linePos)  *linePos = pos;        return stc2wx(buf);}// Retrieve the position of the last correctly styled character.int wxStyledTextCtrl::GetEndStyled() {    return SendMsg(2028, 0, 0);}// Convert all line endings in the document to one mode.void wxStyledTextCtrl::ConvertEOLs(int eolMode) {    SendMsg(2029, eolMode, 0);}// Retrieve the current end of line mode - one of CRLF, CR, or LF.int wxStyledTextCtrl::GetEOLMode() {    return SendMsg(2030, 0, 0);}// Set the current end of line mode.void wxStyledTextCtrl::SetEOLMode(int eolMode) {    SendMsg(2031, eolMode, 0);}// Set the current styling position to pos and the styling mask to mask.// The styling mask can be used to protect some bits in each styling byte from modification.void wxStyledTextCtrl::StartStyling(int pos, int mask) {    SendMsg(2032, pos, mask);}// Change style from current styling position for length characters to a style// and move the current styling position to after this newly styled segment.void wxStyledTextCtrl::SetStyling(int length, int style) {    SendMsg(2033, length, style);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品欧美一区| 亚洲国产精品久久艾草纯爱| 国产精品免费看片| 午夜精品免费在线观看| 成人精品视频一区二区三区 | 国产精品综合av一区二区国产馆| 成人午夜激情在线| 欧美精品一区男女天堂| 午夜电影一区二区| 94色蜜桃网一区二区三区| 精品国产乱码久久久久久图片| 亚洲成人动漫精品| 在线精品视频一区二区三四| 国产精品欧美久久久久无广告 | 日韩欧美国产精品| 亚洲成人动漫av| 在线观看日韩国产| |精品福利一区二区三区| 国产成人aaa| 国产日韩欧美激情| 国产成人av电影在线观看| 欧美精品一区二区三| 蜜桃视频一区二区| 日韩午夜激情电影| 久久精品国产成人一区二区三区 | 青青青爽久久午夜综合久久午夜| 欧美最新大片在线看| 亚洲精品视频在线观看免费| 99精品欧美一区二区三区综合在线| 国产欧美日韩另类一区| 国产麻豆成人传媒免费观看| 久久久久久久av麻豆果冻| 国产专区欧美精品| 国产女人aaa级久久久级| 成人国产亚洲欧美成人综合网 | 日韩欧美精品三级| 日韩精品一二三四| 日韩女优制服丝袜电影| 国产精品一二三四五| 中文一区二区在线观看| 97久久超碰精品国产| 亚洲综合视频在线| 91精品国产综合久久久久| 蜜臀av一级做a爰片久久| 精品国产三级a在线观看| 丰满亚洲少妇av| 亚洲一区视频在线观看视频| 欧美日韩国产乱码电影| 久久福利资源站| 亚洲欧洲日产国产综合网| 91电影在线观看| 看电视剧不卡顿的网站| 久久久国产综合精品女国产盗摄| av不卡在线观看| 亚洲bdsm女犯bdsm网站| 久久久久久久久久久电影| 色菇凉天天综合网| 蜜臀精品久久久久久蜜臀| 国产欧美日韩不卡| 欧美美女激情18p| 欧美视频精品在线观看| 另类小说色综合网站| 中文字幕欧美一区| 欧美一级艳片视频免费观看| 国产高清不卡一区二区| 一区二区三区在线影院| 精品理论电影在线| 色综合天天综合网国产成人综合天 | 国产凹凸在线观看一区二区| 亚洲免费观看在线视频| 91精品午夜视频| 丁香啪啪综合成人亚洲小说| 亚洲最色的网站| 久久综合九色综合97婷婷女人 | 99久久精品情趣| 亚洲电影第三页| 国产欧美一区二区三区在线老狼| 日本福利一区二区| 国产美女主播视频一区| 亚洲国产精品人人做人人爽| 国产欧美日韩久久| 日韩欧美一级二级三级久久久| 91视频一区二区三区| 紧缚捆绑精品一区二区| 亚洲大片免费看| 成人欧美一区二区三区黑人麻豆| 精品久久久久香蕉网| 精品视频资源站| 91美女片黄在线观看| 国产精品一二二区| 蜜臀av一区二区在线免费观看| 一区二区视频在线| 国产视频一区在线播放| 欧美一区二区三区免费| 欧美日韩中文字幕精品| 91小视频在线观看| www.在线成人| 成人免费毛片app| 国产一区欧美日韩| 久久精品国产在热久久| 日韩高清在线不卡| 一区二区三区免费| 亚洲欧美一区二区三区孕妇| 中文字幕中文字幕一区| 国产日韩欧美一区二区三区综合| 日韩三级精品电影久久久| 欧美日韩免费观看一区二区三区| 97se亚洲国产综合在线| 99精品国产热久久91蜜凸| 成人av资源站| 99国产精品国产精品久久| 成人免费毛片片v| 成人激情免费电影网址| 成人精品免费视频| av在线不卡免费看| 99国产精品国产精品久久| 一本一道波多野结衣一区二区| 99久久免费精品| 色av一区二区| 91精品国产综合久久福利| 欧美人动与zoxxxx乱| 欧美一卡2卡3卡4卡| 2020国产精品久久精品美国| 视频在线观看91| 夜夜嗨av一区二区三区四季av| 亚洲男人天堂av| 五月综合激情网| 精品一区二区三区视频在线观看| 久久99精品久久只有精品| 国产suv精品一区二区883| av激情综合网| 欧美人妖巨大在线| 精品国产91九色蝌蚪| 国产精品久久久久久久岛一牛影视 | 日韩精品一区二区三区在线 | 欧美一区二区三区免费大片 | 欧美日韩国产综合久久| 日韩免费观看高清完整版| 国产欧美中文在线| 亚洲精品午夜久久久| 日本欧美韩国一区三区| 国产精品1区2区3区| 91国产成人在线| 91精品国产福利| 国产精品美女www爽爽爽| 夜夜揉揉日日人人青青一国产精品| 亚洲五月六月丁香激情| 国产一区二区在线电影| 日本韩国欧美一区二区三区| 日韩色视频在线观看| 1区2区3区欧美| 卡一卡二国产精品| 色老汉av一区二区三区| 精品久久久久99| 亚洲午夜激情av| 国产不卡一区视频| 4438x亚洲最大成人网| 日本一区二区三区视频视频| 同产精品九九九| 91美女片黄在线观看91美女| 精品三级在线看| 亚洲1区2区3区4区| 不卡的电影网站| 精品免费99久久| 免费黄网站欧美| 色综合久久久久综合体| 精品国产在天天线2019| 偷窥少妇高潮呻吟av久久免费| 国产精品18久久久久久久久久久久 | 51午夜精品国产| 中文字幕亚洲精品在线观看| 久久99日本精品| 欧美日韩国产成人在线91| 国产精品国产自产拍高清av| 免费观看在线综合| 欧美视频在线一区二区三区 | 精品久久久久香蕉网| 亚洲人妖av一区二区| 久久国产麻豆精品| 在线观看成人小视频| 中文字幕精品一区| 久久电影网电视剧免费观看| 欧美日韩精品一区二区| 亚洲影院理伦片| 91视频com| 国产精品久久久久久久久果冻传媒| 国产一区二区在线视频| 日韩欧美国产不卡| 天堂蜜桃91精品| 欧美日韩黄色一区二区| 亚洲高清视频在线| 色欧美日韩亚洲| 一区二区三区在线视频观看| 91小视频在线观看| 亚洲黄色性网站| 91黄视频在线| 亚洲图片有声小说| 欧美日韩一区中文字幕| 天天亚洲美女在线视频| 在线电影一区二区三区|