⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 synedit.hpp

📁 嵌入式IDE
💻 HPP
📖 第 1 页 / 共 4 页
字号:
	void __fastcall SetModified(bool Value);
	void __fastcall SetOptions(TSynEditorOptions Value);
	void __fastcall SetOverwriteCaret(const TSynEditCaretType Value);
	void __fastcall SetRightEdge(int Value);
	void __fastcall SetRightEdgeColor(Graphics::TColor Value);
	void __fastcall SetScrollBars(const Stdctrls::TScrollStyle Value);
	void __fastcall SetSearchEngine(Syneditmiscclasses::TSynEditSearchCustom* Value);
	void __fastcall SetSelectionMode(const Synedittypes::TSynSelectionMode Value);
	void __fastcall SetActiveSelectionMode(const Synedittypes::TSynSelectionMode Value);
	void __fastcall SetSelTextExternal(const AnsiString Value);
	void __fastcall SetTabWidth(int Value);
	void __fastcall SynSetText(const AnsiString Value);
	void __fastcall SetTopLine(int Value);
	void __fastcall SetWordBlock(const Synedittypes::TBufferCoord &Value);
	void __fastcall SetWordWrap(const bool Value);
	void __fastcall SetWordWrapGlyph(const Syneditmiscclasses::TSynGlyph* Value);
	void __fastcall WordWrapGlyphChange(System::TObject* Sender);
	void __fastcall SizeOrFontChanged(bool bFont);
	void __fastcall ProperSetLine(int ALine, const AnsiString ALineText);
	void __fastcall UpdateModifiedStatus(void);
	void __fastcall UndoRedoAdded(System::TObject* Sender);
	void __fastcall UpdateLastCaretX(void);
	void __fastcall UpdateScrollBars(void);
	void __fastcall WriteAddedKeystrokes(Classes::TWriter* Writer);
	void __fastcall WriteRemovedKeystrokes(Classes::TWriter* Writer);
	
