C# 클래스 AGS.Editor.ScintillaWrapper

상속: System.Windows.Forms.UserControl, IScriptEditorControl
파일 보기 프로젝트 열기: adventuregamestudio/ags 1 사용 예제들

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