C# Класс AGS.Editor.ScintillaWrapper

Наследование: System.Windows.Forms.UserControl, IScriptEditorControl
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddEnumValuesToAutocompleteList void
AddFunctionParametersToVariableList void
AddGlobalsFromScript void
AddMembersOfStruct void
AlignIndentation void
CheckForAndShowEnumAutocomplete bool
CheckFunctionForLocalVariables List
ConstructAndShowCalltip void
ConstructFunctionCalltipText string
ConstructScintillaAutocompleteList string
ConstructVariableCalltipText string
ContextMenuChooseOption void
ConvertAutocompleteListToScintillaFormat string
FindEndOfCurrentWord int
FindGlobalFunction ScriptFunction
FindGlobalVariableOrType AGS.Types.AutoComplete.ScriptStruct
FindLocalVariableWithName AGS.Types.AutoComplete.ScriptVariable
FindStartOfFunctionCall int
FindTypeForThis string
GetAPIVersionFromString ScriptAPIVersion?
GetAllStructsWithMatchingName List
GetAutoCompleteScriptList IList
GetFinalPartOfExpression ScriptToken
GetPreviousPathedExpression string
GetPreviousWord string
IScriptEditorControl int
IScriptEditorControl string
IScriptEditorControl void
IgnoringCurrentLine bool
InsideStringOrComment bool
OnCharAdded void
OnModifyAttemptOnReadOnly void
OnUpdateUI void
ParsePreviousExpression ScriptStruct
ReadNextWord string
ScintillaWrapper_MouseUp void
ShouldShowThis bool
ShowAutoComplete void
ShowAutoCompleteForEnum bool
ShowAutoCompleteIfAppropriate void
ShowCalltip void
ShowEnumForParameterIfAppropriate bool
ShowFunctionCalltip void
ShowStructMemberAutoComplete void
scintillaControl1_DwellEnd void
scintillaControl1_DwellStart void
scintillaControl1_MarginClick void
scintillaControl1_TextModified void

Открытые методы

Метод Описание
ActivateTextEditor ( ) : void
AddBreakpoint ( int lineNumber ) : void
CanCutAndCopy ( ) : bool
CanPaste ( ) : bool
CanRedo ( ) : bool
CanUndo ( ) : bool
Copy ( ) : void
Cut ( ) : void
DeactivateTextEditor ( ) : void
EnableLineNumbers ( ) : void
FindFunctionAtCurrentPosition ( ) : ScriptFunction
FindGlobalVariableOrType ( string type ) : AGS.Types.AutoComplete.ScriptStruct
FindLineNumberForCharacterIndex ( int pos ) : int
FindLineNumberForText ( string text ) : int
FindNextOccurrence ( string text, bool caseSensitive, bool jumpToStart ) : AGS.Types.AutoComplete.ScriptTokenReference
GetFullTypeNameAtCursor ( ) : string
GetFullTypeNameAtPosition ( int charIndex ) : string
GetLineNumbersForAllBreakpoints ( ) : int[]
GetListOfLocalVariablesForCurrentPosition ( bool searchWholeFunction ) : List
GetListOfLocalVariablesForCurrentPosition ( bool searchWholeFunction, int currentPos ) : List
GetText ( ) : string
GetTextForLine ( int lineNumber ) : string
GetTokenReferenceForCurrentState ( ) : ScriptTokenReference
GoToLine ( int lineNum ) : void
GoToPosition ( int newPos ) : void
HideCurrentExecutionPoint ( ) : void
HideErrorMessagePopup ( ) : void
InsideStringOrComment ( bool charJustAdded, int position ) : bool
IsBreakpointOnLine ( int lineNumber ) : bool
IsSomeSelectedText ( ) : bool
ModifyText ( string newText ) : void
OnSavePointLeft ( object sender, EventArgs e ) : void
OnSavePointReached ( object sender, EventArgs e ) : void
Paste ( ) : void
Redo ( ) : void
RemoveBreakpoint ( int lineNumber ) : void
ReplaceSelectedText ( string withText ) : void
ResetSelection ( ) : void
ScintillaWrapper ( ) : System
SelectCurrentLine ( ) : void
SetAsDialog ( ) : void
SetAutoCompleteKeyWords ( string keyWords ) : void
SetAutoCompleteSource ( IScript script ) : void
SetClassNamesList ( string classNames ) : void
SetFillupKeys ( string fillupKeys ) : void
SetKeyWords ( string keyWords ) : void
SetSavePoint ( ) : void
SetSelection ( int pos, int length ) : void
SetText ( string newText ) : void
SetText ( string newText, bool clearModified ) : void
SetTextModified ( string newText ) : void
ShowAutocompleteNow ( ) : void
ShowCurrentExecutionPoint ( int lineNumber ) : void
ShowErrorMessagePopup ( string errorMessage ) : void
ShowMatchingBrace ( bool beforeAndAfterCursor ) : void
ShowMatchingBrace ( bool beforeAndAfterCursor, bool alignIndentation ) : void
Undo ( ) : void
UndoLastModification ( ) : void

