This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

* Examples/Demo/Demo.csproj:

* MonoHotDraw/MonoHotDraw.csproj: Project Updated

* Examples/MonoDevelop.ClassDesigner/Commands.cs:
* Examples/MonoDevelop.ClassDesigner/AssemblyInfo.cs:
* Examples/MonoDevelop.ClassDesigner/ClassDesignerView.cs:
* Examples/MonoDevelop.ClassDesigner/ShowClassDesignerHandler.cs:
* Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.csproj:
* Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.Figures:
* Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.addin.xml:
* Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.Figures/TypeFigure.cs:
* Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.Figures/ClassFigure.cs:
* Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.Figures/TypeHeaderFigure.cs:
  Added new Class Designer Addin Project for MonoDevelop

* monohotdraw.sln: Added two new projects. A Class Designer Addin for
  MonoDevelop. And a Test project for that Designer.

* MonoHotDraw/MonoHotDraw.Figures/AbstractFigure.cs: Added TODO Note

* Examples/MonoDevelop.ClassDesigner:
* Examples/MonoDevelop.ClassDesigner.Tester:
* Examples/MonoDevelop.ClassDesigner.Tester/gtk-gui:
* Examples/MonoDevelop.ClassDesigner.Tester/Main.cs:
* Examples/MonoDevelop.ClassDesigner.Tester/MainWindow.cs:
* Examples/MonoDevelop.ClassDesigner.Tester/AssemblyInfo.cs:
* Examples/MonoDevelop.ClassDesigner.Tester/gtk-gui/gui.stetic:
* Examples/MonoDevelop.ClassDesigner.Tester/gtk-gui/generated.cs:
* Examples/MonoDevelop.ClassDesigner.Tester/gtk-gui/MainWindow.cs:
* Examples/MonoDevelop.ClassDesigner.Tester/MonoDevelop.ClassDesigner.Tester.csproj:
  Added new project. A tester for the MonoDevelop Add In

svn path=/trunk/monohotdraw/; revision=137392
  • Loading branch information...
Manuel Cerón
Manuel Cerón committed Jul 6, 2009
1 parent f70a7d2 commit acd2486a5f44ff054cf5240b00b3530862307720
Showing with 878 additions and 8 deletions.
  1. +5 −0 ChangeLog
  2. +6 −0 Examples/ChangeLog
  3. +4 −0 Examples/Demo/ChangeLog
  4. +6 −6 Examples/Demo/Demo.csproj
  5. +26 −0 Examples/MonoDevelop.ClassDesigner.Tester/AssemblyInfo.cs
  6. +9 −0 Examples/MonoDevelop.ClassDesigner.Tester/ChangeLog
  7. +16 −0 Examples/MonoDevelop.ClassDesigner.Tester/Main.cs
  8. +22 −0 Examples/MonoDevelop.ClassDesigner.Tester/MainWindow.cs
  9. +75 −0 Examples/MonoDevelop.ClassDesigner.Tester/MonoDevelop.ClassDesigner.Tester.csproj
  10. +7 −0 Examples/MonoDevelop.ClassDesigner.Tester/gtk-gui/ChangeLog
  11. +73 −0 Examples/MonoDevelop.ClassDesigner.Tester/gtk-gui/MainWindow.cs
  12. +35 −0 Examples/MonoDevelop.ClassDesigner.Tester/gtk-gui/generated.cs
  13. +64 −0 Examples/MonoDevelop.ClassDesigner.Tester/gtk-gui/gui.stetic
  14. +26 −0 Examples/MonoDevelop.ClassDesigner/AssemblyInfo.cs
  15. +11 −0 Examples/MonoDevelop.ClassDesigner/ChangeLog
  16. +71 −0 Examples/MonoDevelop.ClassDesigner/ClassDesignerView.cs
  17. +31 −0 Examples/MonoDevelop.ClassDesigner/Commands.cs
  18. +7 −0 Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.Figures/ChangeLog
  19. +40 −0 Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.Figures/ClassFigure.cs
  20. +36 −0 Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.Figures/TypeFigure.cs
  21. +118 −0 Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.Figures/TypeHeaderFigure.cs
  22. +38 −0 Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.addin.xml
  23. +75 −0 Examples/MonoDevelop.ClassDesigner/MonoDevelop.ClassDesigner.csproj
  24. +53 −0 Examples/MonoDevelop.ClassDesigner/ShowClassDesignerHandler.cs
  25. +4 −0 MonoHotDraw/ChangeLog
  26. +1 −0 MonoHotDraw/MonoHotDraw.Figures/AbstractFigure.cs
  27. +4 −0 MonoHotDraw/MonoHotDraw.Figures/ChangeLog
  28. +1 −2 MonoHotDraw/MonoHotDraw.csproj
  29. +14 −0 monohotdraw.sln
