[longomatch] Use the capture list to fill the live capture config options
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Use the capture list to fill the live capture config options
- Date: Thu, 11 Dec 2014 14:05:17 +0000 (UTC)
commit dc9c4e7376809dcc40af6bb81cb0dd8bddb7af61
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Thu Dec 11 14:58:39 2014 +0100
Use the capture list to fill the live capture config options
LongoMatch.GUI.Helpers/Misc.cs | 5 +++--
.../Gui/Component/VideoPreferencesPanel.cs | 4 ++--
.../Gui/Dialog/VideoEditionProperties.cs | 3 ++-
LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs | 3 ++-
4 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch.GUI.Helpers/Misc.cs b/LongoMatch.GUI.Helpers/Misc.cs
index ce7ad50..4a14712 100644
--- a/LongoMatch.GUI.Helpers/Misc.cs
+++ b/LongoMatch.GUI.Helpers/Misc.cs
@@ -133,13 +133,14 @@ namespace LongoMatch.Gui.Helpers
return LColor.ColorFromUShort (color.Red, color.Green, color.Blue, alpha);
}
- public static ListStore FillImageFormat (ComboBox formatBox, VideoStandard def)
+ public static ListStore FillImageFormat (ComboBox formatBox, List<VideoStandard> standards,
+ VideoStandard def)
{
ListStore formatStore;
int index = 0, active = 0;
formatStore = new ListStore (typeof(string), typeof(VideoStandard));
- foreach (VideoStandard std in VideoStandards.Rendering) {
+ foreach (VideoStandard std in standards) {
formatStore.AppendValues (std.Name, std);
if (std.Equals (def))
active = index;
diff --git a/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs
b/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs
index 829009a..4578e3c 100644
--- a/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs
+++ b/LongoMatch.GUI/Gui/Component/VideoPreferencesPanel.cs
@@ -41,11 +41,11 @@ namespace LongoMatch.Gui.Component
fpscombobox.Active = 0;
}
fpscombobox.Changed += HandleFPSChanged;
- Misc.FillImageFormat (renderimagecombo, Config.RenderVideoStandard);
+ Misc.FillImageFormat (renderimagecombo, VideoStandards.Rendering,
Config.RenderVideoStandard);
Misc.FillEncodingFormat (renderenccombo, Config.RenderEncodingProfile);
Misc.FillQuality (renderqualcombo, Config.RenderEncodingQuality);
- Misc.FillImageFormat (captureimagecombo, Config.CaptureVideoStandard);
+ Misc.FillImageFormat (captureimagecombo, VideoStandards.Capture,
Config.CaptureVideoStandard);
Misc.FillEncodingFormat (captureenccombo, Config.CaptureEncodingProfile);
Misc.FillQuality (capturequalcombo, Config.CaptureEncodingQuality);
diff --git a/LongoMatch.GUI/Gui/Dialog/VideoEditionProperties.cs
b/LongoMatch.GUI/Gui/Dialog/VideoEditionProperties.cs
index e35d70f..5ab7471 100644
--- a/LongoMatch.GUI/Gui/Dialog/VideoEditionProperties.cs
+++ b/LongoMatch.GUI/Gui/Dialog/VideoEditionProperties.cs
@@ -38,7 +38,8 @@ namespace LongoMatch.Gui.Dialog
{
this.Build ();
encSettings = new EncodingSettings ();
- stdStore = Misc.FillImageFormat (sizecombobox, Config.RenderVideoStandard);
+ stdStore = Misc.FillImageFormat (sizecombobox, VideoStandards.Rendering,
+ Config.RenderVideoStandard);
encStore = Misc.FillEncodingFormat (formatcombobox, Config.RenderEncodingProfile);
qualStore = Misc.FillQuality (qualitycombobox, Config.RenderEncodingQuality);
descriptioncheckbutton.Active = Config.OverlayTitle;
diff --git a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
index f65dcd2..e0ecb71 100644
--- a/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
+++ b/LongoMatch.GUI/Gui/Panel/NewProjectPanel.cs
@@ -227,7 +227,8 @@ namespace LongoMatch.Gui.Panel
void FillFormats ()
{
- videoStandardList = Misc.FillImageFormat (imagecombobox, Config.CaptureVideoStandard);
+ videoStandardList = Misc.FillImageFormat (imagecombobox, VideoStandards.Capture,
+ Config.CaptureVideoStandard);
encProfileList = Misc.FillEncodingFormat (encodingcombobox,
Config.CaptureEncodingProfile);
qualList = Misc.FillQuality (qualitycombobox, Config.CaptureEncodingQuality);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]