aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Highlighting/HighlightingRule.cs
blob: 18edf49743c2dc0cb5f2fa6d0c8c41cb5d243cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)

using System;
using System.Text.RegularExpressions;

namespace Tango.Scripting.Editors.Highlighting
{
	/// <summary>
	/// A highlighting rule.
	/// </summary>
	[Serializable]
	public class HighlightingRule
	{
		/// <summary>
		/// Gets/Sets the regular expression for the rule.
		/// </summary>
		public Regex Regex { get; set; }
		
		/// <summary>
		/// Gets/Sets the highlighting color.
		/// </summary>
		public HighlightingColor Color { get; set; }
		
		/// <inheritdoc/>
		public override string ToString()
		{
			return "[" + GetType().Name + " " + Regex + "]";
		}
	}
}
perty="Cursor" Value="Hand"></Setter> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="TextElement.Foreground" Value="DodgerBlue"></Setter> <Setter Property="BorderBrush" Value="DodgerBlue"></Setter> </Trigger> </Style.Triggers> </Style> </UserControl.Resources> <Grid> <TextBlock Margin="80 50" FontSize="16"> <Run FontSize="20">Machine Studio logs information from multiple source.</Run> <LineBreak/> <LineBreak/> <LineBreak/> <Run FontWeight="SemiBold">• Machine Events</Run> <Run>are predefined events that occurs only when a set of predefined actions have occurred (e.g 'Job executed', 'Thread Break').</Run> <LineBreak/> <LineBreak/> <Run FontWeight="SemiBold">• Application Logs</Run> <Run>are the standard machine studio logs which can be used to trace issues in code.</Run> <LineBreak/> <LineBreak/> <Run FontWeight="SemiBold">• Embedded Logs</Run> <Run>are logs transmitted from the machine's embedded device software.</Run> </TextBlock> <UniformGrid Columns="3" Rows="1" VerticalAlignment="Center" Margin="50 150 50 0"> <Button Style="{StaticResource emptyButton}" Margin="70" Padding="0" Height="Auto" Command="{Binding NavigateToCommand}" CommandParameter="EventsView"> <Border Style="{StaticResource LogBorder}"> <DockPanel> <TextBlock HorizontalAlignment="Center" Margin="0 20 0 0" DockPanel.Dock="Bottom">MACHINE EVENTS</TextBlock> <Image Source="../Images/events.png"></Image> </DockPanel> </Border> </Button> <Button Style="{StaticResource emptyButton}" Margin="70" Padding="0" Height="Auto" Command="{Binding NavigateToCommand}" CommandParameter="ApplicationLogsView"> <Border Style="{StaticResource LogBorder}"> <DockPanel> <TextBlock HorizontalAlignment="Center" Margin="0 20 0 0" DockPanel.Dock="Bottom">APPLICATION LOGS</TextBlock> <Image Source="../Images/application-logs.png"></Image> </DockPanel> </Border> </Button> <Button Style="{StaticResource emptyButton}" Margin="70" Padding="0" Height="Auto" Command="{Binding NavigateToCommand}" CommandParameter="EmbeddedLogsView"> <Border Style="{StaticResource LogBorder}"> <DockPanel> <TextBlock HorizontalAlignment="Center" Margin="0 20 0 0" DockPanel.Dock="Bottom">EMBEDDED LOGS</TextBlock> <Image Source="../Images/embedded-logs.png"></Image> </DockPanel> </Border> </Button> </UniformGrid> </Grid> </UserControl>