C# Class AGS.Editor.ScintillaWrapper

Inheritance: System.Windows.Forms.UserControl, IScriptEditorControl
ファイルを表示 Open project: adventuregamestudio/ags Class Usage Examples

Private Properties

Property 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

Public Methods

Method 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

Method 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 method

public ActivateTextEditor ( ) : void
return void

AddBreakpoint() public method

public AddBreakpoint ( int lineNumber ) : void
lineNumber int
return void

CanCutAndCopy() public method

public CanCutAndCopy ( ) : bool
return bool

CanPaste() public method

public CanPaste ( ) : bool
return bool

CanRedo() public method

public CanRedo ( ) : bool
return bool

CanUndo() public method

public CanUndo ( ) : bool
return bool

Copy() public method

public Copy ( ) : void
return void

Cut() public method

public Cut ( ) : void
return void

DeactivateTextEditor() public method

public DeactivateTextEditor ( ) : void
return void

EnableLineNumbers() public method

public EnableLineNumbers ( ) : void
return void

FindFunctionAtCurrentPosition() public method

public FindFunctionAtCurrentPosition ( ) : ScriptFunction
return ScriptFunction

FindGlobalVariableOrType() public method

public FindGlobalVariableOrType ( string type ) : AGS.Types.AutoComplete.ScriptStruct
type string
return AGS.Types.AutoComplete.ScriptStruct

FindLineNumberForCharacterIndex() public method

public FindLineNumberForCharacterIndex ( int pos ) : int
pos int
return int

FindLineNumberForText() public method

public FindLineNumberForText ( string text ) : int
text string
return int

FindNextOccurrence() public method

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

GetFullTypeNameAtCursor() public method

public GetFullTypeNameAtCursor ( ) : string
return string

GetFullTypeNameAtPosition() public method

public GetFullTypeNameAtPosition ( int charIndex ) : string
charIndex int
return string

GetLineNumbersForAllBreakpoints() public method

public GetLineNumbersForAllBreakpoints ( ) : int[]
return int[]

GetListOfLocalVariablesForCurrentPosition() public method

public GetListOfLocalVariablesForCurrentPosition ( bool searchWholeFunction ) : List
searchWholeFunction bool
return List

GetListOfLocalVariablesForCurrentPosition() public method

public GetListOfLocalVariablesForCurrentPosition ( bool searchWholeFunction, int currentPos ) : List
searchWholeFunction bool
currentPos int
return List

GetText() public method

public GetText ( ) : string
return string

GetTextForLine() public method

public GetTextForLine ( int lineNumber ) : string
lineNumber int
return string

GetTokenReferenceForCurrentState() public method

public GetTokenReferenceForCurrentState ( ) : ScriptTokenReference
return ScriptTokenReference

GoToLine() public method

public GoToLine ( int lineNum ) : void
lineNum int
return void

GoToPosition() public method

public GoToPosition ( int newPos ) : void
newPos int
return void

HideCurrentExecutionPoint() public method

public HideCurrentExecutionPoint ( ) : void
return void

HideErrorMessagePopup() public method

public HideErrorMessagePopup ( ) : void
return void

InsideStringOrComment() public method

public InsideStringOrComment ( bool charJustAdded, int position ) : bool
charJustAdded bool
position int
return bool

IsBreakpointOnLine() public method

public IsBreakpointOnLine ( int lineNumber ) : bool
lineNumber int
return bool

IsSomeSelectedText() public method

public IsSomeSelectedText ( ) : bool
return bool

ModifyText() public method

public ModifyText ( string newText ) : void
newText string
return void

OnSavePointLeft() public method

public OnSavePointLeft ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

OnSavePointReached() public method

public OnSavePointReached ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

Paste() public method

public Paste ( ) : void
return void

Redo() public method

public Redo ( ) : void
return void

RemoveBreakpoint() public method

public RemoveBreakpoint ( int lineNumber ) : void
lineNumber int
return void

ReplaceSelectedText() public method

public ReplaceSelectedText ( string withText ) : void
withText string
return void

ResetSelection() public method

public ResetSelection ( ) : void
return void

ScintillaWrapper() public method

public ScintillaWrapper ( ) : System
return System

SelectCurrentLine() public method

public SelectCurrentLine ( ) : void
return void

SetAsDialog() public method

public SetAsDialog ( ) : void
return void

SetAutoCompleteKeyWords() public method

public SetAutoCompleteKeyWords ( string keyWords ) : void
keyWords string
return void

SetAutoCompleteSource() public method

public SetAutoCompleteSource ( IScript script ) : void
script IScript
return void

SetClassNamesList() public method

public SetClassNamesList ( string classNames ) : void
classNames string
return void

SetFillupKeys() public method

public SetFillupKeys ( string fillupKeys ) : void
fillupKeys string
return void

SetKeyWords() public method

public SetKeyWords ( string keyWords ) : void
keyWords string
return void

SetSavePoint() public method

public SetSavePoint ( ) : void
return void

SetSelection() public method

public SetSelection ( int pos, int length ) : void
pos int
length int
return void

SetText() public method

public SetText ( string newText ) : void
newText string
return void

SetText() public method

public SetText ( string newText, bool clearModified ) : void
newText string
clearModified bool
return void

SetTextModified() public method

public SetTextModified ( string newText ) : void
newText string
return void

ShowAutocompleteNow() public method

public ShowAutocompleteNow ( ) : void
return void

ShowCurrentExecutionPoint() public method

public ShowCurrentExecutionPoint ( int lineNumber ) : void
lineNumber int
return void

ShowErrorMessagePopup() public method

public ShowErrorMessagePopup ( string errorMessage ) : void
errorMessage string
return void

ShowMatchingBrace() public method

public ShowMatchingBrace ( bool beforeAndAfterCursor ) : void
beforeAndAfterCursor bool
return void

ShowMatchingBrace() public method

public ShowMatchingBrace ( bool beforeAndAfterCursor, bool alignIndentation ) : void
beforeAndAfterCursor bool
alignIndentation bool
return void

Undo() public method

public Undo ( ) : void
return void

UndoLastModification() public method

public UndoLastModification ( ) : void
return void