[longomatch] Refactor VideoFileInfo to show the Name and use in ProjectsManager.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Refactor VideoFileInfo to show the Name and use in ProjectsManager.
- Date: Wed, 18 Mar 2015 14:36:44 +0000 (UTC)
commit ef84b334bf60c8e71a8e5e80659853da5b96e4a2
Author: Julien Moutte <julien fluendo com>
Date: Fri Mar 6 16:13:51 2015 +0100
Refactor VideoFileInfo to show the Name and use in ProjectsManager.
The Project manager now shows all the Media Files in the set.
LongoMatch.GUI/Gui/Component/VideoFileInfo.cs | 21 +-
LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs | 24 ++-
.../LongoMatch.Gui.Component.VideoFileInfo.cs | 101 +++++---
.../LongoMatch.Gui.Panel.ProjectsManagerPanel.cs | 156 +++++-----
LongoMatch.GUI/gtk-gui/gui.stetic | 303 ++++++++++----------
5 files changed, 325 insertions(+), 280 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs b/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs
index 7bb66da..60d31ef 100644
--- a/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs
+++ b/LongoMatch.GUI/Gui/Component/VideoFileInfo.cs
@@ -29,7 +29,6 @@ namespace LongoMatch.Gui.Component
public partial class VideoFileInfo : Gtk.Bin
{
MediaFileSet fileSet;
- MediaFileAngle angle;
MediaFile mediaFile;
bool disableChanges;
@@ -41,20 +40,16 @@ namespace LongoMatch.Gui.Component
filelabel.ModifyFg (StateType.Normal, Misc.ToGdkColor (Config.Style.PaletteText));
}
- public void SetMediaFile (MediaFileSet fileSet, MediaFileAngle angle)
+ public void SetMediaFileSet (MediaFileSet files, MediaFile file)
{
- this.fileSet = fileSet;
- this.angle = angle;
- // FIXME: use first file for now
- mediaFile = fileSet.First ();
- disableChanges = false;
- UpdateMediaFile ();
+ fileSet = files;
+ SetMediaFile (file, true);
}
-
- public void SetMediaFile (MediaFile file)
+
+ public void SetMediaFile (MediaFile file, bool editable = false)
{
mediaFile = file;
- disableChanges = true;
+ disableChanges = !editable;
UpdateMediaFile ();
}
@@ -64,6 +59,7 @@ namespace LongoMatch.Gui.Component
Visible = false;
return;
}
+ namelabel.Text = mediaFile.Name;
if (mediaFile.FilePath == Constants.FAKE_PROJECT) {
filelabel.Text = Catalog.GetString ("No video file associated yet for live
project");
snapshotimage.Pixbuf = Misc.LoadIcon ("longomatch-video-device-fake", 80);
@@ -104,8 +100,7 @@ namespace LongoMatch.Gui.Component
if (mediaFile != null) {
file.Offset = mediaFile.Offset;
}
- // FIXME: Change file for a given name in list
- fileSet.Add (file);
+ fileSet.Replace (mediaFile, file);
mediaFile = file;
UpdateMediaFile ();
}
diff --git a/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs
b/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs
index 75ece3b..36bc0fd 100644
--- a/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/ProjectsManagerPanel.cs
@@ -38,6 +38,7 @@ namespace LongoMatch.Gui.Panel
Project openedProject, loadedProject;
List<ProjectDescription> selectedProjects;
+ List<VideoFileInfo> videoFileInfos;
IDatabase DB;
IGUIToolkit gkit;
bool edited;
@@ -49,6 +50,8 @@ namespace LongoMatch.Gui.Panel
this.gkit = Config.GUIToolkit;
this.Build ();
+ this.videoFileInfos = new List<VideoFileInfo> ();
+
savebuttonimage.Pixbuf = Misc.LoadIcon ("longomatch-project-save", 34);
exportbuttonimage.Pixbuf = Misc.LoadIcon ("longomatch-project-export", 34);
deletebuttonimage.Pixbuf = Misc.LoadIcon ("longomatch-project-delete", 34);
@@ -127,10 +130,23 @@ namespace LongoMatch.Gui.Panel
desctextview.Buffer.InsertAtCursor (project.Description.Description ?? "");
loadedProject = project;
- videofileinfo1.SetMediaFile (project.Description.FileSet, MediaFileAngle.Angle1);
- videofileinfo2.SetMediaFile (project.Description.FileSet, MediaFileAngle.Angle2);
- videofileinfo3.SetMediaFile (project.Description.FileSet, MediaFileAngle.Angle3);
- videofileinfo4.SetMediaFile (project.Description.FileSet, MediaFileAngle.Angle4);
+ foreach (VideoFileInfo vfi in videoFileInfos) {
+ videofileinfo_vbox.Remove (vfi);
+ }
+ videoFileInfos.Clear ();
+
+ foreach (MediaFile mf in project.Description.FileSet) {
+ VideoFileInfo vfi = new VideoFileInfo ();
+
+ vfi.SetMediaFileSet (project.Description.FileSet, mf);
+
+ vfi.ShowAll ();
+
+ videoFileInfos.Add (vfi);
+
+ videofileinfo_vbox.PackStart (vfi, true, true, 0);
+ }
+
projectbox.Visible = true;
edited = false;
}
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoFileInfo.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoFileInfo.cs
index 92e099b..fda08a4 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoFileInfo.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Component.VideoFileInfo.cs
@@ -5,18 +5,31 @@ namespace LongoMatch.Gui.Component
public partial class VideoFileInfo
{
private global::Gtk.EventBox eventbox3;
+
private global::Gtk.VBox vbox4;
+
private global::Gtk.HBox hbox1;
+
private global::Gtk.Image snapshotimage;
- private global::Gtk.VBox vbox2;
- private global::Gtk.Label filelabel;
+
private global::Gtk.Table table1;
+
private global::Gtk.Label audiolabel;
+
private global::Gtk.Label containerlabel;
+
private global::Gtk.Label durationlabel;
+
+ private global::Gtk.Label filelabel;
+
private global::Gtk.Label formatlabel;
+
private global::Gtk.Label label9;
+
+ private global::Gtk.Label namelabel;
+
private global::Gtk.Label videolabel;
+
private global::Gtk.HSeparator hseparator2;
protected virtual void Build ()
@@ -45,20 +58,7 @@ namespace LongoMatch.Gui.Component
w1.Expand = false;
w1.Fill = false;
// Container child hbox1.Gtk.Box+BoxChild
- this.vbox2 = new global::Gtk.VBox ();
- this.vbox2.Name = "vbox2";
- this.vbox2.Spacing = 6;
- // Container child vbox2.Gtk.Box+BoxChild
- this.filelabel = new global::Gtk.Label ();
- this.filelabel.Name = "filelabel";
- this.filelabel.Xalign = 0F;
- this.filelabel.Ellipsize = ((global::Pango.EllipsizeMode)(1));
- this.vbox2.Add (this.filelabel);
- global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.vbox2
[this.filelabel]));
- w2.Position = 0;
- // Container child vbox2.Gtk.Box+BoxChild
- this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(2)), false);
- this.table1.Name = "table1";
+ this.table1 = new global::Gtk.Table (((uint)(4)), ((uint)(2)), true);
this.table1.RowSpacing = ((uint)(6));
this.table1.ColumnSpacing = ((uint)(6));
// Container child table1.Gtk.Table+TableChild
@@ -66,55 +66,88 @@ namespace LongoMatch.Gui.Component
this.audiolabel.Name = "audiolabel";
this.audiolabel.Xalign = 0F;
this.table1.Add (this.audiolabel);
- global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1
[this.audiolabel]));
- w3.TopAttach = ((uint)(1));
- w3.BottomAttach = ((uint)(2));
- w3.LeftAttach = ((uint)(1));
- w3.RightAttach = ((uint)(2));
+ global::Gtk.Table.TableChild w2 = ((global::Gtk.Table.TableChild)(this.table1
[this.audiolabel]));
+ w2.TopAttach = ((uint)(2));
+ w2.BottomAttach = ((uint)(3));
+ w2.LeftAttach = ((uint)(1));
+ w2.RightAttach = ((uint)(2));
+ w2.XOptions = ((global::Gtk.AttachOptions)(4));
+ w2.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
this.containerlabel = new global::Gtk.Label ();
this.containerlabel.Name = "containerlabel";
this.containerlabel.Xalign = 0F;
this.table1.Add (this.containerlabel);
- global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1
[this.containerlabel]));
- w4.TopAttach = ((uint)(2));
- w4.BottomAttach = ((uint)(3));
+ global::Gtk.Table.TableChild w3 = ((global::Gtk.Table.TableChild)(this.table1
[this.containerlabel]));
+ w3.TopAttach = ((uint)(3));
+ w3.BottomAttach = ((uint)(4));
+ w3.XOptions = ((global::Gtk.AttachOptions)(4));
+ w3.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
this.durationlabel = new global::Gtk.Label ();
this.durationlabel.Name = "durationlabel";
this.durationlabel.Xalign = 0F;
this.table1.Add (this.durationlabel);
+ global::Gtk.Table.TableChild w4 = ((global::Gtk.Table.TableChild)(this.table1
[this.durationlabel]));
+ w4.TopAttach = ((uint)(1));
+ w4.BottomAttach = ((uint)(2));
+ w4.XOptions = ((global::Gtk.AttachOptions)(4));
+ w4.YOptions = ((global::Gtk.AttachOptions)(4));
+ // Container child table1.Gtk.Table+TableChild
+ this.filelabel = new global::Gtk.Label ();
+ this.filelabel.Name = "filelabel";
+ this.filelabel.Xalign = 0F;
+ this.filelabel.Ellipsize = ((global::Pango.EllipsizeMode)(1));
+ this.table1.Add (this.filelabel);
+ global::Gtk.Table.TableChild w5 = ((global::Gtk.Table.TableChild)(this.table1
[this.filelabel]));
+ w5.LeftAttach = ((uint)(1));
+ w5.RightAttach = ((uint)(2));
+ w5.XOptions = ((global::Gtk.AttachOptions)(7));
+ w5.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
this.formatlabel = new global::Gtk.Label ();
this.formatlabel.Name = "formatlabel";
this.formatlabel.Xalign = 0F;
this.table1.Add (this.formatlabel);
global::Gtk.Table.TableChild w6 = ((global::Gtk.Table.TableChild)(this.table1
[this.formatlabel]));
+ w6.TopAttach = ((uint)(1));
+ w6.BottomAttach = ((uint)(2));
w6.LeftAttach = ((uint)(1));
w6.RightAttach = ((uint)(2));
+ w6.XOptions = ((global::Gtk.AttachOptions)(4));
+ w6.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
this.label9 = new global::Gtk.Label ();
this.label9.Name = "label9";
this.label9.Xalign = 0F;
this.table1.Add (this.label9);
global::Gtk.Table.TableChild w7 = ((global::Gtk.Table.TableChild)(this.table1
[this.label9]));
- w7.TopAttach = ((uint)(2));
- w7.BottomAttach = ((uint)(3));
+ w7.TopAttach = ((uint)(3));
+ w7.BottomAttach = ((uint)(4));
w7.LeftAttach = ((uint)(1));
w7.RightAttach = ((uint)(2));
+ w7.XOptions = ((global::Gtk.AttachOptions)(4));
+ w7.YOptions = ((global::Gtk.AttachOptions)(4));
+ // Container child table1.Gtk.Table+TableChild
+ this.namelabel = new global::Gtk.Label ();
+ this.namelabel.Name = "namelabel";
+ this.namelabel.Xalign = 0F;
+ this.table1.Add (this.namelabel);
+ global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1
[this.namelabel]));
+ w8.XOptions = ((global::Gtk.AttachOptions)(4));
+ w8.YOptions = ((global::Gtk.AttachOptions)(4));
// Container child table1.Gtk.Table+TableChild
this.videolabel = new global::Gtk.Label ();
this.videolabel.Name = "videolabel";
this.videolabel.Xalign = 0F;
this.table1.Add (this.videolabel);
- global::Gtk.Table.TableChild w8 = ((global::Gtk.Table.TableChild)(this.table1
[this.videolabel]));
- w8.TopAttach = ((uint)(1));
- w8.BottomAttach = ((uint)(2));
- this.vbox2.Add (this.table1);
- global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.table1]));
- w9.Position = 1;
- this.hbox1.Add (this.vbox2);
- global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.vbox2]));
+ global::Gtk.Table.TableChild w9 = ((global::Gtk.Table.TableChild)(this.table1
[this.videolabel]));
+ w9.TopAttach = ((uint)(2));
+ w9.BottomAttach = ((uint)(3));
+ w9.XOptions = ((global::Gtk.AttachOptions)(4));
+ w9.YOptions = ((global::Gtk.AttachOptions)(4));
+ this.hbox1.Add (this.table1);
+ global::Gtk.Box.BoxChild w10 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.table1]));
w10.Position = 1;
this.vbox4.Add (this.hbox1);
global::Gtk.Box.BoxChild w11 = ((global::Gtk.Box.BoxChild)(this.vbox4 [this.hbox1]));
diff --git a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.ProjectsManagerPanel.cs
b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.ProjectsManagerPanel.cs
index 7cf5f54..3588a9e 100644
--- a/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.ProjectsManagerPanel.cs
+++ b/LongoMatch.GUI/gtk-gui/LongoMatch.Gui.Panel.ProjectsManagerPanel.cs
@@ -5,47 +5,83 @@ namespace LongoMatch.Gui.Panel
public partial class ProjectsManagerPanel
{
private global::Gtk.VBox vbox3;
+
private global::LongoMatch.Gui.Panel.PanelHeader panelheader1;
+
private global::Gtk.Alignment contentalignment;
+
private global::Gtk.Notebook notebook1;
+
private global::Gtk.HBox hbox4;
+
private global::LongoMatch.Gui.Component.ProjectListWidget projectlistwidget1;
+
private global::Gtk.Alignment projectpropertiesalignment;
+
private global::Gtk.VBox rbox;
+
private global::Gtk.ScrolledWindow scrolledwindow3;
+
private global::Gtk.VBox projectbox;
+
private global::LongoMatch.Gui.Component.GameDescriptionHeader gamedescriptionheader1;
+
private global::Gtk.EventBox infoeventbox;
+
private global::Gtk.Label infolabel;
+
private global::Gtk.Table table1;
+
private global::Gtk.Entry competitionentry;
+
private global::Gtk.Label Competitionlabel;
+
private global::LongoMatch.Gui.Component.DatePicker datepicker;
+
private global::Gtk.ScrolledWindow GtkScrolledWindow;
+
private global::Gtk.TextView desctextview;
+
private global::Gtk.Label label14;
+
private global::Gtk.Label label5;
+
private global::Gtk.Label label9;
+
private global::Gtk.Entry seasonentry;
+
private global::Gtk.Label seasonlabel;
+
private global::Gtk.Label templatelabel;
+
private global::Gtk.EventBox videoseventbox;
+
private global::Gtk.Label videoslabel;
- private global::Gtk.VBox vbox4;
+
+ private global::Gtk.VBox videofileinfo_vbox;
+
private global::LongoMatch.Gui.Component.VideoFileInfo videofileinfo1;
- private global::LongoMatch.Gui.Component.VideoFileInfo videofileinfo2;
- private global::LongoMatch.Gui.Component.VideoFileInfo videofileinfo3;
- private global::LongoMatch.Gui.Component.VideoFileInfo videofileinfo4;
+
private global::Gtk.HButtonBox hbuttonbox1;
+
private global::Gtk.Button savebutton;
+
private global::Gtk.Image savebuttonimage;
+
private global::Gtk.Button openbutton;
+
private global::Gtk.Image openbuttonimage;
+
private global::Gtk.Button exportbutton;
+
private global::Gtk.Image exportbuttonimage;
+
private global::Gtk.Button deletebutton;
+
private global::Gtk.Image deletebuttonimage;
+
private global::Gtk.Label label1;
+
private global::Gtk.Label label3;
protected virtual void Build ()
@@ -136,6 +172,7 @@ namespace LongoMatch.Gui.Panel
w6.Fill = false;
// Container child projectbox.Gtk.Box+BoxChild
this.table1 = new global::Gtk.Table (((uint)(3)), ((uint)(4)), false);
+ this.table1.Name = "table1";
this.table1.RowSpacing = ((uint)(5));
this.table1.ColumnSpacing = ((uint)(5));
// Container child table1.Gtk.Table+TableChild
@@ -277,61 +314,28 @@ namespace LongoMatch.Gui.Panel
w20.Expand = false;
w20.Fill = false;
// Container child projectbox.Gtk.Box+BoxChild
- this.vbox4 = new global::Gtk.VBox ();
- this.vbox4.Name = "vbox4";
- // Container child vbox4.Gtk.Box+BoxChild
+ this.videofileinfo_vbox = new global::Gtk.VBox ();
+ this.videofileinfo_vbox.Name = "videofileinfo_vbox";
+ // Container child videofileinfo_vbox.Gtk.Box+BoxChild
this.videofileinfo1 = new global::LongoMatch.Gui.Component.VideoFileInfo ();
this.videofileinfo1.HeightRequest = 100;
this.videofileinfo1.Events = ((global::Gdk.EventMask)(256));
this.videofileinfo1.Name = "videofileinfo1";
- this.vbox4.Add (this.videofileinfo1);
- global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.vbox4
[this.videofileinfo1]));
+ this.videofileinfo_vbox.Add (this.videofileinfo1);
+ global::Gtk.Box.BoxChild w21 = ((global::Gtk.Box.BoxChild)(this.videofileinfo_vbox
[this.videofileinfo1]));
w21.Position = 0;
w21.Expand = false;
w21.Fill = false;
- // Container child vbox4.Gtk.Box+BoxChild
- this.videofileinfo2 = new global::LongoMatch.Gui.Component.VideoFileInfo ();
- this.videofileinfo2.HeightRequest = 100;
- this.videofileinfo2.Events = ((global::Gdk.EventMask)(256));
- this.videofileinfo2.Name = "videofileinfo2";
- this.vbox4.Add (this.videofileinfo2);
- global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.vbox4
[this.videofileinfo2]));
- w22.Position = 1;
- w22.Expand = false;
- w22.Fill = false;
- // Container child vbox4.Gtk.Box+BoxChild
- this.videofileinfo3 = new global::LongoMatch.Gui.Component.VideoFileInfo ();
- this.videofileinfo3.HeightRequest = 100;
- this.videofileinfo3.Events = ((global::Gdk.EventMask)(256));
- this.videofileinfo3.Name = "videofileinfo3";
- this.vbox4.Add (this.videofileinfo3);
- global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox4
[this.videofileinfo3]));
- w23.Position = 2;
- w23.Expand = false;
- w23.Fill = false;
- // Container child vbox4.Gtk.Box+BoxChild
- this.videofileinfo4 = new global::LongoMatch.Gui.Component.VideoFileInfo ();
- this.videofileinfo4.HeightRequest = 100;
- this.videofileinfo4.Events = ((global::Gdk.EventMask)(256));
- this.videofileinfo4.Name = "videofileinfo4";
- this.vbox4.Add (this.videofileinfo4);
- global::Gtk.Box.BoxChild w24 = ((global::Gtk.Box.BoxChild)(this.vbox4
[this.videofileinfo4]));
- w24.Position = 3;
- w24.Expand = false;
- w24.Fill = false;
- this.projectbox.Add (this.vbox4);
- global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(this.projectbox
[this.vbox4]));
- w25.Position = 4;
- w25.Expand = false;
- w25.Fill = false;
+ this.projectbox.Add (this.videofileinfo_vbox);
+ global::Gtk.Box.BoxChild w22 = ((global::Gtk.Box.BoxChild)(this.projectbox
[this.videofileinfo_vbox]));
+ w22.Position = 4;
w3.Add (this.projectbox);
this.scrolledwindow3.Add (w3);
this.rbox.Add (this.scrolledwindow3);
- global::Gtk.Box.BoxChild w28 = ((global::Gtk.Box.BoxChild)(this.rbox
[this.scrolledwindow3]));
- w28.Position = 0;
+ global::Gtk.Box.BoxChild w25 = ((global::Gtk.Box.BoxChild)(this.rbox
[this.scrolledwindow3]));
+ w25.Position = 0;
// Container child rbox.Gtk.Box+BoxChild
this.hbuttonbox1 = new global::Gtk.HButtonBox ();
- this.hbuttonbox1.Name = "hbuttonbox1";
// Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
this.savebutton = new global::Gtk.Button ();
this.savebutton.TooltipMarkup = "Save";
@@ -342,11 +346,10 @@ namespace LongoMatch.Gui.Panel
this.savebuttonimage = new global::Gtk.Image ();
this.savebuttonimage.Name = "savebuttonimage";
this.savebutton.Add (this.savebuttonimage);
- this.savebutton.Label = null;
this.hbuttonbox1.Add (this.savebutton);
- global::Gtk.ButtonBox.ButtonBoxChild w30 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1 [this.savebutton]));
- w30.Expand = false;
- w30.Fill = false;
+ global::Gtk.ButtonBox.ButtonBoxChild w27 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1 [this.savebutton]));
+ w27.Expand = false;
+ w27.Fill = false;
// Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
this.openbutton = new global::Gtk.Button ();
this.openbutton.TooltipMarkup = "Open";
@@ -357,12 +360,11 @@ namespace LongoMatch.Gui.Panel
this.openbuttonimage = new global::Gtk.Image ();
this.openbuttonimage.Name = "openbuttonimage";
this.openbutton.Add (this.openbuttonimage);
- this.openbutton.Label = null;
this.hbuttonbox1.Add (this.openbutton);
- global::Gtk.ButtonBox.ButtonBoxChild w32 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1 [this.openbutton]));
- w32.Position = 1;
- w32.Expand = false;
- w32.Fill = false;
+ global::Gtk.ButtonBox.ButtonBoxChild w29 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1 [this.openbutton]));
+ w29.Position = 1;
+ w29.Expand = false;
+ w29.Fill = false;
// Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
this.exportbutton = new global::Gtk.Button ();
this.exportbutton.TooltipMarkup = "Export";
@@ -373,12 +375,11 @@ namespace LongoMatch.Gui.Panel
this.exportbuttonimage = new global::Gtk.Image ();
this.exportbuttonimage.Name = "exportbuttonimage";
this.exportbutton.Add (this.exportbuttonimage);
- this.exportbutton.Label = null;
this.hbuttonbox1.Add (this.exportbutton);
- global::Gtk.ButtonBox.ButtonBoxChild w34 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1 [this.exportbutton]));
- w34.Position = 2;
- w34.Expand = false;
- w34.Fill = false;
+ global::Gtk.ButtonBox.ButtonBoxChild w31 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1 [this.exportbutton]));
+ w31.Position = 2;
+ w31.Expand = false;
+ w31.Fill = false;
// Container child hbuttonbox1.Gtk.ButtonBox+ButtonBoxChild
this.deletebutton = new global::Gtk.Button ();
this.deletebutton.TooltipMarkup = "Delete";
@@ -389,21 +390,20 @@ namespace LongoMatch.Gui.Panel
this.deletebuttonimage = new global::Gtk.Image ();
this.deletebuttonimage.Name = "deletebuttonimage";
this.deletebutton.Add (this.deletebuttonimage);
- this.deletebutton.Label = null;
this.hbuttonbox1.Add (this.deletebutton);
- global::Gtk.ButtonBox.ButtonBoxChild w36 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1 [this.deletebutton]));
- w36.Position = 3;
- w36.Expand = false;
- w36.Fill = false;
+ global::Gtk.ButtonBox.ButtonBoxChild w33 =
((global::Gtk.ButtonBox.ButtonBoxChild)(this.hbuttonbox1 [this.deletebutton]));
+ w33.Position = 3;
+ w33.Expand = false;
+ w33.Fill = false;
this.rbox.Add (this.hbuttonbox1);
- global::Gtk.Box.BoxChild w37 = ((global::Gtk.Box.BoxChild)(this.rbox
[this.hbuttonbox1]));
- w37.Position = 1;
- w37.Expand = false;
- w37.Fill = false;
+ global::Gtk.Box.BoxChild w34 = ((global::Gtk.Box.BoxChild)(this.rbox
[this.hbuttonbox1]));
+ w34.Position = 1;
+ w34.Expand = false;
+ w34.Fill = false;
this.projectpropertiesalignment.Add (this.rbox);
this.hbox4.Add (this.projectpropertiesalignment);
- global::Gtk.Box.BoxChild w39 = ((global::Gtk.Box.BoxChild)(this.hbox4
[this.projectpropertiesalignment]));
- w39.Position = 1;
+ global::Gtk.Box.BoxChild w36 = ((global::Gtk.Box.BoxChild)(this.hbox4
[this.projectpropertiesalignment]));
+ w36.Position = 1;
this.notebook1.Add (this.hbox4);
// Notebook tab
this.label1 = new global::Gtk.Label ();
@@ -411,17 +411,17 @@ namespace LongoMatch.Gui.Panel
this.notebook1.SetTabLabel (this.hbox4, this.label1);
this.label1.ShowAll ();
// Notebook tab
- global::Gtk.Label w41 = new global::Gtk.Label ();
- w41.Visible = true;
- this.notebook1.Add (w41);
+ global::Gtk.Label w38 = new global::Gtk.Label ();
+ w38.Visible = true;
+ this.notebook1.Add (w38);
this.label3 = new global::Gtk.Label ();
this.label3.Name = "label3";
- this.notebook1.SetTabLabel (w41, this.label3);
+ this.notebook1.SetTabLabel (w38, this.label3);
this.label3.ShowAll ();
this.contentalignment.Add (this.notebook1);
this.vbox3.Add (this.contentalignment);
- global::Gtk.Box.BoxChild w43 = ((global::Gtk.Box.BoxChild)(this.vbox3
[this.contentalignment]));
- w43.Position = 1;
+ global::Gtk.Box.BoxChild w40 = ((global::Gtk.Box.BoxChild)(this.vbox3
[this.contentalignment]));
+ w40.Position = 1;
this.Add (this.vbox3);
if ((this.Child != null)) {
this.Child.ShowAll ();
diff --git a/LongoMatch.GUI/gtk-gui/gui.stetic b/LongoMatch.GUI/gtk-gui/gui.stetic
index bdaf26a..78c5db1 100644
--- a/LongoMatch.GUI/gtk-gui/gui.stetic
+++ b/LongoMatch.GUI/gtk-gui/gui.stetic
@@ -8733,7 +8733,7 @@ You can continue with the current capture, cancel it or save your project.
</packing>
</child>
<child>
- <widget class="Gtk.VBox" id="vbox4">
+ <widget class="Gtk.VBox" id="videofileinfo_vbox">
<property name="MemberName" />
<child>
<widget class="LongoMatch.Gui.Component.VideoFileInfo"
id="videofileinfo1">
@@ -8749,50 +8749,18 @@ You can continue with the current capture, cancel it or save your project.
</packing>
</child>
<child>
- <widget class="LongoMatch.Gui.Component.VideoFileInfo"
id="videofileinfo2">
- <property name="MemberName" />
- <property name="HeightRequest">100</property>
- <property name="Events">ButtonPressMask</property>
- </widget>
- <packing>
- <property name="Position">1</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
+ <placeholder />
</child>
<child>
- <widget class="LongoMatch.Gui.Component.VideoFileInfo"
id="videofileinfo3">
- <property name="MemberName" />
- <property name="HeightRequest">100</property>
- <property name="Events">ButtonPressMask</property>
- </widget>
- <packing>
- <property name="Position">2</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
+ <placeholder />
</child>
<child>
- <widget class="LongoMatch.Gui.Component.VideoFileInfo"
id="videofileinfo4">
- <property name="MemberName" />
- <property name="HeightRequest">100</property>
- <property name="Events">ButtonPressMask</property>
- </widget>
- <packing>
- <property name="Position">3</property>
- <property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
- </packing>
+ <placeholder />
</child>
</widget>
<packing>
<property name="Position">4</property>
<property name="AutoSize">True</property>
- <property name="Expand">False</property>
- <property name="Fill">False</property>
</packing>
</child>
</widget>
@@ -11247,7 +11215,7 @@ To avoid this, and to enjoy many additional functional benefits, we encourage yo
</widget>
</child>
</widget>
- <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.VideoFileInfo" design-size="520 88">
+ <widget class="Gtk.Bin" id="LongoMatch.Gui.Component.VideoFileInfo" design-size="520 101">
<property name="MemberName" />
<property name="Visible">False</property>
<child>
@@ -11273,9 +11241,72 @@ To avoid this, and to enjoy many additional functional benefits, we encourage yo
</packing>
</child>
<child>
- <widget class="Gtk.VBox" id="vbox2">
+ <widget class="Gtk.Table" id="table1">
<property name="MemberName" />
- <property name="Spacing">6</property>
+ <property name="NRows">4</property>
+ <property name="NColumns">2</property>
+ <property name="Homogeneous">True</property>
+ <property name="RowSpacing">6</property>
+ <property name="ColumnSpacing">6</property>
+ <child>
+ <widget class="Gtk.Label" id="audiolabel">
+ <property name="MemberName" />
+ <property name="Xalign">0</property>
+ </widget>
+ <packing>
+ <property name="TopAttach">2</property>
+ <property name="BottomAttach">3</property>
+ <property name="LeftAttach">1</property>
+ <property name="RightAttach">2</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="containerlabel">
+ <property name="MemberName" />
+ <property name="Xalign">0</property>
+ </widget>
+ <packing>
+ <property name="TopAttach">3</property>
+ <property name="BottomAttach">4</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="durationlabel">
+ <property name="MemberName" />
+ <property name="Xalign">0</property>
+ </widget>
+ <packing>
+ <property name="TopAttach">1</property>
+ <property name="BottomAttach">2</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
<child>
<widget class="Gtk.Label" id="filelabel">
<property name="MemberName" />
@@ -11283,125 +11314,95 @@ To avoid this, and to enjoy many additional functional benefits, we encourage yo
<property name="Ellipsize">Start</property>
</widget>
<packing>
- <property name="Position">0</property>
+ <property name="LeftAttach">1</property>
+ <property name="RightAttach">2</property>
<property name="AutoSize">False</property>
+ <property name="XOptions">Expand, Shrink, Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">True</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">True</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
</packing>
</child>
<child>
- <widget class="Gtk.Table" id="table1">
+ <widget class="Gtk.Label" id="formatlabel">
<property name="MemberName" />
- <property name="NRows">3</property>
- <property name="NColumns">2</property>
- <property name="RowSpacing">6</property>
- <property name="ColumnSpacing">6</property>
- <child>
- <widget class="Gtk.Label" id="audiolabel">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="containerlabel">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="AutoSize">False</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="durationlabel">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- </widget>
- <packing>
- <property name="AutoSize">False</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="formatlabel">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- </widget>
- <packing>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="label9">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- </widget>
- <packing>
- <property name="TopAttach">2</property>
- <property name="BottomAttach">3</property>
- <property name="LeftAttach">1</property>
- <property name="RightAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
- <child>
- <widget class="Gtk.Label" id="videolabel">
- <property name="MemberName" />
- <property name="Xalign">0</property>
- </widget>
- <packing>
- <property name="TopAttach">1</property>
- <property name="BottomAttach">2</property>
- <property name="AutoSize">False</property>
- <property name="XExpand">True</property>
- <property name="XFill">True</property>
- <property name="XShrink">False</property>
- <property name="YExpand">True</property>
- <property name="YFill">True</property>
- <property name="YShrink">False</property>
- </packing>
- </child>
+ <property name="Xalign">0</property>
</widget>
<packing>
- <property name="Position">1</property>
- <property name="AutoSize">False</property>
+ <property name="TopAttach">1</property>
+ <property name="BottomAttach">2</property>
+ <property name="LeftAttach">1</property>
+ <property name="RightAttach">2</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="label9">
+ <property name="MemberName" />
+ <property name="Xalign">0</property>
+ </widget>
+ <packing>
+ <property name="TopAttach">3</property>
+ <property name="BottomAttach">4</property>
+ <property name="LeftAttach">1</property>
+ <property name="RightAttach">2</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="namelabel">
+ <property name="MemberName" />
+ <property name="Xalign">0</property>
+ </widget>
+ <packing>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="Gtk.Label" id="videolabel">
+ <property name="MemberName" />
+ <property name="Xalign">0</property>
+ </widget>
+ <packing>
+ <property name="TopAttach">2</property>
+ <property name="BottomAttach">3</property>
+ <property name="AutoSize">True</property>
+ <property name="XOptions">Fill</property>
+ <property name="YOptions">Fill</property>
+ <property name="XExpand">False</property>
+ <property name="XFill">True</property>
+ <property name="XShrink">False</property>
+ <property name="YExpand">False</property>
+ <property name="YFill">True</property>
+ <property name="YShrink">False</property>
</packing>
</child>
</widget>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]