- Timestamp:
- Oct 5, 2008, 3:43:07 AM (12 years ago)
- Location:
- libpipi/trunk
- Files:
-
- 17 added
- 13 deleted
- 3 edited
- 12 moved
Legend:
- Unmodified
- Added
- Removed
-
libpipi/trunk/.gitignore
r2694 r2869 24 24 *.lo 25 25 *.o 26 *.userprefs 27 *.usertasks -
libpipi/trunk/Makefile.am
r2856 r2869 1 1 # $Id$ 2 2 3 SUBDIRS = pipi src genethumb examples test 3 SUBDIRS = pipi src genethumb examples test pipi-sharp ThePimp 4 4 5 5 EXTRA_DIST = bootstrap build-win32 common.h NOTES -
libpipi/trunk/ThePimp/Main.cs
r2866 r2869 7 7 using Gtk; 8 8 9 namespace Pimp9 namespace ThePimp 10 10 { 11 class Pimp11 class ThePimp 12 12 { 13 13 public static void Main (string[] args) -
libpipi/trunk/ThePimp/MainWindow.cs
r2866 r2869 7 7 using Gtk; 8 8 using Pipi; 9 using ThePimp; 9 10 10 11 public partial class MainWindow: Gtk.Window … … 24 25 protected virtual void OnOpenActionActivated (object sender, System.EventArgs e) 25 26 { 26 Pimp.OpenFile open = newPimp.OpenFile();27 ResponseType rsp = (ResponseType)open.Run();27 ThePimp.OpenFile open = new ThePimp.OpenFile(); 28 Pipi.Picture p = open.Load(); 28 29 open.Destroy(); 29 if(rsp == ResponseType.Ok) 30 return; 30 if(p != null) 31 { 32 Title += " image " + p.Width + "x" + p.Height; 33 scrolledwindow1.Add(new PictureView(p)); 34 } 31 35 } 32 36 -
libpipi/trunk/ThePimp/ThePimp.mdp
r2866 r2869 1 <Project name=" Pimp" fileversion="2.0" Description="The Pathetic Image Manipulation Program" language="C#" clr-version="Net_2_0" ctype="DotNetProject">1 <Project name="ThePimp" fileversion="2.0" Description="The Pathetic Image Manipulation Program" language="C#" clr-version="Net_2_0" ctype="DotNetProject"> 2 2 <Configurations active="Debug"> 3 3 <Configuration name="Debug" ctype="DotNetProjectConfiguration"> 4 4 <CustomCommands> 5 <Command type="AfterBuild" command=" ln -s ${CombineDir}/Pipi/pipi-sharp.dll.config ${TargetDir}" workingdir="" />5 <Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.dll.config ${TargetDir}" workingdir="" /> 6 6 </CustomCommands> 7 <Output directory=" bin/Debug" assemblyKeyFile="." assembly="Pimp" />7 <Output directory="." assemblyKeyFile="." assembly="Pimp" /> 8 8 <Build debugmode="True" target="Exe" /> 9 9 <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" /> … … 11 11 </Configuration> 12 12 <Configuration name="Release" ctype="DotNetProjectConfiguration"> 13 <Output directory="bin/Release" assembly="Pimp" /> 13 <CustomCommands> 14 <Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.dll.config ${TargetDir}" /> 15 </CustomCommands> 16 <Output directory="." assemblyKeyFile="." assembly="Pimp" /> 14 17 <Build debugmode="False" target="Exe" /> 15 18 <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" /> … … 27 30 <File name="OpenFile.cs" subtype="Code" buildaction="Compile" /> 28 31 <File name="gtk-gui/Pimp.OpenFile.cs" subtype="Code" buildaction="Compile" /> 32 <File name="gtk-gui/objects.xml" subtype="Code" buildaction="EmbedAsResource" /> 33 <File name="PictureView.cs" subtype="Code" buildaction="Compile" /> 34 <File name="gtk-gui/ThePimp.PictureView.cs" subtype="Code" buildaction="Compile" /> 29 35 </Contents> 30 36 <References> … … 36 42 <ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> 37 43 <ProjectReference type="Gac" localcopy="True" refto="Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" /> 38 <ProjectReference type="Project" localcopy="True" refto=" Pipi" />44 <ProjectReference type="Project" localcopy="True" refto="pipi-sharp" /> 39 45 </References> 40 46 <Deployment.LinuxDeployData /> 41 <GtkDesignInfo gtkVersion="2.12.1" /> 47 <GtkDesignInfo gtkVersion="2.12.1"> 48 <ExportedWidgets> 49 <Widget>ThePimp.PictureView</Widget> 50 </ExportedWidgets> 51 </GtkDesignInfo> 42 52 </Project> -
libpipi/trunk/ThePimp/gtk-gui/MainWindow.cs
r2866 r2869 81 81 private Gtk.ScrolledWindow scrolledwindow1; 82 82 83 private Gtk.DrawingArea drawingarea1;84 85 83 private Gtk.Label label1; 86 84 … … 89 87 private Gtk.VBox vbox2; 90 88 89 private Gtk.Label label2; 90 91 91 private Gtk.VBox vbox3; 92 93 private Gtk.Label label3; 92 94 93 95 private Gtk.Statusbar statusbar1; … … 238 240 this.scrolledwindow1.Name = "scrolledwindow1"; 239 241 this.scrolledwindow1.ShadowType = ((Gtk.ShadowType)(1)); 240 // Container child scrolledwindow1.Gtk.Container+ContainerChild241 Gtk.Viewport w5 = new Gtk.Viewport();242 w5.ShadowType = ((Gtk.ShadowType)(0));243 // Container child GtkViewport.Gtk.Container+ContainerChild244 this.drawingarea1 = new Gtk.DrawingArea();245 this.drawingarea1.Name = "drawingarea1";246 w5.Add(this.drawingarea1);247 this.scrolledwindow1.Add(w5);248 242 this.notebook1.Add(this.scrolledwindow1); 249 243 // Notebook tab … … 254 248 this.label1.ShowAll(); 255 249 this.hpaned1.Add(this.notebook1); 256 Gtk.Paned.PanedChild w 9= ((Gtk.Paned.PanedChild)(this.hpaned1[this.notebook1]));257 w 9.Resize = false;250 Gtk.Paned.PanedChild w6 = ((Gtk.Paned.PanedChild)(this.hpaned1[this.notebook1])); 251 w6.Resize = false; 258 252 // Container child hpaned1.Gtk.Paned+PanedChild 259 253 this.vpaned1 = new Gtk.VPaned(); … … 265 259 this.vbox2.Name = "vbox2"; 266 260 this.vbox2.BorderWidth = ((uint)(5)); 261 // Container child vbox2.Gtk.Box+BoxChild 262 this.label2 = new Gtk.Label(); 263 this.label2.WidthRequest = 100; 264 this.label2.Name = "label2"; 265 this.label2.LabelProp = Mono.Unix.Catalog.GetString("Tools"); 266 this.vbox2.Add(this.label2); 267 Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2])); 268 w7.Position = 0; 269 w7.Expand = false; 270 w7.Fill = false; 267 271 this.vpaned1.Add(this.vbox2); 268 Gtk.Paned.PanedChild w 10= ((Gtk.Paned.PanedChild)(this.vpaned1[this.vbox2]));269 w 10.Resize = false;272 Gtk.Paned.PanedChild w8 = ((Gtk.Paned.PanedChild)(this.vpaned1[this.vbox2])); 273 w8.Resize = false; 270 274 // Container child vpaned1.Gtk.Paned+PanedChild 271 275 this.vbox3 = new Gtk.VBox(); 272 276 this.vbox3.Name = "vbox3"; 273 277 this.vbox3.BorderWidth = ((uint)(5)); 278 // Container child vbox3.Gtk.Box+BoxChild 279 this.label3 = new Gtk.Label(); 280 this.label3.WidthRequest = 100; 281 this.label3.Name = "label3"; 282 this.label3.LabelProp = Mono.Unix.Catalog.GetString("Layers & Channels"); 283 this.vbox3.Add(this.label3); 284 Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox3[this.label3])); 285 w9.Position = 0; 286 w9.Expand = false; 287 w9.Fill = false; 274 288 this.vpaned1.Add(this.vbox3); 275 289 this.hpaned1.Add(this.vpaned1); 276 290 this.vbox1.Add(this.hpaned1); 277 Gtk.Box.BoxChild w1 3= ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1]));278 w1 3.Position = 2;291 Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox1[this.hpaned1])); 292 w12.Position = 2; 279 293 // Container child vbox1.Gtk.Box+BoxChild 280 294 this.statusbar1 = new Gtk.Statusbar(); … … 282 296 this.statusbar1.Spacing = 6; 283 297 this.vbox1.Add(this.statusbar1); 284 Gtk.Box.BoxChild w1 4= ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1]));285 w1 4.Position = 3;286 w1 4.Expand = false;287 w1 4.Fill = false;298 Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox1[this.statusbar1])); 299 w13.Position = 3; 300 w13.Expand = false; 301 w13.Fill = false; 288 302 this.Add(this.vbox1); 289 303 if ((this.Child != null)) { -
libpipi/trunk/ThePimp/gtk-gui/ThePimp.OpenFile.cs
r2866 r2869 9 9 // ------------------------------------------------------------------------------ 10 10 11 namespace Pimp {11 namespace ThePimp { 12 12 13 13 … … 22 22 protected virtual void Build() { 23 23 Stetic.Gui.Initialize(this); 24 // Widget Pimp.OpenFile25 this.Name = " Pimp.OpenFile";24 // Widget ThePimp.OpenFile 25 this.Name = "ThePimp.OpenFile"; 26 26 this.Title = Mono.Unix.Catalog.GetString("Open File"); 27 27 this.Icon = Stetic.IconLoader.LoadIcon(this, "gtk-open", Gtk.IconSize.Menu, 16); … … 30 30 this.Modal = true; 31 31 this.HasSeparator = false; 32 // Internal child Pimp.OpenFile.VBox32 // Internal child ThePimp.OpenFile.VBox 33 33 Gtk.VBox w1 = this.VBox; 34 34 w1.Name = "dialog1_VBox"; … … 40 40 Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(w1[this.filechooserwidget1])); 41 41 w2.Position = 0; 42 // Internal child Pimp.OpenFile.ActionArea42 // Internal child ThePimp.OpenFile.ActionArea 43 43 Gtk.HButtonBox w3 = this.ActionArea; 44 44 w3.Name = "dialog1_ActionArea"; -
libpipi/trunk/ThePimp/gtk-gui/gui.stetic
r2866 r2869 5 5 <target-gtk-version>2.12.1</target-gtk-version> 6 6 </configuration> 7 <import> 8 <widget-library name="../Pimp.exe" internal="true" /> 9 </import> 7 10 <widget class="Gtk.Window" id="MainWindow" design-size="840 680"> 8 11 <action-group name="Default"> … … 276 279 <property name="ShadowType">None</property> 277 280 <child> 278 <widget class="Gtk.DrawingArea" id="drawingarea1"> 279 <property name="MemberName" /> 280 </widget> 281 <placeholder /> 281 282 </child> 282 283 </widget> … … 308 309 <property name="BorderWidth">5</property> 309 310 <child> 310 <placeholder /> 311 <widget class="Gtk.Label" id="label2"> 312 <property name="MemberName" /> 313 <property name="WidthRequest">100</property> 314 <property name="LabelProp" translatable="yes">Tools</property> 315 </widget> 316 <packing> 317 <property name="Position">0</property> 318 <property name="AutoSize">True</property> 319 <property name="Expand">False</property> 320 <property name="Fill">False</property> 321 </packing> 311 322 </child> 312 323 <child> … … 326 337 <property name="BorderWidth">5</property> 327 338 <child> 328 <placeholder /> 339 <widget class="Gtk.Label" id="label3"> 340 <property name="MemberName" /> 341 <property name="WidthRequest">100</property> 342 <property name="LabelProp" translatable="yes">Layers & Channels</property> 343 </widget> 344 <packing> 345 <property name="Position">0</property> 346 <property name="AutoSize">True</property> 347 <property name="Expand">False</property> 348 <property name="Fill">False</property> 349 </packing> 329 350 </child> 330 351 <child> … … 365 386 </child> 366 387 </widget> 367 <widget class="Gtk.Dialog" id=" Pimp.OpenFile" design-size="627 448">388 <widget class="Gtk.Dialog" id="ThePimp.OpenFile" design-size="627 448"> 368 389 <property name="MemberName" /> 369 390 <property name="Title" translatable="yes">Open File</property> … … 433 454 </child> 434 455 </widget> 456 <widget class="Gtk.Bin" id="ThePimp.PictureView" design-size="300 300"> 457 <property name="MemberName" /> 458 <child> 459 <widget class="Gtk.DrawingArea" id="drawingarea1"> 460 <property name="MemberName" /> 461 </widget> 462 </child> 463 </widget> 435 464 </stetic-interface> -
libpipi/trunk/configure.ac
r2866 r2869 121 121 fi 122 122 123 # Build The Pimp? 124 AC_PATH_PROG(GMCS, gmcs, no) 125 PKG_CHECK_MODULES([GLADE_SHARP_20], [glade-sharp-2.0], [:]) 126 PKG_CHECK_MODULES([GLIB_SHARP_20], [glib-sharp-2.0], [:]) 127 PKG_CHECK_MODULES([GTK_SHARP_20], [gtk-sharp-2.0], [:]) 128 AM_CONDITIONAL(USE_CSHARP, test "${gmcs}" != "no") 129 123 130 AC_CONFIG_FILES([ 124 131 Makefile … … 128 135 examples/Makefile 129 136 test/Makefile 137 pipi-sharp/Makefile 138 ThePimp/Makefile 130 139 ]) 131 140 AC_CONFIG_FILES([ 132 141 pipi/pipi.pc 142 pipi-sharp/pipi-sharp.pc 143 pipi-sharp/pipi-sharp.dll.config 133 144 ]) 134 145 135 146 AC_OUTPUT 136 147 137 (cd pimp && ./configure)138 -
libpipi/trunk/pipi-sharp/pipi-sharp.mdp
r2866 r2869 1 <Project name=" Pipi" fileversion="2.0" language="C#" clr-version="Net_2_0" ctype="DotNetProject">1 <Project name="pipi-sharp" fileversion="2.0" language="C#" clr-version="Net_2_0" ctype="DotNetProject"> 2 2 <Configurations active="Debug"> 3 3 <Configuration name="Debug" ctype="DotNetProjectConfiguration"> 4 <Output directory=" bin/Debug" assembly="pipi-sharp" />4 <Output directory="." assembly="pipi-sharp" /> 5 5 <Build debugmode="True" target="Library" /> 6 6 <Execution runwithwarnings="True" consolepause="False" runtime="MsNet" clr-version="Net_2_0" /> … … 8 8 </Configuration> 9 9 <Configuration name="Release" ctype="DotNetProjectConfiguration"> 10 <Output directory=" bin/Release" assembly="pipi-sharp" />10 <Output directory="." assembly="pipi-sharp" /> 11 11 <Build debugmode="False" target="Library" /> 12 12 <Execution runwithwarnings="True" consolepause="False" runtime="MsNet" clr-version="Net_2_0" /> … … 16 16 <Contents> 17 17 <File name="Pipi.cs" subtype="Code" buildaction="Compile" /> 18 <File name="Picture.cs" subtype="Code" buildaction="Compile" /> 18 19 <File name="AssemblyInfo.cs" subtype="Code" buildaction="Compile" /> 19 20 </Contents>
Note: See TracChangeset
for help on using the changeset viewer.