Ignore:
Timestamp:
Feb 2, 2009, 8:59:44 PM (13 years ago)
Author:
Thomas Schmid
Message:
  • help text update
  • TextOutput now uses two presentations. Tab and QuickWatch can now be used at the same time
  • CrypWin now shows E-Mail and URL (if available) additionally as plain text that can be copied by CrypTool users
  • new setup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/TextOutput/TextOutput.cs

    r206 r207  
    254254    {
    255255      Presentation = new TextOutputPresentation();
     256      QuickWatchPresentation = new TextOutputPresentation();
    256257      settings = new TextOutputSettings(this);
    257258      settings.OnGuiLogNotificationOccured += settings_OnGuiLogNotificationOccured;
     
    471472                GuiLogMessage("Text exceeds size limit. Deleting text...", NotificationLevel.Info);
    472473                textOutputPresentation.textBox.Text = string.Empty;
     474                textOutputQuickWatchPresentation.textBox.Text = string.Empty;
    473475              }
    474476
     
    479481                {
    480482                  textOutputPresentation.textBox.AppendText("\n");
     483                  textOutputQuickWatchPresentation.textBox.AppendText("\n");
    481484                }
    482485              }
    483486              textOutputPresentation.textBox.AppendText(fillValue);
     487              textOutputQuickWatchPresentation.textBox.AppendText(fillValue);
     488
    484489              textOutputPresentation.textBox.ScrollToEnd();
     490              textOutputQuickWatchPresentation.textBox.ScrollToEnd();
    485491            }
    486492            else
    487493            {
    488494              textOutputPresentation.textBox.Text = fillValue;
     495              textOutputQuickWatchPresentation.textBox.Text = fillValue;
    489496            }
    490497            textOutputPresentation.labelBytes.Content = string.Format("{0:0,0}", Encoding.Default.GetBytes(textOutputPresentation.textBox.Text.ToCharArray()).Length) + " Bytes";
     498            textOutputQuickWatchPresentation.labelBytes.Content = string.Format("{0:0,0}", Encoding.Default.GetBytes(textOutputPresentation.textBox.Text.ToCharArray()).Length) + " Bytes";
    491499          }, fillValue);
    492500          OnPropertyChanged("StringInput");
     
    574582    }
    575583
     584    private TextOutputPresentation textOutputQuickWatchPresentation
     585    {
     586      get { return QuickWatchPresentation as TextOutputPresentation; }
     587    }
     588
    576589    public UserControl Presentation { get; private set; }
    577590
    578     public UserControl QuickWatchPresentation
    579     {
    580       get { return Presentation; }
    581     }
     591    public UserControl QuickWatchPresentation { get; private set; }
    582592
    583593    public void Initialize()
     
    607617        {
    608618          textOutputPresentation.textBox.Text = null;
     619          textOutputQuickWatchPresentation.textBox.Text = null;
    609620        }, null);
    610621      }
Note: See TracChangeset for help on using the changeset viewer.