C# Class ARCed.Scripting.ScriptEditorForm

显示文件 Open project: borisblizzard/arcreator Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

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

Method Details

ApplyChanges() public method

public ApplyChanges ( ) : void
return void

ChangeScript() public method

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

DeRegisterScript() public method

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

Dispose() protected method

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

RegisterScript() public method

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

RemoveEmptyLines() public method

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

ScriptEditorForm() public method

Default constructor
public ScriptEditorForm ( ) : System
return System

ScriptEditorForm() public method

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

SetStyle() public method

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

SetStyle() public method

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

StructureScript() public method

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

UnfoldAllLines() public method

Expands all code folding
public UnfoldAllLines ( ) : void
return void

UpdateSettings() public method

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