[longomatch] Add a scroll bar for the periods syncer



commit a66666c06c5edad5b8a1c278804457f661e59772
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Jun 4 14:12:09 2014 +0200

    Add a scroll bar for the periods syncer

 .../LongoMatch.Gui.Component.ProjectPeriods.cs     |   31 ++++++++++++++------
 .../LongoMatch.Gui.Panel.NewProjectPanel.cs        |    2 +-
 LongoMatch.GUI/gtk-gui/gui.stetic                  |   22 ++++++++++++--
 3 files changed, 42 insertions(+), 13 deletions(-)
---
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectPeriods.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectPeriods.cs
index f44a87a..3c810bf 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectPeriods.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.ProjectPeriods.cs
@@ -7,6 +7,7 @@ namespace LongoMatch.Gui.Component
                private global::Gtk.VBox vbox2;
                private global::LongoMatch.Gui.PlayerBin playerbin2;
                private global::Gtk.DrawingArea drawingarea1;
+               private global::Gtk.ScrolledWindow scrolledwindow2;
                private global::Gtk.DrawingArea drawingarea2;
                private global::Gtk.Label synclabel;
 
@@ -35,22 +36,34 @@ namespace LongoMatch.Gui.Component
                        w2.Position = 1;
                        w2.Expand = false;
                        // Container child vbox2.Gtk.Box+BoxChild
+                       this.scrolledwindow2 = new global::Gtk.ScrolledWindow ();
+                       this.scrolledwindow2.HeightRequest = 50;
+                       this.scrolledwindow2.CanFocus = true;
+                       this.scrolledwindow2.Name = "scrolledwindow2";
+                       this.scrolledwindow2.ShadowType = ((global::Gtk.ShadowType)(1));
+                       // Container child scrolledwindow2.Gtk.Container+ContainerChild
+                       global::Gtk.Viewport w3 = new global::Gtk.Viewport ();
+                       w3.ShadowType = ((global::Gtk.ShadowType)(0));
+                       // Container child GtkViewport.Gtk.Container+ContainerChild
                        this.drawingarea2 = new global::Gtk.DrawingArea ();
                        this.drawingarea2.Name = "drawingarea2";
-                       this.vbox2.Add (this.drawingarea2);
-                       global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.vbox2 
[this.drawingarea2]));
-                       w3.Position = 2;
-                       w3.Expand = false;
+                       w3.Add (this.drawingarea2);
+                       this.scrolledwindow2.Add (w3);
+                       this.vbox2.Add (this.scrolledwindow2);
+                       global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.vbox2 
[this.scrolledwindow2]));
+                       w6.Position = 2;
+                       w6.Expand = false;
+                       w6.Fill = false;
                        // Container child vbox2.Gtk.Box+BoxChild
                        this.synclabel = new global::Gtk.Label ();
                        this.synclabel.Name = "synclabel";
                        this.synclabel.UseMarkup = true;
                        this.vbox2.Add (this.synclabel);
-                       global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.vbox2 
[this.synclabel]));
-                       w4.PackType = ((global::Gtk.PackType)(1));
-                       w4.Position = 3;
-                       w4.Expand = false;
-                       w4.Fill = false;
+                       global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.vbox2 
[this.synclabel]));
+                       w7.PackType = ((global::Gtk.PackType)(1));
+                       w7.Position = 3;
+                       w7.Expand = false;
+                       w7.Fill = false;
                        this.Add (this.vbox2);
                        if ((this.Child != null)) {
                                this.Child.ShowAll ();
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.NewProjectPanel.cs 
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.NewProjectPanel.cs
index 7fe1ffd..6ed0b62 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.NewProjectPanel.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.NewProjectPanel.cs
@@ -110,7 +110,7 @@ namespace LongoMatch.Gui.Panel
                        this.notebook1 = new global::Gtk.Notebook ();
                        this.notebook1.CanFocus = true;
                        this.notebook1.Name = "notebook1";
-                       this.notebook1.CurrentPage = 1;
+                       this.notebook1.CurrentPage = 0;
                        this.notebook1.ShowBorder = false;
                        this.notebook1.Scrollable = true;
                        // Container child notebook1.Gtk.Notebook+NotebookChild
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index 26986b3..af52d3a 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -6978,7 +6978,7 @@ Defining &lt;b&gt; Game Units &lt;/b&gt; will help you during the analysis to in
               <widget class="Gtk.Notebook" id="notebook1">
                 <property name="MemberName" />
                 <property name="CanFocus">True</property>
-                <property name="CurrentPage">1</property>
+                <property name="CurrentPage">0</property>
                 <property name="ShowBorder">False</property>
                 <property name="Scrollable">True</property>
                 <child>
@@ -7020,6 +7020,7 @@ Defining &lt;b&gt; Game Units &lt;/b&gt; will help you during the analysis to in
                             <property name="MemberName" />
                             <property name="CanFocus">True</property>
                             <property name="Label" translatable="yes">New project using a video 
file</property>
+                            <property name="Active">True</property>
                             <property name="DrawIndicator">True</property>
                             <property name="HasLabel">True</property>
                             <property name="UseUnderline">True</property>
@@ -10328,7 +10329,7 @@ Click 2 players to swap them</property>
       </widget>
     </child>
   </widget>
-  <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.ProjectPeriods" design-size="821 557">
+  <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.ProjectPeriods" design-size="821 496">
     <property name="MemberName" />
     <property name="Visible">False</property>
     <child>
@@ -10356,13 +10357,28 @@ Click 2 players to swap them</property>
           </packing>
         </child>
         <child>
-          <widget class="Gtk.DrawingArea" id="drawingarea2">
+          <widget class="Gtk.ScrolledWindow" id="scrolledwindow2">
             <property name="MemberName" />
+            <property name="HeightRequest">50</property>
+            <property name="CanFocus">True</property>
+            <property name="ShadowType">In</property>
+            <child>
+              <widget class="Gtk.Viewport" id="GtkViewport">
+                <property name="MemberName" />
+                <property name="ShadowType">None</property>
+                <child>
+                  <widget class="Gtk.DrawingArea" id="drawingarea2">
+                    <property name="MemberName" />
+                  </widget>
+                </child>
+              </widget>
+            </child>
           </widget>
           <packing>
             <property name="Position">2</property>
             <property name="AutoSize">False</property>
             <property name="Expand">False</property>
+            <property name="Fill">False</property>
           </packing>
         </child>
         <child>


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