Приватные методы

Метод Описание
AddEnumValuesToAutocompleteList ( List list, AGS.Types.AutoComplete.ScriptEnum se ) : void
AddFunctionParametersToVariableList ( ScriptFunction func, List variables ) : void
AddGlobalsFromScript ( List globalsList, IScript script, object>.Dictionary addedNames, int onlyShowIfDefinitionBeforePos ) : void
AddMembersOfStruct ( List autoCompleteList, List scriptStructs, bool staticOnly, bool isThis ) : void
AlignIndentation ( int posToAlign, int posToAlignWith ) : void
CheckForAndShowEnumAutocomplete ( int checkAtPos ) : bool
CheckFunctionForLocalVariables ( int currentPos, ScriptFunction func, string scriptExtract, bool searchWholeFunction ) : List
ConstructAndShowCalltip ( int currentPos, int selectedParameter, AGS.Types.AutoComplete.ScriptStruct owningStruct, AGS.Types.AutoComplete.ScriptToken func ) : void
ConstructFunctionCalltipText ( ScriptFunction func, AGS.Types.AutoComplete.ScriptStruct owningStruct, int selectedParameter, int &selectionStart, int &selectionEnd ) : string
ConstructScintillaAutocompleteList ( List onlyMembersOf, bool staticOnly, bool isThis, string onlyIfMatchForThis ) : string
ConstructVariableCalltipText ( AGS.Types.AutoComplete.ScriptVariable variable, AGS.Types.AutoComplete.ScriptStruct owningStruct ) : string
ContextMenuChooseOption ( object sender, EventArgs e ) : void
ConvertAutocompleteListToScintillaFormat ( List list ) : string
FindEndOfCurrentWord ( int currentPos ) : int
FindGlobalFunction ( string name ) : ScriptFunction
FindGlobalVariableOrType ( string type, bool &staticAccess ) : AGS.Types.AutoComplete.ScriptStruct
FindLocalVariableWithName ( int startAtPos, string nameToFind ) : AGS.Types.AutoComplete.ScriptVariable
FindStartOfFunctionCall ( int currentPos, int &parameterIndex ) : int
FindTypeForThis ( int startAtPos ) : string
GetAPIVersionFromString ( String s ) : ScriptAPIVersion?
GetAllStructsWithMatchingName ( string structName ) : List
GetAutoCompleteScriptList ( ) : IList
GetFinalPartOfExpression ( int currentPos, ScriptStruct &memberOfStruct, bool functionsOnly ) : ScriptToken
GetPreviousPathedExpression ( int startAtPos, bool skipSpacesBeforeCursor ) : string
GetPreviousWord ( ) : string
IScriptEditorControl ( int position ) : int
IScriptEditorControl ( ) : string
IScriptEditorControl ( ) : void
IgnoringCurrentLine ( ) : bool
InsideStringOrComment ( bool charJustAdded ) : bool

Checks whether the cursor is inside a string literal or a comment.

