├── doc ├── create-dlg.png ├── import-dlg.png ├── matrix-dlg.png ├── plot-dlg1.png ├── plot-dlg2.png ├── plot2d-dlg.png ├── plot3d-dlg.png ├── screenshot.png ├── integrate-dlg.png ├── latex_formula.png ├── differentiate-dlg.png ├── solve-equations-dlg.png └── CMakeLists.txt ├── icons ├── 128-apps-cantor.png ├── 150-apps-cantor.png ├── 16-apps-cantor.png ├── 22-apps-cantor.png ├── 310-apps-cantor.png ├── 32-apps-cantor.png ├── 44-apps-cantor.png ├── 48-apps-cantor.png ├── 48-apps-rbackend.png ├── 64-apps-cantor.png ├── 48-apps-luabackend.png ├── hisc-apps-cantor.svgz ├── 48-apps-juliabackend.png ├── 48-apps-maximabackend.png ├── 48-apps-octavebackend.png ├── 48-apps-pythonbackend.png ├── 48-apps-sagebackend.png ├── 48-apps-scilabbackend.png ├── 48-apps-kalgebrabackend.png ├── 48-apps-qalculatebackend.png └── CMakeLists.txt ├── src ├── test │ ├── config-cantor-test.h.cmake │ └── data │ │ ├── EmptyPythonWorksheet.cws │ │ ├── TwoCommandEntryWithResults.cws │ │ └── TestCommandEntryExecutionAction.cws ├── backends │ ├── lua │ │ ├── settings.kcfgc │ │ ├── cantor_lua.knsrc │ │ ├── luavariablemodel.h │ │ ├── luaexpression.h │ │ ├── luabackend.kcfg │ │ ├── testlua.h │ │ ├── luabackend.h │ │ └── CMakeLists.txt │ ├── R │ │ ├── rserver │ │ │ ├── settings.kcfgc │ │ │ ├── tools │ │ │ │ ├── envvars.r │ │ │ │ └── autoloads.r │ │ │ ├── rcallbacks.h │ │ │ ├── org.kde.Cantor.R.xml │ │ │ ├── CMakeLists.txt │ │ │ └── main.cpp │ │ ├── cantor_r.knsrc │ │ ├── rsettingswidget.h │ │ ├── rexpression.h │ │ ├── GenLibFile.py │ │ ├── rbackend.h │ │ ├── rvariablemodel.h │ │ ├── testr.h │ │ └── DESIGN │ ├── julia │ │ ├── settings.kcfgc │ │ ├── scripts │ │ │ ├── variables_loader.jl │ │ │ ├── variables_cleaner.jl │ │ │ └── variables_saver.jl │ │ ├── juliaserver │ │ │ └── CMakeLists.txt │ │ ├── juliasettingswidget.h │ │ ├── juliavariablemodel.h │ │ └── juliascriptloading.h │ ├── sage │ │ ├── settings.kcfgc │ │ ├── cantor_sage.knsrc │ │ ├── sagevariablemodel.h │ │ ├── sagesettingswidget.h │ │ ├── CMakeLists.txt │ │ ├── sagebackend.h │ │ └── sageexpression.h │ ├── maxima │ │ ├── settings.kcfgc │ │ ├── cantor_maxima.knsrc │ │ ├── maximasettingswidget.h │ │ ├── maximasyntaxhelpobject.h │ │ ├── maximavariablemodel.h │ │ ├── maximabackend.h │ │ └── CMakeLists.txt │ ├── octave │ │ ├── settings.kcfgc │ │ ├── scripts │ │ │ ├── CMakeLists.txt │ │ │ ├── cantor_eigenvectors.m │ │ │ └── cantor_plot2d.m │ │ ├── cmake.patch │ │ ├── cantor_octave.knsrc │ │ ├── octavesettingswidget.h │ │ ├── octavevariablemodel.h │ │ ├── octavesyntaxhelpobject.h │ │ ├── octavebackend.h │ │ └── octaveexpression.h │ ├── python │ │ ├── settings.kcfgc │ │ ├── python.qrc │ │ ├── variables_cleaner.py │ │ ├── variables_loader.py │ │ ├── cantor_python.knsrc │ │ ├── variables_saver.py │ │ ├── pythonutils.h │ │ ├── pythonsettingswidget.h │ │ ├── pythonvariablemodel.h │ │ ├── pythonexpression.h │ │ ├── pythonserver.h │ │ ├── pythonbackend.h │ │ └── testpython.h │ ├── scilab │ │ ├── settings.kcfgc │ │ ├── cantor_scilab.knsrc │ │ ├── testscilab.h │ │ ├── scilabexpression.h │ │ ├── CMakeLists.txt │ │ └── scilabbackend.h │ ├── kalgebra │ │ ├── settings.kcfgc │ │ ├── cantor_kalgebra.knsrc │ │ ├── kalgebrabackend.kcfg │ │ ├── kalgebrasyntaxhelpobject.h │ │ ├── kalgebravariablemodel.h │ │ ├── kalgebraexpression.h │ │ ├── CMakeLists.txt │ │ ├── kalgebraextensions.cpp │ │ ├── kalgebrabackend.h │ │ ├── kalgebraextensions.h │ │ └── kalgebrasyntaxhelpobject.cpp │ └── qalculate │ │ ├── settings.kcfgc │ │ ├── plotassistant │ │ ├── qalculateplotassistant.qrc │ │ ├── cantor_qalculateplotassistant.rc │ │ └── CMakeLists.txt │ │ ├── cantor_qalculate.knsrc │ │ ├── qalculatevariablemodel.h │ │ ├── qalculatesyntaxhelpobject.h │ │ ├── CMakeLists.txt │ │ └── qalculatebackend.h ├── lib │ ├── config-cantorlib.h.cmake │ ├── cantor_libs_settings.kcfgc │ ├── test │ │ ├── CMakeLists.txt │ │ └── backendtest.h │ ├── worksheetaccess.cpp │ ├── cantor_macros.h │ ├── keywordsmanager.h │ ├── cantor_libs.kcfg │ ├── worksheetaccess.h │ ├── Mainpage.dox │ ├── animationresult.h │ ├── helpresult.h │ ├── epsresult.h │ ├── panelpluginhandler.h │ ├── directives │ │ └── plottitle.ui │ └── mimeresult.h ├── xslt │ └── CMakeLists.txt ├── cantor.qrc ├── panelplugins │ ├── tocpanel │ │ └── CMakeLists.txt │ ├── helppanel │ │ ├── CMakeLists.txt │ │ └── helppanelplugin.h │ ├── filebrowserpanel │ │ └── CMakeLists.txt │ ├── documentationpanel │ │ ├── CMakeLists.txt │ │ └── documentationpanelplugin.h │ ├── variablemgr │ │ ├── CMakeLists.txt │ │ └── variablemanagerplugin.h │ └── CMakeLists.txt ├── settings.kcfgc ├── assistants │ ├── linearalgebra │ │ ├── CMakeLists.txt │ │ ├── eigenvalues │ │ │ ├── eigenvaluesassistant.qrc │ │ │ ├── CMakeLists.txt │ │ │ ├── cantor_eigenvalues_assistant.rc │ │ │ ├── eigenvaluesassistant.h │ │ │ └── eigenvaluesdlg.ui │ │ ├── creatematrix │ │ │ ├── creatematrixassistant.qrc │ │ │ ├── CMakeLists.txt │ │ │ ├── cantor_create_matrix_assistant.rc │ │ │ ├── creatematrixassistant.h │ │ │ └── creatematrixdlg.h │ │ ├── eigenvectors │ │ │ ├── eigenvectorsassistant.qrc │ │ │ ├── CMakeLists.txt │ │ │ ├── cantor_eigenvectors_assistant.rc │ │ │ ├── eigenvectorsassistant.h │ │ │ └── eigenvectorsdlg.ui │ │ └── invertmatrix │ │ │ ├── invertmatrixassistant.qrc │ │ │ ├── CMakeLists.txt │ │ │ ├── cantor_invert_matrix_assistant.rc │ │ │ ├── invertmatrixassistant.h │ │ │ └── invertmatrixdlg.ui │ ├── solve │ │ ├── solveassistant.qrc │ │ ├── CMakeLists.txt │ │ ├── cantor_solve_assistant.rc │ │ └── solveassistant.h │ ├── plot2d │ │ ├── plot2dassistant.qrc │ │ ├── CMakeLists.txt │ │ ├── cantor_plot2d_assistant.rc │ │ └── plot2dassistant.h │ ├── plot3d │ │ ├── plot3dassistant.qrc │ │ ├── CMakeLists.txt │ │ ├── cantor_plot3d_assistant.rc │ │ └── plot3dassistant.h │ ├── integrate │ │ ├── integrateassistant.qrc │ │ ├── CMakeLists.txt │ │ ├── cantor_integrate_assistant.rc │ │ └── integrateassistant.h │ ├── runscript │ │ ├── runscriptassistant.qrc │ │ ├── CMakeLists.txt │ │ ├── cantor_runscript_assistant.rc │ │ └── runscriptassistant.h │ ├── advancedplot │ │ ├── advancedplotassistant.qrc │ │ ├── CMakeLists.txt │ │ ├── cantor_advancedplot_assistant.rc │ │ ├── directivecontainer.ui │ │ └── advancedplotassistant.h │ ├── differentiate │ │ ├── differentiateassistant.qrc │ │ ├── CMakeLists.txt │ │ ├── cantor_differentiate_assistant.rc │ │ └── differentiateassistant.h │ ├── importpackage │ │ ├── importpackageassistant.qrc │ │ ├── CMakeLists.txt │ │ ├── cantor_import_package_assistant.rc │ │ ├── importpackageassistant.h │ │ └── importpackagedlg.ui │ └── CMakeLists.txt ├── cantor_part.qrc ├── scripteditor │ ├── scripteditor.qrc │ ├── CMakeLists.txt │ ├── cantor_scripteditor.rc │ ├── main.cpp │ └── scripteditorwidget.h ├── config-cantor.h.cmake ├── Messages.sh ├── cantor.knsrc ├── XmlMessages.sh ├── backendchoosedialog.h ├── imageresultitem.h ├── loadedexpression.h └── worksheettoolbutton.h ├── examples ├── R │ └── introduction.cws ├── lua │ └── quick guide.cws ├── sage │ └── Tour of Sage.cws ├── octave │ ├── lorenzSystem.cws │ ├── octave_examples_2d_plots.cws │ └── octave_examples_3d_plots.cws ├── maxima │ ├── maxima_klein_plot.cws │ ├── maxima_examples_plots.cws │ ├── tutorial_for_beginners.cws │ └── maxima_parametric_3D_plots.cws ├── python │ ├── numpy │ │ └── quick start.cws │ └── matplotlib │ │ └── quick start.cws └── scilab │ └── introduction_plot.cws ├── .flatpak-manifest.json.license ├── CantorConfig.cmake.in ├── po ├── ca │ └── docs │ │ └── cantor │ │ ├── plot-dlg1.png │ │ ├── plot-dlg2.png │ │ ├── create-dlg.png │ │ ├── import-dlg.png │ │ ├── matrix-dlg.png │ │ ├── plot2d-dlg.png │ │ ├── plot3d-dlg.png │ │ ├── screenshot.png │ │ ├── integrate-dlg.png │ │ ├── differentiate-dlg.png │ │ └── solve-equations-dlg.png ├── uk │ └── docs │ │ └── cantor │ │ ├── plot-dlg1.png │ │ ├── plot-dlg2.png │ │ ├── create-dlg.png │ │ ├── import-dlg.png │ │ ├── matrix-dlg.png │ │ ├── plot2d-dlg.png │ │ ├── plot3d-dlg.png │ │ ├── screenshot.png │ │ ├── integrate-dlg.png │ │ ├── differentiate-dlg.png │ │ └── solve-equations-dlg.png ├── es │ └── docs │ │ └── cantor │ │ └── screenshot.png ├── fr │ └── docs │ │ └── cantor │ │ └── screenshot.png └── pt_BR │ └── docs │ └── cantor │ └── screenshot.png ├── thirdparty ├── discount-2.2.6-patched │ ├── cmake │ │ └── discount-config.cmake.in │ ├── tests │ │ ├── muñoz.t │ │ ├── misc.t │ │ ├── data │ │ │ ├── f01.text │ │ │ ├── README │ │ │ └── f01.html │ │ ├── para.t │ │ ├── reparse.t │ │ ├── callbacks.t │ │ ├── footnotes.t │ │ ├── chrome.text │ │ ├── embedlinks.text │ │ ├── links.text │ │ ├── html5.t │ │ ├── githubtags.t │ │ ├── strikethrough.t │ │ ├── flow.t │ │ ├── defects.t │ │ ├── linkypix.t │ │ ├── backslash.t │ │ ├── safelinks.t │ │ ├── crash.t │ │ ├── emphasis.t │ │ ├── reddit.t │ │ ├── compat.t │ │ ├── style.t │ │ ├── xml.t │ │ ├── tabstop.t │ │ ├── header.t │ │ ├── pseudo.t │ │ ├── smarty.t │ │ ├── list3deep.t │ │ ├── autolink.t │ │ ├── snakepit.t │ │ ├── superscript.t │ │ ├── html_comment.t │ │ └── div.t │ ├── pgm_options.h │ ├── version.c.in │ ├── libmarkdown.pc.in │ ├── tools │ │ ├── checkbits.sh │ │ ├── echo.c │ │ ├── branch.c │ │ ├── README │ │ └── cols.c │ ├── tags.h │ ├── html5.c │ ├── msvc │ │ └── README.md │ ├── amalloc.h │ ├── README │ ├── setup.c │ ├── h1title.c │ ├── notspecial.c │ ├── makepage.1 │ ├── Plan9 │ │ └── mkfile │ ├── basename.c │ ├── gethopt.h │ ├── docheader.c │ ├── mkd-line.3 │ └── mkd2html.1 └── README.md ├── craft.ini ├── .kateconfig ├── .reuse └── dep5 ├── admin └── documentation │ ├── README.md │ ├── R │ ├── 4.2 │ │ └── help.qhcp │ └── README.md │ ├── Octave │ └── README.md │ ├── apply_css.py │ ├── Qalculate │ └── README.md │ ├── main.css │ └── Python │ ├── NumPy_v1.19 │ └── README.md │ └── Python_v3.8.4 │ └── README.md ├── .gitignore ├── cmake └── FindLuaJIT.cmake ├── LICENSES └── LicenseRef-KDE-Accepted-GPL.txt ├── FindCantor.cmake └── .kde-ci.yml /doc/create-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/create-dlg.png -------------------------------------------------------------------------------- /doc/import-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/import-dlg.png -------------------------------------------------------------------------------- /doc/matrix-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/matrix-dlg.png -------------------------------------------------------------------------------- /doc/plot-dlg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/plot-dlg1.png -------------------------------------------------------------------------------- /doc/plot-dlg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/plot-dlg2.png -------------------------------------------------------------------------------- /doc/plot2d-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/plot2d-dlg.png -------------------------------------------------------------------------------- /doc/plot3d-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/plot3d-dlg.png -------------------------------------------------------------------------------- /doc/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/screenshot.png -------------------------------------------------------------------------------- /doc/integrate-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/integrate-dlg.png -------------------------------------------------------------------------------- /doc/latex_formula.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/latex_formula.png -------------------------------------------------------------------------------- /doc/differentiate-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/differentiate-dlg.png -------------------------------------------------------------------------------- /icons/128-apps-cantor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/128-apps-cantor.png -------------------------------------------------------------------------------- /icons/150-apps-cantor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/150-apps-cantor.png -------------------------------------------------------------------------------- /icons/16-apps-cantor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/16-apps-cantor.png -------------------------------------------------------------------------------- /icons/22-apps-cantor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/22-apps-cantor.png -------------------------------------------------------------------------------- /icons/310-apps-cantor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/310-apps-cantor.png -------------------------------------------------------------------------------- /icons/32-apps-cantor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/32-apps-cantor.png -------------------------------------------------------------------------------- /icons/44-apps-cantor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/44-apps-cantor.png -------------------------------------------------------------------------------- /icons/48-apps-cantor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/48-apps-cantor.png -------------------------------------------------------------------------------- /icons/48-apps-rbackend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/48-apps-rbackend.png -------------------------------------------------------------------------------- /icons/64-apps-cantor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/64-apps-cantor.png -------------------------------------------------------------------------------- /src/test/config-cantor-test.h.cmake: -------------------------------------------------------------------------------- 1 | #define PATH_TO_TEST_NOTEBOOKS "${PATH_TO_TEST_NOTEBOOKS}" 2 | -------------------------------------------------------------------------------- /doc/solve-equations-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/doc/solve-equations-dlg.png -------------------------------------------------------------------------------- /examples/R/introduction.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/R/introduction.cws -------------------------------------------------------------------------------- /examples/lua/quick guide.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/lua/quick guide.cws -------------------------------------------------------------------------------- /icons/48-apps-luabackend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/48-apps-luabackend.png -------------------------------------------------------------------------------- /icons/hisc-apps-cantor.svgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/hisc-apps-cantor.svgz -------------------------------------------------------------------------------- /src/backends/lua/settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=luabackend.kcfg 2 | ClassName=LuaSettings 3 | Singleton=true 4 | -------------------------------------------------------------------------------- /src/lib/config-cantorlib.h.cmake: -------------------------------------------------------------------------------- 1 | #cmakedefine WITH_EPS 1 2 | 3 | #cmakedefine LIBSPECTRE_FOUND 1 4 | -------------------------------------------------------------------------------- /src/xslt/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | install( FILES latex.xsl DESTINATION ${KDE_INSTALL_DATADIR}/cantor/xslt ) 2 | -------------------------------------------------------------------------------- /.flatpak-manifest.json.license: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: None 2 | # SPDX-License-Identifier: CC0-1.0 3 | -------------------------------------------------------------------------------- /CantorConfig.cmake.in: -------------------------------------------------------------------------------- 1 | @PACKAGE_INIT@ 2 | 3 | include("${CMAKE_CURRENT_LIST_DIR}/CantorTargets.cmake") 4 | -------------------------------------------------------------------------------- /examples/sage/Tour of Sage.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/sage/Tour of Sage.cws -------------------------------------------------------------------------------- /icons/48-apps-juliabackend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/48-apps-juliabackend.png -------------------------------------------------------------------------------- /icons/48-apps-maximabackend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/48-apps-maximabackend.png -------------------------------------------------------------------------------- /icons/48-apps-octavebackend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/48-apps-octavebackend.png -------------------------------------------------------------------------------- /icons/48-apps-pythonbackend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/48-apps-pythonbackend.png -------------------------------------------------------------------------------- /icons/48-apps-sagebackend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/48-apps-sagebackend.png -------------------------------------------------------------------------------- /icons/48-apps-scilabbackend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/48-apps-scilabbackend.png -------------------------------------------------------------------------------- /po/ca/docs/cantor/plot-dlg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/ca/docs/cantor/plot-dlg1.png -------------------------------------------------------------------------------- /po/ca/docs/cantor/plot-dlg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/ca/docs/cantor/plot-dlg2.png -------------------------------------------------------------------------------- /po/uk/docs/cantor/plot-dlg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/uk/docs/cantor/plot-dlg1.png -------------------------------------------------------------------------------- /po/uk/docs/cantor/plot-dlg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/uk/docs/cantor/plot-dlg2.png -------------------------------------------------------------------------------- /src/backends/R/rserver/settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=rserver.kcfg 2 | ClassName=RServerSettings 3 | Singleton=true 4 | -------------------------------------------------------------------------------- /src/backends/julia/settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=juliabackend.kcfg 2 | ClassName=JuliaSettings 3 | Singleton=true 4 | -------------------------------------------------------------------------------- /src/backends/sage/settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=sagebackend.kcfg 2 | ClassName=SageSettings 3 | Singleton=true 4 | -------------------------------------------------------------------------------- /examples/octave/lorenzSystem.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/octave/lorenzSystem.cws -------------------------------------------------------------------------------- /icons/48-apps-kalgebrabackend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/48-apps-kalgebrabackend.png -------------------------------------------------------------------------------- /po/ca/docs/cantor/create-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/ca/docs/cantor/create-dlg.png -------------------------------------------------------------------------------- /po/ca/docs/cantor/import-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/ca/docs/cantor/import-dlg.png -------------------------------------------------------------------------------- /po/ca/docs/cantor/matrix-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/ca/docs/cantor/matrix-dlg.png -------------------------------------------------------------------------------- /po/ca/docs/cantor/plot2d-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/ca/docs/cantor/plot2d-dlg.png -------------------------------------------------------------------------------- /po/ca/docs/cantor/plot3d-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/ca/docs/cantor/plot3d-dlg.png -------------------------------------------------------------------------------- /po/ca/docs/cantor/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/ca/docs/cantor/screenshot.png -------------------------------------------------------------------------------- /po/es/docs/cantor/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/es/docs/cantor/screenshot.png -------------------------------------------------------------------------------- /po/fr/docs/cantor/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/fr/docs/cantor/screenshot.png -------------------------------------------------------------------------------- /po/uk/docs/cantor/create-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/uk/docs/cantor/create-dlg.png -------------------------------------------------------------------------------- /po/uk/docs/cantor/import-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/uk/docs/cantor/import-dlg.png -------------------------------------------------------------------------------- /po/uk/docs/cantor/matrix-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/uk/docs/cantor/matrix-dlg.png -------------------------------------------------------------------------------- /po/uk/docs/cantor/plot2d-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/uk/docs/cantor/plot2d-dlg.png -------------------------------------------------------------------------------- /po/uk/docs/cantor/plot3d-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/uk/docs/cantor/plot3d-dlg.png -------------------------------------------------------------------------------- /po/uk/docs/cantor/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/uk/docs/cantor/screenshot.png -------------------------------------------------------------------------------- /src/backends/maxima/settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=maximabackend.kcfg 2 | ClassName=MaximaSettings 3 | Singleton=true 4 | -------------------------------------------------------------------------------- /src/backends/octave/settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=octavebackend.kcfg 2 | ClassName=OctaveSettings 3 | Singleton=true 4 | -------------------------------------------------------------------------------- /src/backends/python/settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=pythonbackend.kcfg 2 | ClassName=PythonSettings 3 | Singleton=true 4 | -------------------------------------------------------------------------------- /src/backends/scilab/settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=scilabbackend.kcfg 2 | ClassName=ScilabSettings 3 | Singleton=true 4 | -------------------------------------------------------------------------------- /src/lib/cantor_libs_settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=cantor_libs.kcfg 2 | ClassName=CantorLibsSettings 3 | Singleton=true 4 | -------------------------------------------------------------------------------- /icons/48-apps-qalculatebackend.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/icons/48-apps-qalculatebackend.png -------------------------------------------------------------------------------- /po/ca/docs/cantor/integrate-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/ca/docs/cantor/integrate-dlg.png -------------------------------------------------------------------------------- /po/pt_BR/docs/cantor/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/pt_BR/docs/cantor/screenshot.png -------------------------------------------------------------------------------- /po/uk/docs/cantor/integrate-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/uk/docs/cantor/integrate-dlg.png -------------------------------------------------------------------------------- /src/backends/kalgebra/settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=kalgebrabackend.kcfg 2 | ClassName=KAlgebraSettings 3 | Singleton=true 4 | -------------------------------------------------------------------------------- /examples/maxima/maxima_klein_plot.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/maxima/maxima_klein_plot.cws -------------------------------------------------------------------------------- /examples/python/numpy/quick start.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/python/numpy/quick start.cws -------------------------------------------------------------------------------- /examples/scilab/introduction_plot.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/scilab/introduction_plot.cws -------------------------------------------------------------------------------- /src/backends/qalculate/settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=qalculatebackend.kcfg 2 | ClassName=QalculateSettings 3 | Singleton=true 4 | -------------------------------------------------------------------------------- /src/test/data/EmptyPythonWorksheet.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/src/test/data/EmptyPythonWorksheet.cws -------------------------------------------------------------------------------- /examples/maxima/maxima_examples_plots.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/maxima/maxima_examples_plots.cws -------------------------------------------------------------------------------- /po/ca/docs/cantor/differentiate-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/ca/docs/cantor/differentiate-dlg.png -------------------------------------------------------------------------------- /po/ca/docs/cantor/solve-equations-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/ca/docs/cantor/solve-equations-dlg.png -------------------------------------------------------------------------------- /po/uk/docs/cantor/differentiate-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/uk/docs/cantor/differentiate-dlg.png -------------------------------------------------------------------------------- /po/uk/docs/cantor/solve-equations-dlg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/po/uk/docs/cantor/solve-equations-dlg.png -------------------------------------------------------------------------------- /examples/maxima/tutorial_for_beginners.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/maxima/tutorial_for_beginners.cws -------------------------------------------------------------------------------- /examples/python/matplotlib/quick start.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/python/matplotlib/quick start.cws -------------------------------------------------------------------------------- /examples/maxima/maxima_parametric_3D_plots.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/maxima/maxima_parametric_3D_plots.cws -------------------------------------------------------------------------------- /examples/octave/octave_examples_2d_plots.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/octave/octave_examples_2d_plots.cws -------------------------------------------------------------------------------- /examples/octave/octave_examples_3d_plots.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/examples/octave/octave_examples_3d_plots.cws -------------------------------------------------------------------------------- /src/test/data/TwoCommandEntryWithResults.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/src/test/data/TwoCommandEntryWithResults.cws -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/cmake/discount-config.cmake.in: -------------------------------------------------------------------------------- 1 | include("${CMAKE_CURRENT_LIST_DIR}/@_PACKAGE_NAME@-targets.cmake") 2 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/muñoz.t: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/thirdparty/discount-2.2.6-patched/tests/muñoz.t -------------------------------------------------------------------------------- /src/test/data/TestCommandEntryExecutionAction.cws: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KDE/cantor/HEAD/src/test/data/TestCommandEntryExecutionAction.cws -------------------------------------------------------------------------------- /craft.ini: -------------------------------------------------------------------------------- 1 | # SPDX-FileCopyrightText: None 2 | # SPDX-License-Identifier: CC0-1.0 3 | 4 | [BlueprintSettings] 5 | kde/applications/cantor.packageAppx = True 6 | -------------------------------------------------------------------------------- /src/backends/octave/scripts/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | install( FILES cantor_eigenvectors.m cantor_plot2d.m cantor_plot3d.m DESTINATION ${KDE_INSTALL_DATADIR}/cantor/octavebackend ) 2 | -------------------------------------------------------------------------------- /src/cantor.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_shell.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/panelplugins/tocpanel/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(FileBrowserPanelPlugin_SRCS 2 | tocpanelplugin.cpp 3 | ) 4 | 5 | add_panel(tocpanelplugin ${FileBrowserPanelPlugin_SRCS}) 6 | -------------------------------------------------------------------------------- /src/settings.kcfgc: -------------------------------------------------------------------------------- 1 | File=cantor.kcfg 2 | ClassName=Settings 3 | Singleton=true 4 | Visibility=CANTOR_CONFIG_EXPORT 5 | Mutators=true 6 | IncludeFiles=cantor_config_export.h 7 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(creatematrix) 2 | add_subdirectory(invertmatrix) 3 | add_subdirectory(eigenvectors) 4 | add_subdirectory(eigenvalues) 5 | -------------------------------------------------------------------------------- /src/cantor_part.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_part.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /doc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ########### install files ############### 2 | # 3 | 4 | kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR cantor) 5 | -------------------------------------------------------------------------------- /src/scripteditor/scripteditor.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_scripteditor.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /.kateconfig: -------------------------------------------------------------------------------- 1 | kate: space-indent on; indent-width 4; replace-tabs on; auto-insert-doxygen on; 2 | kate: eol unix; replace-trailing-space-save on; show-tabs on; tab-indents on; 3 | kate: tab-width 4; 4 | 5 | -------------------------------------------------------------------------------- /src/assistants/solve/solveassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_solve_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assistants/plot2d/plot2dassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_plot2d_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assistants/plot3d/plot3dassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_plot3d_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assistants/integrate/integrateassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_integrate_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assistants/runscript/runscriptassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_runscript_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/config-cantor.h.cmake: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define CANTOR_VERSION "${RELEASE_SERVICE_VERSION}" 4 | 5 | #cmakedefine Discount_FOUND 1 6 | 7 | #define PATH_TO_CANTOR_PLUGINS "${PATH_TO_CANTOR_BACKENDS}" 8 | -------------------------------------------------------------------------------- /src/assistants/advancedplot/advancedplotassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_advancedplot_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assistants/differentiate/differentiateassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_differentiate_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assistants/importpackage/importpackageassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_import_package_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/eigenvalues/eigenvaluesassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_eigenvalues_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/backends/python/python.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | variables_cleaner.py 4 | variables_loader.py 5 | variables_saver.py 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/backends/qalculate/plotassistant/qalculateplotassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_qalculateplotassistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/creatematrix/creatematrixassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_create_matrix_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/eigenvectors/eigenvectorsassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_eigenvectors_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/invertmatrix/invertmatrixassistant.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | cantor_invert_matrix_assistant.rc 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/assistants/solve/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( SolveAssistant_SRCS 2 | solveassistant.cpp 3 | solveassistant.qrc 4 | ) 5 | 6 | ki18n_wrap_ui(SolveAssistant_SRCS solvedlg.ui) 7 | 8 | add_assistant(solveassistant ${SolveAssistant_SRCS}) 9 | -------------------------------------------------------------------------------- /src/backends/python/variables_cleaner.py: -------------------------------------------------------------------------------- 1 | for keyPythonBackend in dir(): 2 | if (not 'PythonBackend' in keyPythonBackend)\ 3 | and (not '__' in keyPythonBackend): 4 | del(globals()[keyPythonBackend]) 5 | 6 | del(keyPythonBackend) 7 | -------------------------------------------------------------------------------- /src/panelplugins/helppanel/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( HelpPanelPlugin_SRCS 2 | helppanelplugin.cpp 3 | ) 4 | 5 | add_panel(helppanelplugin ${HelpPanelPlugin_SRCS}) 6 | 7 | target_link_libraries(cantor_helppanelplugin 8 | KF6::TextWidgets) 9 | -------------------------------------------------------------------------------- /src/assistants/plot2d/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( Plot2dAssistant_SRCS 2 | plot2dassistant.cpp 3 | plot2dassistant.qrc 4 | ) 5 | 6 | ki18n_wrap_ui(Plot2dAssistant_SRCS plot2ddlg.ui) 7 | 8 | add_assistant(plot2dassistant ${Plot2dAssistant_SRCS}) 9 | -------------------------------------------------------------------------------- /src/assistants/plot3d/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( Plot3dAssistant_SRCS 2 | plot3dassistant.cpp 3 | plot3dassistant.qrc 4 | ) 5 | 6 | ki18n_wrap_ui(Plot3dAssistant_SRCS plot3ddlg.ui) 7 | 8 | add_assistant(plot3dassistant ${Plot3dAssistant_SRCS}) 9 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/misc.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "misc" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | try 'single paragraph' 'AAA' '

