<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/97258aba5f2d5b00ef8b73c31ba28539a67dd375">https://github.com/macports/macports-ports/commit/97258aba5f2d5b00ef8b73c31ba28539a67dd375</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 97258aba5f2 mathmod: new port in math
</span>97258aba5f2 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 97258aba5f2d5b00ef8b73c31ba28539a67dd375
</span>Author: Sergey Fedorov <vital.had@gmail.com>
AuthorDate: Thu Jul 4 16:58:22 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> mathmod: new port in math
</span>---
math/mathmod/Portfile | 66 +++++++++++++++++++++
math/mathmod/files/patch-ParisoMathObject.cpp.diff | 11 ++++
math/mathmod/files/patch-ParisoMathObject.h.diff | 15 +++++
math/mathmod/files/patch-commun.cpp.diff | 28 +++++++++
math/mathmod/files/patch-drawingoptions.cpp.diff | 10 ++++
math/mathmod/files/patch-drawingoptions.ui.diff | 32 ++++++++++
math/mathmod/files/patch-jiso.h.diff | 13 ++++
math/mathmod/files/patch-jpar.h.diff | 13 ++++
math/mathmod/files/patch-mathmodconfig.js.diff | 14 +++++
.../mathmod/files/patch-parametersoptions.cpp.diff | 69 ++++++++++++++++++++++
math/mathmod/files/patch-parametersoptions.h.diff | 11 ++++
11 files changed, 282 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathmod/Portfile b/math/mathmod/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..89bf468c718
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathmod/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,66 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name mathmod
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories math graphics
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.facebook.com/parisolab
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Mathematical modelling software
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description ${name} is a mathematical modelling software that \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ visualizes and animates implicit and parametric surfaces.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} ne "darwin" || ${os.major} > 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qmake5 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup parisolab mathmod 11.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 48a59ed6858a3c1543458be6ce4411746c5b0890 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 b9d4c550d09a8ad307df90ffbb6f89e81846c5ea93d3f3e2616207a76227421a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 7934535
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ compiler.cxx_standard \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # See: https://github.com/parisolab/mathmod/issues/243
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PortGroup qmake 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ github.setup parisolab mathmod 7.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 3cd5480896ae051b7e6ff489419611aaf35e8b89 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 5ae4d2536f1e1a2883c83b8aa2d77ab54795968aa0635133ba58ff916e7a8622 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 947569
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:qjson4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-jiso.h.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-jpar.h.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-parametersoptions.h.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-ParisoMathObject.h.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-drawingoptions.cpp.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-parametersoptions.cpp.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-ParisoMathObject.cpp.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-drawingoptions.ui.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-commun.cpp.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-mathmodconfig.js.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Q_DECL_OVERRIDE is intended to be this way:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.cppflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -I${prefix}/include/QJson4 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DQ_DECL_OVERRIDE=
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -lQJson4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/MathMod.app ${destroot}${applications_dir}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathmod/files/patch-ParisoMathObject.cpp.diff b/math/mathmod/files/patch-ParisoMathObject.cpp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..7e05a258c0a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathmod/files/patch-ParisoMathObject.cpp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ui_modules/ParisoMathObject.cpp.orig 2018-12-19 02:50:32.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ui_modules/ParisoMathObject.cpp 2024-07-03 05:23:14.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -19,7 +19,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ***************************************************************************/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "ParisoMathObject.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <qmessagebox.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonParseError.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ParisoMathObject::ParisoMathObject()
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathmod/files/patch-ParisoMathObject.h.diff b/math/mathmod/files/patch-ParisoMathObject.h.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..61c80126b7d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathmod/files/patch-ParisoMathObject.h.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ui_modules/ParisoMathObject.h.orig 2018-12-19 02:50:32.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ui_modules/ParisoMathObject.h 2024-07-03 05:06:52.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -22,9 +22,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <qfile.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QTextStream>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QStringList>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <QJsonObject>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <QJsonDocument>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <QJsonArray>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonObject.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonDocument.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonArray.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QFileDialog>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QDialog>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QTranslator>
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathmod/files/patch-commun.cpp.diff b/math/mathmod/files/patch-commun.cpp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..742f7d8baff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathmod/files/patch-commun.cpp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,28 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- pariso/commun.cpp.orig 2018-04-02 13:49:18.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ pariso/commun.cpp 2024-07-03 10:52:59.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -66,13 +66,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for (uint l = 0; l < numberFeaturePoints; ++l)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lastRandom = lcgRandom(lastRandom);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- randomDiff[0] = (float)lastRandom / 0x100000000;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ randomDiff[0] = (float)lastRandom / 0x100000000ll;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lastRandom = lcgRandom(lastRandom);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- randomDiff[1] = (float)lastRandom / 0x100000000;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ randomDiff[1] = (float)lastRandom / 0x100000000ll;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lastRandom = lcgRandom(lastRandom);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- randomDiff[2] = (float)lastRandom / 0x100000000;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ randomDiff[2] = (float)lastRandom / 0x100000000ll;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ featurePoint[0] = randomDiff[0] + (float)cubeX;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ featurePoint[1] = randomDiff[1] + (float)cubeY;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -151,7 +151,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int CellNoise::lcgRandom(int lastValue)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- return (int)((1103515245u * lastValue + 12345u) % 0x100000000u);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ return (int)((1103515245u * lastValue + 12345u) % 0x100000000ull);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int CellNoise::hash(int i, int j, int k)
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathmod/files/patch-drawingoptions.cpp.diff b/math/mathmod/files/patch-drawingoptions.cpp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..04ea576fdc6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathmod/files/patch-drawingoptions.cpp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ui_modules/drawingoptions.cpp.orig 2018-12-19 02:50:32.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ui_modules/drawingoptions.cpp 2024-07-03 05:23:01.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20,6 +20,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "drawingoptions.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <qmessagebox.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonParseError.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static int indexcurrentFormula=-1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static int indexcurrentSet=0;
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathmod/files/patch-drawingoptions.ui.diff b/math/mathmod/files/patch-drawingoptions.ui.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..890934ce547
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathmod/files/patch-drawingoptions.ui.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,32 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ui_forms/drawingoptions.ui.orig 2018-12-19 02:50:32.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ui_forms/drawingoptions.ui 2024-07-03 11:39:23.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -606,9 +606,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <property name="movable">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <bool>true</bool>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </property>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- <property name="tabBarAutoHide">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- <bool>true</bool>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- </property>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <widget class="QWidget" name="tab">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <attribute name="title">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>Model details</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -6088,9 +6085,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <property name="layoutDirection">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <enum>Qt::LeftToRight</enum>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </property>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- <property name="currentText">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- <string>Predefined Sets</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- </property>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <item>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <property name="text">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>Predefined Sets</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -6219,9 +6213,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <property name="layoutDirection">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <enum>Qt::LeftToRight</enum>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </property>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- <property name="currentText">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- <string>Parameters List</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- </property>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <item>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <property name="text">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>Parameters List</string>
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathmod/files/patch-jiso.h.diff b/math/mathmod/files/patch-jiso.h.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..35b7fbdd7e0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathmod/files/patch-jiso.h.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- json_parser/jiso.h.orig 2018-12-19 02:50:32.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ json_parser/jiso.h 2024-07-03 05:06:09.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,8 +25,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <iostream>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QStringList>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <QJsonArray>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <QJsonObject>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonArray.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonObject.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class jiso
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathmod/files/patch-jpar.h.diff b/math/mathmod/files/patch-jpar.h.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..8962a677d6b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathmod/files/patch-jpar.h.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,13 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- json_parser/jpar.h.orig 2018-12-19 02:50:32.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ json_parser/jpar.h 2024-07-03 05:06:23.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,8 +25,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <iostream>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QStringList>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <QJsonArray>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <QJsonObject>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonArray.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonObject.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <qthread.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ class jpar
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathmod/files/patch-mathmodconfig.js.diff b/math/mathmod/files/patch-mathmodconfig.js.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2c645d0c990
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathmod/files/patch-mathmodconfig.js.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- mathmodconfig.js.orig 2018-04-02 13:49:18.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ mathmodconfig.js 2024-07-03 12:11:37.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,8 +1,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "IsoParam": {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "MaxGrid": 250,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "MaxPt": 4,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- "MaxTri": 6,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "MaxGrid": 200,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "MaxPt": 1,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ "MaxTri": 2,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "NbComponent": 200,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "NbVariables": 30,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "NbConstantes": 40,
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathmod/files/patch-parametersoptions.cpp.diff b/math/mathmod/files/patch-parametersoptions.cpp.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d1a9d26dc3a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathmod/files/patch-parametersoptions.cpp.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,69 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ui_modules/parametersoptions.cpp.orig 2018-12-19 02:50:32.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ui_modules/parametersoptions.cpp 2024-07-03 11:51:07.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -20,6 +20,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QtGui>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <math.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "parametersoptions.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonParseError.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonDocument.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bool MACOS = false;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -108,7 +110,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QFile file(JsonFile);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- //QFileDevice::Permissions p = file.permissions();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ //QFile::Permissions p = file.permissions();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (file.open( QIODevice::ReadOnly | QIODevice::Text ) )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QJsonDocument doc = QJsonDocument::fromJson(((file.readAll()).trimmed()).replace("\n","").replace("\t","").replace("DOTSYMBOL",dotsymbol.toStdString().c_str()),&err);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -157,7 +159,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QFile file2(":/mathmodcollection_empty.js");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file2.copy(JsonFileName);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- QFile::setPermissions(JsonFileName, QFileDevice::ReadOwner| QFileDevice::WriteOwner);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ QFile::setPermissions(JsonFileName, QFile::ReadOwner| QFile::WriteOwner);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QFile file(JsonFileName);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -217,10 +219,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui.maxpt->setValue(mg);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //Styles:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QString Style = ((JConfig["Styles"].toObject())["UsedStyle"].toString());
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ui.comboBox_2->setCurrentText(Style);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ui.comboBox_2->setItemText(0, Style);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //Theme:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QString theme = ((JConfig["Themes"].toObject())["UsedTheme"].toString());
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- ui.comboBox_3->setCurrentText(theme);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ ui.comboBox_3->setItemText(0, theme);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if(theme == "MyTheme")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui.groupBox->show();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -424,7 +426,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QFile file3(":/mathmodconfig.js");
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file3.copy(fileconfig);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- QFile::setPermissions(fileconfig, QFileDevice::ReadOwner | QFileDevice::WriteOwner);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ QFile::setPermissions(fileconfig, QFile::ReadOwner | QFile::WriteOwner);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QFile fconf(fileconfig);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -591,7 +593,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ out << str << endl;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file.close();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file.copy(advancedmodels);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- QFile::setPermissions(advancedmodels, QFileDevice::ReadOwner | QFileDevice::WriteOwner);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ QFile::setPermissions(advancedmodels, QFile::ReadOwner | QFile::WriteOwner);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ QFile mathmodfile(filecollection);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -614,7 +616,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ out << str << endl;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file.close();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file.copy(filecollection);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- QFile::setPermissions(filecollection, QFileDevice::ReadOwner | QFileDevice::WriteOwner);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ QFile::setPermissions(filecollection, QFile::ReadOwner | QFile::WriteOwner);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void Parametersoptions::on_save_clicked()
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/mathmod/files/patch-parametersoptions.h.diff b/math/mathmod/files/patch-parametersoptions.h.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..d80ecf24d4c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/mathmod/files/patch-parametersoptions.h.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ui_modules/parametersoptions.h.orig 2018-12-19 02:50:32.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ui_modules/parametersoptions.h 2024-07-03 05:06:38.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -25,7 +25,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "../json_parser/parisodef.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QFileDialog>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QMessageBox>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include <QJsonObject>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <QJsonObject.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <QStyleFactory>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ struct ListeModelTexture
</span></pre><pre style='margin:0'>
</pre>