761490510b
- aggiunto bottone per visualizzare/nascondere ferramenta - impostata path cartella profilo nel costruttore
400 lines
20 KiB
XML
400 lines
20 KiB
XML
<Grid x:Class="ManageWindowV"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:EgtWindowMaker">
|
|
<Grid.Resources>
|
|
<local:AreaToSplitPageConverter x:Key="AreaToSplitPageConverter"/>
|
|
</Grid.Resources>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="400"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<TabControl Grid.Row="1"
|
|
TabStripPlacement="Left"
|
|
SelectedIndex="{Binding SelParamCathegoryIndex}">
|
|
<TabItem Header="General"
|
|
Style="{StaticResource TabItem.ManageWindow}">
|
|
<StackPanel Margin="10">
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="Material"
|
|
Style="{StaticResource TextBlock.ManageWindow}"/>
|
|
<ComboBox ItemsSource="{Binding MaterialList}"
|
|
SelectedItem="{Binding SelMaterial}"
|
|
Margin="0,0,0,10"
|
|
Style="{StaticResource ComboBox.ManageWindow}"/>
|
|
<TextBlock Text="Profile"
|
|
Style="{StaticResource TextBlock.ManageWindow}"/>
|
|
<TextBox Text="{Binding CurrWindow.sProfilePath}"
|
|
Style="{StaticResource TextBox.ManageWindow}"/>
|
|
</UniformGrid>
|
|
</StackPanel>
|
|
</TabItem>
|
|
<TabItem Header="Frame"
|
|
Style="{StaticResource TabItem.ManageWindow}">
|
|
<StackPanel Margin="10">
|
|
<GroupBox Header="Shape & Dimensions"
|
|
Margin="0,0,0,10">
|
|
<StackPanel Margin="10">
|
|
<ComboBox ItemsSource="{Binding SelArea.ShapeList}"
|
|
SelectedIndex="{Binding SelArea.SelShapeIndex}"
|
|
Margin="0,0,0,5"/>
|
|
<ItemsControl ItemsSource="{Binding SelArea.DimensionList}"
|
|
Margin="0,0,0,5">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<UniformGrid Columns="2"
|
|
Margin="0,5">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="{Binding nIndex}"/>
|
|
<TextBlock Text="{Binding sName}"/>
|
|
</StackPanel>
|
|
<TextBox Text="{Binding dValue}"/>
|
|
</UniformGrid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
<GroupBox Header="Joints"
|
|
Margin="0,0,0,10">
|
|
<ItemsControl ItemsSource="{Binding SelArea.JointList}"
|
|
Padding="10,5">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<UniformGrid Columns="2"
|
|
Margin="0,5">
|
|
<TextBlock Text="{Binding nIndex}"/>
|
|
<ComboBox ItemsSource="{Binding JointTypeList}"
|
|
SelectedIndex="{Binding SelJointTypeIndex}"/>
|
|
</UniformGrid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</GroupBox>
|
|
<Expander IsExpanded="{Binding SelArea.BottomRail}"
|
|
Header="Bottom Rail"
|
|
Margin="0,0,0,10"
|
|
Style="{StaticResource Expander.CheckBoxHeader}">
|
|
<UniformGrid Columns="2"
|
|
Margin="0,5">
|
|
<TextBlock Text="Quantità"/>
|
|
<TextBox Text="{Binding SelArea.BottomRailQty}"/>
|
|
</UniformGrid>
|
|
</Expander>
|
|
<Button Content="Calcola"
|
|
Command="{Binding ApplyFrame_Command}"
|
|
Style="{StaticResource Button.ManageWindow.LeftBar}"/>
|
|
</StackPanel>
|
|
</TabItem>
|
|
<!--<TabItem Header="Joint">
|
|
<StackPanel>
|
|
<ItemsControl ItemsSource="{Binding SelArea.JointList}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="{Binding nIndex}"/>
|
|
<ComboBox ItemsSource="{Binding JointTypeList}"
|
|
SelectedIndex="{Binding SelJointTypeIndex}"/>
|
|
</UniformGrid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</StackPanel>
|
|
</TabItem>-->
|
|
<TabItem Header="Split & Rail"
|
|
Style="{StaticResource TabItem.ManageWindow}">
|
|
<!--Oriz/Vert, Quota, ecc-->
|
|
<TabControl SelectedIndex="{Binding SelArea, Converter={StaticResource AreaToSplitPageConverter}}"
|
|
Margin="0"
|
|
Padding="0"
|
|
BorderThickness="0">
|
|
<TabControl.ItemContainerStyle>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
</Style>
|
|
</TabControl.ItemContainerStyle>
|
|
<TabItem>
|
|
<TextBlock Text="Select Area"
|
|
Style="{StaticResource TextBlock.ManageWindow.SelArea}"/>
|
|
</TabItem>
|
|
<TabItem>
|
|
<StackPanel Margin="10">
|
|
<TextBlock Text="Numero"
|
|
Margin="0,0,0,5"/>
|
|
<TextBox Text="{Binding SelArea.nSplitQty}"
|
|
Margin="0,0,0,10"/>
|
|
<UniformGrid Rows="1" Margin="0,0,0,5">
|
|
<TextBlock Text="Shape"
|
|
Style="{StaticResource TextBlock.ManageWindow}"/>
|
|
<ComboBox ItemsSource="{Binding SelArea.SplitShapeList}"
|
|
SelectedIndex="{Binding SelArea.SelSplitShapeIndex}"
|
|
Style="{StaticResource ComboBox.ManageWindow}"/>
|
|
</UniformGrid>
|
|
<ItemsControl ItemsSource="{Binding SelArea.SplitPositionList}"
|
|
Margin="0,0,0,10">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Margin="0,5">
|
|
<TextBlock Text="Dimensione"
|
|
Margin="0,0,0,5"/>
|
|
<TextBox Text="{Binding dDimension}"/>
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
<Button Content="Calcola"
|
|
Command="{Binding ApplySplit_Command}"
|
|
Margin="0,0,0,10"
|
|
Style="{StaticResource Button.ManageWindow.LeftBar}"/>
|
|
<Button Content="Elimina"
|
|
Command="{Binding DeleteArea_Command}"
|
|
Margin="0,0,0,10"
|
|
Style="{StaticResource Button.ManageWindow.LeftBar}"/>
|
|
</StackPanel>
|
|
</TabItem>
|
|
</TabControl>
|
|
<!--<StackPanel>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="Cerniere"/>
|
|
<TextBox Grid.Column="1" Text="{Binding dHeight}"/>
|
|
<TextBlock Text="Maniglia"/>
|
|
<TextBox Grid.Column="1" Text="{Binding dWidth}"/>
|
|
</UniformGrid>
|
|
</StackPanel>-->
|
|
</TabItem>
|
|
<TabItem Header="Sash"
|
|
Style="{StaticResource TabItem.ManageWindow}">
|
|
<TabControl SelectedIndex="{Binding SelArea, Converter={StaticResource AreaToSplitPageConverter}}"
|
|
Margin="0"
|
|
Padding="0"
|
|
BorderThickness="0">
|
|
<TabControl.ItemContainerStyle>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
</Style>
|
|
</TabControl.ItemContainerStyle>
|
|
<TabItem>
|
|
<TextBlock Text="Select Area"
|
|
Style="{StaticResource TextBlock.ManageWindow.SelArea}"/>
|
|
</TabItem>
|
|
<TabItem>
|
|
<StackPanel Margin="10">
|
|
<!--Quantita', ecc-->
|
|
<TextBlock Text="Numero"
|
|
Margin="0,0,0,5"/>
|
|
<TextBox Text="{Binding SelArea.nSashQty}"
|
|
Margin="0,0,0,10"/>
|
|
<TextBlock Text="Orientamento"
|
|
Margin="0,0,0,5"/>
|
|
<RadioButton Content="Verticale"
|
|
IsChecked="{Binding SelArea.bIsSashVertical}"
|
|
GroupName="Orientation"
|
|
Margin="0,0,0,5"/>
|
|
<RadioButton Content="Orizzontale"
|
|
GroupName="Orientation"
|
|
Margin="0,0,0,10"/>
|
|
<CheckBox Content="Measure Glass"
|
|
IsChecked="{Binding SelArea.bIsMeasureGlass}"
|
|
Margin="0,0,0,5"/>
|
|
<ItemsControl ItemsSource="{Binding SelArea.SashList}"
|
|
Margin="0,0,0,5">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<GroupBox Margin="0,5"
|
|
Padding="10">
|
|
<StackPanel>
|
|
<TextBlock Text="Tipo di apertura"
|
|
Margin="0,0,0,5"/>
|
|
<ComboBox ItemsSource="{Binding OpeningTypeList}"
|
|
SelectedItem="{Binding SelOpeningType}"
|
|
DisplayMemberPath="Name"
|
|
Margin="0,0,0,10"/>
|
|
<TextBlock Text="Dimensione"
|
|
Margin="0,0,0,5"/>
|
|
<TextBox Text="{Binding dDimension}"
|
|
Margin="0,0,0,5"/>
|
|
<RadioButton Content="Handle"
|
|
IsChecked="{Binding bHasHandle}"
|
|
GroupName="HandleGroup"/>
|
|
</StackPanel>
|
|
</GroupBox>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
<GroupBox Header="Joints"
|
|
Margin="0,0,0,10">
|
|
<ItemsControl ItemsSource="{Binding SelArea.JointList}"
|
|
Padding="10,5">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<UniformGrid Columns="2"
|
|
Margin="0,5">
|
|
<TextBlock Text="{Binding nIndex}"/>
|
|
<ComboBox ItemsSource="{Binding JointTypeList}"
|
|
SelectedIndex="{Binding SelJointTypeIndex}"/>
|
|
</UniformGrid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</GroupBox>
|
|
<Expander IsExpanded="{Binding SelArea.BottomRail}"
|
|
Header="Bottom Rail"
|
|
Margin="0,0,0,10"
|
|
Style="{StaticResource Expander.CheckBoxHeader}">
|
|
<UniformGrid Columns="2"
|
|
Margin="0,5">
|
|
<TextBlock Text="Quantità"/>
|
|
<TextBox Text="{Binding SelArea.BottomRailQty}"/>
|
|
</UniformGrid>
|
|
</Expander>
|
|
<TextBlock Text="Modello ferramenta"
|
|
Margin="0,0,0,5"/>
|
|
<ComboBox ItemsSource="{Binding SelArea.HardwareList}"
|
|
SelectedItem="{Binding SelArea.SelHardware}"
|
|
DisplayMemberPath="sName"
|
|
Margin="0,0,0,10"/>
|
|
<Expander Header="Hardware Options"
|
|
Margin="0,0,0,10">
|
|
<ItemsControl ItemsSource="{Binding SelArea.HwdOptionList}"
|
|
Grid.IsSharedSizeScope="True"
|
|
Margin="0,5"
|
|
Padding="10">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid Visibility="{Binding OptVisibility}"
|
|
Margin="0,5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" SharedSizeGroup="HdwOptCol"/>
|
|
<ColumnDefinition Width="1*" MinWidth="30"/>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="{Binding sDescription}"/>
|
|
<ComboBox Grid.Column="1"
|
|
ItemsSource="{Binding ValueList}"
|
|
SelectedValue="{Binding sValue}"
|
|
DisplayMemberPath="sDescription"/>
|
|
<!--<TextBox Grid.Column="1"
|
|
Text="{Binding sValue}"/>-->
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</Expander>
|
|
<!--<TextBlock Text="Altezza maniglia"/>
|
|
<TextBox Text="{Binding SelArea.dHandleHeight}"/>-->
|
|
<Button Content="Calcola"
|
|
Command="{Binding ApplySash_Command}"
|
|
Margin="0,0,0,10"
|
|
Style="{StaticResource Button.ManageWindow.LeftBar}"/>
|
|
<Button Content="Elimina"
|
|
Command="{Binding DeleteArea_Command}"
|
|
Margin="0,0,0,10"
|
|
Style="{StaticResource Button.ManageWindow.LeftBar}"/>
|
|
|
|
</StackPanel>
|
|
</TabItem>
|
|
</TabControl>
|
|
<!--<StackPanel>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="Cerniere"/>
|
|
<TextBox Grid.Column="1" Text="{Binding dHeight}"/>
|
|
<TextBlock Text="Maniglia"/>
|
|
<TextBox Grid.Column="1" Text="{Binding dWidth}"/>
|
|
</UniformGrid>
|
|
</StackPanel>-->
|
|
</TabItem>
|
|
<TabItem Header="Fill"
|
|
Style="{StaticResource TabItem.ManageWindow}">
|
|
<TabControl SelectedIndex="{Binding SelArea, Converter={StaticResource AreaToSplitPageConverter}}"
|
|
Margin="0"
|
|
Padding="0"
|
|
BorderThickness="0">
|
|
<TabControl.ItemContainerStyle>
|
|
<Style TargetType="{x:Type TabItem}">
|
|
<Setter Property="Visibility" Value="Collapsed"/>
|
|
</Style>
|
|
</TabControl.ItemContainerStyle>
|
|
<TabItem>
|
|
<TextBlock Text="Select Area"
|
|
Style="{StaticResource TextBlock.ManageWindow.SelArea}"/>
|
|
</TabItem>
|
|
<TabItem>
|
|
<StackPanel Margin="10">
|
|
<UniformGrid Columns="1"
|
|
HorizontalAlignment="Center">
|
|
<RadioButton Content="Glass"
|
|
GroupName="FillType"
|
|
IsChecked="{Binding SelArea.bGlass_IsChecked}"
|
|
Margin="0,0,0,10"/>
|
|
<RadioButton Content="Wood"
|
|
GroupName="FillType"
|
|
IsChecked="{Binding SelArea.bWood_IsChecked}"
|
|
Margin="0,0,0,10"/>
|
|
</UniformGrid>
|
|
<Button Content="Calcola"
|
|
Command="{Binding ApplyFill_Command}"
|
|
Margin="0,0,0,10"
|
|
Style="{StaticResource Button.ManageWindow.LeftBar}"/>
|
|
<Button Content="Elimina"
|
|
Command="{Binding DeleteArea_Command}"
|
|
Margin="0,0,0,10"
|
|
Style="{StaticResource Button.ManageWindow.LeftBar}"/>
|
|
</StackPanel>
|
|
</TabItem>
|
|
</TabControl>
|
|
<!--<StackPanel>
|
|
<UniformGrid Columns="2">
|
|
<TextBlock Text="Cerniere"/>
|
|
<TextBox Grid.Column="1" Text="{Binding dHeight}"/>
|
|
<TextBlock Text="Maniglia"/>
|
|
<TextBox Grid.Column="1" Text="{Binding dWidth}"/>
|
|
</UniformGrid>
|
|
</StackPanel>-->
|
|
</TabItem>
|
|
<!--<TabItem Header="Hardware">
|
|
<StackPanel>
|
|
-->
|
|
<!--Quantita', ecc-->
|
|
<!--
|
|
<Button Content="Test"
|
|
Command="{Binding Read_Command}"/>
|
|
<Button Content="Test"
|
|
Command="{Binding Write_Command}"/>
|
|
</StackPanel>
|
|
</TabItem>-->
|
|
</TabControl>
|
|
</Grid>
|
|
<Grid Grid.Column="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="1*"/>
|
|
</Grid.RowDefinitions>
|
|
<StackPanel Orientation="Horizontal">
|
|
<local:ShowPanelV DataContext="{StaticResource ShowPanelVM}"/>
|
|
<local:ViewPanelV DataContext="{StaticResource ViewPanelVM}"/>
|
|
<RadioButton Content="2D"
|
|
IsChecked="{Binding bIsShow2DOn}"
|
|
Margin="0,0,5,0"
|
|
Style="{StaticResource ToggleButton.ToolBar.DShowMode}"/>
|
|
<RadioButton Content="S3D"
|
|
IsChecked="{Binding bIsShowSimple3DOn}"
|
|
Margin="0,0,5,0"
|
|
Style="{StaticResource ToggleButton.ToolBar.DShowMode}"/>
|
|
<RadioButton Content="3D"
|
|
IsChecked="{Binding bIsShow3DOn}"
|
|
Margin="0,0,5,0"
|
|
Style="{StaticResource ToggleButton.ToolBar.DShowMode}"/>
|
|
<ToggleButton Content="Ferramenta"
|
|
IsChecked="{Binding HardwareShowMode}"
|
|
Style="{StaticResource ToggleButton.ToolBar.DShowMode}"/>
|
|
</StackPanel>
|
|
<local:SceneHostV Grid.Row="1"/>
|
|
</Grid>
|
|
|
|
</Grid>
|