AAA

' 9 | try '< -> <' '<' '

<

' 10 | 11 | summary $0 12 | exit $rc 13 | -------------------------------------------------------------------------------- /src/backends/julia/scripts/variables_loader.jl: -------------------------------------------------------------------------------- 1 | # Variable loading script. 2 | # 3 | # Install JLD script with `Pkg.add(JLD)` to use it 4 | import JLD 5 | for (var_name, value) in JLD.load("%1") 6 | s = symbol(var_name) 7 | @eval (($s) = ($value)) 8 | end 9 | -------------------------------------------------------------------------------- /src/panelplugins/filebrowserpanel/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(FileBrowserPanelPlugin_SRCS 2 | filebrowserpanelplugin.cpp 3 | ) 4 | 5 | add_panel(filebrowserpanelplugin ${FileBrowserPanelPlugin_SRCS}) 6 | 7 | target_link_libraries(cantor_filebrowserpanelplugin KF6::Parts) 8 | -------------------------------------------------------------------------------- /src/assistants/integrate/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( IntegrateAssistant_SRCS 2 | integrateassistant.cpp 3 | integrateassistant.qrc 4 | ) 5 | 6 | ki18n_wrap_ui(IntegrateAssistant_SRCS integratedlg.ui) 7 | 8 | add_assistant(integrateassistant ${IntegrateAssistant_SRCS}) 9 | -------------------------------------------------------------------------------- /src/assistants/runscript/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( RunScriptAssistant_SRCS 2 | runscriptassistant.cpp 3 | runscriptassistant.qrc 4 | ) 5 | 6 | add_assistant(runscriptassistant ${RunScriptAssistant_SRCS}) 7 | 8 | target_link_libraries( cantor_runscriptassistant cantorlibs) 9 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/pgm_options.h: -------------------------------------------------------------------------------- 1 | #ifndef PGM_OPTIONS_D 2 | #define PGM_OPTIONS_D 3 | 4 | #include 5 | 6 | char *set_flag(mkd_flag_t *flags, char *optionstring); 7 | void show_flags(int byname, int verbose); 8 | 9 | #endif/*PGM_OPTIONS_D*/ 10 | -------------------------------------------------------------------------------- /src/assistants/runscript/cantor_runscript_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/data/f01.text: -------------------------------------------------------------------------------- 1 | is there a footnote here?[^1] 2 | 3 | [^1]: 4 | Yes, and it should have text 5 | 6 | ```` 7 | code 8 | ```` 9 | 10 | * And 11 | * A 12 | * List 13 | 14 | 15 | And this is not part of the footnote 16 | -------------------------------------------------------------------------------- /src/assistants/plot2d/cantor_plot2d_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Plot 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/assistants/plot3d/cantor_plot3d_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Plot 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/Messages.sh: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env bash 2 | $EXTRACTRC `find . -name \*.rc` >> rc.cpp || exit 11 3 | $EXTRACTRC `find . -name \*.ui` >> rc.cpp || exit 12 4 | $EXTRACTRC `find . -name \*.kcfg` >> rc.cpp || exit 13 5 | $XGETTEXT `find . -name \*.cpp | grep -v '/test/'` -o $podir/cantor.pot 6 | rm -f rc.cpp 7 | -------------------------------------------------------------------------------- /src/assistants/differentiate/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( DifferentiateAssistant_SRCS 2 | differentiateassistant.cpp 3 | differentiateassistant.qrc 4 | ) 5 | 6 | ki18n_wrap_ui(DifferentiateAssistant_SRCS differentiatedlg.ui) 7 | 8 | add_assistant(differentiateassistant ${DifferentiateAssistant_SRCS}) 9 | -------------------------------------------------------------------------------- /src/assistants/importpackage/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( ImportPackageAssistant_SRCS 2 | importpackageassistant.cpp 3 | importpackageassistant.qrc 4 | ) 5 | 6 | ki18n_wrap_ui(ImportPackageAssistant_SRCS importpackagedlg.ui) 7 | 8 | add_assistant(importpackageassistant ${ImportPackageAssistant_SRCS}) 9 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/eigenvalues/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( EigenValuesAssistant_SRCS 2 | eigenvaluesassistant.cpp 3 | eigenvaluesassistant.qrc 4 | ) 5 | 6 | ki18n_wrap_ui(EigenValuesAssistant_SRCS eigenvaluesdlg.ui) 7 | 8 | add_assistant(eigenvaluesassistant ${EigenValuesAssistant_SRCS}) 9 | -------------------------------------------------------------------------------- /src/assistants/solve/cantor_solve_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Calculate 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/version.c.in: -------------------------------------------------------------------------------- 1 | #include "config.h" 2 | 3 | char markdown_version[] = BRANCH VERSION 4 | #if @TABSTOP@ != 4 5 | " TAB=@TABSTOP@" 6 | #endif 7 | #if USE_AMALLOC 8 | " DEBUG" 9 | #endif 10 | #if GITHUB_CHECKBOX 11 | " GITHUB_CHECKBOX" 12 | #endif 13 | ; 14 | -------------------------------------------------------------------------------- /.reuse/dep5: -------------------------------------------------------------------------------- 1 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Upstream-Name: cantor 3 | Upstream-Contact: KDE 4 | Source: https://invent.kde.org/education/cantor 5 | 6 | Files: thirdparty/discount-2.2.6-patched/* 7 | Copyright: Discount 8 | License: BSD-3-Clause 9 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/eigenvectors/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( EigenVectorsAssistant_SRCS 2 | eigenvectorsassistant.cpp 3 | eigenvectorsassistant.qrc 4 | ) 5 | 6 | ki18n_wrap_ui(EigenVectorsAssistant_SRCS eigenvectorsdlg.ui) 7 | 8 | add_assistant(eigenvectorsassistant ${EigenVectorsAssistant_SRCS}) 9 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/invertmatrix/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( InvertMatrixAssistant_SRCS 2 | invertmatrixassistant.cpp 3 | invertmatrixassistant.qrc 4 | ) 5 | 6 | ki18n_wrap_ui(InvertMatrixAssistant_SRCS invertmatrixdlg.ui) 7 | 8 | add_assistant(invertmatrixassistant ${InvertMatrixAssistant_SRCS}) 9 | -------------------------------------------------------------------------------- /src/assistants/integrate/cantor_integrate_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Calculate 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/assistants/advancedplot/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( AdvancedPlotAssistant_SRCS 2 | advancedplotassistant.cpp 3 | advancedplotassistant.qrc 4 | ) 5 | 6 | ki18n_wrap_ui(AdvancedPlotAssistant_SRCS advancedplotdialog.ui directivecontainer.ui) 7 | 8 | add_assistant(advancedplotassistant ${AdvancedPlotAssistant_SRCS}) 9 | -------------------------------------------------------------------------------- /src/assistants/advancedplot/cantor_advancedplot_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Plot 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/backends/qalculate/plotassistant/cantor_qalculateplotassistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Plot 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/assistants/differentiate/cantor_differentiate_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Calculate 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/cantor.knsrc: -------------------------------------------------------------------------------- 1 | [KNewStuff3] 2 | ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml 3 | Categories=Cantor (Maxima),Cantor (Sage),Cantor (KAlgebra),Cantor (Qalculate),Cantor (Python),Cantor (Scilab),Cantor (Octave),Cantor (R),Cantor (Lua),Cantor (Julia) 4 | TargetDir=cantor/examples 5 | Uncompress=never 6 | CustomName=true 7 | -------------------------------------------------------------------------------- /src/assistants/importpackage/cantor_import_package_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Package 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/backends/python/variables_loader.py: -------------------------------------------------------------------------------- 1 | import shelve 2 | shelvePythonBackend = shelve.open('%1') 3 | for keyPythonBackend in shelvePythonBackend: 4 | globals()[keyPythonBackend] = shelvePythonBackend[keyPythonBackend] 5 | 6 | shelvePythonBackend.close() 7 | del(shelve) 8 | del(shelvePythonBackend) 9 | del(keyPythonBackend) 10 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/para.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "paragraph blocking" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | try 'paragraph followed by code' \ 9 | 'a 10 | b' \ 11 | '