protected:
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	virtual void __fastcall CreateWnd(void);
	virtual void __fastcall DestroyWnd(void);
	virtual void __fastcall InvalidateRect(const Types::TRect &aRect, bool aErase);
	DYNAMIC void __fastcall DblClick(void);
	void __fastcall DecPaintLock(void);
	virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
	virtual void __fastcall DoChange(void);
	DYNAMIC void __fastcall DragCanceled(void);
	DYNAMIC void __fastcall DragOver(System::TObject* Source, int X, int Y, Controls::TDragState State, bool &Accept);
	virtual bool __fastcall GetReadOnly(void);
	void __fastcall HighlighterAttrChanged(System::TObject* Sender);
	void __fastcall IncPaintLock(void);
	void __fastcall InitializeCaret(void);
	DYNAMIC void __fastcall KeyUp(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyPress(char &Key);
	virtual void __fastcall LinesChanged(System::TObject* Sender);
	void __fastcall ListCleared(System::TObject* Sender);
	void __fastcall ListDeleted(System::TObject* Sender, int aIndex, int aCount);
	void __fastcall ListInserted(System::TObject* Sender, int Index, int aCount);
	void __fastcall ListPutted(System::TObject* Sender, int Index, int aCount);
	void __fastcall ChainListCleared(System::TObject* Sender);
	void __fastcall ChainListDeleted(System::TObject* Sender, int aIndex, int aCount);
	void __fastcall ChainListInserted(System::TObject* Sender, int aIndex, int aCount);
	void __fastcall ChainListPutted(System::TObject* Sender, int aIndex, int aCount);
	void __fastcall ChainLinesChanging(System::TObject* Sender);
	void __fastcall ChainLinesChanged(System::TObject* Sender);
	void __fastcall ChainUndoRedoAdded(System::TObject* Sender);
	void __fastcall ScanRanges(void);
	virtual void __fastcall Loaded(void);
	void __fastcall MarkListChange(System::TObject* Sender);
	void __fastcall MBCSGetSelRangeInLineWhenColumnSelectionMode(const AnsiString s, int &ColFrom, int &ColTo);
	DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	virtual void __fastcall NotifyHookedCommandHandlers(bool AfterProcessing, Syneditkeycmds::TSynEditorCommand &Command, char &AChar, void * Data);
	virtual void __fastcall Paint(void);
	virtual void __fastcall PaintGutter(const Types::TRect &AClip, const int aFirstRow, const int aLastRow);
	virtual void __fastcall PaintTextLines(const Types::TRect &AClip, const int aFirstRow, const int aLastRow, const int FirstCol, const int LastCol);
	void __fastcall RecalcCharExtent(void);
	void __fastcall RedoItem(void);
	virtual void __fastcall InternalSetCaretXY(const Synedittypes::TBufferCoord &Value);
	virtual void __fastcall SetCaretXY(const Synedittypes::TBufferCoord &Value);
	virtual void __fastcall SetCaretXYEx(bool CallEnsureCursorPos, const Synedittypes::TBufferCoord &Value);
	virtual void __fastcall SetName(const AnsiString Value);
	virtual void __fastcall SetReadOnly(bool Value);
	void __fastcall SetWantReturns(bool Value);
	void __fastcall SetSelTextPrimitive(const AnsiString aValue);
	void __fastcall SetSelTextPrimitiveEx(Synedittypes::TSynSelectionMode PasteMode, char * Value, bool AddToUndoList);
	void __fastcall SetWantTabs(bool Value);
	void __fastcall StatusChanged(TSynStatusChanges AChanges);
	Syneditkeycmds::TSynEditorCommand __fastcall TranslateKeyCode(Word Code, Classes::TShiftState Shift, void * &Data);
	void __fastcall UndoItem(void);
	virtual void __fastcall UpdateMouseCursor(void);
	int fGutterWidth;
	Syneditmiscclasses::TSynInternalImage* fInternalImage;
	void __fastcall HideCaret(void);
	void __fastcall ShowCaret(void);
	virtual void __fastcall DoOnClearBookmark(TSynEditMark* &Mark);
	virtual void __fastcall DoOnCommandProcessed(Syneditkeycmds::TSynEditorCommand Command, char AChar, void * Data);
	virtual void __fastcall DoOnGutterClick(Controls::TMouseButton Button, int X, int Y);
	virtual void __fastcall DoOnPaint(void);
	virtual void __fastcall DoOnPaintTransientEx(TTransientType TransientType, bool Lock);
	virtual void __fastcall DoOnPaintTransient(TTransientType TransientType);
	virtual void __fastcall DoOnPlaceMark(TSynEditMark* &Mark);
	virtual void __fastcall DoOnProcessCommand(Syneditkeycmds::TSynEditorCommand &Command, char &AChar, void * Data);
	virtual TSynReplaceAction __fastcall DoOnReplaceText(const AnsiString ASearch, const AnsiString AReplace, int Line, int Column);
	virtual bool __fastcall DoOnSpecialLineColors(int Line, Graphics::TColor &Foreground, Graphics::TColor &Background);
	virtual void __fastcall DoOnStatusChange(TSynStatusChanges Changes);
	int __fastcall GetSelEnd(void);
	int __fastcall GetSelStart(void);
	int __fastcall GetSelLength(void);
	void __fastcall SetSelEnd(const int Value);
	void __fastcall SetSelStart(const int Value);
	void __fastcall SetSelLength(const int Value);
	void __fastcall SetAlwaysShowCaret(const bool Value);
	void __fastcall PrepareIdentChars(Synedittypes::TSynIdentChars &IdentChars, Synedittypes::TSynIdentChars &WhiteChars);
	void __fastcall LinesHookChanged(void);
	__property int InternalCaretX = {write=InternalSetCaretX, nodefault};
	__property int InternalCaretY = {write=InternalSetCaretY, nodefault};
	__property Synedittypes::TBufferCoord InternalCaretXY = {write=InternalSetCaretXY};
	
public:
	__fastcall virtual TCustomSynEdit(Classes::TComponent* AOwner);
	__fastcall virtual ~TCustomSynEdit(void);
	__property Canvas ;
	__property int SelStart = {read=GetSelStart, write=SetSelStart, nodefault};
	__property int SelEnd = {read=GetSelEnd, write=SetSelEnd, nodefault};
	__property bool AlwaysShowCaret = {read=fAlwaysShowCaret, write=SetAlwaysShowCaret, nodefault};
	void __fastcall UpdateCaret(void);
	void __fastcall AddKey(Syneditkeycmds::TSynEditorCommand Command, Word Key1, Classes::TShiftState SS1, Word Key2 = (Word)(0x0), Classes::TShiftState SS2 = System::Set<Classes__1, ssShift, ssDouble> () );
	void __fastcall BeginUndoBlock(void);
	void __fastcall BeginUpdate(void);
	bool __fastcall CaretInView(void);
	Synedittypes::TBufferCoord __fastcall CharIndexToRowCol(int Index);
	void __fastcall Clear(void);
	void __fastcall ClearAll(void);
	void __fastcall ClearBookMark(int BookMark);
	void __fastcall ClearSelection(void);
	virtual void __fastcall CommandProcessor(Syneditkeycmds::TSynEditorCommand Command, char AChar, void * Data);
	void __fastcall ClearUndo(void);
	void __fastcall CopyToClipboard(void);
	void __fastcall CutToClipboard(void);
	void __fastcall DoCopyToClipboard(const AnsiString SText);
	DYNAMIC void __fastcall DragDrop(System::TObject* Source, int X, int Y);
	void __fastcall EndUndoBlock(void);
	void __fastcall EndUpdate(void);
	void __fastcall EnsureCursorPosVisible(void);
	void __fastcall EnsureCursorPosVisibleEx(bool ForceToMiddle);
	virtual void __fastcall FindMatchingBracket(void);
	virtual Synedittypes::TBufferCoord __fastcall GetMatchingBracket();
	virtual Synedittypes::TBufferCoord __fastcall GetMatchingBracketEx(const Synedittypes::TBufferCoord &APoint);
	DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
	virtual void __fastcall ExecuteCommand(Syneditkeycmds::TSynEditorCommand Command, char AChar, void * Data);
	bool __fastcall GetBookMark(int BookMark, int &X, int &Y);
	bool __fastcall GetHighlighterAttriAtRowCol(const Synedittypes::TBufferCoord &XY, AnsiString &Token, Synedithighlighter::TSynHighlighterAttributes* &Attri);
	bool __fastcall GetHighlighterAttriAtRowColEx(const Synedittypes::TBufferCoord &XY, AnsiString &Token, int &TokenType, int &Start, Synedithighlighter::TSynHighlighterAttributes* &Attri);
	bool __fastcall GetPositionOfMouse(/* out */ Synedittypes::TBufferCoord &aPos);
	AnsiString __fastcall GetWordAtRowCol(const Synedittypes::TBufferCoord &XY);
	void __fastcall GotoBookMark(int BookMark);
	void __fastcall GotoLineAndCenter(int ALine);
	Synedittypes::TSynIdentChars __fastcall IdentChars();
	void __fastcall InvalidateGutter(void);
	void __fastcall InvalidateGutterLine(int aLine);
	void __fastcall InvalidateGutterLines(int FirstLine, int LastLine);
	void __fastcall InvalidateLine(int Line);
	void __fastcall InvalidateLines(int FirstLine, int LastLine);
	void __fastcall InvalidateSelection(void);
	bool __fastcall IsBookmark(int BookMark);
	bool __fastcall IsPointInSelection(const Synedittypes::TBufferCoord &Value);
	void __fastcall LockUndo(void);
	Synedittypes::TDisplayCoord __fastcall BufferToDisplayPos(const Synedittypes::TBufferCoord &p);
	Synedittypes::TBufferCoord __fastcall DisplayToBufferPos(const Synedittypes::TDisplayCoord &p);
	int __fastcall LineToRow(int aLine);
	int __fastcall RowToLine(int aRow);
	virtual Synedittypes::TBufferCoord __fastcall NextWordPos();
	virtual Synedittypes::TBufferCoord __fastcall NextWordPosEx(const Synedittypes::TBufferCoord &XY);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	void __fastcall PasteFromClipboard(void);
	virtual Synedittypes::TBufferCoord __fastcall WordStart();
	virtual Synedittypes::TBufferCoord __fastcall WordStartEx(const Synedittypes::TBufferCoord &XY);
	virtual Synedittypes::TBufferCoord __fastcall WordEnd();
	virtual Synedittypes::TBufferCoord __fastcall WordEndEx(const Synedittypes::TBufferCoord &XY);
	virtual Synedittypes::TBufferCoord __fastcall PrevWordPos();
	virtual Synedittypes::TBufferCoord __fastcall PrevWordPosEx(const Synedittypes::TBufferCoord &XY);
	Synedittypes::TDisplayCoord __fastcall PixelsToRowColumn(int aX, int aY);
	Synedittypes::TDisplayCoord __fastcall PixelsToNearestRowColumn(int aX, int aY);
	void __fastcall Redo(void);
	void __fastcall RegisterCommandHandler(const THookedCommandEvent AHandlerProc, void * AHandlerData);
	Types::TPoint __fastcall RowColumnToPixels(const Synedittypes::TDisplayCoord &RowCol);
	int __fastcall RowColToCharIndex(const Synedittypes::TBufferCoord &RowCol);
	int __fastcall SearchReplace(const AnsiString ASearch, const AnsiString AReplace, Synedittypes::TSynSearchOptions AOptions);
	void __fastcall SelectAll(void);
	void __fastcall SetBookMark(int BookMark, int X, int Y);
	void __fastcall SetCaretAndSelection(const Synedittypes::TBufferCoord &ptCaret, const Synedittypes::TBufferCoord &ptBefore, const Synedittypes::TBufferCoord &ptAfter);
	virtual void __fastcall SetDefaultKeystrokes(void);
	void __fastcall SetSelWord(void);
	void __fastcall Undo(void);
	void __fastcall UnlockUndo(void);
	void __fastcall UnregisterCommandHandler(THookedCommandEvent AHandlerProc);
	DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
	virtual void __fastcall SetFocus(void);
	void __fastcall AddKeyUpHandler(Controls::TKeyEvent aHandler);
	void __fastcall RemoveKeyUpHandler(Controls::TKeyEvent aHandler);
	void __fastcall AddKeyDownHandler(Controls::TKeyEvent aHandler);
	void __fastcall RemoveKeyDownHandler(Controls::TKeyEvent aHandler);
	void __fastcall AddKeyPressHandler(Controls::TKeyPressEvent aHandler);
	void __fastcall RemoveKeyPressHandler(Controls::TKeyPressEvent aHandler);
	void __fastcall AddFocusControl(Controls::TWinControl* aControl);
	void __fastcall RemoveFocusControl(Controls::TWinControl* aControl);
	void __fastcall AddMouseDownHandler(Controls::TMouseEvent aHandler);
	void __fastcall RemoveMouseDownHandler(Controls::TMouseEvent aHandler);
	void __fastcall AddMouseUpHandler(Controls::TMouseEvent aHandler);
	void __fastcall RemoveMouseUpHandler(Controls::TMouseEvent aHandler);
	void __fastcall AddMouseCursorHandler(TMouseCursorEvent aHandler);
	void __fastcall RemoveMouseCursorHandler(TMouseCursorEvent aHandler);
	virtual void __fastcall WndProc(Messages::TMessage &Msg);
	void __fastcall SetLinesPointer(TCustomSynEdit* ASynEdit);
	void __fastcall RemoveLinesPointer(void);
	void __fastcall HookTextBuffer(Synedittextbuffer::TSynEditStringList* aBuffer, Synedittextbuffer::TSynEditUndoList* aUndo, Synedittextbuffer::TSynEditUndoList* aRedo);
	void __fastcall UnHookTextBuffer(void);
	__property Synedittypes::TBufferCoord BlockBegin = {read=GetBlockBegin, write=SetBlockBegin};
	__property Synedittypes::TBufferCoord BlockEnd = {read=GetBlockEnd, write=SetBlockEnd};
	__property bool CanPaste = {read=GetCanPaste, nodefault};
	__property bool CanRedo = {read=GetCanRedo, nodefault};
	__property bool CanUndo = {read=GetCanUndo, nodefault};
	__property int CaretX = {read=fCaretX, write=SetCaretX, nodefault};
	__property int CaretY = {read=fCaretY, write=SetCaretY, nodefault};
	__property Synedittypes::TBufferCoord CaretXY = {read=GetCaretXY, write=SetCaretXY};
	__property Graphics::TColor ActiveLineColor = {read=fActiveLineColor, write=SetActiveLineColor, default=536870911};
	__property int DisplayX = {read=GetDisplayX, nodefault};
	__property int DisplayY = {read=GetDisplayY, nodefault};
	__property Synedittypes::TDisplayCoord DisplayXY = {read=GetDisplayXY};
	__property int DisplayLineCount = {read=GetDisplayLineCount, nodefault};
	__property int CharsInWindow = {read=fCharsInWindow, nodefault};
	__property int CharWidth = {read=fCharWidth, nodefault};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -