[chronojump] encoder analyze instant graph is hidden at load set or capture
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] encoder analyze instant graph is hidden at load set or capture
- Date: Tue, 15 Sep 2020 13:41:21 +0000 (UTC)
commit fdb66f96bb36a602890a375ccaa490643c138904
Author: Xavier de Blas <xaviblas gmail com>
Date: Tue Sep 15 15:38:46 2020 +0200
encoder analyze instant graph is hidden at load set or capture
glade/app1.glade | 53 +++++++++++++++++++++++++++++++++++++------------
src/gui/app1/encoder.cs | 16 +++++++++++++--
2 files changed, 54 insertions(+), 15 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index bb44dbd7..483d211f 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -24897,6 +24897,9 @@ Concentric</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -27753,6 +27756,18 @@ Concentric</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
+ <widget class="GtkLabel"
id="label_video_encoder_tests_will_be_filmed">
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Tests
will be filmed</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
<widget class="GtkHBox"
id="hbox_video_encoder_capturing">
<property name="can_focus">False</property>
<property name="spacing">4</property>
@@ -27789,18 +27804,6 @@ Concentric</property>
</packing>
</child>
<child>
- <widget class="GtkLabel"
id="label_video_encoder_tests_will_be_filmed">
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Tests
will be filmed</property>
- </widget>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
<widget class="GtkHBox"
id="hbox_video_encoder_no_capturing">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -32919,7 +32922,11 @@ then click this button.</property>
</packing>
</child>
<child>
- <widget class="GtkVBox" id="vbox70">
+ <widget class="GtkVBox" id="vbox53">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <widget class="GtkVBox"
id="vbox_encoder_analyze_instant">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
@@ -35868,6 +35875,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -35877,6 +35887,23 @@ then click this button.</property>
</child>
</widget>
<packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkLabel"
id="label_encoder_analyze_instant_need_click_analyze">
+ <property name="can_focus">False</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
<property name="position">1</property>
</packing>
</child>
diff --git a/src/gui/app1/encoder.cs b/src/gui/app1/encoder.cs
index ae34058a..43a3113b 100644
--- a/src/gui/app1/encoder.cs
+++ b/src/gui/app1/encoder.cs
@@ -181,6 +181,8 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Label label_encoder_user_curves_active_num;
[Widget] Gtk.Label label_encoder_user_curves_all_num;
+ [Widget] Gtk.VBox vbox_encoder_analyze_instant;
+ [Widget] Gtk.Label label_encoder_analyze_instant_need_click_analyze;
[Widget] Gtk.Table table_encoder_analyze_instant;
[Widget] Gtk.HScale hscale_encoder_analyze_a;
[Widget] Gtk.CheckButton checkbutton_encoder_analyze_b;
@@ -506,6 +508,8 @@ public partial class ChronoJumpWindow
vbox_encoder_signal_comment.SetSizeRequest
(button_encoder_signal_save_comment.SizeRequest().Width, -1);
notebook_encoder_signal_comment_rhythm_and_triggers.SetSizeRequest
(button_encoder_signal_save_comment.SizeRequest().Width, -1);
+
+ label_encoder_analyze_instant_need_click_analyze.Text =
string.Format(Catalog.GetString("Click '{0}' button"), Catalog.GetString("Analyze"));
}
void on_button_encoder_select_clicked (object o, EventArgs args)
@@ -5064,7 +5068,10 @@ public partial class ChronoJumpWindow
image_encoder_capture.Sensitive = false;
image_encoder_analyze.Sensitive = false;
+ vbox_encoder_analyze_instant.Visible = false; //play with Visible instead of Sensitive
because with Sensitive the pixmap is fully shown
+ label_encoder_analyze_instant_need_click_analyze.Visible = true;
treeview_encoder_analyze_curves.Sensitive = false;
+
button_encoder_analyze_image_save.Sensitive = false;
button_encoder_analyze_image_compujump_send_email.Sensitive = false;
button_encoder_analyze_AB_save.Sensitive = false;
@@ -6887,7 +6894,9 @@ public partial class ChronoJumpWindow
encoder_pulsebar_capture.Fraction = 1;
//analyze_image_save only has not to be sensitive now because capture graph will be
saved
image_encoder_analyze.Sensitive = false;
- treeview_encoder_analyze_curves.Sensitive = false;
+ vbox_encoder_analyze_instant.Visible = false; //play with Visible instead of
Sensitive because with Sensitive the pixmap is fully shown
+ label_encoder_analyze_instant_need_click_analyze.Visible = true;
+
button_encoder_analyze_image_save.Sensitive = false;
button_encoder_analyze_image_compujump_send_email.Sensitive = false;
button_encoder_analyze_AB_save.Sensitive = false;
@@ -6928,6 +6937,9 @@ public partial class ChronoJumpWindow
drawingarea_encoder_analyze_cairo_pixbuf);
drawingarea_encoder_analyze_instant.QueueDraw(); //will fire
ExposeEvent
+
+ vbox_encoder_analyze_instant.Visible = true;
+ label_encoder_analyze_instant_need_click_analyze.Visible = false;
button_encoder_analyze_AB_save.Visible =
checkbutton_encoder_analyze_b.Active;
@@ -6986,7 +6998,7 @@ public partial class ChronoJumpWindow
encoderButtonsSensitive(encoderSensEnumStored);
image_encoder_analyze.Sensitive = true;
treeview_encoder_analyze_curves.Sensitive = true;
-
+
button_encoder_analyze_image_save.Sensitive = true;
button_encoder_analyze_image_compujump_send_email.Sensitive = true;
button_encoder_analyze_AB_save.Sensitive = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]