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 diff
     1.1 --- a/IBBoard.WarFoundry.GUI.QtSharp.csproj	Sat Feb 13 20:48:05 2010 +0000
     1.2 +++ b/IBBoard.WarFoundry.GUI.QtSharp.csproj	Sat Feb 20 15:56:35 2010 +0000
     1.3 @@ -34,7 +34,6 @@
     1.4    </PropertyGroup>
     1.5    <ItemGroup>
     1.6      <Compile Include="AssemblyInfo.cs" />
     1.7 -    <Compile Include="MainWindow.cs" />
     1.8      <Compile Include="Main.cs" />
     1.9      <Compile Include="qt-gui\MainWindowLayout.cs" />
    1.10      <Compile Include="qt-gui\CreateNewArmyLayout.cs" />
    1.11 @@ -45,36 +44,47 @@
    1.12      <None Include="qt-gui\MainWindowLayout.ui" />
    1.13      <None Include="icons\ui\filenew.png">
    1.14        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.15 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.16      </None>
    1.17      <None Include="icons\ui\fileopen.png">
    1.18        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.19 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.20      </None>
    1.21      <None Include="icons\ui\filesave.png">
    1.22        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.23 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.24      </None>
    1.25      <None Include="icons\ui\filesaveas.png">
    1.26        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.27 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.28      </None>
    1.29      <None Include="icons\ui\edit-delete.png">
    1.30        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.31 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.32      </None>
    1.33      <None Include="icons\ui\edit-redo.png">
    1.34        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.35 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.36      </None>
    1.37      <None Include="icons\ui\edit-undo.png">
    1.38        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.39 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.40      </None>
    1.41      <None Include="icons\ui\exit.png">
    1.42        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.43 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.44      </None>
    1.45      <None Include="icons\ui\export.png">
    1.46        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.47 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.48      </None>
    1.49      <None Include="icons\ui\window-close.png">
    1.50        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.51 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.52      </None>
    1.53      <None Include="icons\ui\help-about.png">
    1.54        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.55 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.56      </None>
    1.57      <None Include="qt-gui\CreateNewArmyLayout.ui" />
    1.58      <None Include="lib\log4net.dll">
    1.59 @@ -83,6 +93,7 @@
    1.60      <None Include="WarFoundry.exe.log4net">
    1.61        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.62      </None>
    1.63 +    <None Include="MainWindow.cs" />
    1.64    </ItemGroup>
    1.65    <ItemGroup>
    1.66      <Folder Include="qt-gui\" />
    1.67 @@ -93,6 +104,7 @@
    1.68    <ItemGroup>
    1.69      <Content Include="icons\App.png">
    1.70        <CopyToOutputDirectory>Always</CopyToOutputDirectory>
    1.71 +      <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations>
    1.72      </Content>
    1.73    </ItemGroup>
    1.74    <ItemGroup>
     2.1 --- a/MainWindow.cs	Sat Feb 13 20:48:05 2010 +0000
     2.2 +++ b/MainWindow.cs	Sat Feb 20 15:56:35 2010 +0000
     2.3 @@ -36,10 +36,12 @@
     2.4  			saveArmyDialog = new QFileDialog(this);
     2.5  			saveArmyDialog.acceptMode = QFileDialog.AcceptMode.AcceptSave;
     2.6  			saveArmyDialog.fileMode = QFileDialog.FileMode.AnyFile;
     2.7 +			saveArmyDialog.SetDirectory(new QDir(Environment.GetFolderPath(Environment.SpecialFolder.Personal)));
     2.8  			openArmyDialog = new QFileDialog(this);
     2.9  			openArmyDialog.acceptMode = QFileDialog.AcceptMode.AcceptOpen;
    2.10  			openArmyDialog.fileMode = QFileDialog.FileMode.ExistingFile;
    2.11  			openArmyDialog.SetNameFilter("*.army");
    2.12 +			openArmyDialog.SetDirectory(new QDir(Environment.GetFolderPath(Environment.SpecialFolder.Personal)));
    2.13  			SetUpActionIcons();
    2.14  			ConnectMenuActions();
    2.15  			SetUpToolbar();