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

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