2014-07-26 07:12:56 +00:00
|
|
|
<Window x:Class="RainmeterStudio.UI.MainWindow"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2014-08-16 12:40:08 +00:00
|
|
|
xmlns:uiPanels="clr-namespace:RainmeterStudio.UI.Panels"
|
2014-07-26 07:12:56 +00:00
|
|
|
xmlns:ad="clr-namespace:Xceed.Wpf.AvalonDock;assembly=Xceed.Wpf.AvalonDock"
|
|
|
|
xmlns:adlayout="clr-namespace:Xceed.Wpf.AvalonDock.Layout;assembly=Xceed.Wpf.AvalonDock"
|
2014-07-28 17:18:18 +00:00
|
|
|
xmlns:r="clr-namespace:RainmeterStudio.Resources"
|
2014-08-15 12:31:33 +00:00
|
|
|
xmlns:p="clr-namespace:RainmeterStudio.Properties"
|
|
|
|
|
|
|
|
Title="{x:Static r:Strings.MainWindow_Title}"
|
|
|
|
Height="{Binding Source={x:Static p:Settings.Default}, Path=MainWindow_Height, Mode=TwoWay}"
|
|
|
|
Width="{Binding Source={x:Static p:Settings.Default}, Path=MainWindow_Width, Mode=TwoWay}"
|
|
|
|
WindowState="{Binding Source={x:Static p:Settings.Default}, Path=MainWindow_WindowState, Mode=TwoWay}"
|
|
|
|
Left="{Binding Source={x:Static p:Settings.Default}, Path=MainWindow_Left, Mode=TwoWay}"
|
|
|
|
Top="{Binding Source={x:Static p:Settings.Default}, Path=MainWindow_Top, Mode=TwoWay}"
|
|
|
|
|
2014-09-08 18:31:47 +00:00
|
|
|
ResizeMode="CanResizeWithGrip"
|
|
|
|
Closing="Window_Closing">
|
2014-07-26 10:49:11 +00:00
|
|
|
|
2014-07-26 07:12:56 +00:00
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<!-- Menu bar -->
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<!-- Toolbar -->
|
|
|
|
<RowDefinition />
|
|
|
|
<!-- Dock area -->
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<!-- Status bar -->
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
|
|
<!-- Menu bar -->
|
|
|
|
<Menu Grid.Row="0" Grid.ColumnSpan="10">
|
2014-07-28 17:18:18 +00:00
|
|
|
<MenuItem Header="{x:Static r:Strings.MainWindow_File}">
|
|
|
|
<MenuItem Header="{x:Static r:Strings.MainWindow_File_New}">
|
2014-07-26 10:49:11 +00:00
|
|
|
<MenuItem DataContext="{Binding DocumentController.DocumentCreateCommand}"
|
|
|
|
Style="{StaticResource CommandMenuItemStyle}" >
|
2014-07-26 07:12:56 +00:00
|
|
|
<MenuItem.Icon>
|
|
|
|
<Image Source="{Binding Icon}" />
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
2014-07-26 10:49:11 +00:00
|
|
|
<MenuItem DataContext="{Binding ProjectController.ProjectCreateCommand}"
|
|
|
|
Style="{StaticResource CommandMenuItemStyle}">
|
2014-07-26 07:12:56 +00:00
|
|
|
<MenuItem.Icon>
|
2014-07-26 10:49:11 +00:00
|
|
|
<Image Source="{Binding Icon}" />
|
2014-07-26 07:12:56 +00:00
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
</MenuItem>
|
2014-07-26 10:49:11 +00:00
|
|
|
<Separator />
|
2014-07-28 17:18:18 +00:00
|
|
|
<MenuItem Header="{x:Static r:Strings.MainWindow_File_Open}">
|
2014-09-08 18:31:47 +00:00
|
|
|
<MenuItem DataContext="{Binding DocumentController.DocumentOpenCommand}"
|
|
|
|
Style="{StaticResource CommandMenuItemStyle}">
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<Image Source="{Binding Icon}" />
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
2014-07-28 17:18:18 +00:00
|
|
|
<MenuItem DataContext="{Binding ProjectController.ProjectOpenCommand}"
|
|
|
|
Style="{StaticResource CommandMenuItemStyle}">
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<Image Source="{Binding Icon}" />
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
</MenuItem>
|
2014-07-26 07:12:56 +00:00
|
|
|
<Separator />
|
2014-09-08 18:31:47 +00:00
|
|
|
<MenuItem DataContext="{Binding DocumentController.DocumentSaveCommand}"
|
|
|
|
Style="{StaticResource CommandMenuItemStyle}" >
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<Image Source="{Binding Icon}" />
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem DataContext="{Binding DocumentController.DocumentSaveAsCommand}"
|
|
|
|
Style="{StaticResource CommandMenuItemStyle}" >
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<Image Source="{Binding Icon}" />
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem DataContext="{Binding DocumentController.DocumentSaveACopyCommand}"
|
|
|
|
Style="{StaticResource CommandMenuItemStyle}" >
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<Image Source="{Binding Icon}" />
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem DataContext="{Binding DocumentController.DocumentSaveAllCommand}"
|
|
|
|
Style="{StaticResource CommandMenuItemStyle}" >
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<Image Source="{Binding Icon}" />
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
<Separator />
|
|
|
|
<MenuItem DataContext="{Binding DocumentController.DocumentCloseCommand}"
|
|
|
|
Style="{StaticResource CommandMenuItemStyle}" >
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<Image Source="{Binding Icon}" />
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem DataContext="{Binding ProjectController.ProjectCloseCommand}"
|
|
|
|
Style="{StaticResource CommandMenuItemStyle}" >
|
|
|
|
<MenuItem.Icon>
|
|
|
|
<Image Source="{Binding Icon}" />
|
|
|
|
</MenuItem.Icon>
|
|
|
|
</MenuItem>
|
|
|
|
<Separator />
|
2014-07-26 07:12:56 +00:00
|
|
|
<MenuItem Header="E_xit" />
|
|
|
|
</MenuItem>
|
|
|
|
<MenuItem Header="_Edit" />
|
|
|
|
<MenuItem Header="_Help" />
|
|
|
|
</Menu>
|
|
|
|
|
|
|
|
<!-- Toolbar -->
|
|
|
|
<ToolBarTray Grid.Row="1">
|
|
|
|
<ToolBar>
|
|
|
|
<Button Name="buttonBackward" ToolTip="Navigate backward">
|
2014-07-27 13:21:06 +00:00
|
|
|
<Image Width="16" Height="16" Source="/Resources/Icons/16/arrow_backward.png" />
|
2014-07-26 07:12:56 +00:00
|
|
|
</Button>
|
|
|
|
<Button Name="buttonForward" ToolTip="Navigate forward">
|
2014-07-27 13:21:06 +00:00
|
|
|
<Image Width="16" Height="16" Source="/Resources/Icons/16/arrow_forward.png" />
|
2014-07-26 07:12:56 +00:00
|
|
|
</Button>
|
|
|
|
<Separator />
|
2014-07-26 10:49:11 +00:00
|
|
|
<Button DataContext="{Binding DocumentController.DocumentCreateCommand}"
|
2014-07-27 13:21:06 +00:00
|
|
|
Style="{StaticResource CommandButtonStyle}">
|
|
|
|
<Image Width="16" Height="16" Source="{Binding Icon}" />
|
|
|
|
</Button>
|
2014-09-13 08:17:24 +00:00
|
|
|
<Button DataContext="{Binding DocumentController.DocumentOpenCommand}"
|
|
|
|
Style="{StaticResource CommandButtonStyle}">
|
|
|
|
<Image Width="16" Height="16" Source="{Binding Icon}" />
|
|
|
|
</Button>
|
|
|
|
<Button DataContext="{Binding DocumentController.DocumentSaveCommand}"
|
|
|
|
Style="{StaticResource CommandButtonStyle}">
|
|
|
|
<Image Width="16" Height="16" Source="{Binding Icon}" />
|
|
|
|
</Button>
|
|
|
|
<Button DataContext="{Binding DocumentController.DocumentSaveAllCommand}"
|
|
|
|
Style="{StaticResource CommandButtonStyle}">
|
|
|
|
<Image Width="16" Height="16" Source="{Binding Icon}" />
|
|
|
|
</Button>
|
2014-07-26 07:12:56 +00:00
|
|
|
</ToolBar>
|
|
|
|
</ToolBarTray>
|
|
|
|
|
|
|
|
<!-- Grid splitter -->
|
|
|
|
<GridSplitter Grid.Row="2" Grid.Column="1"
|
|
|
|
HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
|
|
|
|
|
|
|
|
<!-- Document panel -->
|
|
|
|
<ad:DockingManager
|
|
|
|
x:Name="dockingManager"
|
|
|
|
Grid.Row="2">
|
|
|
|
<adlayout:LayoutRoot>
|
|
|
|
|
|
|
|
<adlayout:LayoutRoot.LeftSide>
|
|
|
|
<adlayout:LayoutAnchorSide>
|
|
|
|
<adlayout:LayoutAnchorGroup>
|
|
|
|
<adlayout:LayoutAnchorable Title="Toolbox" />
|
|
|
|
</adlayout:LayoutAnchorGroup>
|
|
|
|
</adlayout:LayoutAnchorSide>
|
|
|
|
</adlayout:LayoutRoot.LeftSide>
|
|
|
|
|
|
|
|
<adlayout:LayoutPanel Orientation="Horizontal">
|
|
|
|
<adlayout:LayoutDocumentPane x:Name="documentPane" />
|
|
|
|
|
2014-07-27 13:21:06 +00:00
|
|
|
<adlayout:LayoutAnchorablePaneGroup DockWidth="250" Orientation="Vertical">
|
2014-07-26 07:12:56 +00:00
|
|
|
<adlayout:LayoutAnchorablePane>
|
2014-07-27 13:21:06 +00:00
|
|
|
<adlayout:LayoutAnchorable Title="Project">
|
2014-08-16 12:40:08 +00:00
|
|
|
<uiPanels:ProjectPanel x:Name="projectPanel" />
|
2014-07-26 07:12:56 +00:00
|
|
|
</adlayout:LayoutAnchorable>
|
|
|
|
<adlayout:LayoutAnchorable Title="Outline" />
|
|
|
|
</adlayout:LayoutAnchorablePane>
|
|
|
|
<adlayout:LayoutAnchorablePane>
|
|
|
|
<adlayout:LayoutAnchorable Title="Properties" />
|
|
|
|
</adlayout:LayoutAnchorablePane>
|
|
|
|
</adlayout:LayoutAnchorablePaneGroup>
|
|
|
|
</adlayout:LayoutPanel>
|
|
|
|
</adlayout:LayoutRoot>
|
|
|
|
</ad:DockingManager>
|
|
|
|
|
|
|
|
<!-- Status bar -->
|
|
|
|
<StatusBar Grid.Row="3" Grid.ColumnSpan="10">
|
|
|
|
|
|
|
|
<ProgressBar Name="statusProgress"
|
|
|
|
Width="64" Height="8"
|
|
|
|
IsIndeterminate="True"
|
|
|
|
Visibility="Collapsed" />
|
2014-07-26 10:49:11 +00:00
|
|
|
|
2014-07-26 07:12:56 +00:00
|
|
|
<TextBlock Name="statusMessage">Ready</TextBlock>
|
|
|
|
</StatusBar>
|
|
|
|
</Grid>
|
|
|
|
</Window>
|