a 12 | b

' 13 | 14 | try 'single-line paragraph' 'a' '

a

' 15 | 16 | summary $0 17 | exit $rc 18 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/reparse.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "footnotes inside reparse sections" 4 | 5 | rc=0 6 | 7 | try 'footnote inside [] section' \ 8 | '[![foo][]](bar) 9 | 10 | [foo]: bar2' \ 11 | '

foo

' 12 | 13 | summary $0 14 | exit $rc 15 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/creatematrix/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( CreateMatrixAssistant_SRCS 2 | creatematrixassistant.cpp 3 | creatematrixdlg.cpp 4 | creatematrixassistant.qrc 5 | ) 6 | 7 | ki18n_wrap_ui(CreateMatrixAssistant_SRCS creatematrixdlg.ui) 8 | 9 | add_assistant(creatematrixassistant ${CreateMatrixAssistant_SRCS}) 10 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/eigenvalues/cantor_eigenvalues_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Linear Algebra 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/eigenvectors/cantor_eigenvectors_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Linear Algebra 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/backends/octave/cmake.patch: -------------------------------------------------------------------------------- 1 | Index: CMakeLists.txt 2 | =================================================================== 3 | --- CMakeLists.txt (revision 1124619) 4 | +++ CMakeLists.txt (working copy) 5 | @@ -12,3 +12,5 @@ 6 | if(R_FOUND) 7 | macro_optional_add_subdirectory(R) 8 | endif(R_FOUND) 9 | + 10 | +add_subdirectory(octave) 11 | -------------------------------------------------------------------------------- /src/lib/test/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/..) 2 | 3 | set(cantortest_SRCS 4 | backendtest.cpp) 5 | 6 | add_library( cantortest SHARED ${cantortest_SRCS} ) 7 | generate_export_header(cantortest) 8 | 9 | target_link_libraries( cantortest 10 | cantorlibs 11 | Qt6::Test) 12 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/creatematrix/cantor_create_matrix_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Linear Algebra 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/invertmatrix/cantor_invert_matrix_assistant.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | &Linear Algebra 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/data/README: -------------------------------------------------------------------------------- 1 | This directory contains source (.text) & expected output (.html) 2 | for various test that are too complicated for placing the results 3 | inline. 4 | 5 | The prefix characters show which test script runs the tests 6 | 7 | f -- markdown extra footnotes (extrafootnotes.t) 8 | (f01.text -> f01.html) 9 | -------------------------------------------------------------------------------- /src/panelplugins/documentationpanel/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( DocumentationPanelPlugin_SRCS 2 | documentationpanelplugin.cpp 3 | documentationpanelwidget.cpp 4 | ) 5 | 6 | add_panel(documentationpanelplugin ${DocumentationPanelPlugin_SRCS}) 7 | 8 | target_link_libraries(cantor_documentationpanelplugin 9 | Qt6::Help 10 | Qt6::WebEngineWidgets) 11 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/libmarkdown.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@prefix@ 3 | libdir=@libdir@ 4 | includedir=@prefix@/include 5 | 6 | Name: @PACKAGE_NAME@ 7 | Version: @PACKAGE_VERSION@ 8 | Description: C implementation of John Gruber's Markdown markup language 9 | 10 | Libs: -L${libdir} -lmarkdown @LIBS@ 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/callbacks.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "callbacks" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | try -bZZZ 'url modification' \ 9 | '[a](/b)' \ 10 | '

