[chronojump/chronojump-importer] Adds an option in the menu that will show the dialog to open the database.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/chronojump-importer] Adds an option in the menu that will show the dialog to open the database.
- Date: Mon, 12 Sep 2016 16:21:34 +0000 (UTC)
commit 3ed7fa8c62fa8dc7cd3d44608ffc4a2c378714e3
Author: Carles Pina i Estany <carles pina cat>
Date: Mon Sep 12 16:57:19 2016 +0100
Adds an option in the menu that will show the dialog to open the database.
It also changes the settings of the project regarding whitespaces.
chronojump.csproj | 10 ++++++++++
glade/chronojump.glade | 9 +++++++++
src/gui/encoder.cs | 8 ++++++++
3 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/chronojump.csproj b/chronojump.csproj
index a3da142..a7b9a54 100644
--- a/chronojump.csproj
+++ b/chronojump.csproj
@@ -2065,4 +2065,14 @@
<DeployService-TargetDirectoryId>Linux.DesktopApplications</DeployService-TargetDirectoryId>
</Content>
</ItemGroup>
+ <ProjectExtensions>
+ <MonoDevelop>
+ <Properties>
+ <Policies>
+ <TextStylePolicy inheritsSet="null" scope="text/x-csharp" />
+ <CSharpFormattingPolicy ElseIfNewLinePlacement="SameLine"
BeforeMethodDeclarationParentheses="False" AfterDelegateDeclarationParameterComma="True" inheritsSet="Mono"
inheritsScope="text/x-csharp" scope="text/x-csharp" />
+ </Policies>
+ </Properties>
+ </MonoDevelop>
+ </ProjectExtensions>
</Project>
diff --git a/glade/chronojump.glade b/glade/chronojump.glade
index e8691ae..df06b60 100644
--- a/glade/chronojump.glade
+++ b/glade/chronojump.glade
@@ -110,6 +110,15 @@
</widget>
</child>
<child>
+ <widget class="GtkImageMenuItem" id="menuitem_import_chronojump_session">
+ <property name="label" translatable="yes">Imports session from another Chronojump
database</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="use_stock">False</property>
+ <signal name="activate" handler="on_button_encoder_import_chronojump_session"
swapped="no"/>
+ </widget>
+ </child>
+ <child>
<widget class="GtkMenuItem" id="menuitem_encoder_session_overview">
<property name="visible">True</property>
<property name="can_focus">False</property>
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index 0c8b041..f2b38ea 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -1413,6 +1413,14 @@ public partial class ChronoJumpWindow
checkFile(Constants.EncoderCheckFileOp.CAPTURE_EXPORT_ALL);
}
+ void on_button_encoder_import_chronojump_session(object o, EventArgs args)
+ {
+ // TODO: show dialog Load Session
+ // TODO: and the user will select a database (needs a button + FileDialog to select the
database)
+ // TODO: the sessions of the database will be displayed
+ // TODO: and one of them will be imported
+ }
+
/*
* encoder session overview
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]