OnCharAdded ( object sender, Scintilla e ) : void
OnModifyAttemptOnReadOnly ( object sender, EventArgs e ) : void
OnUpdateUI ( object sender, EventArgs e ) : void
ParsePreviousExpression ( int startAtPos, string &charactersAfterDot, bool &staticAccess, bool &isThis ) : ScriptStruct
ReadNextWord ( string &pathedExpression ) : string
ScintillaWrapper_MouseUp ( object sender, MouseEventArgs e ) : void
ShouldShowThis ( ScriptToken token, List defines ) : bool
ShowAutoComplete ( int charsTyped, string autoCompleteList ) : void
ShowAutoCompleteForEnum ( string typeName ) : bool
ShowAutoCompleteIfAppropriate ( int minimumLength ) : void
ShowCalltip ( int openingBracketPos, int parameterIndex, bool functionsOnly ) : void
ShowEnumForParameterIfAppropriate ( string parameter ) : bool
ShowFunctionCalltip ( ) : void
ShowStructMemberAutoComplete ( ) : void
scintillaControl1_DwellEnd ( object sender, EventArgs e ) : void
scintillaControl1_DwellStart ( object sender, Scintilla e ) : void
scintillaControl1_MarginClick ( object sender, Scintilla e ) : void
scintillaControl1_TextModified ( object sender, Scintilla e ) : void

Описание методов

ActivateTextEditor() публичный метод

public ActivateTextEditor ( ) : void
Результат void

AddBreakpoint() публичный метод

public AddBreakpoint ( int lineNumber ) : void
lineNumber int
Результат void

CanCutAndCopy() публичный метод

public CanCutAndCopy ( ) : bool
Результат bool

CanPaste() публичный метод

public CanPaste ( ) : bool
Результат bool

CanRedo() публичный метод

public CanRedo ( ) : bool
Результат bool

CanUndo() публичный метод

public CanUndo ( ) : bool
Результат bool

Copy() публичный метод

public Copy ( ) : void
Результат void

Cut() публичный метод

public Cut ( ) : void
Результат void

DeactivateTextEditor() публичный метод

public DeactivateTextEditor ( ) : void
Результат void

EnableLineNumbers() публичный метод

public EnableLineNumbers ( ) : void
Результат void

FindFunctionAtCurrentPosition() публичный метод

public FindFunctionAtCurrentPosition ( ) : ScriptFunction
Результат ScriptFunction

FindGlobalVariableOrType() публичный метод

public FindGlobalVariableOrType ( string type ) : AGS.Types.AutoComplete.ScriptStruct
type string
Результат AGS.Types.AutoComplete.ScriptStruct

FindLineNumberForCharacterIndex() публичный метод

public FindLineNumberForCharacterIndex ( int pos ) : int
pos int
Результат int

FindLineNumberForText() публичный метод

public FindLineNumberForText ( string text ) : int
text string
Результат int

FindNextOccurrence() публичный метод

public FindNextOccurrence ( string text, bool caseSensitive, bool jumpToStart ) : AGS.Types.AutoComplete.ScriptTokenReference
text string
caseSensitive bool
jumpToStart bool
Результат AGS.Types.AutoComplete.ScriptTokenReference

GetFullTypeNameAtCursor() публичный метод

public GetFullTypeNameAtCursor ( ) : string
Результат string

GetFullTypeNameAtPosition() публичный метод

public GetFullTypeNameAtPosition ( int charIndex ) : string
charIndex int
Результат string

GetLineNumbersForAllBreakpoints() публичный метод

public GetLineNumbersForAllBreakpoints ( ) : int[]
Результат int[]

GetListOfLocalVariablesForCurrentPosition() публичный метод

public GetListOfLocalVariablesForCurrentPosition ( bool searchWholeFunction ) : List
searchWholeFunction bool
Результат List

GetListOfLocalVariablesForCurrentPosition() публичный метод

public GetListOfLocalVariablesForCurrentPosition ( bool searchWholeFunction, int currentPos ) : List
searchWholeFunction bool
currentPos int
Результат List

GetText() публичный метод

public GetText ( ) : string
Результат string

GetTextForLine() публичный метод

public GetTextForLine ( int lineNumber ) : string
lineNumber int
Результат string

