[chronojump/chronojump-importer] Hides "Import session from another Chronojump" if not in "Jumps" mode.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/chronojump-importer] Hides "Import session from another Chronojump" if not in "Jumps" mode.
- Date: Sun, 25 Sep 2016 17:14:47 +0000 (UTC)
commit e8c7e9e2eeb619dc60a109c1803fecc7b01f68eb
Author: Carles Pina i Estany <carles pina cat>
Date: Sun Sep 25 19:13:54 2016 +0200
Hides "Import session from another Chronojump" if not in "Jumps" mode.
"Runs" and "Power" importing sessions is not implemented yet.
src/gui/chronojump.cs | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 59d7375..f53726e 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -183,6 +183,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.MenuItem menuitem_export_csv;
[Widget] Gtk.MenuItem menuitem_export_xml;
[Widget] Gtk.MenuItem menuitem_encoder_session_overview;
+ [Widget] Gtk.MenuItem menuitem_import_chronojump_session;
[Widget] Gtk.Image image_session_open;
//menu person
@@ -2934,6 +2935,7 @@ public partial class ChronoJumpWindow
menuitem_encoder_session_overview.Visible = false;
menuitem_export_encoder_signal.Visible = false;
menuitem_export_csv.Visible = true;
+ menuitem_import_chronojump_session.Visible = true;
hbox_other.Visible = false;
@@ -2961,6 +2963,9 @@ public partial class ChronoJumpWindow
{
notebook_sup.CurrentPage = 0;
notebook_capture_analyze.ShowTabs = true;
+
+ menuitem_import_chronojump_session.Visible = false; // not implemented yet
+
if(m == Constants.Menuitem_modes.RUNSSIMPLE)
{
menuitem_mode_selected_runs_simple.Visible = true;
@@ -2982,6 +2987,8 @@ public partial class ChronoJumpWindow
menuitem_encoder_session_overview.Visible = true;
menuitem_export_encoder_signal.Visible = true;
menuitem_export_csv.Visible = false;
+
+ menuitem_import_chronojump_session.Visible = false; // not implemented yet
//on OSX R is not installed by default. Check if it's installed. Needed for encoder
if( UtilAll.GetOSEnum() == UtilAll.OperatingSystems.MACOSX &&
@@ -6564,6 +6571,7 @@ LogB.Debug("X");
menuitem_export_csv.Sensitive = option;
//menuitem_export_xml.Sensitive = option; not implemented yet
menuitem_encoder_session_overview.Sensitive = option;
+
}
private void menuPersonSelectedSensitive(bool option)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]