C# 클래스 ARCed.Scripting.ScriptEditorForm

파일 보기 프로젝트 열기: borisblizzard/arcreator 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetLineIndent int
InitializeComponent void
InitializeScintilla void
IsBrace bool
SaveChanges void
ScintillaNativeInterfaceUpdateUi void
Scintilla_CharAdded void
Scintilla_KeyDown void
Scintilla_TextChanged void
ScriptEditorForm_Activated void
ScriptEditorForm_FormClosing void
SetTitle void
UpdateScriptStatus void
UpdateTitle void
_scintilla_SelectionChanged void
buttonAddToAutocomplete_Click void
buttonAutoComplete_Click void
buttonCalc_Click void
buttonCharMap_Click void
buttonComment_Click void
buttonCopy_Click void
buttonCut_Click void
buttonDelete_Click void
buttonFindNext_Click void
buttonFindPrevious_Click void
buttonFind_Click void
buttonGoto_Click void
buttonIncrementalSearch_Click void
buttonPaste_Click void
buttonRedo_Click void
buttonRemoveEmpty_Click void
buttonReplace_Click void
buttonScriptStructure_Click void
buttonSelectAll_Click void
buttonStructure_Click void
buttonStyle_Click void
buttonToggleAutoComplete_Click void
buttonToggleAutoIndent_Click void
buttonToggleCaret_Click void
buttonToggleFolding_Click void
buttonToggleIndentGuides_Click void
buttonUndo_Click void
contextMenu_Opening void

공개 메소드들

메소드 설명
ApplyChanges ( ) : void
ChangeScript ( Script script ) : void

Changes the form's associated ARCed.Scripting.Script object

DeRegisterScript ( ) : void

Removes the window from the main editor's list of open script editors

RegisterScript ( ) : void

Adds the form to the main editor's script editor list

RemoveEmptyLines ( ) : void

Make the script shorter by deleting all unneeded lines

ScriptEditorForm ( ) : System

Default constructor

ScriptEditorForm ( Script script ) : System

Constructs and opens a script

SetStyle ( ) : void

Sets the styles used for the script editor to match the currently defined

SetStyle ( ScriptStyle styles ) : void

Sets the styles used for the script editor

StructureScript ( ) : void

Normalizes indentation of the script according to standard Ruby conventions

UnfoldAllLines ( ) : void

Expands all code folding

UpdateSettings ( ) : void

Updates the script settings to reflect current settings

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

비공개 메소드들

메소드 설명
GetLineIndent ( Line line ) : int

Return the required indent for this line or -1 if the line is a multiline comment or string

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

InitializeScintilla ( ) : void
IsBrace ( int pos ) : bool
SaveChanges ( ) : void
ScintillaNativeInterfaceUpdateUi ( object sender, NativeScintillaEventArgs e ) : void

Check if cursor is on a brace or not, highlighting if necessary

Scintilla_CharAdded ( object sender, CharAddedEventArgs e ) : void

Registers characters added to the control for controlling auto-indentation and autocomplete

Scintilla_KeyDown ( object sender, KeyEventArgs e ) : void

Checks key input for the hotkeys

Scintilla_TextChanged ( object sender, EventArgs e ) : void

Ensures the margin is sized correctly to allow display of the line numbers

ScriptEditorForm_Activated ( object sender, EventArgs e ) : void
ScriptEditorForm_FormClosing ( object sender, FormClosingEventArgs e ) : void
SetTitle ( string title ) : void
UpdateScriptStatus ( ) : void
UpdateTitle ( ) : void
_scintilla_SelectionChanged ( object sender, EventArgs e ) : void
buttonAddToAutocomplete_Click ( object sender, EventArgs e ) : void
buttonAutoComplete_Click ( object sender, EventArgs e ) : void
buttonCalc_Click ( object sender, EventArgs e ) : void
buttonCharMap_Click ( object sender, EventArgs e ) : void
buttonComment_Click ( object sender, EventArgs e ) : void
buttonCopy_Click ( object sender, EventArgs e ) : void
buttonCut_Click ( object sender, EventArgs e ) : void
buttonDelete_Click ( object sender, EventArgs e ) : void
buttonFindNext_Click ( object sender, EventArgs e ) : void
buttonFindPrevious_Click ( object sender, EventArgs e ) : void
buttonFind_Click ( object sender, EventArgs e ) : void
buttonGoto_Click ( object sender, EventArgs e ) : void
buttonIncrementalSearch_Click ( object sender, EventArgs e ) : void
buttonPaste_Click ( object sender, EventArgs e ) : void
buttonRedo_Click ( object sender, EventArgs e ) : void
buttonRemoveEmpty_Click ( object sender, EventArgs e ) : void
buttonReplace_Click ( object sender, EventArgs e ) : void
buttonScriptStructure_Click ( object sender, EventArgs e ) : void
buttonSelectAll_Click ( object sender, EventArgs e ) : void
buttonStructure_Click ( object sender, EventArgs e ) : void
buttonStyle_Click ( object sender, EventArgs e ) : void
buttonToggleAutoComplete_Click ( object sender, EventArgs e ) : void
buttonToggleAutoIndent_Click ( object sender, EventArgs e ) : void
buttonToggleCaret_Click ( object sender, EventArgs e ) : void
buttonToggleFolding_Click ( object sender, EventArgs e ) : void
buttonToggleIndentGuides_Click ( object sender, EventArgs e ) : void
buttonUndo_Click ( object sender, EventArgs e ) : void
contextMenu_Opening ( object sender, CancelEventArgs e ) : void

메소드 상세

ApplyChanges() 공개 메소드

public ApplyChanges ( ) : void
리턴 void

ChangeScript() 공개 메소드

Changes the form's associated ARCed.Scripting.Script object
public ChangeScript ( Script script ) : void
script Script
리턴 void

DeRegisterScript() 공개 메소드

Removes the window from the main editor's list of open script editors
public DeRegisterScript ( ) : void
리턴 void

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

RegisterScript() 공개 메소드

Adds the form to the main editor's script editor list
public RegisterScript ( ) : void
리턴 void

RemoveEmptyLines() 공개 메소드

Make the script shorter by deleting all unneeded lines
public RemoveEmptyLines ( ) : void
리턴 void

ScriptEditorForm() 공개 메소드

Default constructor
public ScriptEditorForm ( ) : System
리턴 System

ScriptEditorForm() 공개 메소드

Constructs and opens a script
public ScriptEditorForm ( Script script ) : System
script Script The script to open
리턴 System

SetStyle() 공개 메소드

Sets the styles used for the script editor to match the currently defined
public SetStyle ( ) : void
리턴 void

SetStyle() 공개 메소드

Sets the styles used for the script editor
public SetStyle ( ScriptStyle styles ) : void
styles ScriptStyle An array of script styles
리턴 void

StructureScript() 공개 메소드

Normalizes indentation of the script according to standard Ruby conventions
public StructureScript ( ) : void
리턴 void

UnfoldAllLines() 공개 메소드

Expands all code folding
public UnfoldAllLines ( ) : void
리턴 void

UpdateSettings() 공개 메소드

Updates the script settings to reflect current settings
public UpdateSettings ( ) : void
리턴 void