Compare commits
4 Commits
kirigami-t
...
kivymd
| Author | SHA1 | Date | |
|---|---|---|---|
| 0d29636de7 | |||
| 08b86c44fb | |||
| 0a5814c505 | |||
| 20e16778f4 |
197
.gitignore
vendored
Normal file
197
.gitignore
vendored
Normal file
@@ -0,0 +1,197 @@
|
|||||||
|
# Created by .ignore support plugin (hsz.mobi)
|
||||||
|
### Python template
|
||||||
|
# Byte-compiled / optimized / DLL files
|
||||||
|
__pycache__/
|
||||||
|
*.py[cod]
|
||||||
|
*$py.class
|
||||||
|
|
||||||
|
# C extensions
|
||||||
|
*.so
|
||||||
|
|
||||||
|
# Distribution / packaging
|
||||||
|
.Python
|
||||||
|
build/
|
||||||
|
develop-eggs/
|
||||||
|
dist/
|
||||||
|
downloads/
|
||||||
|
eggs/
|
||||||
|
.eggs/
|
||||||
|
lib/
|
||||||
|
lib64/
|
||||||
|
parts/
|
||||||
|
sdist/
|
||||||
|
var/
|
||||||
|
wheels/
|
||||||
|
pip-wheel-metadata/
|
||||||
|
share/python-wheels/
|
||||||
|
*.egg-info/
|
||||||
|
.installed.cfg
|
||||||
|
*.egg
|
||||||
|
MANIFEST
|
||||||
|
|
||||||
|
# PyInstaller
|
||||||
|
# Usually these files are written by a python script from a template
|
||||||
|
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
||||||
|
*.manifest
|
||||||
|
*.spec
|
||||||
|
|
||||||
|
# Installer logs
|
||||||
|
pip-log.txt
|
||||||
|
pip-delete-this-directory.txt
|
||||||
|
|
||||||
|
# Unit test / coverage reports
|
||||||
|
htmlcov/
|
||||||
|
.tox/
|
||||||
|
.nox/
|
||||||
|
.coverage
|
||||||
|
.coverage.*
|
||||||
|
.cache
|
||||||
|
nosetests.xml
|
||||||
|
coverage.xml
|
||||||
|
*.cover
|
||||||
|
.hypothesis/
|
||||||
|
.pytest_cache/
|
||||||
|
|
||||||
|
# Translations
|
||||||
|
*.mo
|
||||||
|
*.pot
|
||||||
|
|
||||||
|
# Django stuff:
|
||||||
|
*.log
|
||||||
|
local_settings.py
|
||||||
|
db.sqlite3
|
||||||
|
db.sqlite3-journal
|
||||||
|
|
||||||
|
# Flask stuff:
|
||||||
|
instance/
|
||||||
|
.webassets-cache
|
||||||
|
|
||||||
|
# Scrapy stuff:
|
||||||
|
.scrapy
|
||||||
|
|
||||||
|
# Sphinx documentation
|
||||||
|
docs/_build/
|
||||||
|
|
||||||
|
# PyBuilder
|
||||||
|
target/
|
||||||
|
|
||||||
|
# Jupyter Notebook
|
||||||
|
.ipynb_checkpoints
|
||||||
|
|
||||||
|
# IPython
|
||||||
|
profile_default/
|
||||||
|
ipython_config.py
|
||||||
|
|
||||||
|
# pyenv
|
||||||
|
.python-version
|
||||||
|
|
||||||
|
# pipenv
|
||||||
|
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
||||||
|
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
||||||
|
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
||||||
|
# install all needed dependencies.
|
||||||
|
#Pipfile.lock
|
||||||
|
|
||||||
|
# celery beat schedule file
|
||||||
|
celerybeat-schedule
|
||||||
|
|
||||||
|
# SageMath parsed files
|
||||||
|
*.sage.py
|
||||||
|
|
||||||
|
# Environments
|
||||||
|
.env
|
||||||
|
.venv
|
||||||
|
env/
|
||||||
|
venv/
|
||||||
|
ENV/
|
||||||
|
env.bak/
|
||||||
|
venv.bak/
|
||||||
|
|
||||||
|
# Spyder project settings
|
||||||
|
.spyderproject
|
||||||
|
.spyproject
|
||||||
|
|
||||||
|
# Rope project settings
|
||||||
|
.ropeproject
|
||||||
|
|
||||||
|
# mkdocs documentation
|
||||||
|
/site
|
||||||
|
|
||||||
|
# mypy
|
||||||
|
.mypy_cache/
|
||||||
|
.dmypy.json
|
||||||
|
dmypy.json
|
||||||
|
|
||||||
|
# Pyre type checker
|
||||||
|
.pyre/
|
||||||
|
|
||||||
|
### JetBrains template
|
||||||
|
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
|
||||||
|
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||||
|
|
||||||
|
# User-specific stuff
|
||||||
|
.idea/**/workspace.xml
|
||||||
|
.idea/**/tasks.xml
|
||||||
|
.idea/**/usage.statistics.xml
|
||||||
|
.idea/**/dictionaries
|
||||||
|
.idea/**/shelf
|
||||||
|
|
||||||
|
# Generated files
|
||||||
|
.idea/**/contentModel.xml
|
||||||
|
|
||||||
|
# Sensitive or high-churn files
|
||||||
|
.idea/**/dataSources/
|
||||||
|
.idea/**/dataSources.ids
|
||||||
|
.idea/**/dataSources.local.xml
|
||||||
|
.idea/**/sqlDataSources.xml
|
||||||
|
.idea/**/dynamic.xml
|
||||||
|
.idea/**/uiDesigner.xml
|
||||||
|
.idea/**/dbnavigator.xml
|
||||||
|
|
||||||
|
# Gradle
|
||||||
|
.idea/**/gradle.xml
|
||||||
|
.idea/**/libraries
|
||||||
|
|
||||||
|
# Gradle and Maven with auto-import
|
||||||
|
# When using Gradle or Maven with auto-import, you should exclude module files,
|
||||||
|
# since they will be recreated, and may cause churn. Uncomment if using
|
||||||
|
# auto-import.
|
||||||
|
# .idea/modules.xml
|
||||||
|
# .idea/*.iml
|
||||||
|
# .idea/modules
|
||||||
|
# *.iml
|
||||||
|
# *.ipr
|
||||||
|
|
||||||
|
# CMake
|
||||||
|
cmake-build-*/
|
||||||
|
|
||||||
|
# Mongo Explorer plugin
|
||||||
|
.idea/**/mongoSettings.xml
|
||||||
|
|
||||||
|
# File-based project format
|
||||||
|
*.iws
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
out/
|
||||||
|
|
||||||
|
# mpeltonen/sbt-idea plugin
|
||||||
|
.idea_modules/
|
||||||
|
|
||||||
|
# JIRA plugin
|
||||||
|
atlassian-ide-plugin.xml
|
||||||
|
|
||||||
|
# Cursive Clojure plugin
|
||||||
|
.idea/replstate.xml
|
||||||
|
|
||||||
|
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||||
|
com_crashlytics_export_strings.xml
|
||||||
|
crashlytics.properties
|
||||||
|
crashlytics-build.properties
|
||||||
|
fabric.properties
|
||||||
|
|
||||||
|
# Editor-based Rest Client
|
||||||
|
.idea/httpRequests
|
||||||
|
|
||||||
|
# Android studio 3.1+ serialized cache file
|
||||||
|
.idea/caches/build_file_checksums.ser
|
||||||
|
|
||||||
9
.gitmodules
vendored
9
.gitmodules
vendored
@@ -1,9 +0,0 @@
|
|||||||
[submodule "3rdparty/kirigami"]
|
|
||||||
path = 3rdparty/kirigami
|
|
||||||
url = git://anongit.kde.org/kirigami.git
|
|
||||||
[submodule "3rdparty/breeze-icons"]
|
|
||||||
path = 3rdparty/breeze-icons
|
|
||||||
url = git://anongit.kde.org/breeze-icons.git
|
|
||||||
[submodule "3rdparty/extra-cmake-modules"]
|
|
||||||
path = 3rdparty/extra-cmake-modules
|
|
||||||
url = git://anongit.kde.org/extra-cmake-modules.git
|
|
||||||
3
3rdparty/CMakeLists.txt
vendored
3
3rdparty/CMakeLists.txt
vendored
@@ -1,3 +0,0 @@
|
|||||||
set(BUILD_SHARED_LIBS 0)
|
|
||||||
|
|
||||||
add_subdirectory(kirigami)
|
|
||||||
1
3rdparty/breeze-icons
vendored
1
3rdparty/breeze-icons
vendored
Submodule 3rdparty/breeze-icons deleted from 4a9d61afe2
39
3rdparty/ecm/ECMConfig.cmake
vendored
39
3rdparty/ecm/ECMConfig.cmake
vendored
@@ -1,39 +0,0 @@
|
|||||||
|
|
||||||
####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() #######
|
|
||||||
####### Any changes to this file will be overwritten by the next CMake run ####
|
|
||||||
####### The input file was ECMConfig.cmake.in ########
|
|
||||||
|
|
||||||
get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE)
|
|
||||||
|
|
||||||
macro(set_and_check _var _file)
|
|
||||||
set(${_var} "${_file}")
|
|
||||||
if(NOT EXISTS "${_file}")
|
|
||||||
message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !")
|
|
||||||
endif()
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
macro(check_required_components _NAME)
|
|
||||||
foreach(comp ${${_NAME}_FIND_COMPONENTS})
|
|
||||||
if(NOT ${_NAME}_${comp}_FOUND)
|
|
||||||
if(${_NAME}_FIND_REQUIRED_${comp})
|
|
||||||
set(${_NAME}_FOUND FALSE)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
####################################################################################
|
|
||||||
|
|
||||||
set(ECM_FIND_MODULE_DIR "${PACKAGE_PREFIX_DIR}/extra-cmake-modules/find-modules/")
|
|
||||||
|
|
||||||
set(ECM_MODULE_DIR "${PACKAGE_PREFIX_DIR}/extra-cmake-modules/modules/")
|
|
||||||
|
|
||||||
set(ECM_KDE_MODULE_DIR "${PACKAGE_PREFIX_DIR}/extra-cmake-modules/kde-modules/")
|
|
||||||
|
|
||||||
set(ECM_PREFIX "${PACKAGE_PREFIX_DIR}")
|
|
||||||
|
|
||||||
set(ECM_MODULE_PATH "${ECM_MODULE_DIR}" "${ECM_FIND_MODULE_DIR}" "${ECM_KDE_MODULE_DIR}")
|
|
||||||
|
|
||||||
set(ECM_GLOBAL_FIND_VERSION "${ECM_FIND_VERSION}")
|
|
||||||
|
|
||||||
include("${ECM_MODULE_DIR}/ECMUseFindModules.cmake")
|
|
||||||
31
3rdparty/ecm/ECMConfigVersion.cmake
vendored
31
3rdparty/ecm/ECMConfigVersion.cmake
vendored
@@ -1,31 +0,0 @@
|
|||||||
# This is a basic version file for the Config-mode of find_package().
|
|
||||||
# It is used by write_basic_package_version_file() as input file for configure_file()
|
|
||||||
# to create a version-file which can be installed along a config.cmake file.
|
|
||||||
#
|
|
||||||
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
|
|
||||||
# the requested version string are exactly the same and it sets
|
|
||||||
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
|
|
||||||
# The variable CVF_VERSION must be set before calling configure_file().
|
|
||||||
|
|
||||||
set(PACKAGE_VERSION "5.63.0")
|
|
||||||
|
|
||||||
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
|
||||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
||||||
else()
|
|
||||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
||||||
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
|
||||||
set(PACKAGE_VERSION_EXACT TRUE)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
|
|
||||||
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "" STREQUAL "")
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
|
|
||||||
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "")
|
|
||||||
math(EXPR installedBits " * 8")
|
|
||||||
set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
|
|
||||||
set(PACKAGE_VERSION_UNSUITABLE TRUE)
|
|
||||||
endif()
|
|
||||||
1
3rdparty/extra-cmake-modules
vendored
1
3rdparty/extra-cmake-modules
vendored
Submodule 3rdparty/extra-cmake-modules deleted from f3f4893b5b
1
3rdparty/kirigami
vendored
1
3rdparty/kirigami
vendored
Submodule 3rdparty/kirigami deleted from 307ab1db97
@@ -1,24 +0,0 @@
|
|||||||
cmake_minimum_required(VERSION 3.2)
|
|
||||||
|
|
||||||
if (POLICY CMP0063)
|
|
||||||
cmake_policy(SET CMP0063 NEW)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(ECM_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/ecm)
|
|
||||||
find_package(ECM REQUIRED CONFIG)
|
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/ ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH})
|
|
||||||
set(BREEZEICONS_DIR ${CMAKE_SOURCE_DIR}/3rdparty/breeze-icons/)
|
|
||||||
|
|
||||||
find_package(Qt5 5.12 REQUIRED Core Quick Multimedia Test Widgets QuickControls2)
|
|
||||||
|
|
||||||
include(KDEInstallDirs)
|
|
||||||
include(KDECompilerSettings)
|
|
||||||
include(KDECMakeSettings)
|
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
||||||
|
|
||||||
add_subdirectory(3rdparty)
|
|
||||||
add_subdirectory(src)
|
|
||||||
20
Pipfile
Normal file
20
Pipfile
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
[[source]]
|
||||||
|
name = "pypi"
|
||||||
|
url = "https://pypi.org/simple"
|
||||||
|
verify_ssl = true
|
||||||
|
|
||||||
|
[[source]]
|
||||||
|
name = "kivy_garden"
|
||||||
|
url = "https://kivy-garden.github.io/simple"
|
||||||
|
verify_ssl = true
|
||||||
|
|
||||||
|
[dev-packages]
|
||||||
|
|
||||||
|
[packages]
|
||||||
|
Pillow = "*"
|
||||||
|
kivy = "*"
|
||||||
|
kivymd = "==0.102.0"
|
||||||
|
"kivy_garden.graph" = {version="==0.4.dev0", index="kivy_garden"}
|
||||||
|
|
||||||
|
[requires]
|
||||||
|
python_version = "3"
|
||||||
155
Pipfile.lock
generated
Normal file
155
Pipfile.lock
generated
Normal file
@@ -0,0 +1,155 @@
|
|||||||
|
{
|
||||||
|
"_meta": {
|
||||||
|
"hash": {
|
||||||
|
"sha256": "51bf5ddb9e803b22b92e57b842c37b473e82802072cdcb7628b4c6a07370c0c3"
|
||||||
|
},
|
||||||
|
"pipfile-spec": 6,
|
||||||
|
"requires": {
|
||||||
|
"python_version": "3"
|
||||||
|
},
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"name": "pypi",
|
||||||
|
"url": "https://pypi.org/simple",
|
||||||
|
"verify_ssl": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "kivy_garden",
|
||||||
|
"url": "https://kivy-garden.github.io/simple",
|
||||||
|
"verify_ssl": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"default": {
|
||||||
|
"certifi": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:e4f3620cfea4f83eedc95b24abd9cd56f3c4b146dd0177e83a21b4eb49e21e50",
|
||||||
|
"sha256:fd7c7c74727ddcf00e9acd26bba8da604ffec95bf1c2144e67aff7a8b50e6cef"
|
||||||
|
],
|
||||||
|
"version": "==2019.9.11"
|
||||||
|
},
|
||||||
|
"chardet": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
|
||||||
|
"sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"
|
||||||
|
],
|
||||||
|
"version": "==3.0.4"
|
||||||
|
},
|
||||||
|
"docutils": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:6c4f696463b79f1fb8ba0c594b63840ebd41f059e92b31957c46b74a4599b6d0",
|
||||||
|
"sha256:9e4d7ecfc600058e07ba661411a2b7de2fd0fafa17d1a7f7361cd47b1175c827",
|
||||||
|
"sha256:a2aeea129088da402665e92e0b25b04b073c04b2dce4ab65caaa38b7ce2e1a99"
|
||||||
|
],
|
||||||
|
"version": "==0.15.2"
|
||||||
|
},
|
||||||
|
"idna": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407",
|
||||||
|
"sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c"
|
||||||
|
],
|
||||||
|
"version": "==2.8"
|
||||||
|
},
|
||||||
|
"kivy": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:090d3ded9835a17477cd93fbdaf0a7c42ff2218981cf198ded5ad8795bc74391",
|
||||||
|
"sha256:11e85eaf6efbfa2362a3334ffdad179a1b0ca8d255cca79eaa6a2765560d4982",
|
||||||
|
"sha256:1a1ff32f8a95f1e175198cbab81fcd2596783b180d4eafe63e87d171aa7fdb5e",
|
||||||
|
"sha256:1d28b198a64c30db8d94a0488e85f3037af60d514ab0d7ad5ab45add3ab77090",
|
||||||
|
"sha256:4a5480cbf837d3780c77a4f61b32b56d22ae9f03845e7a89dd3eaef1ae5fd037",
|
||||||
|
"sha256:4d0e596f74271e901b551f77661dde238df4765484fce9f5d1c72e8022984e84",
|
||||||
|
"sha256:5c3d0f2749522d62e9cce09cd54b2d823bf1b6b644ff1f627be49de6f3e3cba0",
|
||||||
|
"sha256:815a5c0b3b72fcd81ca7b2aa0744087163ed03e4cf9ab4e7c9733cea99fc1571",
|
||||||
|
"sha256:8819a27a09871af451760cb69486ced52e830c8a0a37480f22ef5e692f12c05b",
|
||||||
|
"sha256:a687602d90c4629dd036f577ca39acb76ba581370f9d915f3cab99be818ba8ad",
|
||||||
|
"sha256:b7ef6aad43a86d8df3fb865db864e354f2155a748019f8517f69f65c1a29cb64",
|
||||||
|
"sha256:b85ccf165050cbf2ee8447671eebbc222b369b40f0e0038dd9547d49a5e37373",
|
||||||
|
"sha256:c36652caa7f6c327dee834cfc699d5962d346b7a53e54bd81abc17c314226d89",
|
||||||
|
"sha256:ece170514db3f49844a41e4c910ad9ce9bc46da6f47a49158e11266bdcc6e479",
|
||||||
|
"sha256:f3bea6e4a21991827885d04127fc6d09a0e974ecfa12da7bf5faae93562ea102",
|
||||||
|
"sha256:f835462dd9aa491272552ef079b948a088598e2e95d68bb1d885d2c3f3d4e2c3"
|
||||||
|
],
|
||||||
|
"index": "pypi",
|
||||||
|
"version": "==1.11.1"
|
||||||
|
},
|
||||||
|
"kivy-garden": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:c256f42788421273a08fbb0a228f0fb0e80dd86b629fb8c0920507f645be6c72"
|
||||||
|
],
|
||||||
|
"version": "==0.1.4"
|
||||||
|
},
|
||||||
|
"kivy-garden.graph": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:9d5938b9de98c4af610b72f9d9d2d637c4f0098fbf53278b267870f425e1bd37"
|
||||||
|
],
|
||||||
|
"index": "kivy_garden",
|
||||||
|
"version": "==0.4.dev0"
|
||||||
|
},
|
||||||
|
"kivymd": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:0b9fa3f5b67c08f607981e49b41f367f35e2c2bca0beffdd0e809246a5d110b7",
|
||||||
|
"sha256:a32c430769736eba4d8fa75526828854bd09d71ddf3f539fb16bd854b1c52cfb"
|
||||||
|
],
|
||||||
|
"index": "pypi",
|
||||||
|
"version": "==0.102.0"
|
||||||
|
},
|
||||||
|
"pillow": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:047d9473cf68af50ac85f8ee5d5f21a60f849bc17d348da7fc85711287a75031",
|
||||||
|
"sha256:0f66dc6c8a3cc319561a633b6aa82c44107f12594643efa37210d8c924fc1c71",
|
||||||
|
"sha256:12c9169c4e8fe0a7329e8658c7e488001f6b4c8e88740e76292c2b857af2e94c",
|
||||||
|
"sha256:248cffc168896982f125f5c13e9317c059f74fffdb4152893339f3be62a01340",
|
||||||
|
"sha256:27faf0552bf8c260a5cee21a76e031acaea68babb64daf7e8f2e2540745082aa",
|
||||||
|
"sha256:285edafad9bc60d96978ed24d77cdc0b91dace88e5da8c548ba5937c425bca8b",
|
||||||
|
"sha256:384b12c9aa8ef95558abdcb50aada56d74bc7cc131dd62d28c2d0e4d3aadd573",
|
||||||
|
"sha256:38950b3a707f6cef09cd3cbb142474357ad1a985ceb44d921bdf7b4647b3e13e",
|
||||||
|
"sha256:4aad1b88933fd6dc2846552b89ad0c74ddbba2f0884e2c162aa368374bf5abab",
|
||||||
|
"sha256:4ac6148008c169603070c092e81f88738f1a0c511e07bd2bb0f9ef542d375da9",
|
||||||
|
"sha256:4deb1d2a45861ae6f0b12ea0a786a03d19d29edcc7e05775b85ec2877cb54c5e",
|
||||||
|
"sha256:59aa2c124df72cc75ed72c8d6005c442d4685691a30c55321e00ed915ad1a291",
|
||||||
|
"sha256:5a47d2123a9ec86660fe0e8d0ebf0aa6bc6a17edc63f338b73ea20ba11713f12",
|
||||||
|
"sha256:5cc901c2ab9409b4b7ac7b5bcc3e86ac14548627062463da0af3b6b7c555a871",
|
||||||
|
"sha256:6c1db03e8dff7b9f955a0fb9907eb9ca5da75b5ce056c0c93d33100a35050281",
|
||||||
|
"sha256:7ce80c0a65a6ea90ef9c1f63c8593fcd2929448613fc8da0adf3e6bfad669d08",
|
||||||
|
"sha256:809c19241c14433c5d6135e1b6c72da4e3b56d5c865ad5736ab99af8896b8f41",
|
||||||
|
"sha256:83792cb4e0b5af480588601467c0764242b9a483caea71ef12d22a0d0d6bdce2",
|
||||||
|
"sha256:846fa202bd7ee0f6215c897a1d33238ef071b50766339186687bd9b7a6d26ac5",
|
||||||
|
"sha256:9f5529fc02009f96ba95bea48870173426879dc19eec49ca8e08cd63ecd82ddb",
|
||||||
|
"sha256:a423c2ea001c6265ed28700df056f75e26215fd28c001e93ef4380b0f05f9547",
|
||||||
|
"sha256:ac4428094b42907aba5879c7c000d01c8278d451a3b7cccd2103e21f6397ea75",
|
||||||
|
"sha256:b1ae48d87f10d1384e5beecd169c77502fcc04a2c00a4c02b85f0a94b419e5f9",
|
||||||
|
"sha256:bf4e972a88f8841d8fdc6db1a75e0f8d763e66e3754b03006cbc3854d89f1cb1",
|
||||||
|
"sha256:c6414f6aad598364aaf81068cabb077894eb88fed99c6a65e6e8217bab62ae7a",
|
||||||
|
"sha256:c710fcb7ee32f67baf25aa9ffede4795fd5d93b163ce95fdc724383e38c9df96",
|
||||||
|
"sha256:c7be4b8a09852291c3c48d3c25d1b876d2494a0a674980089ac9d5e0d78bd132",
|
||||||
|
"sha256:c9e5ffb910b14f090ac9c38599063e354887a5f6d7e6d26795e916b4514f2c1a",
|
||||||
|
"sha256:e0697b826da6c2472bb6488db4c0a7fa8af0d52fa08833ceb3681358914b14e5",
|
||||||
|
"sha256:e9a3edd5f714229d41057d56ac0f39ad9bdba6767e8c888c951869f0bdd129b0"
|
||||||
|
],
|
||||||
|
"index": "pypi",
|
||||||
|
"version": "==6.2.1"
|
||||||
|
},
|
||||||
|
"pygments": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:71e430bc85c88a430f000ac1d9b331d2407f681d6f6aec95e8bcfbc3df5b0127",
|
||||||
|
"sha256:881c4c157e45f30af185c1ffe8d549d48ac9127433f2c380c24b84572ad66297"
|
||||||
|
],
|
||||||
|
"version": "==2.4.2"
|
||||||
|
},
|
||||||
|
"requests": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4",
|
||||||
|
"sha256:9cf5292fcd0f598c671cfc1e0d7d1a7f13bb8085e9a590f48c010551dc6c4b31"
|
||||||
|
],
|
||||||
|
"version": "==2.22.0"
|
||||||
|
},
|
||||||
|
"urllib3": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:3de946ffbed6e6746608990594d08faac602528ac7015ac28d33cee6a45b7398",
|
||||||
|
"sha256:9a107b99a5393caf59c7aa3c1249c16e6879447533d0887f4336dde834c7be86"
|
||||||
|
],
|
||||||
|
"version": "==1.25.6"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"develop": {}
|
||||||
|
}
|
||||||
11
main.py
Normal file
11
main.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import kivy
|
||||||
|
kivy.require('1.10.1')
|
||||||
|
|
||||||
|
from kivy.config import Config
|
||||||
|
Config.set('kivy', 'log_enable', 0)
|
||||||
|
Config.set('modules','inspector','')
|
||||||
|
|
||||||
|
if __name__ in ('__main__', '__android__'):
|
||||||
|
from qiflora import QiFlora
|
||||||
|
app = QiFlora.QiFlora()
|
||||||
|
app.run()
|
||||||
19
qiflora/QiFlora.py
Normal file
19
qiflora/QiFlora.py
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
from math import sin
|
||||||
|
|
||||||
|
from kivy.app import App
|
||||||
|
from kivy.clock import Clock
|
||||||
|
from kivymd.theming import ThemeManager
|
||||||
|
from kivy_garden.graph import Graph, MeshLinePlot
|
||||||
|
|
||||||
|
|
||||||
|
class QiFlora(App):
|
||||||
|
theme_cls = ThemeManager()
|
||||||
|
theme_cls.primary_palette = 'Blue'
|
||||||
|
theme_cls.accent_palette = 'DeepOrange'
|
||||||
|
theme_cls.theme_style = 'Light'
|
||||||
|
|
||||||
|
def refresh_data(self, *args):
|
||||||
|
plot = MeshLinePlot(color=[1,0,0,1])
|
||||||
|
plot.points = [(x, sin(x / 10.)) for x in range(0, 101)]
|
||||||
|
self.root.ids.temp_graph.add_plot(plot)
|
||||||
|
self.root.ids.moist_graph.add_plot(plot)
|
||||||
0
qiflora/__init__.py
Normal file
0
qiflora/__init__.py
Normal file
79
qiflora/qiflora.kv
Normal file
79
qiflora/qiflora.kv
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
BoxLayout:
|
||||||
|
orientation: 'vertical'
|
||||||
|
MDToolbar:
|
||||||
|
id: toolbar
|
||||||
|
title: 'QiFlora'
|
||||||
|
md_bg_color: app.theme_cls.primary_color
|
||||||
|
background_palette: 'Primary'
|
||||||
|
background_hue: '500'
|
||||||
|
ScrollView:
|
||||||
|
do_scroll_x: False
|
||||||
|
do_scroll_y: True
|
||||||
|
GridLayout:
|
||||||
|
id: graphs
|
||||||
|
padding: [10,10,10,15]
|
||||||
|
spacing: [5,10]
|
||||||
|
rows: 5
|
||||||
|
cols: 1
|
||||||
|
size_hint_y: None
|
||||||
|
height: self.minimum_height
|
||||||
|
AnchorLayout:
|
||||||
|
anchor_x: "center"
|
||||||
|
size_hint_y: None
|
||||||
|
MDRaisedButton:
|
||||||
|
text: "refresh"
|
||||||
|
on_press: app.refresh_data()
|
||||||
|
MDCard:
|
||||||
|
orientation: "vertical"
|
||||||
|
size_hint_y: None
|
||||||
|
MDLabel:
|
||||||
|
halign: "center"
|
||||||
|
text: "Temperature"
|
||||||
|
Graph:
|
||||||
|
id: temp_graph
|
||||||
|
padding: 5
|
||||||
|
xmin: -0
|
||||||
|
ymin: -1
|
||||||
|
xmax: 100
|
||||||
|
ymax: 1
|
||||||
|
x_ticks_major: 25
|
||||||
|
y_ticks_major: 1
|
||||||
|
x_grid_label: True
|
||||||
|
y_grid_label: True
|
||||||
|
x_grid: True
|
||||||
|
y_grid: True
|
||||||
|
xlabel: "temp (C)"
|
||||||
|
ylabel: "time"
|
||||||
|
MDCard:
|
||||||
|
orientation: "vertical"
|
||||||
|
size_hint_y: None
|
||||||
|
MDLabel:
|
||||||
|
halign: "center"
|
||||||
|
text: "Moisture"
|
||||||
|
Graph:
|
||||||
|
id: moist_graph
|
||||||
|
padding: 5
|
||||||
|
xmin: -0
|
||||||
|
ymin: -1
|
||||||
|
xmax: 100
|
||||||
|
ymax: 1
|
||||||
|
x_ticks_major: 25
|
||||||
|
y_ticks_major: 1
|
||||||
|
x_grid_label: True
|
||||||
|
y_grid_label: True
|
||||||
|
x_grid: True
|
||||||
|
y_grid: True
|
||||||
|
xlabel: "temp (C)"
|
||||||
|
ylabel: "time"
|
||||||
|
MDCard:
|
||||||
|
orientation: "vertical"
|
||||||
|
size_hint_y: None
|
||||||
|
MDLabel:
|
||||||
|
halign: "center"
|
||||||
|
text: "Conductivity"
|
||||||
|
MDCard:
|
||||||
|
orientation: "vertical"
|
||||||
|
size_hint_y: None
|
||||||
|
MDLabel:
|
||||||
|
halign: "center"
|
||||||
|
text: "Brightness"
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
include_directories(${CMAKE_SOURCE_DIR}/3rdparty/kirigami/src)
|
|
||||||
include(${CMAKE_SOURCE_DIR}/3rdparty/kirigami/KF5Kirigami2Macros.cmake)
|
|
||||||
|
|
||||||
qt5_add_resources(qiflora_SRCS kirigami-icons.qrc resources.qrc)
|
|
||||||
|
|
||||||
if (CMAKE_SYSTEM_NAME STREQUAL "Android")
|
|
||||||
set(qiflora_EXTRA_LIBS Qt5::AndroidExtras
|
|
||||||
#FIXME: we shouldn't have to link to it but otherwise the lib won't be packaged on Android
|
|
||||||
Qt5::QuickControls2)
|
|
||||||
else ()
|
|
||||||
#qstyle-based qqc2 style needs a QApplication
|
|
||||||
set(qiflora_EXTRA_LIBS Qt5::Widgets)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_executable(qiflora main.cpp ${qiflora_SRCS})
|
|
||||||
target_link_libraries(qiflora kirigamiplugin Qt5::Core Qt5::Qml Qt5::Quick Qt5::QuickControls2 ${qiflora_EXTRA_LIBS})
|
|
||||||
|
|
||||||
kirigami_package_breeze_icons(ICONS application-menu document-decrypt folder-sync go-next go-previous go-up handle-left handle-right view-list-icons applications-graphics media-record-symbolic)
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
<RCC>
|
|
||||||
<qresource prefix="/org/kde/kirigami/">
|
|
||||||
<file alias="icons/application-menu.svg">../3rdparty/breeze-icons/icons/actions/32/application-menu.svg</file>
|
|
||||||
<file alias="icons/document-decrypt.svg">../3rdparty/breeze-icons/icons/actions/32/document-decrypt.svg</file>
|
|
||||||
<file alias="icons/folder-sync.svg">../3rdparty/breeze-icons/icons/actions/32/folder-sync.svg</file>
|
|
||||||
<file alias="icons/go-next.svg">../3rdparty/breeze-icons/icons/actions/22/go-next.svg</file>
|
|
||||||
<file alias="icons/go-previous.svg">../3rdparty/breeze-icons/icons/actions/22/go-previous.svg</file>
|
|
||||||
<file alias="icons/go-up.svg">../3rdparty/breeze-icons/icons/actions/22/go-up.svg</file>
|
|
||||||
<file alias="icons/handle-left.svg">../3rdparty/breeze-icons/icons/actions/22/handle-left.svg</file>
|
|
||||||
<file alias="icons/handle-right.svg">../3rdparty/breeze-icons/icons/actions/22/handle-right.svg</file>
|
|
||||||
<file alias="icons/view-list-icons.svg">../3rdparty/breeze-icons/icons/actions/32/view-list-icons.svg</file>
|
|
||||||
<file alias="icons/applications-graphics.svg">../3rdparty/breeze-icons/icons/categories/32/applications-graphics.svg</file>
|
|
||||||
<file alias="icons/media-record-symbolic.svg">../3rdparty/breeze-icons/icons/actions/symbolic/media-record-symbolic.svg</file>
|
|
||||||
</qresource>
|
|
||||||
</RCC>
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#include <QGuiApplication>
|
|
||||||
#include <QQmlApplicationEngine>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
QGuiApplication app(argc, argv);
|
|
||||||
QQmlApplicationEngine engine(QUrl(QStringLiteral("qrc:/qml/main.qml")));
|
|
||||||
return app.exec();
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
import QtQuick 2.0
|
|
||||||
import QtQuick.Window 2.0
|
|
||||||
|
|
||||||
Window
|
|
||||||
{
|
|
||||||
visible: true
|
|
||||||
width: 300
|
|
||||||
height: 240
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
anchors.fill: parent
|
|
||||||
color: "steelblue"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<!DOCTYPE RCC><RCC version="1.0">
|
|
||||||
<qresource>
|
|
||||||
<file>qml/main.qml</file>
|
|
||||||
</qresource>
|
|
||||||
</RCC>
|
|
||||||
Reference in New Issue
Block a user