View
@@ -1,3 +1,8 @@
+2009-07-06 Manuel Cerón <ceronman@gmail.com>
+
+ * monohotdraw.sln: Added two new projects. A Class Designer
+ Addin for MonoDevelop. And a Test project for that Designer.
+
2009-06-10 Manuel Cerón <ceronman@gmail.com>
* monohotdraw.sln: Added Demo Project
View
@@ -1,3 +1,9 @@
+2009-07-06 Manuel Cerón <ceronman@gmail.com>
+
+ * MonoDevelop.ClassDesigner:
+ * MonoDevelop.ClassDesigner.Tester: Added new project. A
+ tester for the MonoDevelop Add In
+
2009-06-10 Manuel Cerón <ceronman@gmail.com>
* Demo: Added Demo Project
View
@@ -1,3 +1,7 @@
+2009-07-06 Manuel Cerón <ceronman@gmail.com>
+
+ * Demo.csproj: Project Updated
+
2009-06-10 Manuel Cerón <ceronman@gmail.com>
* Demo.csproj:
View
@@ -57,16 +57,16 @@
<Compile Include="Main.cs" />
<Compile Include="AssemblyInfo.cs" />
</ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <ProjectExtensions>
+ <MonoDevelop>
+ <Properties InternalTargetFrameworkVersion="3.5" />
+ </MonoDevelop>
+ </ProjectExtensions>
<ItemGroup>
<ProjectReference Include="..\..\MonoHotDraw\MonoHotDraw.csproj">
<Project>{D5D2EB0A-662A-471D-94C0-FD51C96E9429}</Project>
<Name>MonoHotDraw</Name>
</ProjectReference>
</ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <ProjectExtensions>
- <MonoDevelop>
- <Properties InternalTargetFrameworkVersion="3.5" xmlns="" />
- </MonoDevelop>
- </ProjectExtensions>
</Project>
@@ -0,0 +1,26 @@
+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("MonoDevelop.ClassDesigner.Tester")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("")]
+[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("")]
@@ -0,0 +1,9 @@
+2009-07-06 Manuel Cerón <ceronman@gmail.com>
+
+ * Main.cs:
+ * gtk-gui:
+ * MainWindow.cs:
+ * AssemblyInfo.cs:
+ * MonoDevelop.ClassDesigner.Tester.csproj: Added new project.
+ A tester for the MonoDevelop Add In
+
@@ -0,0 +1,16 @@
+using System;
+using Gtk;
+
+namespace MonoDevelop.ClassDesigner.Tester
+{
+ class MainClass
+ {
+ public static void Main (string[] args)
+ {
+ Application.Init ();
+ MainWindow win = new MainWindow ();
+ win.Show ();
+ Application.Run ();
+ }
+ }
+}
@@ -0,0 +1,22 @@
+using System;
+using Gtk;
+using MonoDevelop.ClassDesigner.Figures;
+
+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;
+ }
+
+ protected virtual void OnAddClassFigureActionActivated (object sender, System.EventArgs e)
+ {
+ mhdcanvas.AddWithDragging(new TypeHeaderFigure());
+ }
+}
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{C9D17E96-DC3C-4AB6-8A89-3F7CC64489D2}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AssemblyName>MonoDevelop.ClassDesigner.Tester</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>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>none</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <SpecificVersion>False</SpecificVersion>
+ </Reference>
+ <Reference Include="gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <SpecificVersion>False</SpecificVersion>
+ </Reference>
+ <Reference Include="glib-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <SpecificVersion>False</SpecificVersion>
+ </Reference>
+ <Reference Include="glade-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <SpecificVersion>False</SpecificVersion>
+ </Reference>
+ <Reference Include="pango-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">
+ <SpecificVersion>False</SpecificVersion>
+ </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="MainWindow.cs" />
+ <Compile Include="gtk-gui\MainWindow.cs" />
+ <Compile Include="Main.cs" />
+ <Compile Include="AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\MonoDevelop.ClassDesigner\MonoDevelop.ClassDesigner.csproj">
+ <Project>{73A8571A-9FA6-43A5-BC04-B7C1EE13D63B}</Project>
+ <Name>MonoDevelop.ClassDesigner</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\..\MonoHotDraw\MonoHotDraw.csproj">
+ <Project>{D5D2EB0A-662A-471D-94C0-FD51C96E9429}</Project>
+ <Name>MonoHotDraw</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <ProjectExtensions>
+ <MonoDevelop>
+ <Properties InternalTargetFrameworkVersion="3.5" />
+ </MonoDevelop>
+ </ProjectExtensions>
+</Project>
@@ -0,0 +1,7 @@
+2009-07-06 Manuel Cerón <ceronman@gmail.com>
+
+ * gui.stetic:
+ * generated.cs:
+ * MainWindow.cs: Added new project. A tester for the
+ MonoDevelop Add In
+
@@ -0,0 +1,73 @@
+// ------------------------------------------------------------------------------
+// <autogenerated>
+// This code was generated by a tool.
+//
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </autogenerated>
+// ------------------------------------------------------------------------------
+
+
+
+public partial class MainWindow {
+
+ private Gtk.UIManager UIManager;
+
+ private Gtk.Action FiguresAction;
+
+ private Gtk.Action AddClassFigureAction;
+
+ private Gtk.VBox vbox1;
+
+ private Gtk.MenuBar menubar1;
+
+ private MonoHotDraw.SteticComponent mhdcanvas;
+
+ protected virtual void Build() {
+ Stetic.Gui.Initialize(this);
+ // Widget MainWindow
+ this.UIManager = new Gtk.UIManager();
+ Gtk.ActionGroup w1 = new Gtk.ActionGroup("Default");
+ this.FiguresAction = new Gtk.Action("FiguresAction", Mono.Unix.Catalog.GetString("Figures"), null, null);
+ this.FiguresAction.ShortLabel = Mono.Unix.Catalog.GetString("Figures");
+ w1.Add(this.FiguresAction, null);
+ this.AddClassFigureAction = new Gtk.Action("AddClassFigureAction", Mono.Unix.Catalog.GetString("Add Class Figure"), null, null);
+ this.AddClassFigureAction.ShortLabel = Mono.Unix.Catalog.GetString("Add Class Figure");
+ w1.Add(this.AddClassFigureAction, null);
+ this.UIManager.InsertActionGroup(w1, 0);
+ this.AddAccelGroup(this.UIManager.AccelGroup);
+ this.Name = "MainWindow";
+ this.Title = Mono.Unix.Catalog.GetString("MainWindow");
+ this.WindowPosition = ((Gtk.WindowPosition)(4));
+ // Container child MainWindow.Gtk.Container+ContainerChild
+ this.vbox1 = new Gtk.VBox();
+ this.vbox1.Name = "vbox1";
+ this.vbox1.Spacing = 6;
+ // Container child vbox1.Gtk.Box+BoxChild
+ this.UIManager.AddUiFromString("<ui><menubar name='menubar1'><menu name='FiguresAction' action='FiguresAction'><menuitem name='AddClassFigureAction' action='AddClassFigureAction'/></menu></menubar></ui>");
+ this.menubar1 = ((Gtk.MenuBar)(this.UIManager.GetWidget("/menubar1")));
+ this.menubar1.Name = "menubar1";
+ this.vbox1.Add(this.menubar1);
+ Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox1[this.menubar1]));
+ w2.Position = 0;
+ w2.Expand = false;
+ w2.Fill = false;
+ // Container child vbox1.Gtk.Box+BoxChild
+ this.mhdcanvas = new MonoHotDraw.SteticComponent();
+ this.mhdcanvas.Events = ((Gdk.EventMask)(256));
+ this.mhdcanvas.Name = "mhdcanvas";
+ this.vbox1.Add(this.mhdcanvas);
+ Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox1[this.mhdcanvas]));
+ w3.Position = 1;
+ this.Add(this.vbox1);
+ if ((this.Child != null)) {
+ this.Child.ShowAll();
+ }
+ this.DefaultWidth = 400;
+ this.DefaultHeight = 300;
+ this.Show();
+ this.DeleteEvent += new Gtk.DeleteEventHandler(this.OnDeleteEvent);
+ this.AddClassFigureAction.Activated += new System.EventHandler(this.OnAddClassFigureActionActivated);
+ }
+}
@@ -0,0 +1,35 @@
+// ------------------------------------------------------------------------------
+// <autogenerated>
+// This code was generated by a tool.
+//
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </autogenerated>
+// ------------------------------------------------------------------------------
+
+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;
+ }
+ }
+}
@@ -0,0 +1,64 @@
+<?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="../../MonoDevelop.ClassDesigner/bin/Debug/MonoDevelop.ClassDesigner.dll" />
+ <widget-library name="../../../MonoHotDraw/bin/Debug/MonoHotDraw.dll" />
+ <widget-library name="../bin/Debug/MonoDevelop.ClassDesigner.Tester.exe" internal="true" />
+ </import>
+ <widget class="Gtk.Window" id="MainWindow" design-size="400 300">
+ <action-group name="Default">
+ <action id="FiguresAction">
+ <property name="Type">Action</property>
+ <property name="Label" translatable="yes">Figures</property>
+ <property name="ShortLabel" translatable="yes">Figures</property>
+ </action>
+ <action id="AddClassFigureAction">
+ <property name="Type">Action</property>
+ <property name="Label" translatable="yes">Add Class Figure</property>
+ <property name="ShortLabel" translatable="yes">Add Class Figure</property>
+ <signal name="Activated" handler="OnAddClassFigureActionActivated" />
+ </action>
+ </action-group>
+ <property name="MemberName" />
+ <property name="Title" translatable="yes">MainWindow</property>
+ <property name="WindowPosition">CenterOnParent</property>
+ <signal name="DeleteEvent" handler="OnDeleteEvent" />
+ <child>
+ <widget class="Gtk.VBox" id="vbox1">
+ <property name="MemberName" />
+ <property name="Spacing">6</property>
+ <child>
+ <widget class="Gtk.MenuBar" id="menubar1">
+ <property name="MemberName" />
+ <node name="menubar1" type="Menubar">
+ <node type="Menu" action="FiguresAction">
+ <node type="Menuitem" action="AddClassFigureAction" />
+ </node>
+ </node>
+ </widget>
+ <packing>
+ <property name="Position">0</property>
+ <property name="AutoSize">True</property>
+ <property name="Expand">False</property>
+ <property name="Fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="MonoHotDraw.SteticComponent" id="mhdcanvas">
+ <property name="MemberName" />
+ <property name="Events">ButtonPressMask</property>
+ </widget>
+ <packing>
+ <property name="Position">1</property>
+ <property name="AutoSize">False</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+</stetic-interface>
Oops, something went wrong.

0 comments on commit acd2486

Please sign in to comment.