[longomatch/fakelive: 4/24] Add a timer to the CapturerBin



commit 41908c8258f4c41451e8dd9a999a8712600d5eb9
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Feb 17 21:53:14 2010 +0100

    Add a timer to the CapturerBin

 CesarPlayer/gtk-gui/LongoMatch.Gui.CapturerBin.cs |   32 ++++++-
 CesarPlayer/gtk-gui/gui.stetic                    |   95 +++++++++++++--------
 2 files changed, 89 insertions(+), 38 deletions(-)
---
diff --git a/CesarPlayer/gtk-gui/LongoMatch.Gui.CapturerBin.cs b/CesarPlayer/gtk-gui/LongoMatch.Gui.CapturerBin.cs
index 07ca6b0..0d1c048 100644
--- a/CesarPlayer/gtk-gui/LongoMatch.Gui.CapturerBin.cs
+++ b/CesarPlayer/gtk-gui/LongoMatch.Gui.CapturerBin.cs
@@ -17,6 +17,8 @@ namespace LongoMatch.Gui {
         
         private Gtk.HBox capturerhbox;
         
+        private Gtk.HBox hbox1;
+        
         private Gtk.HBox buttonsbox;
         
         private Gtk.Button recbutton;
@@ -25,6 +27,8 @@ namespace LongoMatch.Gui {
         
         private Gtk.Button stopbutton;
         
+        private Gtk.Label timelabel;
+        
         protected virtual void Build() {
             Stetic.Gui.Initialize(this);
             // Widget LongoMatch.Gui.CapturerBin
@@ -42,6 +46,10 @@ namespace LongoMatch.Gui {
             Gtk.Box.BoxChild w1 = ((Gtk.Box.BoxChild)(this.vbox1[this.capturerhbox]));
             w1.Position = 0;
             // Container child vbox1.Gtk.Box+BoxChild
+            this.hbox1 = new Gtk.HBox();
+            this.hbox1.Name = "hbox1";
+            this.hbox1.Spacing = 6;
+            // Container child hbox1.Gtk.Box+BoxChild
             this.buttonsbox = new Gtk.HBox();
             this.buttonsbox.Name = "buttonsbox";
             this.buttonsbox.Spacing = 6;
@@ -61,6 +69,7 @@ namespace LongoMatch.Gui {
             w3.Add(w4);
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Label w6 = new Gtk.Label();
+            w6.LabelProp = "";
             w3.Add(w6);
             w2.Add(w3);
             this.recbutton.Add(w2);
@@ -85,6 +94,7 @@ namespace LongoMatch.Gui {
             w12.Add(w13);
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Label w15 = new Gtk.Label();
+            w15.LabelProp = "";
             w12.Add(w15);
             w11.Add(w12);
             this.pausebutton.Add(w11);
@@ -109,6 +119,7 @@ namespace LongoMatch.Gui {
             w21.Add(w22);
             // Container child GtkHBox.Gtk.Container+ContainerChild
             Gtk.Label w24 = new Gtk.Label();
+            w24.LabelProp = "";
             w21.Add(w24);
             w20.Add(w21);
             this.stopbutton.Add(w20);
@@ -117,11 +128,26 @@ namespace LongoMatch.Gui {
             w28.Position = 2;
             w28.Expand = false;
             w28.Fill = false;
-            this.vbox1.Add(this.buttonsbox);
-            Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.vbox1[this.buttonsbox]));
-            w29.Position = 1;
+            this.hbox1.Add(this.buttonsbox);
+            Gtk.Box.BoxChild w29 = ((Gtk.Box.BoxChild)(this.hbox1[this.buttonsbox]));
+            w29.Position = 0;
             w29.Expand = false;
             w29.Fill = false;
+            // Container child hbox1.Gtk.Box+BoxChild
+            this.timelabel = new Gtk.Label();
+            this.timelabel.Name = "timelabel";
+            this.timelabel.Xalign = 1F;
+            this.timelabel.LabelProp = "Time: 0:00:00";
+            this.hbox1.Add(this.timelabel);
+            Gtk.Box.BoxChild w30 = ((Gtk.Box.BoxChild)(this.hbox1[this.timelabel]));
+            w30.PackType = ((Gtk.PackType)(1));
+            w30.Position = 1;
+            w30.Expand = false;
+            this.vbox1.Add(this.hbox1);
+            Gtk.Box.BoxChild w31 = ((Gtk.Box.BoxChild)(this.vbox1[this.hbox1]));
+            w31.Position = 1;
+            w31.Expand = false;
+            w31.Fill = false;
             this.Add(this.vbox1);
             if ((this.Child != null)) {
                 this.Child.ShowAll();
diff --git a/CesarPlayer/gtk-gui/gui.stetic b/CesarPlayer/gtk-gui/gui.stetic
index 911a7c8..a63eb0e 100644
--- a/CesarPlayer/gtk-gui/gui.stetic
+++ b/CesarPlayer/gtk-gui/gui.stetic
@@ -5,7 +5,7 @@
     <target-gtk-version>2.12</target-gtk-version>
   </configuration>
   <import>
-    <widget-library name="../bin/Release/CesarPlayer.dll" internal="true" />
+    <widget-library name="../a.dll" internal="true" />
   </import>
   <widget class="Gtk.Window" id="LongoMatch.Gui.VolumeWindow" design-size="31 204">
     <property name="MemberName" />
@@ -354,58 +354,83 @@
           </packing>
         </child>
         <child>
-          <widget class="Gtk.HBox" id="buttonsbox">
+          <widget class="Gtk.HBox" id="hbox1">
             <property name="MemberName" />
             <property name="Spacing">6</property>
             <child>
-              <widget class="Gtk.Button" id="recbutton">
+              <widget class="Gtk.HBox" id="buttonsbox">
                 <property name="MemberName" />
-                <property name="CanFocus">True</property>
-                <property name="Type">TextAndIcon</property>
-                <property name="Icon">stock:gtk-media-record Button</property>
-                <property name="Label" translatable="yes" />
-                <property name="UseUnderline">True</property>
-                <signal name="Clicked" handler="OnRecbuttonClicked" />
+                <property name="Spacing">6</property>
+                <child>
+                  <widget class="Gtk.Button" id="recbutton">
+                    <property name="MemberName" />
+                    <property name="CanFocus">True</property>
+                    <property name="Type">TextAndIcon</property>
+                    <property name="Icon">stock:gtk-media-record Button</property>
+                    <property name="Label" translatable="yes" />
+                    <property name="UseUnderline">True</property>
+                    <signal name="Clicked" handler="OnRecbuttonClicked" />
+                  </widget>
+                  <packing>
+                    <property name="Position">0</property>
+                    <property name="AutoSize">False</property>
+                    <property name="Expand">False</property>
+                    <property name="Fill">False</property>
+                  </packing>
+                </child>
+                <child>
+                  <widget class="Gtk.Button" id="pausebutton">
+                    <property name="MemberName" />
+                    <property name="CanFocus">True</property>
+                    <property name="Type">TextAndIcon</property>
+                    <property name="Icon">stock:gtk-media-pause Button</property>
+                    <property name="Label" translatable="yes" />
+                    <property name="UseUnderline">True</property>
+                    <signal name="Clicked" handler="OnPausebuttonClicked" />
+                  </widget>
+                  <packing>
+                    <property name="Position">1</property>
+                    <property name="AutoSize">False</property>
+                    <property name="Expand">False</property>
+                    <property name="Fill">False</property>
+                  </packing>
+                </child>
+                <child>
+                  <widget class="Gtk.Button" id="stopbutton">
+                    <property name="MemberName" />
+                    <property name="CanFocus">True</property>
+                    <property name="Type">TextAndIcon</property>
+                    <property name="Icon">stock:gtk-media-stop Button</property>
+                    <property name="Label" translatable="yes" />
+                    <property name="UseUnderline">True</property>
+                    <signal name="Clicked" handler="OnStopbuttonClicked" />
+                  </widget>
+                  <packing>
+                    <property name="Position">2</property>
+                    <property name="AutoSize">True</property>
+                    <property name="Expand">False</property>
+                    <property name="Fill">False</property>
+                  </packing>
+                </child>
               </widget>
               <packing>
                 <property name="Position">0</property>
-                <property name="AutoSize">False</property>
+                <property name="AutoSize">True</property>
                 <property name="Expand">False</property>
                 <property name="Fill">False</property>
               </packing>
             </child>
             <child>
-              <widget class="Gtk.Button" id="pausebutton">
+              <widget class="Gtk.Label" id="timelabel">
                 <property name="MemberName" />
-                <property name="CanFocus">True</property>
-                <property name="Type">TextAndIcon</property>
-                <property name="Icon">stock:gtk-media-pause Button</property>
-                <property name="Label" translatable="yes" />
-                <property name="UseUnderline">True</property>
-                <signal name="Clicked" handler="OnPausebuttonClicked" />
+                <property name="Xalign">1</property>
+                <property name="LabelProp">Time: 0:00:00</property>
               </widget>
               <packing>
+                <property name="PackType">End</property>
                 <property name="Position">1</property>
                 <property name="AutoSize">False</property>
                 <property name="Expand">False</property>
-                <property name="Fill">False</property>
-              </packing>
-            </child>
-            <child>
-              <widget class="Gtk.Button" id="stopbutton">
-                <property name="MemberName" />
-                <property name="CanFocus">True</property>
-                <property name="Type">TextAndIcon</property>
-                <property name="Icon">stock:gtk-media-stop Button</property>
-                <property name="Label" translatable="yes" />
-                <property name="UseUnderline">True</property>
-                <signal name="Clicked" handler="OnStopbuttonClicked" />
-              </widget>
-              <packing>
-                <property name="Position">2</property>
-                <property name="AutoSize">True</property>
-                <property name="Expand">False</property>
-                <property name="Fill">False</property>
               </packing>
             </child>
           </widget>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]