Exemplo n.º 1
0
        public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry)
        {
            CycleArray <ConsoleViewCellEntry> Entries = this.Entries;

            // if unfiltered console entries overflow - we need to adjust indices and visible lines
            if (m_oldConsoleEntriesHeadIndex < Entries.HeadIndex)
            {
                m_oldConsoleEntriesHeadIndex = Entries.HeadIndex;

                int indicesHeadIndex = m_filteredIndices.HeadIndex;
                while (indicesHeadIndex < m_filteredIndices.Length && m_filteredIndices[indicesHeadIndex] < Entries.HeadIndex)
                {
                    ++indicesHeadIndex;
                }

                m_filteredIndices.TrimToHeadIndex(indicesHeadIndex);
                m_consoleView.TrimCellsToHead(indicesHeadIndex);
            }

            int entryIndex      = Entries.Length - 1;
            int entryArrayIndex = Entries.ToArrayIndex(entryIndex);

            if (Apply(ref Entries.InternalArray[entryArrayIndex]))
            {
                m_filteredIndices.Add(entryIndex);
                m_consoleView.OnConsoleEntryAdded(console, ref entry);
            }
        }
 public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry)
 {
     if (entry.IsTable)
     {
         string[] table = entry.Table;
         foreach (string item in table)
         {
             terminalTableOutput.Add(StringUtils.RemoveRichTextTags(item));
         }
     }
 }
Exemplo n.º 3
0
        public ConsoleView(AbstractConsole console, float width, float height)
            : base(console.Capacity, width, height)
        {
            m_console = console;

            this.ConsoleDelegate = this;
            this.DataSource      = this;
            this.Delegate        = this;

            m_textMeasure = CreateTextMeasure();

            m_filteredDelegate = new ConsoleFilteredDelegate(this);

            ReloadData();
        }
Exemplo n.º 4
0
        public ConsoleView(AbstractConsole console, float width, float height)
            : base(console.Capacity, width, height)
        {
            m_console = console;

            this.ConsoleDelegate = this;
            this.DataSource = this;
            this.Delegate = this;

            m_textMeasure = CreateTextMeasure();

            m_filteredDelegate = new ConsoleFilteredDelegate(this);

            ReloadData();
        }
 public MockConsoleView(AbstractConsole console, float width, float height)
     : base(console, width, height)
 {
 }
Exemplo n.º 6
0
 public void OnConsoleCleared(AbstractConsole console)
 {
     ClearIndices();
     m_consoleView.OnConsoleCleared(console);
 }
Exemplo n.º 7
0
        public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry)
        {
            CycleArray<ConsoleViewCellEntry> Entries = this.Entries;

            // if unfiltered console entries overflow - we need to adjust indices and visible lines
            if (m_oldConsoleEntriesHeadIndex < Entries.HeadIndex)
            {
                m_oldConsoleEntriesHeadIndex = Entries.HeadIndex;

                int indicesHeadIndex = m_filteredIndices.HeadIndex;
                while(indicesHeadIndex < m_filteredIndices.Length && m_filteredIndices[indicesHeadIndex] < Entries.HeadIndex)
                {
                    ++indicesHeadIndex;
                }

                m_filteredIndices.TrimToHeadIndex(indicesHeadIndex);
                m_consoleView.TrimCellsToHead(indicesHeadIndex);
            }

            int entryIndex = Entries.Length - 1;
            int entryArrayIndex = Entries.ToArrayIndex(entryIndex);
            if (Apply(ref Entries.InternalArray[entryArrayIndex]))
            {
                m_filteredIndices.Add(entryIndex);
                m_consoleView.OnConsoleEntryAdded(console, ref entry);
            }
        }
Exemplo n.º 8
0
 public void OnConsoleCleared(AbstractConsole console)
 {
     ClearIndices();
     m_consoleView.OnConsoleCleared(console);
 }
 public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry)
 {
 }
Exemplo n.º 10
0
 public void OnConsoleCleared(AbstractConsole console)
 {
 }
Exemplo n.º 11
0
 public void OnConsoleCleared(AbstractConsole console)
 {
     ReloadData();
     Repaint();
 }
Exemplo n.º 12
0
        //////////////////////////////////////////////////////////////////////////////

        #region IConsoleDelegate implementation

        public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry)
        {
            ReloadNewData();
            Repaint();
        }
Exemplo n.º 13
0
 public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry)
 {
     ReloadNewData();
     Repaint();
 }
Exemplo n.º 14
0
 public void OnConsoleCleared(AbstractConsole console)
 {
     ReloadData();
     Repaint();
 }
Exemplo n.º 15
0
 public void OnConsoleCleared(AbstractConsole console)
 {
 }
Exemplo n.º 16
0
        //////////////////////////////////////////////////////////////////////////////

        #region IConsoleDelegate null implementation

        public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry)
        {
        }