Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-addins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorRobert Nordan <rpvn@robpvn.net>2013-10-10 23:32:37 +0400
committerRobert Nordan <rpvn@robpvn.net>2013-10-10 23:32:37 +0400
commit2ce4982d718f7e298ffceaeb916a14d616790308 (patch)
tree4d3810b9c64763a50830f1fc2324471d23066bab /Test
parent0a1c0a06ed7381906a27466afa91bd824f75de02 (diff)
Added a simple GUI testing project
Diffstat (limited to 'Test')
-rw-r--r--Test/GuiTester/AssemblyInfo.cs52
-rw-r--r--Test/GuiTester/GuiTester.csproj84
-rw-r--r--Test/GuiTester/Main.cs53
-rw-r--r--Test/GuiTester/MainWindow.cs41
-rwxr-xr-xTest/GuiTester/bin/Debug/GuiTester.exebin0 -> 5120 bytes
-rw-r--r--Test/GuiTester/bin/Debug/GuiTester.exe.mdbbin0 -> 913 bytes
-rw-r--r--Test/GuiTester/bin/Debug/Mono.Addins.Gui.dll.mdbbin0 -> 28911 bytes
-rw-r--r--Test/GuiTester/bin/Debug/Mono.Addins.Setup.dll.mdbbin0 -> 49385 bytes
-rw-r--r--Test/GuiTester/bin/Debug/Mono.Addins.dll.mdbbin0 -> 121531 bytes
-rw-r--r--Test/GuiTester/gtk-gui/generated.cs29
-rw-r--r--Test/GuiTester/gtk-gui/gui.stetic12
11 files changed, 271 insertions, 0 deletions
diff --git a/Test/GuiTester/AssemblyInfo.cs b/Test/GuiTester/AssemblyInfo.cs
new file mode 100644
index 0000000..0fcc5d0
--- /dev/null
+++ b/Test/GuiTester/AssemblyInfo.cs
@@ -0,0 +1,52 @@
+//
+// AssemblyInfo.cs
+//
+// Author:
+// rpvn <${AuthorEmail}>
+//
+// Copyright (c) 2013 rpvn
+//
+// 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.Reflection;
+using System.Runtime.CompilerServices;
+
+// Information about this assembly is defined by the following attributes.
+// Change them to the values specific to your project.
+
+[assembly: AssemblyTitle("GuiTester")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("rpvn")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
+// The form "{Major}.{Minor}.*" will automatically update the build and revision,
+// and "{Major}.{Minor}.{Build}.*" will update just the revision.
+
+[assembly: AssemblyVersion("1.0.*")]
+
+// The following attributes are used to specify the signing key for the assembly,
+// if desired. See the Mono documentation for more information about signing.
+
+//[assembly: AssemblyDelaySign(false)]
+//[assembly: AssemblyKeyFile("")]
+
diff --git a/Test/GuiTester/GuiTester.csproj b/Test/GuiTester/GuiTester.csproj
new file mode 100644
index 0000000..2d97b6f
--- /dev/null
+++ b/Test/GuiTester/GuiTester.csproj
@@ -0,0 +1,84 @@
+<?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)' == '' ">AnyCPU</Platform>
+ <ProductVersion>10.0.0</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{87331208-C6EA-4F1E-99A6-595778EFA39E}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <RootNamespace>GuiTester</RootNamespace>
+ <AssemblyName>GuiTester</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>none</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <SpecificVersion>False</SpecificVersion>
+ <Package>gtk-sharp-2.0</Package>
+ </Reference>
+ <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <SpecificVersion>False</SpecificVersion>
+ <Package>gtk-sharp-2.0</Package>
+ </Reference>
+ <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <SpecificVersion>False</SpecificVersion>
+ <Package>glib-sharp-2.0</Package>
+ </Reference>
+ <Reference Include="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <SpecificVersion>False</SpecificVersion>
+ <Package>glade-sharp-2.0</Package>
+ </Reference>
+ <Reference Include="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <SpecificVersion>False</SpecificVersion>
+ <Package>gtk-sharp-2.0</Package>
+ </Reference>
+ <Reference Include="atk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <SpecificVersion>False</SpecificVersion>
+ <Package>gtk-sharp-2.0</Package>
+ </Reference>
+ <Reference Include="Mono.Posix" />
+ </ItemGroup>
+ <ItemGroup>
+ <EmbeddedResource Include="gtk-gui\gui.stetic">
+ <LogicalName>gui.stetic</LogicalName>
+ </EmbeddedResource>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="gtk-gui\generated.cs" />
+ <Compile Include="Main.cs" />
+ <Compile Include="AssemblyInfo.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <ItemGroup>
+ <ProjectReference Include="..\..\Mono.Addins.Gui\Mono.Addins.Gui.csproj">
+ <Project>{FEC19BDA-4904-4005-8C09-68E82E8BEF6A}</Project>
+ <Name>Mono.Addins.Gui</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\Mono.Addins\Mono.Addins.csproj">
+ <Project>{91DD5A2D-9FE3-4C3C-9253-876141874DAD}</Project>
+ <Name>Mono.Addins</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\Mono.Addins.Setup\Mono.Addins.Setup.csproj">
+ <Project>{A85C9721-C054-4BD8-A1F3-0227615F0A36}</Project>
+ <Name>Mono.Addins.Setup</Name>
+ </ProjectReference>
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/Test/GuiTester/Main.cs b/Test/GuiTester/Main.cs
new file mode 100644
index 0000000..685c276
--- /dev/null
+++ b/Test/GuiTester/Main.cs
@@ -0,0 +1,53 @@
+//
+// Main.cs
+//
+// Author:
+// rpvn <${AuthorEmail}>
+//
+// Copyright (c) 2013 rpvn
+//
+// 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;
+using Mono.Addins.Gui;
+using Mono.Addins;
+
+namespace GuiTester
+{
+ class MainClass
+ {
+ public static void Main (string[] args)
+ {
+ Application.Init ();
+ AddinManager.Initialize();
+
+ AddinManagerWindow.AllowInstall = false;
+ Gtk.Window win = new Gtk.Window (Gtk.WindowType.Toplevel);
+ win.Show ();
+
+
+
+ AddinManagerWindow.Run (win);
+
+ win.DeleteEvent += (o, evArgs) => Application.Quit ();
+
+ Application.Run ();
+ }
+ }
+}
diff --git a/Test/GuiTester/MainWindow.cs b/Test/GuiTester/MainWindow.cs
new file mode 100644
index 0000000..cf56d62
--- /dev/null
+++ b/Test/GuiTester/MainWindow.cs
@@ -0,0 +1,41 @@
+//
+// MainWindow.cs
+//
+// Author:
+// rpvn <${AuthorEmail}>
+//
+// Copyright (c) 2013 rpvn
+//
+// 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/Test/GuiTester/bin/Debug/GuiTester.exe b/Test/GuiTester/bin/Debug/GuiTester.exe
new file mode 100755
index 0000000..07790cb
--- /dev/null
+++ b/Test/GuiTester/bin/Debug/GuiTester.exe
Binary files differ
diff --git a/Test/GuiTester/bin/Debug/GuiTester.exe.mdb b/Test/GuiTester/bin/Debug/GuiTester.exe.mdb
new file mode 100644
index 0000000..e1f1f5f
--- /dev/null
+++ b/Test/GuiTester/bin/Debug/GuiTester.exe.mdb
Binary files differ
diff --git a/Test/GuiTester/bin/Debug/Mono.Addins.Gui.dll.mdb b/Test/GuiTester/bin/Debug/Mono.Addins.Gui.dll.mdb
new file mode 100644
index 0000000..b245e98
--- /dev/null
+++ b/Test/GuiTester/bin/Debug/Mono.Addins.Gui.dll.mdb
Binary files differ
diff --git a/Test/GuiTester/bin/Debug/Mono.Addins.Setup.dll.mdb b/Test/GuiTester/bin/Debug/Mono.Addins.Setup.dll.mdb
new file mode 100644
index 0000000..e11b43f
--- /dev/null
+++ b/Test/GuiTester/bin/Debug/Mono.Addins.Setup.dll.mdb
Binary files differ
diff --git a/Test/GuiTester/bin/Debug/Mono.Addins.dll.mdb b/Test/GuiTester/bin/Debug/Mono.Addins.dll.mdb
new file mode 100644
index 0000000..00546c6
--- /dev/null
+++ b/Test/GuiTester/bin/Debug/Mono.Addins.dll.mdb
Binary files differ
diff --git a/Test/GuiTester/gtk-gui/generated.cs b/Test/GuiTester/gtk-gui/generated.cs
new file mode 100644
index 0000000..9636f6f
--- /dev/null
+++ b/Test/GuiTester/gtk-gui/generated.cs
@@ -0,0 +1,29 @@
+
+// This file has been generated by the GUI designer. Do not modify.
+namespace Stetic
+{
+ internal class Gui
+ {
+ private static bool initialized;
+
+ internal static void Initialize (Gtk.Widget iconRenderer)
+ {
+ if ((Stetic.Gui.initialized == false)) {
+ Stetic.Gui.initialized = true;
+ }
+ }
+ }
+
+ internal class ActionGroups
+ {
+ public static Gtk.ActionGroup GetActionGroup (System.Type type)
+ {
+ return Stetic.ActionGroups.GetActionGroup (type.FullName);
+ }
+
+ public static Gtk.ActionGroup GetActionGroup (string name)
+ {
+ return null;
+ }
+ }
+}
diff --git a/Test/GuiTester/gtk-gui/gui.stetic b/Test/GuiTester/gtk-gui/gui.stetic
new file mode 100644
index 0000000..9c8d1bb
--- /dev/null
+++ b/Test/GuiTester/gtk-gui/gui.stetic
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<stetic-interface>
+ <configuration>
+ <images-root-path>..</images-root-path>
+ <target-gtk-version>2.12</target-gtk-version>
+ </configuration>
+ <import>
+ <widget-library name="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" />
+ <widget-library name="../../../bin/Mono.Addins.Gui.dll" />
+ <widget-library name="../bin/Debug/GuiTester.exe" internal="true" />
+ </import>
+</stetic-interface> \ No newline at end of file