C# Class AGS.Editor.ScintillaWrapper

Inheritance: System.Windows.Forms.UserControl, IScriptEditorControl
Afficher le fichier Open project: adventuregamestudio/ags Class Usage Examples

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

ActivateTextEditor() public méthode

public ActivateTextEditor ( ) : void
Résultat void

AddBreakpoint() public méthode

public AddBreakpoint ( int lineNumber ) : void
lineNumber int
Résultat void

CanCutAndCopy() public méthode

public CanCutAndCopy ( ) : bool
Résultat bool

CanPaste() public méthode

public CanPaste ( ) : bool
Résultat bool

CanRedo() public méthode

public CanRedo ( ) : bool
Résultat bool

CanUndo() public méthode

public CanUndo ( ) : bool
Résultat bool

Copy() public méthode

public Copy ( ) : void
Résultat void

Cut() public méthode

public Cut ( ) : void
Résultat void

DeactivateTextEditor() public méthode

public DeactivateTextEditor ( ) : void
Résultat void

EnableLineNumbers() public méthode

public EnableLineNumbers ( ) : void
Résultat void

FindFunctionAtCurrentPosition() public méthode

public FindFunctionAtCurrentPosition ( ) : ScriptFunction
Résultat ScriptFunction

FindGlobalVariableOrType() public méthode

public FindGlobalVariableOrType ( string type ) : AGS.Types.AutoComplete.ScriptStruct
type string
Résultat AGS.Types.AutoComplete.ScriptStruct

FindLineNumberForCharacterIndex() public méthode

public FindLineNumberForCharacterIndex ( int pos ) : int
pos int
Résultat int

FindLineNumberForText() public méthode

public FindLineNumberForText ( string text ) : int
text string
Résultat int

FindNextOccurrence() public méthode

public FindNextOccurrence ( string text, bool caseSensitive, bool jumpToStart ) : AGS.Types.AutoComplete.ScriptTokenReference
text string
caseSensitive bool
jumpToStart bool
Résultat AGS.Types.AutoComplete.ScriptTokenReference

GetFullTypeNameAtCursor() public méthode

public GetFullTypeNameAtCursor ( ) : string
Résultat string

GetFullTypeNameAtPosition() public méthode

public GetFullTypeNameAtPosition ( int charIndex ) : string
charIndex int
Résultat string

GetLineNumbersForAllBreakpoints() public méthode

public GetLineNumbersForAllBreakpoints ( ) : int[]
Résultat int[]

GetListOfLocalVariablesForCurrentPosition() public méthode

public GetListOfLocalVariablesForCurrentPosition ( bool searchWholeFunction ) : List
searchWholeFunction bool
Résultat List

GetListOfLocalVariablesForCurrentPosition() public méthode

public GetListOfLocalVariablesForCurrentPosition ( bool searchWholeFunction, int currentPos ) : List
searchWholeFunction bool
currentPos int
Résultat List

GetText() public méthode

public GetText ( ) : string
Résultat string

GetTextForLine() public méthode

public GetTextForLine ( int lineNumber ) : string
lineNumber int
Résultat string

GetTokenReferenceForCurrentState() public méthode

public GetTokenReferenceForCurrentState ( ) : ScriptTokenReference
Résultat ScriptTokenReference

GoToLine() public méthode

public GoToLine ( int lineNum ) : void
lineNum int
Résultat void

GoToPosition() public méthode

public GoToPosition ( int newPos ) : void
newPos int
Résultat void

HideCurrentExecutionPoint() public méthode

public HideCurrentExecutionPoint ( ) : void
Résultat void

HideErrorMessagePopup() public méthode

public HideErrorMessagePopup ( ) : void
Résultat void

InsideStringOrComment() public méthode

public InsideStringOrComment ( bool charJustAdded, int position ) : bool
charJustAdded bool
position int
Résultat bool

IsBreakpointOnLine() public méthode

public IsBreakpointOnLine ( int lineNumber ) : bool
lineNumber int
Résultat bool

IsSomeSelectedText() public méthode

public IsSomeSelectedText ( ) : bool
Résultat bool

ModifyText() public méthode

public ModifyText ( string newText ) : void
newText string
Résultat void

OnSavePointLeft() public méthode

public OnSavePointLeft ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void

OnSavePointReached() public méthode

public OnSavePointReached ( object sender, EventArgs e ) : void
sender object
e EventArgs
Résultat void

Paste() public méthode

public Paste ( ) : void
Résultat void

Redo() public méthode

public Redo ( ) : void
Résultat void

RemoveBreakpoint() public méthode

public RemoveBreakpoint ( int lineNumber ) : void
lineNumber int
Résultat void

ReplaceSelectedText() public méthode

public ReplaceSelectedText ( string withText ) : void
withText string
Résultat void

ResetSelection() public méthode

public ResetSelection ( ) : void
Résultat void

ScintillaWrapper() public méthode

public ScintillaWrapper ( ) : System
Résultat System

SelectCurrentLine() public méthode

public SelectCurrentLine ( ) : void
Résultat void

SetAsDialog() public méthode

public SetAsDialog ( ) : void
Résultat void

SetAutoCompleteKeyWords() public méthode

public SetAutoCompleteKeyWords ( string keyWords ) : void
keyWords string
Résultat void

SetAutoCompleteSource() public méthode

public SetAutoCompleteSource ( IScript script ) : void
script IScript
Résultat void

SetClassNamesList() public méthode

public SetClassNamesList ( string classNames ) : void
classNames string
Résultat void

SetFillupKeys() public méthode

public SetFillupKeys ( string fillupKeys ) : void
fillupKeys string
Résultat void

SetKeyWords() public méthode

public SetKeyWords ( string keyWords ) : void
keyWords string
Résultat void

SetSavePoint() public méthode

public SetSavePoint ( ) : void
Résultat void

SetSelection() public méthode

public SetSelection ( int pos, int length ) : void
pos int
length int
Résultat void

SetText() public méthode

public SetText ( string newText ) : void
newText string
Résultat void

SetText() public méthode

public SetText ( string newText, bool clearModified ) : void
newText string
clearModified bool
Résultat void

SetTextModified() public méthode

public SetTextModified ( string newText ) : void
newText string
Résultat void

ShowAutocompleteNow() public méthode

public ShowAutocompleteNow ( ) : void
Résultat void

ShowCurrentExecutionPoint() public méthode

public ShowCurrentExecutionPoint ( int lineNumber ) : void
lineNumber int
Résultat void

ShowErrorMessagePopup() public méthode

public ShowErrorMessagePopup ( string errorMessage ) : void
errorMessage string
Résultat void

ShowMatchingBrace() public méthode

public ShowMatchingBrace ( bool beforeAndAfterCursor ) : void
beforeAndAfterCursor bool
Résultat void

ShowMatchingBrace() public méthode

public ShowMatchingBrace ( bool beforeAndAfterCursor, bool alignIndentation ) : void
beforeAndAfterCursor bool
alignIndentation bool
Résultat void

Undo() public méthode

public Undo ( ) : void
Résultat void

UndoLastModification() public méthode

public UndoLastModification ( ) : void
Résultat void