GetTokenReferenceForCurrentState() публичный метод

public GetTokenReferenceForCurrentState ( ) : ScriptTokenReference
Результат ScriptTokenReference

GoToLine() публичный метод

public GoToLine ( int lineNum ) : void
lineNum int
Результат void

GoToPosition() публичный метод

public GoToPosition ( int newPos ) : void
newPos int
Результат void

HideCurrentExecutionPoint() публичный метод

public HideCurrentExecutionPoint ( ) : void
Результат void

HideErrorMessagePopup() публичный метод

public HideErrorMessagePopup ( ) : void
Результат void

InsideStringOrComment() публичный метод

public InsideStringOrComment ( bool charJustAdded, int position ) : bool
charJustAdded bool
position int
Результат bool

IsBreakpointOnLine() публичный метод

public IsBreakpointOnLine ( int lineNumber ) : bool
lineNumber int
Результат bool

IsSomeSelectedText() публичный метод

public IsSomeSelectedText ( ) : bool
Результат bool

ModifyText() публичный метод

public ModifyText ( string newText ) : void
newText string
Результат void

OnSavePointLeft() публичный метод

public OnSavePointLeft ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

OnSavePointReached() публичный метод

public OnSavePointReached ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void

Paste() публичный метод

public Paste ( ) : void
Результат void

Redo() публичный метод

public Redo ( ) : void
Результат void

RemoveBreakpoint() публичный метод

public RemoveBreakpoint ( int lineNumber ) : void
lineNumber int
Результат void

ReplaceSelectedText() публичный метод

public ReplaceSelectedText ( string withText ) : void
withText string
Результат void

ResetSelection() публичный метод

public ResetSelection ( ) : void
Результат void

ScintillaWrapper() публичный метод

public ScintillaWrapper ( ) : System
Результат System

SelectCurrentLine() публичный метод

public SelectCurrentLine ( ) : void
Результат void

SetAsDialog() публичный метод

public SetAsDialog ( ) : void
Результат void

SetAutoCompleteKeyWords() публичный метод

public SetAutoCompleteKeyWords ( string keyWords ) : void
keyWords string
Результат void

SetAutoCompleteSource() публичный метод

public SetAutoCompleteSource ( IScript script ) : void
script IScript
Результат void

SetClassNamesList() публичный метод

public SetClassNamesList ( string classNames ) : void
classNames string
Результат void

SetFillupKeys() публичный метод

public SetFillupKeys ( string fillupKeys ) : void
fillupKeys string
Результат void

SetKeyWords() публичный метод

public SetKeyWords ( string keyWords ) : void
keyWords string
Результат void

SetSavePoint() публичный метод

public SetSavePoint ( ) : void
Результат void

SetSelection() публичный метод

public SetSelection ( int pos, int length ) : void
pos int
length int
Результат void

SetText() публичный метод

public SetText ( string newText ) : void
newText string
Результат void

SetText() публичный метод

public SetText ( string newText, bool clearModified ) : void
newText string
clearModified bool
Результат void

SetTextModified() публичный метод

public SetTextModified ( string newText ) : void
newText string
Результат void

ShowAutocompleteNow() публичный метод

public ShowAutocompleteNow ( ) : void
Результат void

ShowCurrentExecutionPoint() публичный метод

public ShowCurrentExecutionPoint ( int lineNumber ) : void
lineNumber int
Результат void

ShowErrorMessagePopup() публичный метод

public ShowErrorMessagePopup ( string errorMessage ) : void
errorMessage string
Результат void

ShowMatchingBrace() публичный метод

public ShowMatchingBrace ( bool beforeAndAfterCursor ) : void
beforeAndAfterCursor bool
Результат void

ShowMatchingBrace() публичный метод

public ShowMatchingBrace ( bool beforeAndAfterCursor, bool alignIndentation ) : void
beforeAndAfterCursor bool
alignIndentation bool
Результат void

Undo() публичный метод

public Undo ( ) : void
Результат void

UndoLastModification() публичный метод

public UndoLastModification ( ) : void
Результат void