Commit ee9cc580 by wangonghui
parents 1d77b812 515bb9e4
...@@ -134,11 +134,16 @@ namespace VIZ.Package.Domain ...@@ -134,11 +134,16 @@ namespace VIZ.Package.Domain
public static string VizPreviewRenderer { get; set; } public static string VizPreviewRenderer { get; set; }
/// <summary> /// <summary>
/// 当前页 /// 当前页或模板
/// </summary> /// </summary>
public static PageModelBase CurrentPage { get; set; } public static PageModelBase CurrentPage { get; set; }
/// <summary> /// <summary>
/// 当前上板的页或模板
/// </summary>
public static PageModelBase CurrentTake { get; set; }
/// <summary>
/// 场景是否正在加载 /// 场景是否正在加载
/// </summary> /// </summary>
public static bool IsSceneLoading { get; set; } public static bool IsSceneLoading { get; set; }
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VIZ.Package.Domain
{
/// <summary>
/// 菜单项类型
/// </summary>
public enum MenuItemType
{
/// <summary>
/// 按钮
/// </summary>
Button,
/// <summary>
/// 勾选
/// </summary>
CheckBox,
/// <summary>
/// 分隔线
/// </summary>
Separator
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIZ.Framework.Core;
namespace VIZ.Package.Domain.Model
{
/// <summary>
/// 菜单项
/// </summary>
public class MenuItemModel : ModelBase
{
#region Icon -- 图标
private string icon;
/// <summary>
/// 图标
/// </summary>
public string Icon
{
get { return icon; }
set { icon = value; this.RaisePropertyChanged(nameof(Icon)); }
}
#endregion
#region Header -- 头部
private object header;
/// <summary>
/// 头部
/// </summary>
public object Header
{
get { return header; }
set { header = value; this.RaisePropertyChanged(nameof(Header)); }
}
#endregion
#region Data -- 数据
private object data;
/// <summary>
/// 数据
/// </summary>
public object Data
{
get { return data; }
set { data = value; this.RaisePropertyChanged(nameof(Data)); }
}
#endregion
#region Type -- 菜单类型
private MenuItemType type;
/// <summary>
/// 菜单类型
/// </summary>
public MenuItemType Type
{
get { return type; }
set { type = value; this.RaisePropertyChanged(nameof(Type)); }
}
#endregion
#region Command -- 命令
private VCommand command;
/// <summary>
/// 命令
/// </summary>
public VCommand Command
{
get { return command; }
set { command = value; this.RaisePropertyChanged(nameof(Command)); }
}
#endregion
}
}
...@@ -157,5 +157,19 @@ namespace VIZ.Package.Domain ...@@ -157,5 +157,19 @@ namespace VIZ.Package.Domain
} }
#endregion #endregion
#region IsTake -- 是否上板
private bool isTake;
/// <summary>
/// 是否上板
/// </summary>
public bool IsTake
{
get { return isTake; }
set { isTake = value; this.RaisePropertyChanged(nameof(IsTake)); }
}
#endregion
} }
} }
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
<Compile Include="Core\GridColumnDefinition.cs" /> <Compile Include="Core\GridColumnDefinition.cs" />
<Compile Include="Core\IHotkeySupport.cs" /> <Compile Include="Core\IHotkeySupport.cs" />
<Compile Include="Enum\ConnGroupStatus.cs" /> <Compile Include="Enum\ConnGroupStatus.cs" />
<Compile Include="Enum\MenuItemType.cs" />
<Compile Include="Enum\ModulePluginIds.cs" /> <Compile Include="Enum\ModulePluginIds.cs" />
<Compile Include="Enum\ViewServiceKeys.cs" /> <Compile Include="Enum\ViewServiceKeys.cs" />
<Compile Include="Info\VizTreeNodeInfo.cs" /> <Compile Include="Info\VizTreeNodeInfo.cs" />
...@@ -106,6 +107,7 @@ ...@@ -106,6 +107,7 @@
<Compile Include="Model\ControlObject\ControlObjectModel.cs" /> <Compile Include="Model\ControlObject\ControlObjectModel.cs" />
<Compile Include="Model\File\FileModel.cs" /> <Compile Include="Model\File\FileModel.cs" />
<Compile Include="Model\File\FolderModel.cs" /> <Compile Include="Model\File\FolderModel.cs" />
<Compile Include="Model\Menu\MenuItemModel.cs" />
<Compile Include="Model\Page\PageGroupModel.cs" /> <Compile Include="Model\Page\PageGroupModel.cs" />
<Compile Include="Model\Page\PageModel.cs" /> <Compile Include="Model\Page\PageModel.cs" />
<Compile Include="Model\Page\PageModelBase.cs" /> <Compile Include="Model\Page\PageModelBase.cs" />
...@@ -160,6 +162,8 @@ ...@@ -160,6 +162,8 @@
<Name>VIZ.Package.Storage</Name> <Name>VIZ.Package.Storage</Name>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<ItemGroup /> <ItemGroup>
<Folder Include="Message\Control\" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>
\ No newline at end of file
...@@ -277,5 +277,8 @@ ...@@ -277,5 +277,8 @@
<Resource Include="Icons\update_36x36.png" /> <Resource Include="Icons\update_36x36.png" />
<Resource Include="Icons\update_hover_36x36.png" /> <Resource Include="Icons\update_hover_36x36.png" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Resource Include="Icons\down_32x32.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>
\ No newline at end of file
...@@ -96,7 +96,8 @@ namespace VIZ.Package.Module ...@@ -96,7 +96,8 @@ namespace VIZ.Package.Module
service.TryUpdateControlFieldListValue(); service.TryUpdateControlFieldListValue();
// 执行上版流程 // 执行上版流程
this.Execute((obj, view, conn) => this.Execute(
action: (obj, view, conn) =>
{ {
this.vizCommandService.SetEnabledUpdate(conn, false); this.vizCommandService.SetEnabledUpdate(conn, false);
try try
...@@ -118,6 +119,24 @@ namespace VIZ.Package.Module ...@@ -118,6 +119,24 @@ namespace VIZ.Package.Module
} }
this.vizCommandService.SetEnabledUpdate(conn, true); this.vizCommandService.SetEnabledUpdate(conn, true);
this.vizCommandService.Start(conn, ApplicationDomainEx.CurrentPage.Layer); this.vizCommandService.Start(conn, ApplicationDomainEx.CurrentPage.Layer);
},
over: () =>
{
// 设置当前Take的模板
WPFHelper.BeginInvoke(() =>
{
if (ApplicationDomainEx.CurrentTake != null)
{
ApplicationDomainEx.CurrentTake.IsTake = false;
}
ApplicationDomainEx.CurrentTake = ApplicationDomainEx.CurrentPage;
if (ApplicationDomainEx.CurrentTake != null)
{
ApplicationDomainEx.CurrentTake.IsTake = true;
}
});
}); });
} }
...@@ -135,11 +154,13 @@ namespace VIZ.Package.Module ...@@ -135,11 +154,13 @@ namespace VIZ.Package.Module
/// </summary> /// </summary>
private void Continue() private void Continue()
{ {
this.Execute((obj, view, conn) => this.Execute(
action: (obj, view, conn) =>
{ {
this.vizCommandService.TakeContinue(conn, ApplicationDomainEx.CurrentPage.Layer); this.vizCommandService.TakeContinue(conn, ApplicationDomainEx.CurrentPage.Layer);
view?.TakeContinue(conn); view?.TakeContinue(conn);
}); },
over: null);
} }
#endregion #endregion
...@@ -156,10 +177,23 @@ namespace VIZ.Package.Module ...@@ -156,10 +177,23 @@ namespace VIZ.Package.Module
/// </summary> /// </summary>
private void TakeOut() private void TakeOut()
{ {
this.Execute((obj, view, conn) => this.Execute(
action: (obj, view, conn) =>
{ {
this.vizCommandService.TakeOut(conn, ApplicationDomainEx.CurrentPage.Layer); this.vizCommandService.TakeOut(conn, ApplicationDomainEx.CurrentPage.Layer);
view?.TakeOut(conn); view?.TakeOut(conn);
},
over: () =>
{
// 清理Take状态
WPFHelper.BeginInvoke(() =>
{
if (ApplicationDomainEx.CurrentTake != null)
{
ApplicationDomainEx.CurrentTake.IsTake = false;
ApplicationDomainEx.CurrentTake = null;
}
});
}); });
} }
...@@ -186,7 +220,8 @@ namespace VIZ.Package.Module ...@@ -186,7 +220,8 @@ namespace VIZ.Package.Module
service.TryUpdateControlFieldListValue(); service.TryUpdateControlFieldListValue();
// 执行更新流程 // 执行更新流程
this.Execute((obj, view, conn) => this.Execute(
action: (obj, view, conn) =>
{ {
this.vizCommandService.SetEnabledUpdate(conn, false); this.vizCommandService.SetEnabledUpdate(conn, false);
try try
...@@ -203,7 +238,8 @@ namespace VIZ.Package.Module ...@@ -203,7 +238,8 @@ namespace VIZ.Package.Module
log.Error(ex); log.Error(ex);
} }
this.vizCommandService.SetEnabledUpdate(conn, true); this.vizCommandService.SetEnabledUpdate(conn, true);
}); },
over: null);
} }
#endregion #endregion
...@@ -262,7 +298,8 @@ namespace VIZ.Package.Module ...@@ -262,7 +298,8 @@ namespace VIZ.Package.Module
/// 执行 /// 执行
/// </summary> /// </summary>
/// <param name="action">行为</param> /// <param name="action">行为</param>
private void Execute(Action<ControlObjectModel, IPluginView, ConnModel> action) /// <param name="over">执行完成时处理</param>
private void Execute(Action<ControlObjectModel, IPluginView, ConnModel> action, Action over)
{ {
// 是否拥有打开的页或模板页 // 是否拥有打开的页或模板页
if (ApplicationDomainEx.CurrentPage == null) if (ApplicationDomainEx.CurrentPage == null)
...@@ -340,6 +377,15 @@ namespace VIZ.Package.Module ...@@ -340,6 +377,15 @@ namespace VIZ.Package.Module
} }
} }
} }
try
{
over?.Invoke();
}
catch (Exception ex)
{
log.Error(ex);
}
} }
} }
} }
\ No newline at end of file
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
<ColumnDefinition Width="*"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="30"></ColumnDefinition> <ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<dxe:TextEdit x:Name="PART_Text" IsReadOnly="True" EditValueChanged="EditValueChanged" Margin="1"></dxe:TextEdit> <dxe:TextEdit x:Name="PART_Text" IsReadOnly="True" EditValueChanged="EditValueChanged" Margin="1"
Background="Transparent" ShowBorder="False"></dxe:TextEdit>
<Button x:Name="PART_Show" Content=".." Grid.Column="1" Click="EditClick"></Button> <Button x:Name="PART_Show" Content=".." Grid.Column="1" Click="EditClick"></Button>
</Grid> </Grid>
</local:ListCellEditBase> </local:ListCellEditBase>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
mc:Ignorable="d" mc:Ignorable="d"
d:DesignHeight="30" d:DesignWidth="200"> d:DesignHeight="30" d:DesignWidth="200">
<Grid> <Grid>
<dxe:TextEdit x:Name="PART_Text" Margin="1" <dxe:TextEdit x:Name="PART_Text" Margin="1" Background="Transparent" ShowBorder="False"
MaskType="Numeric" EditValueChanged="EditValueChanged"></dxe:TextEdit> MaskType="Numeric" EditValueChanged="EditValueChanged"></dxe:TextEdit>
</Grid> </Grid>
</local:ListCellEditBase> </local:ListCellEditBase>
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
<ColumnDefinition Width="30"></ColumnDefinition> <ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Image Width="16" Height="16" Source="/VIZ.Package.Module.Resource;component/Icons/image_20x20.png"></Image> <Image Width="16" Height="16" Source="/VIZ.Package.Module.Resource;component/Icons/image_20x20.png"></Image>
<dxe:TextEdit x:Name="PART_Text" Grid.Column="1" IsReadOnly="True" EditValueChanged="EditValueChanged" Margin="1"></dxe:TextEdit> <dxe:TextEdit x:Name="PART_Text" Grid.Column="1" IsReadOnly="True" EditValueChanged="EditValueChanged" Margin="1"
Background="Transparent" ShowBorder="False"></dxe:TextEdit>
<Button x:Name="PART_Show" Content=".." Grid.Column="2" Click="EditClick"></Button> <Button x:Name="PART_Show" Content=".." Grid.Column="2" Click="EditClick"></Button>
</Grid> </Grid>
</local:ListCellEditBase> </local:ListCellEditBase>
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
<ColumnDefinition Width="30"></ColumnDefinition> <ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Image Width="16" Height="16" Source="/VIZ.Package.Module.Resource;component/Icons/image_20x20.png"></Image> <Image Width="16" Height="16" Source="/VIZ.Package.Module.Resource;component/Icons/image_20x20.png"></Image>
<dxe:TextEdit x:Name="PART_Text" Grid.Column="1" IsReadOnly="True" EditValueChanged="EditValueChanged" Margin="1"></dxe:TextEdit> <dxe:TextEdit x:Name="PART_Text" Grid.Column="1" IsReadOnly="True" EditValueChanged="EditValueChanged" Margin="1"
Background="Transparent" ShowBorder="False"></dxe:TextEdit>
<Button x:Name="PART_Show" Content=".." Grid.Column="2" Click="EditClick"></Button> <Button x:Name="PART_Show" Content=".." Grid.Column="2" Click="EditClick"></Button>
</Grid> </Grid>
</local:ListCellEditBase> </local:ListCellEditBase>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
mc:Ignorable="d" mc:Ignorable="d"
d:DesignHeight="30" d:DesignWidth="200"> d:DesignHeight="30" d:DesignWidth="200">
<Grid> <Grid>
<dxe:TextEdit x:Name="PART_Text" Margin="1" <dxe:TextEdit x:Name="PART_Text" Margin="1" Background="Transparent" ShowBorder="False"
MaskType="Numeric" Mask="d" EditValueChanged="EditValueChanged"></dxe:TextEdit> MaskType="Numeric" Mask="d" EditValueChanged="EditValueChanged"></dxe:TextEdit>
</Grid> </Grid>
</local:ListCellEditBase> </local:ListCellEditBase>
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
<ColumnDefinition Width="*"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="30"></ColumnDefinition> <ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<dxe:TextEdit x:Name="PART_Text" EditValueChanged="EditValueChanged" Margin="1"></dxe:TextEdit> <dxe:TextEdit x:Name="PART_Text" EditValueChanged="EditValueChanged" Margin="1"
Background="Transparent" ShowBorder="False"></dxe:TextEdit>
<Button x:Name="PART_Show" Content=".." Grid.Column="1" Click="EditClick"></Button> <Button x:Name="PART_Show" Content=".." Grid.Column="1" Click="EditClick"></Button>
</Grid> </Grid>
</local:ListCellEditBase> </local:ListCellEditBase>
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
<ColumnDefinition Width="*"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="30"></ColumnDefinition> <ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<dxe:TextEdit x:Name="PART_Text" EditValueChanged="EditValueChanged" Margin="1"></dxe:TextEdit> <dxe:TextEdit x:Name="PART_Text" EditValueChanged="EditValueChanged" Margin="1"
Background="Transparent" ShowBorder="False"></dxe:TextEdit>
<Button x:Name="PART_Show" Content=".." Grid.Column="1" Click="EditClick"></Button> <Button x:Name="PART_Show" Content=".." Grid.Column="1" Click="EditClick"></Button>
</Grid> </Grid>
</local:ListCellEditBase> </local:ListCellEditBase>
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
<ColumnDefinition Width="*"></ColumnDefinition> <ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="30"></ColumnDefinition> <ColumnDefinition Width="30"></ColumnDefinition>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<dxe:TextEdit x:Name="PART_Text" IsReadOnly="True" EditValueChanged="EditValueChanged" Margin="1"></dxe:TextEdit> <dxe:TextEdit x:Name="PART_Text" IsReadOnly="True" EditValueChanged="EditValueChanged" Margin="1"
Background="Transparent" ShowBorder="False"></dxe:TextEdit>
<Button x:Name="PART_Show" Content=".." Grid.Column="1" Click="EditClick"></Button> <Button x:Name="PART_Show" Content=".." Grid.Column="1" Click="EditClick"></Button>
</Grid> </Grid>
</local:ListCellEditBase> </local:ListCellEditBase>
...@@ -123,10 +123,12 @@ ...@@ -123,10 +123,12 @@
</ContextMenu> </ContextMenu>
</dxg:GridControl.ContextMenu> </dxg:GridControl.ContextMenu>
<dxg:GridControl.View> <dxg:GridControl.View>
<dxg:TableView x:Name="tabView" AllowEditing="True" ShowIndicator="False" ScrollAnimationMode="EaseInOut" AllowScrollAnimation="True" <dxg:TableView x:Name="tabView" AllowEditing="True" ShowIndicator="False"
IsColumnMenuEnabled="False" IsColumnMenuEnabled="False"
NavigationStyle="Cell" EditorShowMode="MouseDown" ShowVerticalLines="False" NavigationStyle="Cell" EditorShowMode="MouseDown" ShowVerticalLines="False"
ShowGroupPanel="False" ShowHorizontalLines="False"
AlternateRowBackground="#05ffffff"
ShowGroupPanel="False" RowMinHeight="24"
AllowDrop="True" AllowDrop="True"
ShowBandsPanel="False" ShowBandsPanel="False"
ShowTotalSummary="False" ShowTotalSummary="False"
......
...@@ -8,10 +8,12 @@ using System.Windows.Controls; ...@@ -8,10 +8,12 @@ using System.Windows.Controls;
using System.Windows.Data; using System.Windows.Data;
using System.Windows.Documents; using System.Windows.Documents;
using System.Windows.Input; using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Media; using System.Windows.Media;
using System.Windows.Media.Imaging; using System.Windows.Media.Imaging;
using System.Windows.Shapes; using System.Windows.Shapes;
using VIZ.Framework.Core; using VIZ.Framework.Core;
using VIZ.Package.Domain;
namespace VIZ.Package.Module namespace VIZ.Package.Module
{ {
...@@ -30,6 +32,11 @@ namespace VIZ.Package.Module ...@@ -30,6 +32,11 @@ namespace VIZ.Package.Module
} }
/// <summary> /// <summary>
/// 窗口句柄辅助类
/// </summary>
private WindowInteropHelper windowInteropHelper;
/// <summary>
/// 窗口关闭之前触发 /// 窗口关闭之前触发
/// </summary> /// </summary>
private void FieldEditWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) private void FieldEditWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
...@@ -38,6 +45,16 @@ namespace VIZ.Package.Module ...@@ -38,6 +45,16 @@ namespace VIZ.Package.Module
this.ShowInTaskbar = false; this.ShowInTaskbar = false;
this.Visibility = Visibility.Collapsed; this.Visibility = Visibility.Collapsed;
if (this.Owner == null)
return;
if (this.windowInteropHelper == null)
{
this.windowInteropHelper = new WindowInteropHelper(this.Owner);
}
Win32Helper.SetWindowPos(this.windowInteropHelper.Handle, new IntPtr(Win32Helper.HWND_NOTOPMOST), 0, 0, 0, 0, Win32Helper.SWP_NOMOVE | Win32Helper.SWP_NOSIZE);
} }
} }
} }
...@@ -38,9 +38,11 @@ ...@@ -38,9 +38,11 @@
<dxg:GridColumn Header="值" FieldName="Value" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False" Width="*" AllowResizing="True"></dxg:GridColumn> <dxg:GridColumn Header="值" FieldName="Value" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False" Width="*" AllowResizing="True"></dxg:GridColumn>
</dxg:GridControl.Columns> </dxg:GridControl.Columns>
<dxg:GridControl.View> <dxg:GridControl.View>
<dxg:TreeListView AllowEditing="False" ShowIndicator="False" ScrollAnimationMode="EaseInOut" AllowScrollAnimation="True" <dxg:TreeListView AllowEditing="False" ShowIndicator="False"
IsColumnMenuEnabled="False" IsColumnMenuEnabled="False"
NavigationStyle="Row" ShowVerticalLines="False" NavigationStyle="Row" ShowVerticalLines="False"
ShowHorizontalLines="False"
AlternateRowBackground="#05ffffff"
ShowBandsPanel="False" ShowBandsPanel="False"
ShowTotalSummary="False" ShowTotalSummary="False"
ShowFixedTotalSummary="False" ShowFixedTotalSummary="False"
......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using VIZ.Package.Domain;
using VIZ.Package.Domain.Model;
namespace VIZ.Package.Module
{
/// <summary>
/// 主视图菜单模板选择器
/// </summary>
public class MainTopViewMenuDataTemplateSelector : DataTemplateSelector
{
/// <summary>
/// 勾选框数据模型
/// </summary>
public DataTemplate CheckBoxDataTemplate { get; set; }
/// <summary>
/// 按钮数据模板
/// </summary>
public DataTemplate ButtonDataTemplate { get; set; }
/// <summary>
/// 分隔线数据模板
/// </summary>
public DataTemplate SeparatorTemplate { get; set; }
/// <summary>
/// 选择模板
/// </summary>
/// <returns></returns>
public override DataTemplate SelectTemplate(object item, DependencyObject container)
{
MenuItemModel model = item as MenuItemModel;
if (model == null)
return null;
switch (model.Type)
{
case MenuItemType.Button: return this.ButtonDataTemplate;
case MenuItemType.CheckBox: return this.CheckBoxDataTemplate;
case MenuItemType.Separator: return this.SeparatorTemplate;
}
return null;
}
}
}
...@@ -18,12 +18,31 @@ ...@@ -18,12 +18,31 @@
<UserControl.Resources> <UserControl.Resources>
<fcore:Bool2BoolConverterSimple x:Key="Bool2BoolConverterSimple"></fcore:Bool2BoolConverterSimple> <fcore:Bool2BoolConverterSimple x:Key="Bool2BoolConverterSimple"></fcore:Bool2BoolConverterSimple>
<DataTemplate x:Key="ViewItemTemplate"> <local:MainTopViewMenuDataTemplateSelector x:Key="MainTopViewMenuDataTemplateSelector">
<ContentControl> <local:MainTopViewMenuDataTemplateSelector.ButtonDataTemplate>
<dxb:BarCheckItem Content="{Binding Name}" <DataTemplate>
IsChecked="{Binding Path=IsClosed,Mode=TwoWay,Converter={StaticResource Bool2BoolConverterSimple}}"></dxb:BarCheckItem> <ContentControl>
</ContentControl> <dxb:BarButtonItem Glyph="{Binding Icon}" Content="{Binding Header}"
</DataTemplate> Command="{Binding Path=Command}"></dxb:BarButtonItem>
</ContentControl>
</DataTemplate>
</local:MainTopViewMenuDataTemplateSelector.ButtonDataTemplate>
<local:MainTopViewMenuDataTemplateSelector.CheckBoxDataTemplate>
<DataTemplate>
<ContentControl>
<dxb:BarCheckItem Content="{Binding Data.Name}"
IsChecked="{Binding Path=Data.IsClosed,Mode=TwoWay,Converter={StaticResource Bool2BoolConverterSimple}}"></dxb:BarCheckItem>
</ContentControl>
</DataTemplate>
</local:MainTopViewMenuDataTemplateSelector.CheckBoxDataTemplate>
<local:MainTopViewMenuDataTemplateSelector.SeparatorTemplate>
<DataTemplate>
<ContentControl>
<dxb:BarItemSeparator></dxb:BarItemSeparator>
</ContentControl>
</DataTemplate>
</local:MainTopViewMenuDataTemplateSelector.SeparatorTemplate>
</local:MainTopViewMenuDataTemplateSelector>
</UserControl.Resources> </UserControl.Resources>
...@@ -60,11 +79,8 @@ ...@@ -60,11 +79,8 @@
</dxb:BarSubItem> </dxb:BarSubItem>
<dxb:BarSubItem Content="设置" Command="{Binding Path=SettingCommand}"> <dxb:BarSubItem Content="设置" Command="{Binding Path=SettingCommand}">
</dxb:BarSubItem> </dxb:BarSubItem>
<dxb:BarSubItem Content="视图" ItemLinksSource="{Binding Path=ItemsSource}" ItemTemplate="{StaticResource ViewItemTemplate}"> <dxb:BarSubItem Content="视图" ItemLinksSource="{Binding Path=ItemsSource}"
</dxb:BarSubItem> ItemTemplateSelector="{StaticResource MainTopViewMenuDataTemplateSelector}">
<dxb:BarSubItem Content="布局">
<dxb:BarButtonItem Content="重置布局" Glyph="/VIZ.Package.Module.Resource;component/Icons/top_icon_layout_20x20.png"
Command="{Binding Path=ResetLayoutCommand}" />
</dxb:BarSubItem> </dxb:BarSubItem>
<dxb:BarSubItem Content="帮助"> <dxb:BarSubItem Content="帮助">
<dxb:BarButtonItem Content="关于" Glyph="/VIZ.Package.Module.Resource;component/Icons/top_icon_about_20x20.png" <dxb:BarButtonItem Content="关于" Glyph="/VIZ.Package.Module.Resource;component/Icons/top_icon_about_20x20.png"
......
...@@ -26,7 +26,7 @@ namespace VIZ.Package.Module ...@@ -26,7 +26,7 @@ namespace VIZ.Package.Module
public MainTopView() public MainTopView()
{ {
InitializeComponent(); InitializeComponent();
WPFHelper.BindingViewModel(this, new MainTopViewModel()); WPFHelper.BindingViewModel(this, new MainTopViewModel());
} }
} }
......
...@@ -12,6 +12,7 @@ using System.Windows; ...@@ -12,6 +12,7 @@ using System.Windows;
using System.Windows.Forms; using System.Windows.Forms;
using VIZ.Framework.Core; using VIZ.Framework.Core;
using VIZ.Package.Domain; using VIZ.Package.Domain;
using VIZ.Package.Domain.Model;
using VIZ.Package.Storage; using VIZ.Package.Storage;
namespace VIZ.Package.Module namespace VIZ.Package.Module
...@@ -107,11 +108,11 @@ namespace VIZ.Package.Module ...@@ -107,11 +108,11 @@ namespace VIZ.Package.Module
#region ItemsSource -- 视图项 #region ItemsSource -- 视图项
private ObservableCollection<PluginInfo> itemsSource; private ObservableCollection<MenuItemModel> itemsSource;
/// <summary> /// <summary>
/// 视图项 /// 视图项
/// </summary> /// </summary>
public ObservableCollection<PluginInfo> ItemsSource public ObservableCollection<MenuItemModel> ItemsSource
{ {
get { return itemsSource; } get { return itemsSource; }
set { itemsSource = value; this.RaisePropertyChanged(nameof(ItemsSource)); } set { itemsSource = value; this.RaisePropertyChanged(nameof(ItemsSource)); }
...@@ -140,9 +141,26 @@ namespace VIZ.Package.Module ...@@ -140,9 +141,26 @@ namespace VIZ.Package.Module
this.IsAlreadyLoaded = true; this.IsAlreadyLoaded = true;
this.ItemsSource = ApplicationDomainEx.PluginInfos.Where(p => (p.Group == ApplicationConstants.APPLICATION_GROUP_NAME || List<PluginInfo> plugins = ApplicationDomainEx.PluginInfos.Where(p => (p.Group == ApplicationConstants.APPLICATION_GROUP_NAME ||
p.Group == ApplicationDomainEx.VizConfig.PluginGroup) && p.Group == ApplicationDomainEx.VizConfig.PluginGroup) &&
p.PluginType == PluginType.Module).ToObservableCollection(); p.PluginType == PluginType.Module).ToList();
var items = plugins.Select(p => new MenuItemModel
{
Data = p,
Type = MenuItemType.CheckBox
}).ToList();
items.Add(new MenuItemModel { Type = MenuItemType.Separator });
items.Add(new MenuItemModel
{
Header = "重置布局",
Icon = "/VIZ.Package.Module.Resource;component/Icons/top_icon_layout_20x20.png",
Type = MenuItemType.Button,
Command = this.ResetLayoutCommand
});
this.ItemsSource = items.ToObservableCollection();
} }
#endregion #endregion
......
...@@ -29,7 +29,7 @@ namespace VIZ.Package.Module ...@@ -29,7 +29,7 @@ namespace VIZ.Package.Module
/// <summary> /// <summary>
/// 插件名称 /// 插件名称
/// </summary> /// </summary>
public const string PLUGIN_NAME = "节目单"; public const string PLUGIN_NAME = "播出单";
/// <summary> /// <summary>
/// 注册 /// 注册
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
xmlns:local="clr-namespace:VIZ.Package.Module" xmlns:local="clr-namespace:VIZ.Package.Module"
d:DataContext="{d:DesignInstance Type=local:PageAddViewModel}" d:DataContext="{d:DesignInstance Type=local:PageAddViewModel}"
mc:Ignorable="d" WindowStartupLocation="CenterScreen" mc:Ignorable="d" WindowStartupLocation="CenterScreen"
Title="添加" Height="330" Width="600"> Title="添加至播出单" Height="330" Width="600">
<dxmvvm:Interaction.Behaviors> <dxmvvm:Interaction.Behaviors>
<dxmvvm:EventToCommand EventName="Loaded" Command="{Binding Path=LoadedCommand}"></dxmvvm:EventToCommand> <dxmvvm:EventToCommand EventName="Loaded" Command="{Binding Path=LoadedCommand}"></dxmvvm:EventToCommand>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
SelectedItem="{Binding Path=Layer,Mode=TwoWay}"></dxe:ComboBoxEdit> SelectedItem="{Binding Path=Layer,Mode=TwoWay}"></dxe:ComboBoxEdit>
<!-- 插件 --> <!-- 插件 -->
<TextBlock Text="插件:" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0"></TextBlock> <TextBlock Text="数据模板:" Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0"></TextBlock>
<dxe:ComboBoxEdit Grid.Row="3" Grid.Column="1" Height="30" IsTextEditable="False" <dxe:ComboBoxEdit Grid.Row="3" Grid.Column="1" Height="30" IsTextEditable="False"
ItemsSource="{Binding Path=TemplatePlugins}" DisplayMember="Name" ItemsSource="{Binding Path=TemplatePlugins}" DisplayMember="Name"
SelectedItem="{Binding Path=SelectedTemplatePlugin,Mode=TwoWay}"></dxe:ComboBoxEdit> SelectedItem="{Binding Path=SelectedTemplatePlugin,Mode=TwoWay}"></dxe:ComboBoxEdit>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
xmlns:local="clr-namespace:VIZ.Package.Module" xmlns:local="clr-namespace:VIZ.Package.Module"
d:DataContext="{d:DesignInstance Type=local:PageGroupRenameViewModel}" d:DataContext="{d:DesignInstance Type=local:PageGroupRenameViewModel}"
mc:Ignorable="d" WindowStartupLocation="CenterScreen" mc:Ignorable="d" WindowStartupLocation="CenterScreen"
Title="节目单命名" Height="160" Width="400"> Title="播出单命名" Height="160" Width="400">
<dx:ThemedWindow.Resources> <dx:ThemedWindow.Resources>
<fcore:StringNotNull2BoolConverter x:Key="StringNotNull2BoolConverter"></fcore:StringNotNull2BoolConverter> <fcore:StringNotNull2BoolConverter x:Key="StringNotNull2BoolConverter"></fcore:StringNotNull2BoolConverter>
......
...@@ -36,6 +36,9 @@ ...@@ -36,6 +36,9 @@
<fcore:Bool2SolidColorBrushConverter x:Key="RowHandleBgConverter" <fcore:Bool2SolidColorBrushConverter x:Key="RowHandleBgConverter"
TrueBrush="#FF0078D7" TrueBrush="#FF0078D7"
FalseBrush="Transparent"></fcore:Bool2SolidColorBrushConverter> FalseBrush="Transparent"></fcore:Bool2SolidColorBrushConverter>
<fcore:Bool2SolidColorBrushConverter x:Key="RowHandleTakeConverter"
TrueBrush="#FF67ad5b"
FalseBrush="Transparent"></fcore:Bool2SolidColorBrushConverter>
<!-- 列模板选择器 --> <!-- 列模板选择器 -->
<common:ColumnDefintionGeneratorTemplateSelector x:Key="ColumnDefintionGeneratorTemplateSelector"> <common:ColumnDefintionGeneratorTemplateSelector x:Key="ColumnDefintionGeneratorTemplateSelector">
...@@ -50,6 +53,8 @@ ...@@ -50,6 +53,8 @@
<dxg:GridColumn.CellTemplate> <dxg:GridColumn.CellTemplate>
<DataTemplate> <DataTemplate>
<Grid Background="{Binding Path=Row.IsOpen,Converter={StaticResource RowHandleBgConverter}}"> <Grid Background="{Binding Path=Row.IsOpen,Converter={StaticResource RowHandleBgConverter}}">
<Rectangle Fill="{Binding Path=Row.IsTake,Converter={StaticResource RowHandleTakeConverter}}"
Width="10" HorizontalAlignment="Left"></Rectangle>
<TextBlock Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding RowData.RowHandle,Converter={StaticResource RowHandleConverter}}"></TextBlock> <TextBlock Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding RowData.RowHandle,Converter={StaticResource RowHandleConverter}}"></TextBlock>
</Grid> </Grid>
</DataTemplate> </DataTemplate>
...@@ -221,7 +226,7 @@ ...@@ -221,7 +226,7 @@
<common:ColumnDefintionGeneratorTemplate.DataTemplate> <common:ColumnDefintionGeneratorTemplate.DataTemplate>
<DataTemplate> <DataTemplate>
<ContentControl> <ContentControl>
<dxg:GridColumn Header="插件" FieldName="PluginName" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False" <dxg:GridColumn Header="数据模板" FieldName="PluginName" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False"
Visible="{Binding Path=Visible,Mode=TwoWay}" Visible="{Binding Path=Visible,Mode=TwoWay}"
VisibleIndex="{Binding Path=VisibleIndex,Mode=TwoWay}"></dxg:GridColumn> VisibleIndex="{Binding Path=VisibleIndex,Mode=TwoWay}"></dxg:GridColumn>
</ContentControl> </ContentControl>
...@@ -301,12 +306,13 @@ ...@@ -301,12 +306,13 @@
</dxg:GridControl.ContextMenu> </dxg:GridControl.ContextMenu>
<dxg:GridControl.View> <dxg:GridControl.View>
<dxg:TableView IsColumnMenuEnabled="True" ScrollAnimationMode="EaseInOut" AllowScrollAnimation="True" <dxg:TableView IsColumnMenuEnabled="True"
IsColumnChooserVisible="{Binding ElementName=uc, Path=DataContext.IsColumnChooserVisible,Mode=TwoWay}" IsColumnChooserVisible="{Binding ElementName=uc, Path=DataContext.IsColumnChooserVisible,Mode=TwoWay}"
AllowEditing="True" ShowIndicator="False" RowMinHeight="69.5" AllowEditing="True" ShowIndicator="False" RowMinHeight="69.5"
NavigationStyle="Cell" ShowVerticalLines="False" NavigationStyle="Cell" ShowVerticalLines="False" ShowHorizontalLines="False"
ShowGroupPanel="False" EditorShowMode="MouseDown" ShowGroupPanel="False" EditorShowMode="MouseDown"
AllowDragDrop="True" AllowDragDrop="True"
AlternateRowBackground="#05ffffff"
ShowBandsPanel="False" ShowBandsPanel="False"
ShowTotalSummary="False" ShowTotalSummary="False"
ShowFixedTotalSummary="False" ShowFixedTotalSummary="False"
......
...@@ -496,6 +496,13 @@ namespace VIZ.Package.Module ...@@ -496,6 +496,13 @@ namespace VIZ.Package.Module
// 开始清理 // 开始清理
List<ConnGroupModel> groups = ApplicationDomainEx.ConnGroups.ToList(); List<ConnGroupModel> groups = ApplicationDomainEx.ConnGroups.ToList();
this.pageModelController.BeginTakeClear(groups); this.pageModelController.BeginTakeClear(groups);
// 清理Take状态
if (ApplicationDomainEx.CurrentTake != null)
{
ApplicationDomainEx.CurrentTake.IsTake = false;
ApplicationDomainEx.CurrentTake = null;
}
} }
#endregion #endregion
......
...@@ -29,7 +29,7 @@ namespace VIZ.Package.Module ...@@ -29,7 +29,7 @@ namespace VIZ.Package.Module
/// <summary> /// <summary>
/// 插件名称 /// 插件名称
/// </summary> /// </summary>
public const string PLUGIN_NAME = "模板"; public const string PLUGIN_NAME = "模板列表";
/// <summary> /// <summary>
/// 注册 /// 注册
......
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
<fcore:Bool2SolidColorBrushConverter x:Key="RowHandleBgConverter" <fcore:Bool2SolidColorBrushConverter x:Key="RowHandleBgConverter"
TrueBrush="#FF0078D7" TrueBrush="#FF0078D7"
FalseBrush="Transparent"></fcore:Bool2SolidColorBrushConverter> FalseBrush="Transparent"></fcore:Bool2SolidColorBrushConverter>
<fcore:Bool2SolidColorBrushConverter x:Key="RowHandleTakeConverter"
TrueBrush="#FF67ad5b"
FalseBrush="Transparent"></fcore:Bool2SolidColorBrushConverter>
</ResourceDictionary> </ResourceDictionary>
</UserControl.Resources> </UserControl.Resources>
...@@ -42,7 +45,7 @@ ...@@ -42,7 +45,7 @@
<ContextMenu> <ContextMenu>
<MenuItem Header="打开" Command="{Binding Path=PlacementTarget.DataContext.OpenScenePageCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/> <MenuItem Header="打开" Command="{Binding Path=PlacementTarget.DataContext.OpenScenePageCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<Separator></Separator> <Separator></Separator>
<MenuItem Header="添加至节目单" Command="{Binding Path=PlacementTarget.DataContext.AddToPageGroupCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/> <MenuItem Header="添加至播出单" Command="{Binding Path=PlacementTarget.DataContext.AddToPageGroupCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<MenuItem Header="更新模板" Command="{Binding Path=PlacementTarget.DataContext.UpdateCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/> <MenuItem Header="更新模板" Command="{Binding Path=PlacementTarget.DataContext.UpdateCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<Separator></Separator> <Separator></Separator>
<MenuItem Header="删除模板 ( Delete )" Command="{Binding Path=PlacementTarget.DataContext.DeleteCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/> <MenuItem Header="删除模板 ( Delete )" Command="{Binding Path=PlacementTarget.DataContext.DeleteCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
...@@ -53,6 +56,8 @@ ...@@ -53,6 +56,8 @@
<dxg:GridColumn.CellTemplate> <dxg:GridColumn.CellTemplate>
<DataTemplate> <DataTemplate>
<Grid Background="{Binding Path=Row.IsOpen,Converter={StaticResource RowHandleBgConverter}}"> <Grid Background="{Binding Path=Row.IsOpen,Converter={StaticResource RowHandleBgConverter}}">
<Rectangle Fill="{Binding Path=Row.IsTake,Converter={StaticResource RowHandleTakeConverter}}"
Width="10" HorizontalAlignment="Left"></Rectangle>
<TextBlock Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding RowData.RowHandle,Converter={StaticResource RowHandleConverter}}"></TextBlock> <TextBlock Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding RowData.RowHandle,Converter={StaticResource RowHandleConverter}}"></TextBlock>
</Grid> </Grid>
</DataTemplate> </DataTemplate>
...@@ -83,9 +88,10 @@ ...@@ -83,9 +88,10 @@
<dxg:GridColumn Header="引擎类型" FieldName="EngineType" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False"></dxg:GridColumn> <dxg:GridColumn Header="引擎类型" FieldName="EngineType" ReadOnly="True" AllowSorting="False" AllowColumnFiltering="False"></dxg:GridColumn>
</dxg:GridControl.Columns> </dxg:GridControl.Columns>
<dxg:GridControl.View> <dxg:GridControl.View>
<dxg:TableView IsColumnMenuEnabled="False" RowMinHeight="69.5" ScrollAnimationMode="EaseInOut" AllowScrollAnimation="True" <dxg:TableView IsColumnMenuEnabled="False" RowMinHeight="69.5"
AllowEditing="True" ShowIndicator="False" AllowEditing="True" ShowIndicator="False"
NavigationStyle="Cell" ShowVerticalLines="False" NavigationStyle="Cell" ShowVerticalLines="False" ShowHorizontalLines="False"
AlternateRowBackground="#05ffffff"
ShowGroupPanel="False" EditorShowMode="MouseDown" ShowGroupPanel="False" EditorShowMode="MouseDown"
AllowDragDrop="True" AllowDragDrop="True"
ShowBandsPanel="False" ShowBandsPanel="False"
......
...@@ -56,14 +56,23 @@ ...@@ -56,14 +56,23 @@
</StackPanel> </StackPanel>
<StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center"> <StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center">
<fcommon:IconButton Icon="/VIZ.Package.Module.Resource;component/Icons/preview_refresh_32x32.png" <Menu IsEnabled="{Binding Path=IsVizPreviewRefreshEnabled}" Height="24">
ToolTip="重启预览引擎" <MenuItem Height="24">
IsEnabled="{Binding Path=IsVizPreviewRefreshEnabled}" <MenuItem.Header>
Style="{StaticResource IconButton_Menu_Mask}" Margin="0,0,40,0" <Border Background="Transparent">
IconWidth="16" IconHeight="16" Height="30" Width="30" <Image Width="14" Height="14" Source="/VIZ.Package.Module.Resource;component/Icons/down_32x32.png"></Image>
Command="{Binding Path=RestartPreviewCommand}"></fcommon:IconButton> </Border>
</MenuItem.Header>
<MenuItem Header="重启预览引擎"
Command="{Binding Path=RestartPreviewCommand}">
<MenuItem.Icon>
<Image Width="14" Height="14" Source="/VIZ.Package.Module.Resource;component/Icons/preview_refresh_32x32.png"></Image>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
</Menu>
<CheckBox Content="TA" Style="{StaticResource CheckBox_Preview_TA}" Margin="5,0,0,0" <CheckBox Content="TA" Style="{StaticResource CheckBox_Preview_TA}" Margin="50,0,0,0"
ToolTip="Title Safe" ToolTip="Title Safe"
IsChecked="{Binding Path=IsShowTS,Mode=TwoWay}"> IsChecked="{Binding Path=IsShowTS,Mode=TwoWay}">
</CheckBox> </CheckBox>
......
...@@ -288,6 +288,9 @@ namespace VIZ.Package.Module ...@@ -288,6 +288,9 @@ namespace VIZ.Package.Module
/// </summary> /// </summary>
private void RestartPreview() private void RestartPreview()
{ {
if (DXMessageBox.Show("是否重启预览引擎?", "提示", MessageBoxButton.YesNo) != MessageBoxResult.Yes)
return;
// 设置预览引擎未准备完毕 // 设置预览引擎未准备完毕
ApplicationDomainEx.IsVizPreviewReadly = false; ApplicationDomainEx.IsVizPreviewReadly = false;
this.IsVizPreviewReadly = false; this.IsVizPreviewReadly = false;
......
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
<ContextMenu> <ContextMenu>
<MenuItem Header="刷新" Command="{Binding Path=PlacementTarget.DataContext.RefreshFileCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/> <MenuItem Header="刷新" Command="{Binding Path=PlacementTarget.DataContext.RefreshFileCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
<Separator/> <Separator/>
<MenuItem Header="添加场景模板" Command="{Binding Path=PlacementTarget.DataContext.AddSceneTemplateCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/> <MenuItem Header="添加至模板列表" Command="{Binding Path=PlacementTarget.DataContext.AddSceneTemplateCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}}"/>
</ContextMenu> </ContextMenu>
</local:GHResourcePanel.FileContextMenu> </local:GHResourcePanel.FileContextMenu>
</local:GHResourcePanel> </local:GHResourcePanel>
<!-- 按钮组 --> <!-- 按钮组 -->
<StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0"> <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0">
<Button Content="添加模板" Width="100" Height="30" Command="{Binding Path=AddSceneTemplateCommand}"></Button> <Button Content="添加至模板列表" Width="120" Height="30" Command="{Binding Path=AddSceneTemplateCommand}"></Button>
</StackPanel> </StackPanel>
</Grid> </Grid>
</UserControl> </UserControl>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<dxe:TextEditSettings AcceptsReturn="False"></dxe:TextEditSettings> <dxe:TextEditSettings AcceptsReturn="False"></dxe:TextEditSettings>
</dxg:GridColumn.EditSettings> </dxg:GridColumn.EditSettings>
</dxg:GridColumn> </dxg:GridColumn>
<dxg:GridColumn Header="插件" FieldName="PluginID" AllowSorting="False" AllowColumnFiltering="False" Width="120" AllowResizing="False"> <dxg:GridColumn Header="数据模板" FieldName="PluginID" AllowSorting="False" AllowColumnFiltering="False" Width="120" AllowResizing="False">
<dxg:GridColumn.EditSettings> <dxg:GridColumn.EditSettings>
<dxe:ComboBoxEditSettings ItemsSource="{Binding Path=PluginInfos}" IsTextEditable="False" <dxe:ComboBoxEditSettings ItemsSource="{Binding Path=PluginInfos}" IsTextEditable="False"
SelectItemWithNullValue="True" SelectItemWithNullValue="True"
......
...@@ -130,6 +130,7 @@ ...@@ -130,6 +130,7 @@
<Compile Include="ControlObject\FieldTree\Service\IFieldTreeService.cs" /> <Compile Include="ControlObject\FieldTree\Service\IFieldTreeService.cs" />
<Compile Include="Log\ViewModel\VizCommandWindowModel.cs" /> <Compile Include="Log\ViewModel\VizCommandWindowModel.cs" />
<Compile Include="Main\Controller\HotkeyController.cs" /> <Compile Include="Main\Controller\HotkeyController.cs" />
<Compile Include="Main\Core\MainTopViewMenuDataTemplateSelector.cs" />
<Compile Include="Page\Core\View\PageLoadingWindow.xaml.cs"> <Compile Include="Page\Core\View\PageLoadingWindow.xaml.cs">
<DependentUpon>PageLoadingWindow.xaml</DependentUpon> <DependentUpon>PageLoadingWindow.xaml</DependentUpon>
</Compile> </Compile>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment