C# Class iRuler.iRulerMain

Summary description for Form1.
Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: f5devcentral/f5-irule-editor

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

DoSearchFind() public méthode

public DoSearchFind ( bool bReverseDirection ) : int
bReverseDirection bool
Résultat int

DoSearchMarkAll() public méthode

public DoSearchMarkAll ( ) : void
Résultat void

RemoteCertificateValidationCallback() public méthode

public RemoteCertificateValidationCallback ( Object sender, System certificate, System chain, System sslPolicyErrors ) : bool
sender Object
certificate System
chain System
sslPolicyErrors System
Résultat bool

addEditorShortcutKeys() protected méthode

protected addEditorShortcutKeys ( ToolStripItemCollection tsic ) : void
tsic System.Windows.Forms.ToolStripItemCollection
Résultat void

appendStatus() public méthode

public appendStatus ( String sText, bool bVisible ) : void
sText String
bVisible bool
Résultat void

editConfig() protected méthode

protected editConfig ( ) : void
Résultat void

ensureLatestConfig() protected méthode

protected ensureLatestConfig ( ) : void
Résultat void

ensureRangeVisible() public méthode

public ensureRangeVisible ( int start, int end ) : void
start int
end int
Résultat void

exportConfig() protected méthode

protected exportConfig ( ) : bool
Résultat bool

findInTarget() public méthode

public findInTarget ( String sText, int len, int start, int end ) : int
sText String
len int
start int
end int
Résultat int

getCurrentWord() public méthode

public getCurrentWord ( int position ) : String
position int
Résultat String

getListOfMatches() public méthode

public getListOfMatches ( String word ) : String
word String
Résultat String

getStatus() public méthode

public getStatus ( ) : string
Résultat string

getStatusVisible() public méthode

public getStatusVisible ( ) : bool
Résultat bool

iRulerMain() public méthode

public iRulerMain ( ) : System
Résultat System

initializeEditor() protected méthode

protected initializeEditor ( ) : bool
Résultat bool

loadCommandArgs() protected méthode

protected loadCommandArgs ( ) : void
Résultat void

loadConfiguration() protected méthode

protected loadConfiguration ( ) : void
Résultat void

monitorNotifications() protected méthode

protected monitorNotifications ( bool bMonitor ) : void
bMonitor bool
Résultat void

saveConfiguration() protected méthode

protected saveConfiguration ( ) : void
Résultat void

setStatus() public méthode

public setStatus ( String sText, bool bVisible ) : void
sText String
bVisible bool
Résultat void

showAutoComplete() public méthode

public showAutoComplete ( bool bShow ) : void
bShow bool
Résultat void

showEndOfLine() public méthode

public showEndOfLine ( bool bShow ) : void
bShow bool
Résultat void

showFoldMargin() public méthode

public showFoldMargin ( bool bShow ) : void
bShow bool
Résultat void

showHotspots() public méthode

public showHotspots ( bool bShow ) : void
bShow bool
Résultat void

showIndentionGuides() public méthode

public showIndentionGuides ( bool bShow ) : void
bShow bool
Résultat void

showLineNumbers() public méthode

public showLineNumbers ( bool bShow ) : void
bShow bool
Résultat void

showMargin() public méthode

public showMargin ( bool bShow ) : void
bShow bool
Résultat void

showSplashScreen() public méthode

public showSplashScreen ( bool bShow ) : void
bShow bool
Résultat void

showWhiteSpace() public méthode

public showWhiteSpace ( bool bShow ) : void
bShow bool
Résultat void

showWordWrap() public méthode

public showWordWrap ( bool bShow ) : void
bShow bool
Résultat void

updateAutoCompleteList() protected méthode

protected updateAutoCompleteList ( ) : void
Résultat void

updateKeywordList() protected méthode

protected updateKeywordList ( ) : void
Résultat void

updateStatusLabels() public méthode

public updateStatusLabels ( ) : void
Résultat void

viewStatus() public méthode

public viewStatus ( bool bVisible ) : void
bVisible bool
Résultat void