C# Класс ARCed.Scripting.ScriptEditorForm

Показать файл Открыть проект Примеры использования класса

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