private void aNSIToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ChangeEncoding(Encoding.Default); } }
private void uTF8ToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ChangeEncoding(new UTF8Encoding(false)); } }
private void toolStripButtonDown_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.JumpNextBookmark(); } }
private void jumpToPrevToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.JumpPrevBookmark(); } }
private void LogTabWindow_Deactivate(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.AppFocusLost(); } }
private void toolStripButtonFilter_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ToggleFilterPanel(); } }
private void followTailCheckBox_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.FollowTailChanged(followTailCheckBox.Checked, false); } }
private void patternStatisticToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.PatternStatistic(); } }
private void filterToggleButton_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ToggleFilterPanel(); } }
private void filterToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ToggleFilterPanel(); } }
private void importBookmarksToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ImportBookmarkList(); } }
private void ToolButtonClick(ToolEntry toolEntry) { if (string.IsNullOrEmpty(toolEntry.cmd)) { //TODO TabIndex => To Enum OpenSettings(2); return; } if (CurrentLogWindow != null) { ILogLine line = CurrentLogWindow.GetCurrentLine(); ILogFileInfo info = CurrentLogWindow.GetCurrentFileInfo(); if (line != null && info != null) { ArgParser parser = new ArgParser(toolEntry.args); string argLine = parser.BuildArgs(line, CurrentLogWindow.GetRealLineNum() + 1, info, this); if (argLine != null) { StartTool(toolEntry.cmd, argLine, toolEntry.sysout, toolEntry.columnizerName, toolEntry.workingDir); } } } }
private void columnFinderToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null && !skipEvents) { CurrentLogWindow.ToggleColumnFinder(columnFinderToolStripMenuItem.Checked, true); } }
private void multifileMaskToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ChangeMultifileMask(); } }
private void closeFileToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.Close(); } }
private void iSO88591ToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ChangeEncoding(Encoding.GetEncoding("iso-8859-1")); } }
private void cellSelectModeToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.SetCellSelectionMode(cellSelectModeToolStripMenuItem.Checked); } }
private void dateTimeDragControl_ValueChanged(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ScrollToTimestamp(dateTimeDragControl.DateTime, true, true); } }
private void copyMarkedLinesIntoNewTabToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.CopyMarkedLinesToTab(); } }
private void LogTabWindow_Activated(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.AppFocusGained(); } }
private void toggleBookmarkToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ToggleBookmark(); } }
private void toolStripButtonBookmark_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ToggleBookmark(); } }
private void uTF16ToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { CurrentLogWindow.ChangeEncoding(Encoding.Unicode); } }
private void disableWordHighlightModeToolStripMenuItem_Click(object sender, EventArgs e) { DebugOptions.disableWordHighlight = disableWordHighlightModeToolStripMenuItem.Checked; if (CurrentLogWindow != null) { CurrentLogWindow.RefreshAllGrids(); } }
private void ToggleMultiFile() { if (CurrentLogWindow != null) { CurrentLogWindow.SwitchMultiFile(!CurrentLogWindow.IsMultiFile); multiFileToolStripMenuItem.Checked = CurrentLogWindow.IsMultiFile; multiFileEnabledStripMenuItem.Checked = CurrentLogWindow.IsMultiFile; } }
private void ApplySelectedHighlightGroup() { string groupName = highlightGroupsComboBox.Text; if (CurrentLogWindow != null) { CurrentLogWindow.SetCurrentHighlightGroup(groupName); } }
private void dockPanel_ActiveContentChanged(object sender, EventArgs e) { if (dockPanel.ActiveContent is LogWindow) { CurrentLogWindow = dockPanel.ActiveContent as LogWindow; CurrentLogWindow.LogWindowActivated(); ConnectToolWindows(CurrentLogWindow); } }
private void dumpBufferDiagnosticToolStripMenuItem_Click(object sender, EventArgs e) { #if DEBUG if (CurrentLogWindow != null) { CurrentLogWindow.DumpBufferDiagnostic(); } #endif }
private void timeshiftToolStripMenuItem_CheckStateChanged(object sender, EventArgs e) { if (!skipEvents && CurrentLogWindow != null) { CurrentLogWindow.SetTimeshiftValue(timeshiftMenuTextBox.Text); timeshiftMenuTextBox.Enabled = timeshiftToolStripMenuItem.Checked; CurrentLogWindow.TimeshiftEnabled(timeshiftToolStripMenuItem.Checked, timeshiftMenuTextBox.Text); } }
private void reloadToolStripMenuItem_Click(object sender, EventArgs e) { if (CurrentLogWindow != null) { LogWindowData data = CurrentLogWindow.Tag as LogWindowData; Icon icon = GetIcon(0, data); BeginInvoke(new SetTabIconDelegate(SetTabIcon), CurrentLogWindow, icon); CurrentLogWindow.Reload(); } }