diff options
author | Cody Russell <bratsche@gnome.org> | 2014-01-29 19:01:35 +0400 |
---|---|---|
committer | Cody Russell <bratsche@gnome.org> | 2014-01-29 19:01:35 +0400 |
commit | 3a1a3e2629a61c86a68b20eb4817aa6cf4e55e38 (patch) | |
tree | ddd1e348849ee57ddd506965caddf0b4a976e9c4 /TestApps | |
parent | 414952cc952e985ad2ef9155216d0f39ad4812fa (diff) |
Add GtkOnWindowsTest project.
Diffstat (limited to 'TestApps')
-rw-r--r-- | TestApps/GtkOnMacTest/Program.cs | 1 | ||||
-rw-r--r-- | TestApps/GtkOnWindowsTest/GtkOnWindowsTest.csproj | 62 | ||||
-rw-r--r-- | TestApps/GtkOnWindowsTest/MainWindow.cs | 41 | ||||
-rw-r--r-- | TestApps/GtkOnWindowsTest/Program.cs | 40 | ||||
-rw-r--r-- | TestApps/GtkOnWindowsTest/gtk-gui/gui.stetic | 12 |
5 files changed, 156 insertions, 0 deletions
diff --git a/TestApps/GtkOnMacTest/Program.cs b/TestApps/GtkOnMacTest/Program.cs index 888228d7..163110b5 100644 --- a/TestApps/GtkOnMacTest/Program.cs +++ b/TestApps/GtkOnMacTest/Program.cs @@ -23,6 +23,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. + using System; using Samples; using Xwt; diff --git a/TestApps/GtkOnWindowsTest/GtkOnWindowsTest.csproj b/TestApps/GtkOnWindowsTest/GtkOnWindowsTest.csproj new file mode 100644 index 00000000..9b8ae327 --- /dev/null +++ b/TestApps/GtkOnWindowsTest/GtkOnWindowsTest.csproj @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">x86</Platform> + <ProductVersion>10.0.0</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{C1DF0C90-0C4C-4AB5-A45C-A1805587A844}</ProjectGuid> + <OutputType>WinExe</OutputType> + <RootNamespace>GtkOnWindowsTest</RootNamespace> + <AssemblyName>GtkOnWindowsTest</AssemblyName> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug</OutputPath> + <DefineConstants>DEBUG;</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <PlatformTarget>x86</PlatformTarget> + <ConsolePause>false</ConsolePause> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> + <DebugType>full</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release</OutputPath> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <PlatformTarget>x86</PlatformTarget> + <ConsolePause>false</ConsolePause> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="pango-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f"> + <SpecificVersion>False</SpecificVersion> + </Reference> + <Reference Include="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Program.cs" /> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <ItemGroup> + <ProjectReference Include="..\Samples\Samples.csproj"> + <Project>{88C04B85-B69B-47B4-AB9F-64F6DD4E0897}</Project> + <Name>Samples</Name> + </ProjectReference> + <ProjectReference Include="..\..\Xwt\Xwt.csproj"> + <Project>{92494904-35FA-4DC9-BDE9-3A3E87AC49D3}</Project> + <Name>Xwt</Name> + </ProjectReference> + <ProjectReference Include="..\..\Xwt.Gtk\Xwt.Gtk.csproj"> + <Project>{C3887A93-B2BD-4097-8E2F-3A063EFF32FD}</Project> + <Name>Xwt.Gtk</Name> + </ProjectReference> + <ProjectReference Include="..\..\Xwt.Gtk.Windows\Xwt.Gtk.Windows.csproj"> + <Project>{252117CA-0ABB-4F36-BFC8-DE23A8089BB9}</Project> + <Name>Xwt.Gtk.Windows</Name> + </ProjectReference> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/TestApps/GtkOnWindowsTest/MainWindow.cs b/TestApps/GtkOnWindowsTest/MainWindow.cs new file mode 100644 index 00000000..26c75ba0 --- /dev/null +++ b/TestApps/GtkOnWindowsTest/MainWindow.cs @@ -0,0 +1,41 @@ +// +// MainWindow.cs +// +// Author: +// cody <> +// +// Copyright (c) 2014 cody +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. +using System; +using Gtk; + +public partial class MainWindow: Gtk.Window +{ + public MainWindow () : base (Gtk.WindowType.Toplevel) + { + Build (); + } + + protected void OnDeleteEvent (object sender, DeleteEventArgs a) + { + Application.Quit (); + a.RetVal = true; + } +} diff --git a/TestApps/GtkOnWindowsTest/Program.cs b/TestApps/GtkOnWindowsTest/Program.cs new file mode 100644 index 00000000..07e65637 --- /dev/null +++ b/TestApps/GtkOnWindowsTest/Program.cs @@ -0,0 +1,40 @@ +// +// Main.cs +// +// Author: +// Cody Russell <cody@xamarin.com> +// +// Copyright (c) 2011 Xamarin Inc. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +// THE SOFTWARE. + +using System; +using Samples; +using Xwt; + +namespace GtkTest +{ + class MainClass + { + public static void Main (string[] args) + { + App.Run (ToolkitType.Gtk); + } + } +} diff --git a/TestApps/GtkOnWindowsTest/gtk-gui/gui.stetic b/TestApps/GtkOnWindowsTest/gtk-gui/gui.stetic new file mode 100644 index 00000000..8b3d9821 --- /dev/null +++ b/TestApps/GtkOnWindowsTest/gtk-gui/gui.stetic @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<stetic-interface> + <widget class="Gtk.Window" id="MainWindow" design-size="400 300"> + <property name="MemberName" /> + <property name="Title" translatable="yes">MainWindow</property> + <property name="WindowPosition">CenterOnParent</property> + <signal name="DeleteEvent" handler="OnDeleteEvent" /> + <child> + <placeholder /> + </child> + </widget> +</stetic-interface>
\ No newline at end of file |