a

' 11 | 12 | try -EZZZ 'additional flags' \ 13 | '[a](/b)' \ 14 | '

a

' 15 | 16 | summary $0 17 | exit $rc 18 | -------------------------------------------------------------------------------- /src/panelplugins/variablemgr/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( VariableManagerPlugin_SRCS 2 | variablemanagerplugin.cpp 3 | variablemanagerwidget.cpp 4 | ) 5 | 6 | ki18n_wrap_ui(VariableManagerPlugin_SRCS newvardlg.ui) 7 | 8 | add_panel(variablemanagerplugin ${VariableManagerPlugin_SRCS}) 9 | 10 | target_link_libraries(cantor_variablemanagerplugin KF6::KIOWidgets) 11 | -------------------------------------------------------------------------------- /src/backends/R/cantor_r.knsrc: -------------------------------------------------------------------------------- 1 | [KNewStuff3] 2 | ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml 3 | Categories=Cantor (Maxima),Cantor (Sage),Cantor (KAlgebra),Cantor (Qalculate),Cantor (Python 2),Cantor (Python 3),Cantor (Scilab),Cantor (Octave),Cantor (R),Cantor (Lua) 4 | UploadCategories=Cantor (R) 5 | TargetDir=cantor/examples 6 | Uncompress=never 7 | CustomName=true 8 | -------------------------------------------------------------------------------- /src/scripteditor/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( scripteditor_SRCS 2 | main.cpp 3 | scripteditorwidget.cpp 4 | 5 | scripteditor.qrc 6 | ) 7 | 8 | add_executable( cantor_scripteditor ${scripteditor_SRCS} ) 9 | 10 | target_link_libraries(cantor_scripteditor KF6::TextEditor KF6::I18n) 11 | 12 | install(TARGETS cantor_scripteditor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) 13 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/footnotes.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "footnotes" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | try 'a line with multiple []s' '[a][] [b][]:' '

