コード例 #1
0
 private void aNSIToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ChangeEncoding(Encoding.Default);
     }
 }
コード例 #2
0
 private void uTF8ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ChangeEncoding(new UTF8Encoding(false));
     }
 }
コード例 #3
0
 private void toolStripButtonDown_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.JumpNextBookmark();
     }
 }
コード例 #4
0
 private void jumpToPrevToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.JumpPrevBookmark();
     }
 }
コード例 #5
0
 private void LogTabWindow_Deactivate(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.AppFocusLost();
     }
 }
コード例 #6
0
 private void toolStripButtonFilter_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ToggleFilterPanel();
     }
 }
コード例 #7
0
 private void followTailCheckBox_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.FollowTailChanged(followTailCheckBox.Checked, false);
     }
 }
コード例 #8
0
 private void patternStatisticToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.PatternStatistic();
     }
 }
コード例 #9
0
 private void filterToggleButton_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ToggleFilterPanel();
     }
 }
コード例 #10
0
 private void filterToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ToggleFilterPanel();
     }
 }
コード例 #11
0
 private void importBookmarksToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ImportBookmarkList();
     }
 }
コード例 #12
0
        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);
                    }
                }
            }
        }
コード例 #13
0
 private void columnFinderToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null && !skipEvents)
     {
         CurrentLogWindow.ToggleColumnFinder(columnFinderToolStripMenuItem.Checked, true);
     }
 }
コード例 #14
0
 private void multifileMaskToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ChangeMultifileMask();
     }
 }
コード例 #15
0
 private void closeFileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.Close();
     }
 }
コード例 #16
0
 private void iSO88591ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ChangeEncoding(Encoding.GetEncoding("iso-8859-1"));
     }
 }
コード例 #17
0
 private void cellSelectModeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.SetCellSelectionMode(cellSelectModeToolStripMenuItem.Checked);
     }
 }
コード例 #18
0
 private void dateTimeDragControl_ValueChanged(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ScrollToTimestamp(dateTimeDragControl.DateTime, true, true);
     }
 }
コード例 #19
0
 private void copyMarkedLinesIntoNewTabToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.CopyMarkedLinesToTab();
     }
 }
コード例 #20
0
 private void LogTabWindow_Activated(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.AppFocusGained();
     }
 }
コード例 #21
0
 private void toggleBookmarkToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ToggleBookmark();
     }
 }
コード例 #22
0
 private void toolStripButtonBookmark_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ToggleBookmark();
     }
 }
コード例 #23
0
 private void uTF16ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.ChangeEncoding(Encoding.Unicode);
     }
 }
コード例 #24
0
 private void disableWordHighlightModeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DebugOptions.disableWordHighlight = disableWordHighlightModeToolStripMenuItem.Checked;
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.RefreshAllGrids();
     }
 }
コード例 #25
0
 private void ToggleMultiFile()
 {
     if (CurrentLogWindow != null)
     {
         CurrentLogWindow.SwitchMultiFile(!CurrentLogWindow.IsMultiFile);
         multiFileToolStripMenuItem.Checked    = CurrentLogWindow.IsMultiFile;
         multiFileEnabledStripMenuItem.Checked = CurrentLogWindow.IsMultiFile;
     }
 }
コード例 #26
0
        private void ApplySelectedHighlightGroup()
        {
            string groupName = highlightGroupsComboBox.Text;

            if (CurrentLogWindow != null)
            {
                CurrentLogWindow.SetCurrentHighlightGroup(groupName);
            }
        }
コード例 #27
0
 private void dockPanel_ActiveContentChanged(object sender, EventArgs e)
 {
     if (dockPanel.ActiveContent is LogWindow)
     {
         CurrentLogWindow = dockPanel.ActiveContent as LogWindow;
         CurrentLogWindow.LogWindowActivated();
         ConnectToolWindows(CurrentLogWindow);
     }
 }
コード例 #28
0
        private void dumpBufferDiagnosticToolStripMenuItem_Click(object sender, EventArgs e)
        {
#if DEBUG
            if (CurrentLogWindow != null)
            {
                CurrentLogWindow.DumpBufferDiagnostic();
            }
#endif
        }
コード例 #29
0
 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);
     }
 }
コード例 #30
0
 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();
     }
 }