Changeset 2876 for libpipi/trunk


Ignore:
Timestamp:
Oct 6, 2008, 12:19:56 AM (12 years ago)
Author:
Sam Hocevar
Message:

ThePimp?: we now have a FUCKING ABOUT BOX. That's right. Now we're a
real OpenSource? project.

Location:
libpipi/trunk/ThePimp
Files:
5 added
5 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/ThePimp/MainWindow.cs

    r2875 r2876  
    6161            save.Destroy();
    6262        }
     63
     64        protected virtual void OnAboutActionActivated (object sender, System.EventArgs e)
     65        {
     66            new About();
     67        }
    6368    }
    6469}
  • libpipi/trunk/ThePimp/Makefile.am

    r2875 r2876  
    22
    33pimp_sources = \
    4         $(srcdir)/AssemblyInfo.cs \
    5         $(srcdir)/Main.cs \
    6         $(srcdir)/PictureView.cs \
    7         $(srcdir)/gtk-gui/generated.cs \
    8         $(srcdir)/MainWindow.cs \
    9         $(srcdir)/gtk-gui/ThePimp.MainWindow.cs \
    10         $(srcdir)/OpenFile.cs \
    11         $(srcdir)/gtk-gui/ThePimp.OpenFile.cs \
    12         $(srcdir)/SaveFile.cs \
    13         $(srcdir)/gtk-gui/ThePimp.SaveFile.cs \
    14         $(srcdir)/ToolBox.cs \
    15         $(srcdir)/gtk-gui/ThePimp.ToolBox.cs
     4        AssemblyInfo.cs \
     5        Main.cs \
     6        About.cs \
     7        MainWindow.cs \
     8        OpenFile.cs \
     9        PictureView.cs \
     10        SaveFile.cs \
     11        ToolBox.cs \
     12        gtk-gui/generated.cs \
     13        gtk-gui/ThePimp.About.cs \
     14        gtk-gui/ThePimp.MainWindow.cs \
     15        gtk-gui/ThePimp.OpenFile.cs \
     16        gtk-gui/ThePimp.PictureView.cs \
     17        gtk-gui/ThePimp.SaveFile.cs \
     18        gtk-gui/ThePimp.ToolBox.cs
    1619
    1720pimp_resources = \
    1821        gtk-gui/gui.stetic \
    19         gtk-gui/objects.xml
     22        gtk-gui/objects.xml \
     23        images/about.png
     24
     25image_sources = \
     26        images/about.svg
    2027
    2128if USE_CSHARP
     
    2330endif
    2431
    25 EXTRA_DIST = $(pimp_sources) $(pimp_resources)
     32EXTRA_DIST = $(pimp_sources) $(pimp_resources) $(image_sources)
    2633
    2734Pimp.exe: ../pipi-sharp/pipi-sharp.dll $(pimp_sources) $(pimp_resources)
  • libpipi/trunk/ThePimp/ThePimp.mdp

    r2875 r2876  
    44      <CustomCommands>
    55        <Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.dll.config ${TargetDir}" workingdir="" />
    6         <Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.mdb ${TargetDir}" />
     6        <Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.dll.mdb ${TargetDir}" />
    77      </CustomCommands>
    88      <Output directory="." assemblyKeyFile="." assembly="Pimp" />
     
    1414      <CustomCommands>
    1515        <Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.dll.config ${TargetDir}" />
    16         <Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.mdb ${TargetDir}" />
     16        <Command type="AfterBuild" command="cp ${CombineDir}/pipi-sharp/pipi-sharp.dll.mdb ${TargetDir}" />
    1717      </CustomCommands>
    1818      <Output directory="." assemblyKeyFile="." assembly="Pimp" />
     
    3939    <File name="SaveFile.cs" subtype="Code" buildaction="Compile" />
    4040    <File name="gtk-gui/ThePimp.SaveFile.cs" subtype="Code" buildaction="Compile" />
     41    <File name="About.cs" subtype="Code" buildaction="Compile" />
     42    <File name="gtk-gui/ThePimp.About.cs" subtype="Code" buildaction="Compile" />
     43    <File name="images/about.png" subtype="Code" buildaction="EmbedAsResource" />
    4144  </Contents>
    4245  <References>
  • libpipi/trunk/ThePimp/gtk-gui/ThePimp.MainWindow.cs

    r2875 r2876  
    143143            w2.Add(this.HelpAction1, null);
    144144            this.AboutAction = new Gtk.Action("AboutAction", Mono.Unix.Catalog.GetString("_About"), null, "gtk-about");
    145             this.AboutAction.Sensitive = false;
    146145            this.AboutAction.ShortLabel = Mono.Unix.Catalog.GetString("_About");
    147146            w2.Add(this.AboutAction, null);
     
    300299            this.OpenAction.Activated += new System.EventHandler(this.OnOpenActionActivated);
    301300            this.QuitAction.Activated += new System.EventHandler(this.OnQuitActionActivated);
     301            this.AboutAction.Activated += new System.EventHandler(this.OnAboutActionActivated);
    302302            this.saveAsAction.Activated += new System.EventHandler(this.OnSaveAsActionActivated);
    303303        }
  • libpipi/trunk/ThePimp/gtk-gui/gui.stetic

    r2875 r2876  
    9696        <property name="Type">Action</property>
    9797        <property name="Label" translatable="yes">_About</property>
    98         <property name="Sensitive">False</property>
    9998        <property name="ShortLabel" translatable="yes">_About</property>
    10099        <property name="StockId">gtk-about</property>
     100        <signal name="Activated" handler="OnAboutActionActivated" />
    101101      </action>
    102102      <action id="UndoAction">
     
    782782    </child>
    783783  </widget>
     784  <widget class="Gtk.Dialog" id="ThePimp.About" design-size="462 367">
     785    <property name="MemberName" />
     786    <property name="Title" translatable="yes">About The Pimp</property>
     787    <property name="Icon">stock:gtk-about Menu</property>
     788    <property name="WindowPosition">CenterOnParent</property>
     789    <property name="Modal">True</property>
     790    <property name="Buttons">1</property>
     791    <property name="HelpButton">False</property>
     792    <property name="HasSeparator">False</property>
     793    <child internal-child="VBox">
     794      <widget class="Gtk.VBox" id="dialog1_VBox">
     795        <property name="MemberName" />
     796        <property name="BorderWidth">2</property>
     797        <child>
     798          <widget class="Gtk.Image" id="image1">
     799            <property name="MemberName" />
     800            <property name="Pixbuf">resource:about.png</property>
     801          </widget>
     802          <packing>
     803            <property name="Position">0</property>
     804            <property name="AutoSize">True</property>
     805            <property name="Expand">False</property>
     806            <property name="Fill">False</property>
     807          </packing>
     808        </child>
     809      </widget>
     810    </child>
     811    <child internal-child="ActionArea">
     812      <widget class="Gtk.HButtonBox" id="dialog1_ActionArea">
     813        <property name="MemberName" />
     814        <property name="Spacing">6</property>
     815        <property name="BorderWidth">5</property>
     816        <property name="Size">1</property>
     817        <property name="LayoutStyle">End</property>
     818        <child>
     819          <widget class="Gtk.Button" id="buttonClose">
     820            <property name="MemberName" />
     821            <property name="CanDefault">True</property>
     822            <property name="CanFocus">True</property>
     823            <property name="UseStock">True</property>
     824            <property name="Type">StockItem</property>
     825            <property name="StockId">gtk-close</property>
     826            <property name="ResponseId">-7</property>
     827            <signal name="Clicked" handler="OnButtonCloseClicked" />
     828            <property name="label">gtk-close</property>
     829          </widget>
     830          <packing>
     831            <property name="Expand">False</property>
     832            <property name="Fill">False</property>
     833          </packing>
     834        </child>
     835      </widget>
     836    </child>
     837  </widget>
    784838</stetic-interface>
Note: See TracChangeset for help on using the changeset viewer.