[a][] [b][]:

' 9 | try 'a valid footnote' \ 10 | '[alink][] 11 | 12 | [alink]: link_me' \ 13 | '

alink

' 14 | 15 | summary $0 16 | exit $rc 17 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tools/checkbits.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | trap "rm -f in.markdown.h in.mkdio.h" EXIT 4 | 5 | grep '#define MKD_' markdown.h | awk '$3 ~ /0x0/ {print $2,$3;}' > in.markdown.h 6 | grep '#define MKD_' mkdio.h | awk '$3 ~ /0x0/ {print $2,$3;}' > in.mkdio.h 7 | 8 | diff -c -bw in.markdown.h in.mkdio.h 9 | retcode=$? 10 | 11 | exit $retcode 12 | -------------------------------------------------------------------------------- /src/backends/lua/cantor_lua.knsrc: -------------------------------------------------------------------------------- 1 | [KNewStuff3] 2 | ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml 3 | Categories=Cantor (Maxima),Cantor (Sage),Cantor (KAlgebra),Cantor (Qalculate),Cantor (Python 2),Cantor (Python 3),Cantor (Scilab),Cantor (Octave),Cantor (R),Cantor (Lua) 4 | UploadCategories=Cantor (Lua) 5 | TargetDir=cantor/examples 6 | Uncompress=never 7 | CustomName=true 8 | -------------------------------------------------------------------------------- /src/backends/julia/scripts/variables_cleaner.jl: -------------------------------------------------------------------------------- 1 | # Variable cleaning script 2 | for name in names(Main)[4:end] 3 | if name == :__originalSTDOUT__ || name == :__originalSTDERR__ 4 | continue 5 | end 6 | var_info = summary(eval(name)) 7 | if var_info == "Function" || var_info == "Module" 8 | continue 9 | end 10 | @eval (($name) = "%1") 11 | end 12 | -------------------------------------------------------------------------------- /src/backends/sage/cantor_sage.knsrc: -------------------------------------------------------------------------------- 1 | [KNewStuff3] 2 | ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml 3 | Categories=Cantor (Maxima),Cantor (Sage),Cantor (KAlgebra),Cantor (Qalculate),Cantor (Python 2),Cantor (Python 3),Cantor (Scilab),Cantor (Octave),Cantor (R),Cantor (Lua) 4 | UploadCategories=Cantor (Sage) 5 | TargetDir=cantor/examples 6 | Uncompress=never 7 | CustomName=true 8 | -------------------------------------------------------------------------------- /src/XmlMessages.sh: -------------------------------------------------------------------------------- 1 | function get_files 2 | { 3 | echo cantor.xml 4 | } 5 | 6 | function po_for_file 7 | { 8 | case "$1" in 9 | cantor.xml) 10 | echo cantor_xml_mimetypes.po 11 | ;; 12 | esac 13 | } 14 | 15 | function tags_for_file 16 | { 17 | case "$1" in 18 | cantor.xml) 19 | echo comment 20 | ;; 21 | esac 22 | } 23 | -------------------------------------------------------------------------------- /src/backends/maxima/cantor_maxima.knsrc: -------------------------------------------------------------------------------- 1 | [KNewStuff3] 2 | ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml 3 | Categories=Cantor (Maxima),Cantor (Sage),Cantor (KAlgebra),Cantor (Qalculate),Cantor (Python 2),Cantor (Python 3),Cantor (Scilab),Cantor (Octave),Cantor (R),Cantor (Lua) 4 | UploadCategories=Cantor (Maxima) 5 | TargetDir=cantor/examples 6 | Uncompress=never 7 | CustomName=true 8 | -------------------------------------------------------------------------------- /src/backends/octave/cantor_octave.knsrc: -------------------------------------------------------------------------------- 1 | [KNewStuff3] 2 | ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml 3 | Categories=Cantor (Maxima),Cantor (Sage),Cantor (KAlgebra),Cantor (Qalculate),Cantor (Python 2),Cantor (Python 3),Cantor (Scilab),Cantor (Octave),Cantor (R),Cantor (Lua) 4 | UploadCategories=Cantor (Octave) 5 | TargetDir=cantor/examples 6 | Uncompress=never 7 | CustomName=true 8 | -------------------------------------------------------------------------------- /src/backends/python/cantor_python.knsrc: -------------------------------------------------------------------------------- 1 | [KNewStuff3] 2 | ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml 3 | Categories=Cantor (Maxima),Cantor (Sage),Cantor (KAlgebra),Cantor (Qalculate),Cantor (Python 2),Cantor (Python 3),Cantor (Scilab),Cantor (Octave),Cantor (R),Cantor (Lua) 4 | UploadCategories=Cantor (Python3) 5 | TargetDir=cantor/examples 6 | Uncompress=never 7 | CustomName=true 8 | -------------------------------------------------------------------------------- /src/backends/scilab/cantor_scilab.knsrc: -------------------------------------------------------------------------------- 1 | [KNewStuff3] 2 | ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml 3 | Categories=Cantor (Maxima),Cantor (Sage),Cantor (KAlgebra),Cantor (Qalculate),Cantor (Python 2),Cantor (Python 3),Cantor (Scilab),Cantor (Octave),Cantor (R),Cantor (Lua) 4 | UploadCategories=Cantor (Scilab) 5 | TargetDir=cantor/examples 6 | Uncompress=never 7 | CustomName=true 8 | -------------------------------------------------------------------------------- /src/backends/kalgebra/cantor_kalgebra.knsrc: -------------------------------------------------------------------------------- 1 | [KNewStuff3] 2 | ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml 3 | Categories=Cantor (Maxima),Cantor (Sage),Cantor (KAlgebra),Cantor (Qalculate),Cantor (Python 2),Cantor (Python 3),Cantor (Scilab),Cantor (Octave),Cantor (R),Cantor (Lua) 4 | UploadCategories=Cantor (KAlgebra) 5 | TargetDir=cantor/examples 6 | Uncompress=never 7 | CustomName=true 8 | -------------------------------------------------------------------------------- /src/scripteditor/cantor_scripteditor.rc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /src/backends/qalculate/cantor_qalculate.knsrc: -------------------------------------------------------------------------------- 1 | [KNewStuff3] 2 | ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml 3 | Categories=Cantor (Maxima),Cantor (Sage),Cantor (KAlgebra),Cantor (Qalculate),Cantor (Python 2),Cantor (Python 3),Cantor (Scilab),Cantor (Octave),Cantor (R),Cantor (Lua) 4 | UploadCategories=Cantor (Qalculate) 5 | TargetDir=cantor/examples 6 | Uncompress=never 7 | CustomName=true 8 | -------------------------------------------------------------------------------- /admin/documentation/README.md: -------------------------------------------------------------------------------- 1 | This folder contains instructions and helper scripts to convert the documentation of the different languages (usually in HTML) to [QtHelp format](https://doc.qt.io/qt-6/qthelp-framework.html). 2 | 3 | Once the documentation in the QtHelp format is ready, it needs to be uploaded together with a screenshot and a short description to the [KDE Store](https://store.kde.org/browse?cat=650&ord=latest). 4 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/chrome.text: -------------------------------------------------------------------------------- 1 | ->###chrome with my markdown###<- 2 | 3 | 1. `(c)` -> `©` (c) 4 | 2. `(r)` -> `®` (r) 5 | 3. `(tm)` -> `™` (tm) 6 | 4. `...` -> `…` ... 7 | 5. `--` -> `&emdash;` -- 8 | 6. `-` -> `–` - (but not if it's between-words) 9 | 7. "fancy quoting" 10 | 8. 'fancy quoting (#2)' 11 | 9. don't do it unless it's a real quote. 12 | 10. `` (`) `` 13 | 14 | -------------------------------------------------------------------------------- /admin/documentation/R/4.2/help.qhcp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | help.qhp 8 | help.qch 9 | 10 | 11 | 12 | 13 | help.qch 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/embedlinks.text: -------------------------------------------------------------------------------- 1 | * [![an image](http://dustmite.org/mite.jpg =50x50)] (http://dustmite.org) 2 | * [[an embedded link](http://wontwork.org)](http://willwork.org) 3 | * [![dustmite][]] (http:/dustmite.org) 4 | * ![dustmite][] 5 | * ![dustmite][dustmite] 6 | * [cheat me](http://I.am.cheating) 7 | 8 | [dustmite]: http://dustmite.org/mite.jpg =25x25 "here I am!" 9 | 10 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/links.text: -------------------------------------------------------------------------------- 1 | 1. 2 | 2. [automatic] (http://automatic "automatic link") 3 | 3. [automatic](http://automatic "automatic link") 4 | 4. [automatic](http://automatic) 5 | 5. [automatic] (http://automatic) 6 | 6. [automatic] [] 7 | 7. [automatic][] 8 | 8. [my][automatic] 9 | 9. [my] [automatic] 10 | 11 | [automatic]: http://automatic "footnote" 12 | 13 | 14 | [automatic] [ 15 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tags.h: -------------------------------------------------------------------------------- 1 | /* block-level tags for passing html blocks through the blender 2 | */ 3 | #ifndef _TAGS_D 4 | #define _TAGS_D 5 | 6 | struct kw { 7 | char *id; 8 | int size; 9 | int selfclose; 10 | } ; 11 | 12 | 13 | struct kw* mkd_search_tags(char *, int); 14 | void mkd_prepare_tags(); 15 | void mkd_deallocate_tags(); 16 | void mkd_sort_tags(); 17 | void mkd_define_tag(char *, int); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /src/backends/julia/juliaserver/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_definitions(-DJULIA_ENABLE_THREADING=1) 2 | 3 | set(JuliaServer_SRCS 4 | juliaserver.cpp 5 | main.cpp 6 | ) 7 | add_executable(cantor_juliaserver ${JuliaServer_SRCS}) 8 | 9 | target_link_libraries(cantor_juliaserver 10 | ${JULIA_LIBRARY} 11 | ${JULIA_INTERNAL_LIBRARY} 12 | Qt6::Widgets 13 | Qt6::DBus 14 | ) 15 | 16 | install(TARGETS cantor_juliaserver ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 17 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Author: Filipe Saraiva (filip.saraiva at gmail.com) 2 | # Date: 2011.27.04 3 | 4 | # Personal configurarion files 5 | *.user 6 | *.kdev4 7 | .kdev4/* 8 | 9 | # Temporary files 10 | *~ 11 | 12 | # Folder to compile source code 13 | build* 14 | 15 | # cmake stuff 16 | *.cmake 17 | 18 | # moc files 19 | *.moc 20 | moc_* 21 | *_automoc.cpp* 22 | .cmake/ 23 | /.clang-format 24 | /compile_commands.json 25 | .clangd 26 | .cache 27 | .idea 28 | /cmake-build* 29 | -------------------------------------------------------------------------------- /src/backends/python/variables_saver.py: -------------------------------------------------------------------------------- 1 | import shelve 2 | shelvePythonBackend = shelve.open('%1', 'n') 3 | for keyPythonBackend in dir(): 4 | if (not 'PythonBackend' in keyPythonBackend)\ 5 | and (not '__' in keyPythonBackend)\ 6 | and (not 'html5 does not suck' \ 10 | '' 11 | 12 | try 'html5 block elements disabled' \ 13 | '' \ 14 | '

