[chronojump] Added exportFile/sprint.cs (30% done)



commit 4b42d373b1cfc376741cd1c3ae255d460da79b80
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Mar 16 11:19:31 2021 +0100

    Added exportFile/sprint.cs (30% done)

 src/exportFiles/sprint.cs | 64 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)
---
diff --git a/src/exportFiles/sprint.cs b/src/exportFiles/sprint.cs
new file mode 100644
index 00000000..23b8ebd2
--- /dev/null
+++ b/src/exportFiles/sprint.cs
@@ -0,0 +1,64 @@
+/*
+ * This file is part of ChronoJump
+ *
+ * Chronojump is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *   the Free Software Foundation; either version 2 of the License, or
+ *    (at your option) any later version.
+ *
+ * Chronojump is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *    GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * Copyright (C) 2021   Xavier de Blas <xaviblas gmail com>
+ */
+
+using System;
+using System.IO;                       //Directory, ...
+using System.Collections;              //ArrayList
+using System.Collections.Generic;      //List<T>
+using System.Threading;
+//using Mono.Unix;
+
+public class SprintExport : ExportFiles
+{
+       //constructor
+       public SprintExport (
+                       Gtk.Notebook notebook,
+                       Gtk.ProgressBar progressbar,
+                       Gtk.Label labelResult,
+                       bool includeImages,
+                       int imageWidth, int imageHeight,
+                       bool isWindows,
+                       int personID,
+                       int sessionID,
+                       char exportDecimalSeparator
+                       )
+       {
+               Button_done = new Gtk.Button();
+
+               assignParams(notebook, progressbar, labelResult, includeImages,
+                               imageWidth, imageHeight, isWindows, personID, sessionID);
+
+               this.exportDecimalSeparator = exportDecimalSeparator;
+       }
+
+       private string getTempGraphsDir() {
+               return Path.Combine(Path.GetTempPath(), "chronojump_sprint_export_graphs");
+       }
+       
+       protected override void createOrEmptyDirs()
+       {
+               createOrEmptyDir(getTempGraphsDir());
+       }
+
+       protected override bool getData ()
+       {
+       }
+}
+


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]