[chronojump] raceAnalyzer save table button: gui done
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] raceAnalyzer save table button: gui done
- Date: Mon, 26 Oct 2020 11:19:42 +0000 (UTC)
commit a3c812d3a1101a492893a22e596cfe1fc313c8b6
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Oct 26 12:19:22 2020 +0100
raceAnalyzer save table button: gui done
glade/app1.glade | 88 +++++++++++++++++++++++++++++++++++++++-------
src/gui/app1/icons.cs | 4 +++
src/gui/app1/runEncoder.cs | 3 ++
3 files changed, 83 insertions(+), 12 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index ff10ba9a..871dc741 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -25041,6 +25041,9 @@ Concentric</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
@@ -25694,6 +25697,7 @@ Concentric</property>
<widget class="GtkHBox" id="hbox445">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="spacing">2</property>
<child>
<widget class="GtkScrolledWindow"
id="scrolledwindow_raceAnalyzer">
<property name="visible">True</property>
@@ -25713,6 +25717,63 @@ Concentric</property>
<property name="position">0</property>
</packing>
</child>
+ <child>
+ <widget class="GtkVBox" id="vbox140">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <widget class="GtkButton"
id="button_raceAnalyzer_table_save">
+ <property name="visible">True</property>
+ <property name="sensitive">False</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="tooltip" translatable="yes">Save
table</property>
+ <child>
+ <widget class="GtkVBox" id="vbox237">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">4</property>
+ <child>
+ <widget class="GtkImage"
id="image_raceAnalyzer_table_save_grid">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property
name="stock">gtk-missing-image</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkImage"
id="image_raceAnalyzer_table_save_disk">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property
name="stock">gtk-missing-image</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
<packing>
<property name="position">1</property>
@@ -27937,6 +27998,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>
@@ -27973,18 +28046,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>
@@ -36085,6 +36146,9 @@ then click this button.</property>
<child>
<placeholder/>
</child>
+ <child>
+ <placeholder/>
+ </child>
</widget>
<packing>
<property name="expand">False</property>
diff --git a/src/gui/app1/icons.cs b/src/gui/app1/icons.cs
index ab7d41f9..24d6bd6a 100644
--- a/src/gui/app1/icons.cs
+++ b/src/gui/app1/icons.cs
@@ -216,6 +216,8 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Image image_forcesensor_analyze_image_save6;
[Widget] Gtk.Image image_forcesensor_analyze_image_save7;
[Widget] Gtk.Image image_sprint_analyze_image_save;
+ [Widget] Gtk.Image image_raceAnalyzer_table_save_grid;
+ [Widget] Gtk.Image image_raceAnalyzer_table_save_disk;
[Widget] Gtk.Image image_message_permissions_at_boot;
[Widget] Gtk.Image image_camera_at_boot;
@@ -703,6 +705,7 @@ public partial class ChronoJumpWindow
image_contacts_session_overview.Pixbuf = pixbuf;
image_encoder_session_overview.Pixbuf = pixbuf;
image_encoder_analyze_table_save.Pixbuf = pixbuf;
+ image_raceAnalyzer_table_save_grid.Pixbuf = pixbuf;
image_session_export_csv1.Pixbuf = pixbuf;
//encoder
@@ -756,6 +759,7 @@ public partial class ChronoJumpWindow
image_forcesensor_analyze_image_save7.Pixbuf = pixbuf;
image_sprint_analyze_image_save.Pixbuf = pixbuf;
image_run_encoder_analyze_image_save_disk.Pixbuf = pixbuf;
+ image_raceAnalyzer_table_save_disk.Pixbuf = pixbuf;
pixbuf = new Pixbuf (null, Util.GetImagePath(false) + "image_email.png");
image_encoder_analyze_image_compujump_send_email_send.Pixbuf = pixbuf;
diff --git a/src/gui/app1/runEncoder.cs b/src/gui/app1/runEncoder.cs
index afc650ab..9e26bda7 100644
--- a/src/gui/app1/runEncoder.cs
+++ b/src/gui/app1/runEncoder.cs
@@ -46,6 +46,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Image image_run_encoder_graph;
[Widget] Gtk.Viewport viewport_run_encoder_graph;
[Widget] Gtk.TreeView treeview_raceAnalyzer;
+ [Widget] Gtk.Button button_raceAnalyzer_table_save;
int race_analyzer_distance;
int race_analyzer_temperature;
@@ -273,6 +274,7 @@ public partial class ChronoJumpWindow
textview_contacts_signal_comment.Buffer.Text = "";
image_run_encoder_graph.Sensitive = false;
treeview_raceAnalyzer = UtilGtk.RemoveColumns(treeview_raceAnalyzer);
+ button_raceAnalyzer_table_save.Sensitive = false;
clearRaceAnalyzerTriggers();
button_run_encoder_analyze_options.Sensitive = false;
@@ -960,6 +962,7 @@ public partial class ChronoJumpWindow
string contents = Util.ReadFile(RunEncoder.GetCSVResultsFileName(), false);
createTreeViewRaceEncoder(contents);
+ button_raceAnalyzer_table_save.Sensitive = true;
}
private void raceEncoderCaptureGraphDo()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]