' 15 | 16 | summary $0 17 | exit $rc 18 | -------------------------------------------------------------------------------- /src/lib/worksheetaccess.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-License-Identifier: GPL-2.0-or-later 3 | SPDX-FileCopyrightText: 2009 Alexander Rieder 4 | */ 5 | 6 | #include "worksheetaccess.h" 7 | 8 | 9 | using namespace Cantor; 10 | 11 | QLatin1String WorksheetAccessInterface::Name = QLatin1String("WorksheetAccessInterface"); 12 | 13 | WorksheetAccessInterface::WorksheetAccessInterface(QObject* parent) : QObject(parent) 14 | { 15 | setObjectName(Name); 16 | } 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tools/echo.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | 6 | int 7 | main(argc, argv) 8 | char **argv; 9 | { 10 | int nl = 1; 11 | int i; 12 | 13 | if ( (argc > 1) && (strcmp(argv[1], "-n") == 0) ) { 14 | ++argv; 15 | --argc; 16 | nl = 0; 17 | } 18 | 19 | for ( i=1; i < argc; i++ ) { 20 | if ( i > 1 ) putchar(' '); 21 | fputs(argv[i], stdout); 22 | } 23 | if (nl) putchar('\n'); 24 | exit(0); 25 | } 26 | -------------------------------------------------------------------------------- /admin/documentation/Octave/README.md: -------------------------------------------------------------------------------- 1 | ### Steps to extract the indices from `octave's official documentation` to add them to `qhp` under `keywords` 2 | Simply get the QtHelp files from the official Octave repository. Get the files from `octave-5.2.0/doc/interpreter/`. The files are having `.qch` and `.qhc` extension. You could also run the perl script named `mk-qthelp.pl` and pass in the arguments as `octave.html` and `help`. ie `mk-qthelp.pl octave.html help`. After running this script, the help files are generated. 3 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/data/f01.html: -------------------------------------------------------------------------------- 1 |

is there a footnote here?1

2 | 3 |

And this is not part of the footnote

4 |
5 |
6 |
    7 |
  1. 8 |

    Yes, and it should have text

    9 | 10 |

    11 | code 12 |

    13 | 14 |
      15 |
    • And
    • 16 |
    • A
    • 17 |
    • List
    • 18 |
    19 |
  2. 20 |
21 |
22 | 23 | -------------------------------------------------------------------------------- /src/backends/lua/luavariablemodel.h: -------------------------------------------------------------------------------- 1 | #ifndef LUAVARIABLEMODEL_H 2 | #define LUAVARIABLEMODEL_H 3 | 4 | #include "defaultvariablemodel.h" 5 | 6 | class LuaVariableModel : public Cantor::DefaultVariableModel 7 | { 8 | public: 9 | LuaVariableModel(Cantor::Session* session); 10 | 11 | void update() override; 12 | 13 | private Q_SLOTS: 14 | void parseResult(Cantor::Expression::Status status); 15 | 16 | private: 17 | Cantor::Expression* m_expression{nullptr}; 18 | }; 19 | 20 | #endif // LUAVARIABLEMODEL_H 21 | -------------------------------------------------------------------------------- /admin/documentation/apply_css.py: -------------------------------------------------------------------------------- 1 | import os 2 | from bs4 import BeautifulSoup 3 | 4 | css_link = BeautifulSoup('', 'html.parser') 5 | 6 | for filename in os.listdir('.'): 7 | if filename.endswith('.html'): 8 | with open(filename, 'r+') as f: 9 | soup = BeautifulSoup(f, 'html.parser') 10 | head = soup.head 11 | head.append(css_link) 12 | f.seek(0) 13 | f.write(str(soup)) 14 | f.truncate() 15 | -------------------------------------------------------------------------------- /src/panelplugins/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | function(add_panel name) 2 | 3 | kcoreaddons_add_plugin("cantor_${name}" 4 | SOURCES ${ARGN} 5 | INSTALL_NAMESPACE "cantor_plugins/panels") 6 | 7 | target_link_libraries("cantor_${name}" 8 | cantorlibs) 9 | 10 | endfunction() 11 | 12 | add_subdirectory(helppanel) 13 | add_subdirectory(variablemgr) 14 | add_subdirectory(filebrowserpanel) 15 | add_subdirectory(tocpanel) 16 | if (ENABLE_EMBEDDED_DOCUMENTATION) 17 | add_subdirectory(documentationpanel) 18 | endif () 19 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/githubtags.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "github tags" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | SRC='content' 9 | 10 | try 'github tags disabled by default' \ 11 | "$SRC" \ 12 | '

<element-name>content</element-name>

' 13 | 14 | try -fgithubtags 'github tags' \ 15 | "$SRC" \ 16 | '

content

' 17 | 18 | try 'normal tags pass through' \ 19 | 'sdf' \ 20 | '

sdf

' 21 | 22 | summary $0 23 | exit $rc 24 | -------------------------------------------------------------------------------- /src/backends/qalculate/plotassistant/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set( QalculatePlotAssistant_SRCS 2 | qalculateplotassistant.cpp 3 | qalculateplotassistant.qrc 4 | ) 5 | 6 | kconfig_add_kcfg_files(QalculatePlotAssistant_SRCS ../settings.kcfgc) 7 | ki18n_wrap_ui(QalculatePlotAssistant_SRCS qalculateplotdialog.ui) 8 | 9 | kcoreaddons_add_plugin(cantor_qalculateplotassistant 10 | SOURCES ${QalculatePlotAssistant_SRCS} 11 | INSTALL_NAMESPACE "cantor_plugins/assistants") 12 | 13 | target_link_libraries(cantor_qalculateplotassistant cantorlibs) 14 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/html5.c: -------------------------------------------------------------------------------- 1 | /* block-level tags for passing html5 blocks through the blender 2 | */ 3 | #include "tags.h" 4 | 5 | void 6 | mkd_with_html5_tags() 7 | { 8 | static int populated = 0; 9 | 10 | if ( populated ) return; 11 | populated = 1; 12 | 13 | mkd_define_tag("ASIDE", 0); 14 | mkd_define_tag("FOOTER", 0); 15 | mkd_define_tag("HEADER", 0); 16 | mkd_define_tag("NAV", 0); 17 | mkd_define_tag("SECTION", 0); 18 | mkd_define_tag("ARTICLE", 0); 19 | 20 | mkd_sort_tags(); 21 | } 22 | -------------------------------------------------------------------------------- /admin/documentation/Qalculate/README.md: -------------------------------------------------------------------------------- 1 | ### Steps for adding custom style to the Qalculate documentation 2 | 3 | 1. Copy and paste the main.css file as it is in the Qalculate folder. 4 | 5 | 2. Link this file with the HTML files of Qalculte Documentation. 6 | 7 | 3. This can be done by running the `script.py` file. 8 | 9 | 4. Using this main.css file one can customize the Qalculte Documentation by adding custom css rules in it. 10 | 11 | 5. Along with that `script.py` will also run the code for converting the Qalculate documentation in Qt Help files. 12 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/strikethrough.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "strikethrough" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | try 'strikethrough' '~~deleted~~' '

deleted

' 9 | try -fnodel '... with -fnodel' '~~deleted~~' '

~~deleted~~

' 10 | try 'mismatched tildes' '~~~tick~~' '

~tick

' 11 | try 'mismatched tildes(2)' '~~tick~~~' '

~~tick~~~

' 12 | try 'single tildes' '~tick~' '

~tick~

' 13 | try 'tildes wrapped in spaces' '~~~ ~~~' '

~~~ ~~~

' 14 | 15 | summary $0 16 | exit $rc 17 | -------------------------------------------------------------------------------- /src/backends/julia/scripts/variables_saver.jl: -------------------------------------------------------------------------------- 1 | # Variable saving script 2 | # 3 | # Install JLD script with `Pkg.add(JLD)` to use it 4 | import JLD 5 | JLD.jldopen("%1", "w") do file 6 | for name in names(Main)[4:end] 7 | if name == :__originalSTDOUT__ || name == :__originalSTDERR__ 8 | continue 9 | end 10 | var_info = summary(eval(name)) 11 | if var_info == "Function" || var_info == "Module" 12 | continue 13 | end 14 | JLD.write(file, repr(name)[2:end], eval(name)) 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/msvc/README.md: -------------------------------------------------------------------------------- 1 | # *Discount* Markdown compiler on Windows with Visual C++ 2 | 3 | Makefile for NMAKE utility to build Discount using Visual C++ 4 | and pre-digested `config.h` template. 5 | 6 | ## Build 7 | 8 | Build generates default optimised binaries. 9 | Edit `CFLAGS` in `Makefile` to customize generated binaries (eg. switch to debug build). 10 | 11 | * Generate static library `libmarkdown.lib` and utility programs: 12 | 13 | nmake /f msvc/Makefile 14 | 15 | * Clean source tree 16 | 17 | nmake /f msvc/Makefile clean 18 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/flow.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "paragraph flow" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | try 'header followed by paragraph' \ 9 | '###Hello, sailor### 10 | And how are you today?' \ 11 | '

Hello, sailor

12 | 13 |

And how are you today?

' 14 | 15 | try 'two lists punctuated with a HR' \ 16 | '* A 17 | * * * 18 | * B 19 | * C' \ 20 | '
    21 |
  • A
  • 22 |
23 | 24 | 25 |
26 | 27 |
    28 |
  • B
  • 29 |
  • C
  • 30 |
' 31 | 32 | summary $0 33 | exit $rc 34 | -------------------------------------------------------------------------------- /admin/documentation/main.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Arial, sans-serif; 3 | line-height: 1.6; 4 | color: #333; 5 | margin: 20px; 6 | padding: 20px; 7 | background-color: #f4f4f4; 8 | } 9 | 10 | h1 { 11 | color: #444; 12 | } 13 | 14 | p { 15 | margin-bottom: 20px; 16 | } 17 | 18 | blockquote { 19 | border-left: 5px solid #ccc; 20 | padding-left: 15px; 21 | margin-left: 0; 22 | color: #666; 23 | } 24 | 25 | a { 26 | color: #3498db; 27 | text-decoration: none; 28 | } 29 | 30 | a:hover { 31 | color: #226897; 32 | } -------------------------------------------------------------------------------- /src/backends/qalculate/qalculatevariablemodel.h: -------------------------------------------------------------------------------- 1 | #ifndef QALCULATE_VARIABLE_MODEL_H 2 | #define QALCULATE_VARIABLE_MODEL_H 3 | 4 | #include "defaultvariablemodel.h" 5 | 6 | class QalculateSession; 7 | 8 | class QalculateVariableModel : public Cantor::DefaultVariableModel 9 | { 10 | Q_OBJECT 11 | public: 12 | explicit QalculateVariableModel(QalculateSession*); 13 | ~QalculateVariableModel() override; 14 | 15 | void update() override; 16 | 17 | private: 18 | QalculateSession* m_session{nullptr}; 19 | }; 20 | 21 | #endif // QALCULATE_VARIABLE_MODEL_H 22 | -------------------------------------------------------------------------------- /src/backends/sage/sagevariablemodel.h: -------------------------------------------------------------------------------- 1 | #ifndef SAGEVARIABLEMODEL_H 2 | #define SAGEVARIABLEMODEL_H 3 | 4 | #include "defaultvariablemodel.h" 5 | 6 | class SageVariableModel : public Cantor::DefaultVariableModel 7 | { 8 | Q_OBJECT 9 | public: 10 | explicit SageVariableModel(Cantor::Session*); 11 | ~SageVariableModel() override; 12 | 13 | void update() override; 14 | 15 | private Q_SLOTS: 16 | void parseResult(Cantor::Expression::Status); 17 | 18 | private: 19 | Cantor::Expression* m_expression{nullptr}; 20 | }; 21 | 22 | #endif //SAGEVARIABLEMODEL_H 23 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/defects.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "reported defects" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | try 'masses of non-block html' \ 9 | 'foo
10 |
11 | bar
' \ 12 | '

foo
13 |
14 | bar

' 15 | 16 | try -fautolink -G 'autolink + github-flavoured markdown' \ 17 | 'http://foo 18 | bar' \ 19 | '

http://foo
20 | bar

' 21 | 22 | try 'unterminated

block' '

*' '

*

' 23 | 24 | summary $0 25 | exit $rc 26 | -------------------------------------------------------------------------------- /src/lib/cantor_macros.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-License-Identifier: GPL-2.0-or-later 3 | SPDX-FileCopyrightText: 2009 Alexander Rieder 4 | */ 5 | 6 | #ifndef _CANTOR_MACROS_H 7 | #define _CANTOR_MACROS_H 8 | 9 | #include 10 | 11 | /** 12 | Exports Backend plugin. 13 | */ 14 | #define K_EXPORT_CANTOR_PLUGIN(libname, classname) \ 15 | K_PLUGIN_FACTORY(factory, registerPlugin();) \ 16 | K_EXPORT_PLUGIN(factory("cantor_" #libname)) \ 17 | K_EXPORT_PLUGIN_VERSION(CANTOR_VERSION) 18 | 19 | #endif /* _CANTOR_MACROS_H */ 20 | -------------------------------------------------------------------------------- /cmake/FindLuaJIT.cmake: -------------------------------------------------------------------------------- 1 | find_package(PkgConfig) 2 | 3 | pkg_check_modules(LUAJIT QUIET luajit) 4 | 5 | find_path(LUAJIT_INCLUDE_DIR lua.hpp HINTS ${LUAJIT_INCLUDEDIR} ${LUAJIT_INCLUDE_DIRS}) 6 | find_library(LUAJIT_LIBRARY NAMES luajit-5.1 luajit HINTS ${LUAJIT_LIBDIR} ${LUAJIT_LIBRARY_DIRS}) 7 | 8 | set(LUAJIT_LIBRARIES ${LUAJIT_LIBRARY}) 9 | set(LUAJIT_INCLUDE_DIRS ${LUAJIT_INCLUDE_DIR}) 10 | 11 | include(FindPackageHandleStandardArgs) 12 | find_package_handle_standard_args(LuaJIT DEFAULT_MSG LUAJIT_LIBRARY LUAJIT_INCLUDE_DIR) 13 | mark_as_advanced(LUAJIT_INCLUDE_DIR LUAJIT_LIBRARY) 14 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/linkypix.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "embedded images" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | try 'image with size extension' \ 9 | '![picture](pic =200x200)' \ 10 | '

picture

' 11 | 12 | try 'image with height' \ 13 | '![picture](pic =x200)' \ 14 | '

picture

' 15 | 16 | try 'image with width' \ 17 | '![picture](pic =200x)' \ 18 | '

picture

' 19 | 20 | summary $0 21 | exit $rc 22 | -------------------------------------------------------------------------------- /src/backends/kalgebra/kalgebrabackend.kcfg: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/lib/keywordsmanager.h: -------------------------------------------------------------------------------- 1 | #ifndef CANTOR_SYMBOLMANAGER_H 2 | #define CANTOR_SYMBOLMANAGER_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include "cantor_export.h" 9 | 10 | class CANTOR_EXPORT KeywordsManager 11 | { 12 | public: 13 | explicit KeywordsManager(const QString& syntaxDefinitionName); 14 | 15 | const QSet& symbolList(const QString& listName) const; 16 | 17 | QStringList symbolLists() const; 18 | 19 | private: 20 | QHash> m_symbolSets; 21 | }; 22 | 23 | #endif // CANTOR_SYMBOLMANAGER_H 24 | -------------------------------------------------------------------------------- /src/assistants/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | function(add_assistant name) 2 | 3 | kcoreaddons_add_plugin("cantor_${name}" 4 | SOURCES ${ARGN} 5 | INSTALL_NAMESPACE "cantor_plugins/assistants") 6 | 7 | target_link_libraries("cantor_${name}" 8 | cantorlibs) 9 | 10 | endfunction() 11 | 12 | 13 | add_subdirectory(solve) 14 | add_subdirectory(integrate) 15 | add_subdirectory(differentiate) 16 | add_subdirectory(linearalgebra) 17 | add_subdirectory(runscript) 18 | add_subdirectory(plot2d) 19 | add_subdirectory(plot3d) 20 | add_subdirectory(advancedplot) 21 | add_subdirectory(importpackage) 22 | -------------------------------------------------------------------------------- /src/assistants/advancedplot/directivecontainer.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | directiveContainer 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | Option active 15 | 16 | 17 | true 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/assistants/solve/solveassistant.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-License-Identifier: GPL-2.0-or-later 3 | SPDX-FileCopyrightText: 2009 Alexander Rieder 4 | */ 5 | 6 | #ifndef _SOLVEASSISTANT_H 7 | #define _SOLVEASSISTANT_H 8 | 9 | #include "assistant.h" 10 | 11 | class SolveAssistant : public Cantor::Assistant 12 | { 13 | public: 14 | SolveAssistant( QObject* parent, QList args ); 15 | ~SolveAssistant() override = default; 16 | 17 | void initActions() override; 18 | 19 | QStringList run(QWidget* parentt) override; 20 | 21 | }; 22 | 23 | #endif /* _SOLVEASSISTANT_H */ 24 | -------------------------------------------------------------------------------- /src/assistants/plot2d/plot2dassistant.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-License-Identifier: GPL-2.0-or-later 3 | SPDX-FileCopyrightText: 2009 Alexander Rieder 4 | */ 5 | 6 | #ifndef _PLOT2DASSISTANT_H 7 | #define _PLOT2DASSISTANT_H 8 | 9 | #include "assistant.h" 10 | 11 | class Plot2dAssistant : public Cantor::Assistant 12 | { 13 | Q_OBJECT 14 | public: 15 | Plot2dAssistant( QObject* parent, QList args ); 16 | ~Plot2dAssistant() override = default; 17 | 18 | void initActions() override; 19 | QStringList run(QWidget* parentt) override; 20 | }; 21 | 22 | #endif /* _PLOT2DASSISTANT_H */ 23 | -------------------------------------------------------------------------------- /src/assistants/plot3d/plot3dassistant.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-License-Identifier: GPL-2.0-or-later 3 | SPDX-FileCopyrightText: 2009 Alexander Rieder 4 | */ 5 | 6 | #ifndef _PLOT3DASSISTANT_H 7 | #define _PLOT3DASSISTANT_H 8 | 9 | #include "assistant.h" 10 | 11 | class Plot3dAssistant : public Cantor::Assistant 12 | { 13 | Q_OBJECT 14 | public: 15 | Plot3dAssistant( QObject* parent, QList args ); 16 | ~Plot3dAssistant() override = default; 17 | 18 | void initActions() override; 19 | QStringList run(QWidget* parentt) override; 20 | }; 21 | 22 | #endif /* _PLOT3DASSISTANT_H */ 23 | -------------------------------------------------------------------------------- /src/backends/R/rserver/tools/envvars.r: -------------------------------------------------------------------------------- 1 | #!/usr/bin/Rscript 2 | # 3 | # script taken from RInside library 4 | # 5 | # This owes a lot to littler.R in the littler sources 6 | 7 | ExcludeVars <- c("R_SESSION_TMPDIR","R_HISTFILE") 8 | IncludeVars <- Sys.getenv() 9 | IncludeVars <- IncludeVars[grep("^R_",names(IncludeVars),perl=TRUE)] 10 | cat(" const char *R_VARS[] = {\n") 11 | for (i in 1:length(IncludeVars)){ 12 | if (names(IncludeVars)[i] %in% ExcludeVars) 13 | next 14 | IncludeVars[i] <- gsub("\\\\",'/',IncludeVars[i]) 15 | cat(' "',names(IncludeVars)[i],'","',IncludeVars[i],'",\n',sep='') 16 | } 17 | cat(" nullptr\n };\n") 18 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/backslash.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "backslash escapes" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | try 'backslashes in []()' '[foo](http://\this\is\.a\test\(here\))' \ 9 | '

foo

' 10 | 11 | try -fautolink 'autolink url with trailing \' \ 12 | 'http://a.com/\' \ 13 | '

http://a.com/\

' 14 | 15 | 16 | try 'backslashes before ' '

\

' 17 | try 'backslashes before <{EOF}' '\<' '

<

' 18 | try 'backslashes before <[space]' '\< j' '

< j

' 19 | 20 | summary $0 21 | exit $rc 22 | -------------------------------------------------------------------------------- /src/backends/kalgebra/kalgebrasyntaxhelpobject.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2009 Aleix Pol 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef KALGEBRASYNTAXHELPOBJECT_H 8 | #define KALGEBRASYNTAXHELPOBJECT_H 9 | 10 | #include 11 | 12 | class KAlgebraSession; 13 | 14 | class KAlgebraSyntaxHelpObject : public Cantor::SyntaxHelpObject 15 | { 16 | public: 17 | KAlgebraSyntaxHelpObject( const QString& command, KAlgebraSession* session ); 18 | 19 | protected: 20 | void fetchInformation() override; 21 | }; 22 | 23 | #endif // KALGEBRASYNTAXHELPOBJECT_H 24 | -------------------------------------------------------------------------------- /src/assistants/integrate/integrateassistant.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-License-Identifier: GPL-2.0-or-later 3 | SPDX-FileCopyrightText: 2009 Alexander Rieder 4 | */ 5 | 6 | #ifndef _INTEGRATEASSISTANT_H 7 | #define _INTEGRATEASSISTANT_H 8 | 9 | #include "assistant.h" 10 | 11 | class IntegrateAssistant : public Cantor::Assistant 12 | { 13 | public: 14 | IntegrateAssistant( QObject* parent, QList args ); 15 | ~IntegrateAssistant() override = default; 16 | 17 | void initActions() override; 18 | 19 | QStringList run(QWidget* parentt) override; 20 | 21 | }; 22 | 23 | #endif /* _INTEGRATEASSISTANT_H */ 24 | -------------------------------------------------------------------------------- /src/assistants/runscript/runscriptassistant.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-License-Identifier: GPL-2.0-or-later 3 | SPDX-FileCopyrightText: 2009 Alexander Rieder 4 | */ 5 | 6 | #ifndef _RUNSCRIPTASSISTANT_H 7 | #define _RUNSCRIPTASSISTANT_H 8 | 9 | #include "assistant.h" 10 | 11 | class RunScriptAssistant : public Cantor::Assistant 12 | { 13 | public: 14 | RunScriptAssistant( QObject* parent, QList args ); 15 | ~RunScriptAssistant() override = default; 16 | 17 | void initActions() override; 18 | 19 | QStringList run(QWidget* parentt) override; 20 | 21 | }; 22 | 23 | #endif /* _RUNSCRIPTASSISTANT_H */ 24 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/amalloc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * debugging malloc()/realloc()/calloc()/free() that attempts 3 | * to keep track of just what's been allocated today. 4 | */ 5 | #ifndef AMALLOC_D 6 | #define AMALLOC_D 7 | 8 | #include "config.h" 9 | 10 | #ifdef USE_AMALLOC 11 | 12 | extern void *amalloc(int); 13 | extern void *acalloc(int,int); 14 | extern void *arealloc(void*,int); 15 | extern void afree(void*); 16 | extern void adump(); 17 | 18 | #define malloc amalloc 19 | #define calloc acalloc 20 | #define realloc arealloc 21 | #define free afree 22 | 23 | #else 24 | 25 | #define adump() (void)1 26 | 27 | #endif 28 | 29 | #endif/*AMALLOC_D*/ 30 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tools/branch.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | #include "config.h" 5 | 6 | int 7 | main(argc, argv) 8 | int argc; 9 | char **argv; 10 | { 11 | #if HAS_GIT 12 | FILE * pipe; 13 | 14 | char line[1024]; 15 | 16 | freopen("/dev/null", "w", stderr); 17 | pipe = popen("git branch | awk '$1 ~ /\\*/ { print $2; }'", "r"); 18 | if ( pipe == NULL ) 19 | return 0; 20 | 21 | if ( fgets(line, sizeof line, pipe) != 0 ) { 22 | strtok(line, "\n"); 23 | if ( strcmp(line, "master" ) != 0 ) 24 | printf("\"(%s)\"", line); 25 | } 26 | pclose(pipe); 27 | #endif 28 | return 0; 29 | } 30 | -------------------------------------------------------------------------------- /src/backends/python/pythonutils.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-License-Identifier: GPL-2.0-or-later 3 | SPDX-FileCopyrightText: 2015 Minh Ngo 4 | */ 5 | 6 | #ifndef _PYTHONUTILS_H 7 | #define _PYTHONUTILS_H 8 | 9 | #include 10 | #include 11 | 12 | inline QString fromSource(const QString& resourceName) 13 | { 14 | QFile text(resourceName); 15 | if (text.open(QIODevice::ReadOnly)) 16 | return QString::fromUtf8(text.readAll()); 17 | else 18 | { 19 | qWarning() << "Cantor Python resource" << resourceName << "didn't open - something wrong"; 20 | return QString(); 21 | } 22 | } 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/safelinks.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "safe links" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | try -fsafelink 'bogus url' '[test](bad:protocol)' \ 9 | '

[test](bad:protocol)

' 10 | try -fsafelink 'illegal url' '[test](b?d:protocol)' \ 11 | '

test

' 12 | try -fsafelink 'url fragment (1)' '[test](#bar)' '

test

' 13 | try -fsafelink 'url fragment (2)' '[test](/bar)' '

test

' 14 | try -fnosafelink 'bogus url (-fnosafelink)' '[test](bad:protocol)' '

test

' 15 | 16 | 17 | summary $0 18 | exit $rc 19 | -------------------------------------------------------------------------------- /src/assistants/importpackage/importpackageassistant.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-License-Identifier: GPL-2.0-or-later 3 | SPDX-FileCopyrightText: 2013 Filipe Saraiva 4 | */ 5 | 6 | #ifndef _IMPORTPACKAGEASSISTANT_H 7 | #define _IMPORTPACKAGEASSISTANT_H 8 | 9 | #include "assistant.h" 10 | 11 | class ImportPackageAssistant : public Cantor::Assistant 12 | { 13 | public: 14 | ImportPackageAssistant( QObject* parent, QList args ); 15 | ~ImportPackageAssistant() override = default; 16 | 17 | void initActions() override; 18 | 19 | QStringList run(QWidget* parentt) override; 20 | 21 | }; 22 | 23 | #endif /* _IMPORTPACKAGEASSISTANT_H */ 24 | -------------------------------------------------------------------------------- /src/backends/sage/sagesettingswidget.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2020-2023 by Alexander Semke (alexander.semke@web.de) 3 | 4 | SPDX-License-Identifier: GPL-2.0-or-later 5 | */ 6 | 7 | #ifndef SAGESETTINGSWIDGET_H 8 | #define SAGESETTINGSWIDGET_H 9 | 10 | #include "ui_settings.h" 11 | #include "../backendsettingswidget.h" 12 | 13 | class SageSettingsWidget : public BackendSettingsWidget, public Ui::SageSettingsBase 14 | { 15 | Q_OBJECT 16 | 17 | public: 18 | explicit SageSettingsWidget(QWidget* parent = nullptr, const QString& id = QString()); 19 | 20 | private Q_SLOTS: 21 | void integratePlotsChanged(bool); 22 | }; 23 | 24 | #endif /* SAGESETTINGSWIDGET_H */ 25 | -------------------------------------------------------------------------------- /admin/documentation/Python/NumPy_v1.19/README.md: -------------------------------------------------------------------------------- 1 | ### Steps to generate `qhp` and `qhcp` 2 | Copy the file named `qthelp_generator.py` to the location where the `NumPy` HTML files exists. Then simply run the command `python qthelp_generator.py`. This script does the task of extracting the keywords from `Numpy_v1.19/genindex.html` and generation of QtHelp files named `qhp` and `qhcp`. 3 | NOTE: Copy the script named `qthelp_generator.py` inside the directory `Numpy_v1.19/`. Official python documentation can be downloaded from https://numpy.org/doc/. 4 | 5 | ### Creation of `qhc` and `qch` 6 | Use the following command to generate the above said files. 7 | 8 | qhelpgenerator help.qhcp -o help.qhc 9 | -------------------------------------------------------------------------------- /src/assistants/linearalgebra/eigenvalues/eigenvaluesassistant.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-License-Identifier: GPL-2.0-or-later 3 | SPDX-FileCopyrightText: 2009 Alexander Rieder 4 | */ 5 | 6 | #ifndef _EIGENVALUESASSISTANT_H 7 | #define _EIGENVALUESASSISTANT_H 8 | 9 | #include "assistant.h" 10 | 11 | class EigenValuesAssistant : public Cantor::Assistant 12 | { 13 | public: 14 | EigenValuesAssistant( QObject* parent, QList args ); 15 | ~EigenValuesAssistant() override = default; 16 | 17 | void initActions() override; 18 | 19 | QStringList run(QWidget* parentt) override; 20 | 21 | }; 22 | 23 | #endif /* _EIGENVALUESASSISTANT_H */ 24 | -------------------------------------------------------------------------------- /src/backends/julia/juliasettingswidget.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-FileCopyrightText: 2020-2025 by Alexander Semke (alexander.semke@web.de) 3 | SPDX-License-Identifier: GPL-2.0-or-later 4 | */ 5 | 6 | #ifndef JULIASETTINGSWIDGET_H 7 | #define JULIASETTINGSWIDGET_H 8 | 9 | #include "ui_settings.h" 10 | #include "../backendsettingswidget.h" 11 | 12 | class JuliaSettingsWidget : public BackendSettingsWidget, public Ui::JuliaSettingsBase 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit JuliaSettingsWidget(QWidget* parent = nullptr, const QString& id = QString()); 18 | 19 | private Q_SLOTS: 20 | void integratePlotsChanged(bool); 21 | }; 22 | 23 | #endif /* JULIASETTINGSWIDGET_H */ 24 | -------------------------------------------------------------------------------- /src/assistants/differentiate/differentiateassistant.h: -------------------------------------------------------------------------------- 1 | /* 2 | SPDX-License-Identifier: GPL-2.0-or-later 3 | SPDX-FileCopyrightText: 2009 Alexander Rieder 4 | */ 5 | 6 | #ifndef _DIFFERENTIATEASSISTANT_H 7 | #define _DIFFERENTIATEASSISTANT_H 8 | 9 | #include "assistant.h" 10 | 11 | class DifferentiateAssistant : public Cantor::Assistant 12 | { 13 | public: 14 | DifferentiateAssistant( QObject* parent, QList args ); 15 | ~DifferentiateAssistant() override = default; 16 | 17 | void initActions() override; 18 | 19 | QStringList run(QWidget* parentt) override; 20 | 21 | }; 22 | 23 | #endif /* _DIFFERENTIATEASSISTANT_H */ 24 | -------------------------------------------------------------------------------- /thirdparty/discount-2.2.6-patched/tests/crash.t: -------------------------------------------------------------------------------- 1 | . tests/functions.sh 2 | 3 | title "crashes" 4 | 5 | rc=0 6 | MARKDOWN_FLAGS= 7 | 8 | try 'zero-length input' '' '' 9 | 10 | try 'hanging quote in list' \ 11 | ' * > this should not die 12 | 13 | no.' \ 14 | '
    15 |
  • this should not die

  • 16 |
17 | 18 | 19 |

no.

' 20 | 21 | try 'dangling list item' ' - ' \ 22 | '
    23 |
  • 24 |
' 25 | 26 | try -bHOHO 'empty []() with baseurl' '[]()' '

' 27 | try 'unclosed html block' '
</table

' 28 | try 'unclosed style block' '' '' 9 | 10 | ASK='' 13 | 14 | try 'multiple lines' "$ASK" '' 15 | 16 | try 'unclosed' '