├── mcharts.pri
├── doc
├── img
│ ├── QmlChartsExample.png
│ ├── QmlChartsAverageTemp.png
│ ├── QmlChartsAndroidExample.png
│ ├── QmlChartsGoldPriceHistory.png
│ ├── QmlChartsWindowsPieExample.png
│ ├── QmlChartsWindowsPolarExample.png
│ └── QmlChartsWindowsDoughnutExample.png
└── branding
│ ├── milo-doxy-footer.html
│ ├── milo-doxy-header.html
│ ├── milo.js
│ ├── milo-doxygen.css
│ └── milo-doxygen.scss
├── .gitmodules
├── AUTHORS.md
├── examples
├── live-update-example
│ ├── qml.qrc
│ ├── live-update-example.pro
│ ├── main.qml
│ ├── dataprovider.h
│ ├── main.cpp
│ └── dataprovider.cpp
├── showcase-example
│ ├── qml.qrc
│ ├── showcase-example.pro
│ ├── dataprovider.h
│ ├── main.cpp
│ ├── dataprovider.cpp
│ └── main.qml
└── utils
│ ├── qmlhelpers.h
│ ├── tags.h
│ ├── qmlhelpers.cpp
│ └── helpers.h
├── CMakeLists.txt
├── mcharts.qrc
├── .gitignore
├── .gitlab-ci.yml
├── LICENSE-MiloCodeDB.txt
├── mcharts.doxyfile
├── README.md
├── MDataset.qml
├── MChart.qml
└── MChartOptions.qml
/mcharts.pri:
--------------------------------------------------------------------------------
1 | RESOURCES += $$PWD/mcharts.qrc
2 |
--------------------------------------------------------------------------------
/doc/img/QmlChartsExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/milosolutions/mcharts/HEAD/doc/img/QmlChartsExample.png
--------------------------------------------------------------------------------
/doc/img/QmlChartsAverageTemp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/milosolutions/mcharts/HEAD/doc/img/QmlChartsAverageTemp.png
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "ChartJs2QML"]
2 | path = ChartJs2QML
3 | url = https://github.com/milosolutions/ChartJs2QML.git
4 |
--------------------------------------------------------------------------------
/doc/img/QmlChartsAndroidExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/milosolutions/mcharts/HEAD/doc/img/QmlChartsAndroidExample.png
--------------------------------------------------------------------------------
/AUTHORS.md:
--------------------------------------------------------------------------------
1 | Code has been written by Aleksey Lysenko and Jakub Motyczko, then refactored
2 | and upgraded by Tomasz Siekierda.
3 |
--------------------------------------------------------------------------------
/doc/img/QmlChartsGoldPriceHistory.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/milosolutions/mcharts/HEAD/doc/img/QmlChartsGoldPriceHistory.png
--------------------------------------------------------------------------------
/doc/img/QmlChartsWindowsPieExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/milosolutions/mcharts/HEAD/doc/img/QmlChartsWindowsPieExample.png
--------------------------------------------------------------------------------
/doc/img/QmlChartsWindowsPolarExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/milosolutions/mcharts/HEAD/doc/img/QmlChartsWindowsPolarExample.png
--------------------------------------------------------------------------------
/doc/img/QmlChartsWindowsDoughnutExample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/milosolutions/mcharts/HEAD/doc/img/QmlChartsWindowsDoughnutExample.png
--------------------------------------------------------------------------------
/examples/live-update-example/qml.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | main.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/examples/showcase-example/qml.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | main.qml
4 |
5 |
6 |
--------------------------------------------------------------------------------
/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | list(APPEND RESOURCES ${CMAKE_CURRENT_SOURCE_DIR}/mcharts.qrc)
2 | set(RESOURCES ${RESOURCES} PARENT_SCOPE)
3 | set(QML_IMPORT_PATH ${CMAKE_CURRENT_SOURCE_DIR} CACHE STRING "" FORCE PARENT_SCOPE)
4 |
--------------------------------------------------------------------------------
/examples/utils/qmlhelpers.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include
4 |
5 | class QColor;
6 |
7 | class QmlHelpers : public QObject
8 | {
9 | Q_OBJECT
10 |
11 | public:
12 | explicit QmlHelpers(QObject *parent = nullptr);
13 |
14 | Q_INVOKABLE static QString htmlColor(const QColor &color);
15 | };
16 |
17 |
--------------------------------------------------------------------------------
/mcharts.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | MChart.qml
4 | ChartJs2QML/Chart.qml
5 | ChartJs2QML/Chart.js
6 | MDataset.qml
7 | MChartOptions.qml
8 |
9 |
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | build
2 | debug
3 | release
4 | build-*
5 | *.log
6 | *.data
7 | *.user*
8 | *.pdb
9 | *.obj
10 | *.manifest
11 | *.res
12 | *.autosave
13 | *.Release
14 | *.Debug
15 | *~
16 | cache
17 | ui_*.h
18 | Makefile*
19 | *.exe
20 | *.psd
21 | *.so-deployment-settings.json
22 | android-build/
23 | app_process
24 | libc.so
25 | Thumbs.db
26 | .DS_Store
27 | *.kate-swp
28 | *.doxytag
29 | doc/html/
30 |
--------------------------------------------------------------------------------
/.gitlab-ci.yml:
--------------------------------------------------------------------------------
1 | build_docs:
2 | script:
3 | # run doxygen with the appropriate doxyfile
4 | - doxygen $CI_PROJECT_NAME.doxyfile
5 |
6 | # move generated documentation to qtdocs/milo-code-db/$CI_PROJECT_NAME
7 | - rm -rf /opt/online_docs/www/docs_open_source/milo-code-db/$CI_PROJECT_NAME/
8 | - mv doc/html /opt/online_docs/www/docs_open_source/milo-code-db/$CI_PROJECT_NAME/
9 | tags:
10 | - Docs
11 |
--------------------------------------------------------------------------------
/examples/showcase-example/showcase-example.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 |
3 | QT = core gui qml quick
4 | CONFIG += c++17
5 |
6 | # include MiloCharts
7 | include(../../mcharts.pri)
8 |
9 | SOURCES += main.cpp \
10 | dataprovider.cpp \
11 | ../utils/qmlhelpers.cpp
12 |
13 | RESOURCES += qml.qrc
14 |
15 | INCLUDEPATH = ../
16 |
17 | HEADERS += \
18 | dataprovider.h \
19 | ../utils/helpers.h \
20 | ../utils/qmlhelpers.h
21 |
--------------------------------------------------------------------------------
/examples/live-update-example/live-update-example.pro:
--------------------------------------------------------------------------------
1 | TEMPLATE = app
2 |
3 | QT = core gui qml quick
4 | CONFIG += c++17
5 |
6 | # include MiloCharts
7 | include(../../mcharts.pri)
8 |
9 | SOURCES += main.cpp \
10 | dataprovider.cpp \
11 | ../utils/qmlhelpers.cpp
12 |
13 | RESOURCES += qml.qrc
14 |
15 | INCLUDEPATH = ../
16 |
17 | HEADERS += \
18 | dataprovider.h \
19 | ../utils/helpers.h \
20 | ../utils/qmlhelpers.h
21 |
--------------------------------------------------------------------------------
/examples/utils/tags.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | /*!
4 | * defgroup GUI Gui code
5 | *
6 | * Static strings used in application. When defined in a file like this one,
7 | * we can be sure there will be no typos, because compiler will throw an error
8 | * if you mistype `Tags::coreGroup`, for example. It is also easier to
9 | * refactor, rename tags than searching for all occurences of a string in
10 | * multiple files.
11 | */
12 | namespace Tags {
13 | //const char *foo = "foo";
14 | //const QByteArray bar = "bar";
15 | }
16 |
--------------------------------------------------------------------------------
/examples/utils/qmlhelpers.cpp:
--------------------------------------------------------------------------------
1 | #include "qmlhelpers.h"
2 |
3 | #include
4 | #include
5 |
6 | QmlHelpers::QmlHelpers(QObject *parent) : QObject(parent)
7 | {
8 | }
9 |
10 | QString QmlHelpers::htmlColor(const QColor &color)
11 | {
12 | if (color.alpha() == 255) {
13 | return color.name();
14 | }
15 |
16 | // name() returns color without alpha channel, so if it's other than
17 | // opaque, we need to inject the alpha value into the name.
18 | //const QString name = color.name() + QByteArray::number(color.alpha(), 16);
19 | QString name = color.name();
20 | name.insert(1, QByteArray::number(color.alpha(), 16));
21 | return name;
22 | }
23 |
--------------------------------------------------------------------------------
/doc/branding/milo-doxy-footer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 |
19 |
20 |