<UserControl x:Class="OPlanner.ToolsPanel" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="100" xmlns:CustomControl="clr-namespace:OPlanner">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="TemplatesAndStyles.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <StackPanel Style="{StaticResource VerticalPanel}">
        <StackPanel.Resources>
            <Style TargetType="CustomControl:OToolButton">
                <Setter Property="SnapsToDevicePixels" Value="True"></Setter>
                <Setter Property="Template" Value="{StaticResource RadioButtonToolTemplate}"></Setter>
            </Style>
        </StackPanel.Resources>
        <Label Style="{StaticResource PanelHeader}">Tools</Label>
        <Label Style="{StaticResource PanelSubHeader}">Select</Label>
        <WrapPanel Orientation="Horizontal" Margin="5,0,0,0">
            <CustomControl:OToolButton x:Name="selectButton" GroupName="Tools" IsChecked="True" ToolTip="Select" Checked="radioButton_Checked" ToolType="Select" CreateMode="None" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\Select.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="rotateButton" GroupName="Tools" ToolTip="Rotate" Checked="radioButton_Checked" ToolType="Rotate" CreateMode="None" Loaded="radioButton_Loaded" IsEnabled="False">
                <Image Stretch="None" Source="Icons\Rotate.png"></Image>
            </CustomControl:OToolButton>
			<CustomControl:OToolButton x:Name="measureDistanceButton" GroupName="Tools" ToolTip="Measure Distance" Checked="radioButton_Checked" ToolType="MeasureDistance" CreateMode="Normal" DrawingMode="Freehand" Loaded="radioButton_Loaded">
				<Image Stretch="None" Source="Icons\MeasureDistance.png"></Image>
			</CustomControl:OToolButton>
			<CustomControl:OToolButton x:Name="removePointButton" GroupName="Tools" ToolTip="Remove Point" Checked="radioButton_Checked" ToolType="RemovePoint" CreateMode="None" Loaded="radioButton_Loaded">
				<Image Stretch="None" Source="Icons\RemovePoint.png"></Image>
			</CustomControl:OToolButton>
			<CustomControl:OToolButton x:Name="addNormalPointButton" GroupName="Tools" ToolTip="Add Point" Checked="radioButton_Checked" ToolType="CreateNormalPoint" CreateMode="None" Loaded="radioButton_Loaded">
				<Image Stretch="None" Source="Icons\AddNormalPoint.png"></Image>
			</CustomControl:OToolButton>
			<CustomControl:OToolButton x:Name="addCurvePointButton" GroupName="Tools" ToolTip="Add Curve Point" Checked="radioButton_Checked" ToolType="CreateQuadraticBezierPoint" CreateMode="None" Loaded="radioButton_Loaded">
				<Image Stretch="None" Source="Icons\AddCurvePoint.png"></Image>
			</CustomControl:OToolButton>
		</WrapPanel>
        <Separator Style="{StaticResource PanelSeparator}" />
        <Label Style="{StaticResource PanelSubHeader}">Create</Label>
        <WrapPanel Orientation="Horizontal" Margin="5,0,0,0">
            <CustomControl:OToolButton x:Name="createControlButton" GroupName="Tools" ToolTip="Create Control" Checked="radioButton_Checked" ToolType="CreateControl" CreateMode="Normal" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\Control.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createStartButton" GroupName="Tools" ToolTip="Create Start" Checked="radioButton_Checked" ToolType="CreateStart" CreateMode="Normal" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\Start.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createFinishButton" GroupName="Tools" ToolTip="Create Finish" Checked="radioButton_Checked" ToolType="CreateFinish" CreateMode="Normal" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\Finish.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createCrossingPointButton" GroupName="Tools" ToolTip="Create Crossing Point" Checked="radioButton_Checked" ToolType="CreateCrossingPoint" CreateMode="Normal" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\CrossingPoint.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createTransparentAreaButton" GroupName="Tools" ToolTip="Create Transparent Area" Checked="radioButton_Checked" ToolType="CreateTransparentArea" CreateMode="Normal" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\TransparentArea.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createCourseDescriptionsButton" GroupName="Tools" ToolTip="Create Course Descriptions" Checked="radioButton_Checked" ToolType="CreateCourseDescriptions" CreateMode="Normal" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\CourseDescriptions.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createTapedRouteButton" GroupName="Tools" ToolTip="Create Taped Route" Checked="radioButton_Checked" ToolType="CreateTapedRoute" CreateMode="Normal" DrawingMode="Freehand" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\TapedRoute.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createTextButton" GroupName="Tools" ToolTip="Create Text" Checked="radioButton_Checked" ToolType="CreateText" CreateMode="Normal" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\Text.png"></Image>
            </CustomControl:OToolButton>
			<CustomControl:OToolButton x:Name="createDrinksPointButton" GroupName="Tools" ToolTip="Create Drinks Point" Checked="radioButton_Checked" ToolType="CreateDrinksPoint" CreateMode="Normal" Loaded="radioButton_Loaded">
				<Image Stretch="None" Source="Icons\DrinksPoint.png"></Image>
			</CustomControl:OToolButton>
			<CustomControl:OToolButton x:Name="createOOBCrossButton" GroupName="Tools" ToolTip="Create OOB Cross" Checked="radioButton_Checked" ToolType="CreateOOBCross" CreateMode="Normal" Loaded="radioButton_Loaded">
				<Image Stretch="None" Source="Icons\OOBCross.png"></Image>
			</CustomControl:OToolButton>
			<CustomControl:OToolButton x:Name="createOOBAreaButton" GroupName="Tools" ToolTip="Create OOB Area" Checked="radioButton_Checked" ToolType="CreateOOBArea" CreateMode="Normal" DrawingMode="Freehand" Loaded="radioButton_Loaded">
				<Image Stretch="None" Source="Icons\OOBArea.png"></Image>
			</CustomControl:OToolButton>
			<CustomControl:OToolButton x:Name="createFirstAidPointButton" GroupName="Tools" ToolTip="Create First Aid Point" Checked="radioButton_Checked" ToolType="CreateFirstAidPoint" CreateMode="Normal" Loaded="radioButton_Loaded">
				<Image Stretch="None" Source="Icons\FirstAidPoint.png"></Image>
			</CustomControl:OToolButton>
			<CustomControl:OToolButton x:Name="createUncrossableBoundaryButton" GroupName="Tools" ToolTip="Create Uncrossable Boundary" Checked="radioButton_Checked" ToolType="CreateUncrossableBoundary" CreateMode="Normal" DrawingMode="Freehand" Loaded="radioButton_Loaded">
				<Image Stretch="None" Source="Icons\UncrossableBoundary.png"></Image>
			</CustomControl:OToolButton>
			<CustomControl:OToolButton x:Name="createAreaBlockButton" GroupName="Tools" ToolTip="Create Area Block" Checked="radioButton_Checked" ToolType="CreateAreaBlock" CreateMode="Normal" DrawingMode="Freehand" Loaded="radioButton_Loaded">
				<Image Stretch="None" Source="Icons\AreaBlock.png"></Image>
			</CustomControl:OToolButton>
		</WrapPanel>
        <Separator Style="{StaticResource PanelSeparator}" />
        <Label Style="{StaticResource PanelSubHeader}">Course Objects</Label>
        <WrapPanel Orientation="Horizontal" Margin="5,0,0,0">
            <CustomControl:OToolButton x:Name="createCourseLineButton" GroupName="Tools" ToolTip="Create Line" Checked="radioButton_Checked" ToolType="CreateLine" CreateMode="Course" DrawingMode="Freehand" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\Line.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createCourseTapedRouteButton" GroupName="Tools" ToolTip="Create Taped Route" Checked="radioButton_Checked" ToolType="CreateTapedRoute" CreateMode="Course" DrawingMode="Freehand" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\TapedRoute.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createCourseTextButton" GroupName="Tools" ToolTip="Create Text" Checked="radioButton_Checked" ToolType="CreateText" CreateMode="Course" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\Text.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createCourseTransparentAreaButton" GroupName="Tools" ToolTip="Create Transparent Area" Checked="radioButton_Checked" ToolType="CreateTransparentArea" CreateMode="Course" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\TransparentArea.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createCourseCourseDescriptionsButton" GroupName="Tools" ToolTip="Create Course Descriptions" Checked="radioButton_Checked" ToolType="CreateCourseDescriptions" CreateMode="Course" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\CourseDescriptions.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="createInvisiblePointButton" GroupName="Tools" ToolTip="Create Invisible Point" Checked="radioButton_Checked" ToolType="CreateInvisiblePoint" CreateMode="Course" Loaded="radioButton_Loaded">
                <Image Stretch="None" Source="Icons\InvisiblePoint.png"></Image>
            </CustomControl:OToolButton>
        </WrapPanel>
        <Separator Style="{StaticResource PanelSeparator}" />
        <Label Style="{StaticResource PanelSubHeader}">Tool Options</Label>
        <WrapPanel Orientation="Horizontal" Margin="5,0,0,0">
            <CustomControl:OToolButton x:Name="freehandButton" GroupName="DrawingMode" ToolTip="Freehand" Checked="drawingModeButton_Checked" DrawingMode="Freehand" Loaded="drawingModeButton_Loaded">
                <Image Stretch="None" Source="Icons\Freehand.png"></Image>
            </CustomControl:OToolButton>
            <CustomControl:OToolButton x:Name="lineButton" GroupName="DrawingMode" ToolTip="Line" Checked="drawingModeButton_Checked" DrawingMode="Line" Loaded="drawingModeButton_Loaded">
                <Image Stretch="None" Source="Icons\LineMode.png"></Image>
            </CustomControl:OToolButton>
        </WrapPanel>
        <Separator Style="{StaticResource PanelSeparator}" />
    </StackPanel>
</UserControl>
