C# Class iRuler.iRulerMain

Summary description for Form1.
Inheritance: System.Windows.Forms.Form
Datei anzeigen Open project: f5devcentral/f5-irule-editor

Public Methods

Method Description
DoSearchFind ( bool bReverseDirection ) : int
DoSearchMarkAll ( ) : void
RemoteCertificateValidationCallback ( Object sender, System certificate, System chain, System sslPolicyErrors ) : bool
appendStatus ( String sText, bool bVisible ) : void
ensureRangeVisible ( int start, int end ) : void
findInTarget ( String sText, int len, int start, int end ) : int
getCurrentWord ( int position ) : String
getListOfMatches ( String word ) : String
getStatus ( ) : string
getStatusVisible ( ) : bool
iRulerMain ( ) : System
setStatus ( String sText, bool bVisible ) : void
showAutoComplete ( bool bShow ) : void
showEndOfLine ( bool bShow ) : void
showFoldMargin ( bool bShow ) : void
showHotspots ( bool bShow ) : void
showIndentionGuides ( bool bShow ) : void
showLineNumbers ( bool bShow ) : void
showMargin ( bool bShow ) : void
showSplashScreen ( bool bShow ) : void
showWhiteSpace ( bool bShow ) : void
showWordWrap ( bool bShow ) : void
updateStatusLabels ( ) : void
viewStatus ( bool bVisible ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

addEditorShortcutKeys ( ToolStripItemCollection tsic ) : void
editConfig ( ) : void
ensureLatestConfig ( ) : void
exportConfig ( ) : bool
initializeEditor ( ) : bool
loadCommandArgs ( ) : void
loadConfiguration ( ) : void
monitorNotifications ( bool bMonitor ) : void
saveConfiguration ( ) : void
updateAutoCompleteList ( ) : void
updateKeywordList ( ) : void

Private Methods

Method Description
DefineFoldMarker ( int marker, int markerType, int fore, int back ) : void
DoCheckForUpdates ( bool prompt, bool showstatus ) : void
DoConnect ( ) : void
DoConnect ( string sHostname, string sUsername, string sPassword ) : void
DoConnect2 ( ) : void
DoCopyOffline ( TreeNode tn ) : void
DoDataGroups ( ) : void
DoDelete ( ) : bool
DoDeleteOffline ( TreeNode tn ) : bool
DoDisconnect ( ) : bool
DoDropFiles ( String fileDropList, bool bPrompt, TreeNode tnParent ) : void
DoExport ( ) : void
DoGenerateTraffic ( ) : void
DoImport ( ) : void
DoMigrateImportExport ( ) : void
DoNew ( ) : bool
DoParse ( ) : void
DoParseGTM ( ) : void
DoParseLTM ( ) : void
DoPrint ( ) : void
DoRefresh ( ) : bool
DoReload ( ) : void
DoReset ( ) : void
DoSanityCheck ( String sRuleDef ) : bool
DoSave ( ) : bool
DoSaveAll ( ) : void
DoSaveConfiguration ( ) : bool
DoSaveConfiguration ( TreeNode tn ) : bool
DoSaveConfiguration ( bool bForce ) : bool
DoSaveNode ( TreeNode tn ) : bool
DoSaveNodeGTM ( TreeNode tn ) : bool
DoSaveNodeLTM ( TreeNode tn ) : bool
DoSaveOffline ( TreeNode tn ) : bool
DoSearchFind ( ) : void
DoShare ( ) : void
DoViewStatus ( ) : void
Editor_EnsureAllChidrenVisible ( int line, int level ) : void
Editor_Expand ( int &line, bool doExpand, bool force, int visLevels, int level ) : void
Editor_FoldAll ( ) : void
Editor_ToggleFoldRecursive ( int line, int level ) : void
FileNameToRuleName ( String filename ) : String
InitializeComponent ( ) : void

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

RuleNameToFileName ( String rulename ) : String
SendMessage ( IntPtr hWnd, int wMsg, int wParam, int lParam ) : int
ToolStripMenuItem_ToolsBIGIPConfigAutoSave_Click ( object sender, EventArgs e ) : void
ToolStripMenuItem_ToolsBIGIPConfigSaveConfig_Click ( object sender, EventArgs e ) : void
ToolStripMenuItem_ToolsEditConfig_Click ( object sender, EventArgs e ) : void
ToolStripMenuItem_ViewChangeIndentionSettings_Click ( object sender, EventArgs e ) : void
autoIndentLine ( scintilla sci, char ch ) : void

Checks to see if a line needs to be auto indented and indents it if it does. Auto indenting follows these rules: If a new line has been created it is given the same indent as the previous line. If a new line is created and the previous line ends with an opening brace then the new line is indented one level more than the previous line If a closing brace is added and it is the first non-whitespace character on the line and the current line has the same indent as the previous line then the line is unindented one level.

autoSaveConfiguration ( bool bAutoSaveConfig ) : void
bookMarkRemoveAll ( ) : void
bookmarkAdd ( int linenumber ) : void
bookmarkDelete ( int linenumber ) : void
bookmarkPresent ( int linenumber ) : bool
bookmarksFromStatus ( String message ) : void
calcLengthOfIndent ( scintilla sci, int indent ) : int

Calculates the length (number of characters) of a particular indent. The length of an indent depends on whether or not tabs are enabled and the width of a tab.

contextMenuStrip_TreeView_Opened ( object sender, EventArgs e ) : void
findChildMenu ( ToolStripMenuItem tsmi, string tag ) : ToolStripMenuItem
findTreeNode ( String sName, TreeNode tnParent ) : TreeNode
getCurrentItem ( ) : TreeNode
getDragDropFileList ( DragEventArgs e ) : String[]
getEndOfLastLine ( scintilla sci, int pos ) : char

Gets the last non-whitespace character of the previous line.

getPreviousNonWhitespaceChar ( scintilla sci, int pos ) : char

Gets the previous non-whitespace character in the current line.

iRulerMain_Activated ( object sender, EventArgs e ) : void
iRulerMain_HelpButtonClicked ( object sender, CancelEventArgs e ) : void
iRulerMain_Load ( object sender, System e ) : void
m_textEditor_CharAdded ( scintilla pSender, char CharacterAdded ) : void
m_textEditor_DwellStart ( scintilla pSender, int position, int x, int y ) : int
m_textEditor_HotSpotClick ( scintilla pSender, int modifiers, int position ) : int
m_textEditor_MarginClick ( scintilla pSender, int modifiers, int position, int margin ) : int
m_textEditor_Modified ( scintilla pSender ) : int
m_textEditor_UpdateUI ( scintilla pSender ) : int
markItem ( TreeNode tn, bool bDirty ) : void
panel_Middle_Paint ( object sender, PaintEventArgs e ) : void
panel_Top_Paint ( object sender, PaintEventArgs e ) : void
parseColorValue ( String c ) : int

Same as the version below but defaults to 0 (black).

parseColorValue ( String c, int defVal ) : int

Converts a string into a color for use with the scintilla. settings. It looks like scintilla. interprets ints as being in BGR format, not RGB but the configuration file uses RGB. To accomodate this the string is converted to a number and then the first (blue) and third (red) bytes are swapped. If a default value of -1 is provided then -1 will be returned on conversion failure. Otherwise the default value will have its bytes swapped to convert from RGB to BGR format.

parseInt ( String i, int defVal ) : int

Converts a string to an integer. If the conversion fails it default to the provided default value.

refreshOffline ( ) : void
refreshiRules ( ) : void
resetPartitionMenus ( Boolean bCheckActive = true ) : void
showButtons ( bool visible ) : void
showCommandAC ( String sWord ) : bool
splitter1_SplitterMoved ( object sender, SplitterEventArgs e ) : void
textBox_Status_MouseClick ( object sender, MouseEventArgs e ) : void
toolStripButton_CheckSyntax_Click ( object sender, EventArgs e ) : void
toolStripButton_Connect_Click ( object sender, EventArgs e ) : void
toolStripButton_DataGroups_Click ( object sender, EventArgs e ) : void
toolStripButton_Delete_Click ( object sender, EventArgs e ) : void
toolStripButton_DevCentralForums_Click ( object sender, EventArgs e ) : void
toolStripButton_DevCentral_Click ( object sender, EventArgs e ) : void
toolStripButton_GenerateTraffic_Click ( object sender, EventArgs e ) : void
toolStripButton_New_Click ( object sender, EventArgs e ) : void
toolStripButton_RefreshList_Click ( object sender, EventArgs e ) : void
toolStripButton_Save_Click ( object sender, EventArgs e ) : void
toolStripButton_Share_Click ( object sender, EventArgs e ) : void
toolStripButton_TCL_Click ( object sender, EventArgs e ) : void
toolStripButton_Wiki_Click ( object sender, EventArgs e ) : void
toolStripContainer2_ContentPanel_Load ( object sender, EventArgs e ) : void
toolStripMenuItem_CheckSyntax_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_CopyOffline_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_Delete_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_DynamicClick ( object sender, EventArgs e ) : void
toolStripMenuItem_EditCopy_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_EditCut_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_EditDelete_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_EditPaste_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_EditRedo_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_EditSelectAll_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_EditUndo_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_Exit_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_FileArchiveExport_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_FileArchiveImport_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_FileArchiveOpen_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_FileArchiveSetLocation_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_FileConnect_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_FileDelete_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_FileNew_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_FileSaveAll_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_FileSave_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_FolderDynamicClick ( object sender, EventArgs e ) : void
toolStripMenuItem_HelpAbout_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_HelpDevCentral_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_HelpForums_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_HelpTCLReference_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_HelpTipOfTheDay_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_HelpiRuler_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_HelpiRuler_Click_1 ( object sender, EventArgs e ) : void
toolStripMenuItem_HelpiRulesReference_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_Properties_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_Reload_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_Reset_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_Save_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_SearchFindNext_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_SearchFindPrevious_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_SearchFind_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_Share_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ShowSplashScreen_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ToolsCheckForUpdates_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ToolsDataGroupEditor_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ToolsGenerateTraffic_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ToolsLogViewer_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ToolsReloadConfig_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ToolsResetConfig_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ToolsShare_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ViewAutoComplete_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ViewBookmarks_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ViewEndOfLine_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ViewFoldMargin_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ViewHotspots_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ViewIndentionGuides_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ViewLineNumbers_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ViewMargin_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ViewStatus_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ViewWhiteSpace_Click ( object sender, EventArgs e ) : void
toolStripMenuItem_ViewWordWrap_Click ( object sender, EventArgs e ) : void
treeView_iRules_AfterSelect ( object sender, TreeViewEventArgs e ) : void
treeView_iRules_DragDrop ( object sender, DragEventArgs e ) : void
treeView_iRules_DragEnter ( object sender, DragEventArgs e ) : void
treeView_iRules_DragLeave ( object sender, EventArgs e ) : void
treeView_iRules_DragOver ( object sender, DragEventArgs e ) : void
treeView_iRules_ItemDrag ( object sender, ItemDragEventArgs e ) : void
treeView_iRules_NodeMouseClick ( object sender, TreeNodeMouseClickEventArgs e ) : void
treeView_iRules_NodeMouseDoubleClick ( object sender, TreeNodeMouseClickEventArgs e ) : void
uncheckAllChildMenus ( ToolStripMenuItem tsmi ) : void
updateFolderInfo ( ) : void
updateIndentionSettings ( ) : void
updateMenus ( ) : void
updatePartitionInfo ( ) : void
updateTitle ( bool modified ) : void

Method Details

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

DoSearchFind() public method

public DoSearchFind ( bool bReverseDirection ) : int
bReverseDirection bool
return int

DoSearchMarkAll() public method

public DoSearchMarkAll ( ) : void
return void

RemoteCertificateValidationCallback() public method

public RemoteCertificateValidationCallback ( Object sender, System certificate, System chain, System sslPolicyErrors ) : bool
sender Object
certificate System
chain System
sslPolicyErrors System
return bool

addEditorShortcutKeys() protected method

protected addEditorShortcutKeys ( ToolStripItemCollection tsic ) : void
tsic System.Windows.Forms.ToolStripItemCollection
return void

appendStatus() public method

public appendStatus ( String sText, bool bVisible ) : void
sText String
bVisible bool
return void

editConfig() protected method

protected editConfig ( ) : void
return void

ensureLatestConfig() protected method

protected ensureLatestConfig ( ) : void
return void

ensureRangeVisible() public method

public ensureRangeVisible ( int start, int end ) : void
start int
end int
return void

exportConfig() protected method

protected exportConfig ( ) : bool
return bool

findInTarget() public method

public findInTarget ( String sText, int len, int start, int end ) : int
sText String
len int
start int
end int
return int

getCurrentWord() public method

public getCurrentWord ( int position ) : String
position int
return String

getListOfMatches() public method

public getListOfMatches ( String word ) : String
word String
return String

getStatus() public method

public getStatus ( ) : string
return string

getStatusVisible() public method

public getStatusVisible ( ) : bool
return bool

iRulerMain() public method

public iRulerMain ( ) : System
return System

initializeEditor() protected method

protected initializeEditor ( ) : bool
return bool

loadCommandArgs() protected method

protected loadCommandArgs ( ) : void
return void

loadConfiguration() protected method

protected loadConfiguration ( ) : void
return void

monitorNotifications() protected method

protected monitorNotifications ( bool bMonitor ) : void
bMonitor bool
return void

saveConfiguration() protected method

protected saveConfiguration ( ) : void
return void

setStatus() public method

public setStatus ( String sText, bool bVisible ) : void
sText String
bVisible bool
return void

showAutoComplete() public method

public showAutoComplete ( bool bShow ) : void
bShow bool
return void

showEndOfLine() public method

public showEndOfLine ( bool bShow ) : void
bShow bool
return void

showFoldMargin() public method

public showFoldMargin ( bool bShow ) : void
bShow bool
return void

showHotspots() public method

public showHotspots ( bool bShow ) : void
bShow bool
return void

showIndentionGuides() public method

public showIndentionGuides ( bool bShow ) : void
bShow bool
return void

showLineNumbers() public method

public showLineNumbers ( bool bShow ) : void
bShow bool
return void

showMargin() public method

public showMargin ( bool bShow ) : void
bShow bool
return void

showSplashScreen() public method

public showSplashScreen ( bool bShow ) : void
bShow bool
return void

showWhiteSpace() public method

public showWhiteSpace ( bool bShow ) : void
bShow bool
return void

showWordWrap() public method

public showWordWrap ( bool bShow ) : void
bShow bool
return void

updateAutoCompleteList() protected method

protected updateAutoCompleteList ( ) : void
return void

updateKeywordList() protected method

protected updateKeywordList ( ) : void
return void

updateStatusLabels() public method

public updateStatusLabels ( ) : void
return void

viewStatus() public method

public viewStatus ( bool bVisible ) : void
bVisible bool
return void