Mercurial > repos > IBBoard.WarFoundry.GUI.QtSharp
changeset 18:ab016fcda350
Re #242: Create Qt# UI for WarFoundry
* Stop translation scanning on images
* Make open and save dialog start in sensible locations
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 20 Feb 2010 15:56:35 +0000 |
parents | 8f9f757f2099 |
children | fc205d5e0c52 |
files | IBBoard.WarFoundry.GUI.QtSharp.csproj MainWindow.cs |
diffstat | 2 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/IBBoard.WarFoundry.GUI.QtSharp.csproj Sat Feb 13 20:48:05 2010 +0000 +++ b/IBBoard.WarFoundry.GUI.QtSharp.csproj Sat Feb 20 15:56:35 2010 +0000 @@ -34,7 +34,6 @@ </PropertyGroup> <ItemGroup> <Compile Include="AssemblyInfo.cs" /> - <Compile Include="MainWindow.cs" /> <Compile Include="Main.cs" /> <Compile Include="qt-gui\MainWindowLayout.cs" /> <Compile Include="qt-gui\CreateNewArmyLayout.cs" /> @@ -45,36 +44,47 @@ <None Include="qt-gui\MainWindowLayout.ui" /> <None Include="icons\ui\filenew.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </None> <None Include="icons\ui\fileopen.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </None> <None Include="icons\ui\filesave.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </None> <None Include="icons\ui\filesaveas.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </None> <None Include="icons\ui\edit-delete.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </None> <None Include="icons\ui\edit-redo.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </None> <None Include="icons\ui\edit-undo.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </None> <None Include="icons\ui\exit.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </None> <None Include="icons\ui\export.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </None> <None Include="icons\ui\window-close.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </None> <None Include="icons\ui\help-about.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </None> <None Include="qt-gui\CreateNewArmyLayout.ui" /> <None Include="lib\log4net.dll"> @@ -83,6 +93,7 @@ <None Include="WarFoundry.exe.log4net"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> + <None Include="MainWindow.cs" /> </ItemGroup> <ItemGroup> <Folder Include="qt-gui\" /> @@ -93,6 +104,7 @@ <ItemGroup> <Content Include="icons\App.png"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> + <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> </Content> </ItemGroup> <ItemGroup>
--- a/MainWindow.cs Sat Feb 13 20:48:05 2010 +0000 +++ b/MainWindow.cs Sat Feb 20 15:56:35 2010 +0000 @@ -36,10 +36,12 @@ saveArmyDialog = new QFileDialog(this); saveArmyDialog.acceptMode = QFileDialog.AcceptMode.AcceptSave; saveArmyDialog.fileMode = QFileDialog.FileMode.AnyFile; + saveArmyDialog.SetDirectory(new QDir(Environment.GetFolderPath(Environment.SpecialFolder.Personal))); openArmyDialog = new QFileDialog(this); openArmyDialog.acceptMode = QFileDialog.AcceptMode.AcceptOpen; openArmyDialog.fileMode = QFileDialog.FileMode.ExistingFile; openArmyDialog.SetNameFilter("*.army"); + openArmyDialog.SetDirectory(new QDir(Environment.GetFolderPath(Environment.SpecialFolder.Personal))); SetUpActionIcons(); ConnectMenuActions(); SetUpToolbar();