real OpenSource project. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2876 92316355-f0b4-4df1-b90c-862c8a59935fremotes/tiles
@@ -0,0 +1,31 @@ | |||
// | |||
// The Pimp The Pathetic Image Manipulation Program | |||
// Copyright (c) 2004-2008 Sam Hocevar <sam@zoy.org> | |||
// All Rights Reserved | |||
// | |||
// $Id$ | |||
// | |||
// This library is free software. It comes without any warranty, to | |||
// the extent permitted by applicable law. You can redistribute it | |||
// and/or modify it under the terms of the Do What The Fuck You Want | |||
// To Public License, Version 2, as published by Sam Hocevar. See | |||
// http://sam.zoy.org/wtfpl/COPYING for more details. | |||
// | |||
using System; | |||
namespace ThePimp | |||
{ | |||
public partial class About : Gtk.Dialog | |||
{ | |||
public About() | |||
{ | |||
this.Build(); | |||
} | |||
protected virtual void OnButtonCloseClicked (object sender, System.EventArgs e) | |||
{ | |||
this.Destroy(); | |||
} | |||
} | |||
} |
@@ -60,5 +60,10 @@ namespace ThePimp | |||
save.Save(view.Picture); | |||
save.Destroy(); | |||
} | |||
protected virtual void OnAboutActionActivated (object sender, System.EventArgs e) | |||
{ | |||
new About(); | |||
} | |||
} | |||
} |
@@ -1,28 +1,35 @@ | |||
# $Id: $ | |||
pimp_sources = \ | |||
$(srcdir)/AssemblyInfo.cs \ | |||
$(srcdir)/Main.cs \ | |||
$(srcdir)/PictureView.cs \ | |||
$(srcdir)/gtk-gui/generated.cs \ | |||
$(srcdir)/MainWindow.cs \ | |||
$(srcdir)/gtk-gui/ThePimp.MainWindow.cs \ | |||
$(srcdir)/OpenFile.cs \ | |||
$(srcdir)/gtk-gui/ThePimp.OpenFile.cs \ | |||
$(srcdir)/SaveFile.cs \ | |||
$(srcdir)/gtk-gui/ThePimp.SaveFile.cs \ | |||
$(srcdir)/ToolBox.cs \ | |||
$(srcdir)/gtk-gui/ThePimp.ToolBox.cs | |||
AssemblyInfo.cs \ | |||
Main.cs \ | |||
About.cs \ | |||
MainWindow.cs \ | |||
OpenFile.cs \ | |||
PictureView.cs \ | |||
SaveFile.cs \ | |||
ToolBox.cs \ | |||
gtk-gui/generated.cs \ | |||
gtk-gui/ThePimp.About.cs \ | |||
gtk-gui/ThePimp.MainWindow.cs \ | |||
gtk-gui/ThePimp.OpenFile.cs \ | |||
gtk-gui/ThePimp.PictureView.cs \ | |||
gtk-gui/ThePimp.SaveFile.cs \ | |||
gtk-gui/ThePimp.ToolBox.cs | |||
pimp_resources = \ | |||
gtk-gui/gui.stetic \ | |||
gtk-gui/objects.xml | |||
gtk-gui/objects.xml \ | |||
images/about.png | |||
image_sources = \ | |||
images/about.svg | |||
if USE_CSHARP | |||
bin_SCRIPTS = Pimp.exe | |||
endif | |||
EXTRA_DIST = $(pimp_sources) $(pimp_resources) | |||
EXTRA_DIST = $(pimp_sources) $(pimp_resources) $(image_sources) | |||
Pimp.exe: ../pipi-sharp/pipi-sharp.dll $(pimp_sources) $(pimp_resources) | |||
cp ../pipi-sharp/pipi-sharp.dll . | |||
@@ -3,7 +3,7 @@ | |||
<Configuration name="Debug" ctype="DotNetProjectConfiguration"> | |||
<CustomCommands> | |||
<Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.dll.config ${TargetDir}" workingdir="" /> | |||
<Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.mdb ${TargetDir}" /> | |||
<Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.dll.mdb ${TargetDir}" /> | |||
</CustomCommands> | |||
<Output directory="." assemblyKeyFile="." assembly="Pimp" /> | |||
<Build debugmode="True" target="Exe" /> | |||
@@ -13,7 +13,7 @@ | |||
<Configuration name="Release" ctype="DotNetProjectConfiguration"> | |||
<CustomCommands> | |||
<Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.dll.config ${TargetDir}" /> | |||
<Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.mdb ${TargetDir}" /> | |||
<Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.dll.mdb ${TargetDir}" /> | |||
</CustomCommands> | |||
<Output directory="." assemblyKeyFile="." assembly="Pimp" /> | |||
<Build debugmode="False" target="Exe" /> | |||
@@ -38,6 +38,9 @@ | |||
<File name="gtk-gui/ThePimp.ToolBox.cs" subtype="Code" buildaction="Compile" /> | |||
<File name="SaveFile.cs" subtype="Code" buildaction="Compile" /> | |||
<File name="gtk-gui/ThePimp.SaveFile.cs" subtype="Code" buildaction="Compile" /> | |||
<File name="About.cs" subtype="Code" buildaction="Compile" /> | |||
<File name="gtk-gui/ThePimp.About.cs" subtype="Code" buildaction="Compile" /> | |||
<File name="images/about.png" subtype="Code" buildaction="EmbedAsResource" /> | |||
</Contents> | |||
<References> | |||
<ProjectReference type="Gac" localcopy="True" refto="gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> | |||
@@ -56,4 +59,4 @@ | |||
<Widget>ThePimp.ToolBox</Widget> | |||
</ExportedWidgets> | |||
</GtkDesignInfo> | |||
</Project> | |||
</Project> |
@@ -0,0 +1,69 @@ | |||
// ------------------------------------------------------------------------------ | |||
// <autogenerated> | |||
// This code was generated by a tool. | |||
// Mono Runtime Version: 2.0.50727.42 | |||
// | |||
// Changes to this file may cause incorrect behavior and will be lost if | |||
// the code is regenerated. | |||
// </autogenerated> | |||
// ------------------------------------------------------------------------------ | |||
namespace ThePimp { | |||
public partial class About { | |||
private Gtk.Image image1; | |||
private Gtk.Button buttonClose; | |||
protected virtual void Build() { | |||
Stetic.Gui.Initialize(this); | |||
// Widget ThePimp.About | |||
this.Name = "ThePimp.About"; | |||
this.Title = Mono.Unix.Catalog.GetString("About The Pimp"); | |||
this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-about", Gtk.IconSize.Menu, 16); | |||
this.WindowPosition = ((Gtk.WindowPosition)(4)); | |||
this.Modal = true; | |||
this.HasSeparator = false; | |||
// Internal child ThePimp.About.VBox | |||
Gtk.VBox w1 = this.VBox; | |||
w1.Name = "dialog1_VBox"; | |||
w1.BorderWidth = ((uint)(2)); | |||
// Container child dialog1_VBox.Gtk.Box+BoxChild | |||
this.image1 = new Gtk.Image(); | |||
this.image1.Name = "image1"; | |||
this.image1.Pixbuf = Gdk.Pixbuf.LoadFromResource("about.png"); | |||
w1.Add(this.image1); | |||
Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.image1])); | |||
w2.Position = 0; | |||
w2.Expand = false; | |||
w2.Fill = false; | |||
// Internal child ThePimp.About.ActionArea | |||
Gtk.HButtonBox w3 = this.ActionArea; | |||
w3.Name = "dialog1_ActionArea"; | |||
w3.Spacing = 6; | |||
w3.BorderWidth = ((uint)(5)); | |||
w3.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); | |||
// Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild | |||
this.buttonClose = new Gtk.Button(); | |||
this.buttonClose.CanDefault = true; | |||
this.buttonClose.CanFocus = true; | |||
this.buttonClose.Name = "buttonClose"; | |||
this.buttonClose.UseStock = true; | |||
this.buttonClose.UseUnderline = true; | |||
this.buttonClose.Label = "gtk-close"; | |||
this.AddActionWidget(this.buttonClose, -7); | |||
Gtk.ButtonBox.ButtonBoxChild w4 = ((Gtk.ButtonBox.ButtonBoxChild)(w3[this.buttonClose])); | |||
w4.Expand = false; | |||
w4.Fill = false; | |||
if ((this.Child != null)) { | |||
this.Child.ShowAll(); | |||
} | |||
this.DefaultWidth = 462; | |||
this.DefaultHeight = 367; | |||
this.Show(); | |||
this.buttonClose.Clicked += new System.EventHandler(this.OnButtonCloseClicked); | |||
} | |||
} | |||
} |
@@ -142,7 +142,6 @@ namespace ThePimp { | |||
this.HelpAction1.ShortLabel = Mono.Unix.Catalog.GetString("_Help"); | |||
w2.Add(this.HelpAction1, null); | |||
this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about"); | |||
this.AboutAction.Sensitive = false; | |||
this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("_About"); | |||
w2.Add(this.AboutAction, null); | |||
this.UndoAction = new Gtk.Action("UndoAction", Mono.Unix.Catalog.GetString("_Undo"), null, "gtk-undo"); | |||
@@ -299,6 +298,7 @@ namespace ThePimp { | |||
this.openAction.Activated += new System.EventHandler(this.OnOpenActionActivated); | |||
this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated); | |||
this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated); | |||
this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated); | |||
this.saveAsAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated); | |||
} | |||
} | |||
@@ -95,9 +95,9 @@ | |||
<action id="AboutAction"> | |||
<property name="Type">Action</property> | |||
<property name="Label" translatable="yes">_About</property> | |||
<property name="Sensitive">False</property> | |||
<property name="ShortLabel" translatable="yes">_About</property> | |||
<property name="StockId">gtk-about</property> | |||
<signal name="Activated" handler="OnAboutActionActivated" /> | |||
</action> | |||
<action id="UndoAction"> | |||
<property name="Type">Action</property> | |||
@@ -781,4 +781,58 @@ | |||
</widget> | |||
</child> | |||
</widget> | |||
<widget class="Gtk.Dialog" id="ThePimp.About" design-size="462 367"> | |||
<property name="MemberName" /> | |||
<property name="Title" translatable="yes">About The Pimp</property> | |||
<property name="Icon">stock:gtk-about Menu</property> | |||
<property name="WindowPosition">CenterOnParent</property> | |||
<property name="Modal">True</property> | |||
<property name="Buttons">1</property> | |||
<property name="HelpButton">False</property> | |||
<property name="HasSeparator">False</property> | |||
<child internal-child="VBox"> | |||
<widget class="Gtk.VBox" id="dialog1_VBox"> | |||
<property name="MemberName" /> | |||
<property name="BorderWidth">2</property> | |||
<child> | |||
<widget class="Gtk.Image" id="image1"> | |||
<property name="MemberName" /> | |||
<property name="Pixbuf">resource:about.png</property> | |||
</widget> | |||
<packing> | |||
<property name="Position">0</property> | |||
<property name="AutoSize">True</property> | |||
<property name="Expand">False</property> | |||
<property name="Fill">False</property> | |||
</packing> | |||
</child> | |||
</widget> | |||
</child> | |||
<child internal-child="ActionArea"> | |||
<widget class="Gtk.HButtonBox" id="dialog1_ActionArea"> | |||
<property name="MemberName" /> | |||
<property name="Spacing">6</property> | |||
<property name="BorderWidth">5</property> | |||
<property name="Size">1</property> | |||
<property name="LayoutStyle">End</property> | |||
<child> | |||
<widget class="Gtk.Button" id="buttonClose"> | |||
<property name="MemberName" /> | |||
<property name="CanDefault">True</property> | |||
<property name="CanFocus">True</property> | |||
<property name="UseStock">True</property> | |||
<property name="Type">StockItem</property> | |||
<property name="StockId">gtk-close</property> | |||
<property name="ResponseId">-7</property> | |||
<signal name="Clicked" handler="OnButtonCloseClicked" /> | |||
<property name="label">gtk-close</property> | |||
</widget> | |||
<packing> | |||
<property name="Expand">False</property> | |||
<property name="Fill">False</property> | |||
</packing> | |||
</child> | |||
</widget> | |||
</child> | |||
</widget> | |||
</stetic-interface> |