[
  {
    "path": ".clang-format",
    "content": "# Copyright (C) 2016 Olivier Goffart <ogoffart@woboq.com>\n#\n# You may use this file under the terms of the 3-clause BSD license.\n# See the file LICENSE from this package for details.\n\n# This is the clang-format configuration style to be used by Qt,\n# based on the rules from https://wiki.qt.io/Qt_Coding_Style and\n# https://wiki.qt.io/Coding_Conventions\n\n---\n# Webkit style was loosely based on the Qt style\nBasedOnStyle: WebKit\n\nStandard: Cpp11\n\n# Leave the line breaks up to the user.\n# Note that this may be changed at some point in the future.\nColumnLimit: 0\n# How much weight do extra characters after the line length limit have.\n# PenaltyExcessCharacter: 4\n\n# Disable reflow of qdoc comments: indentation rules are different.\n# Translation comments are also excluded.\nCommentPragmas: \"^!|^:\"\n\n# We want a space between the type and the star for pointer types.\nPointerBindsToType: false\n\n# We use template< without space.\nSpaceAfterTemplateKeyword: false\n\n# We want to break before the operators, but not before a '='.\nBreakBeforeBinaryOperators: All\n\n# Braces are usually attached, but not after functions or class declarations.\nBreakBeforeBraces: Custom\nBraceWrapping:\n    AfterClass: true\n    AfterControlStatement: true\n    AfterEnum: true\n    AfterFunction: true\n    AfterNamespace: true\n    AfterObjCDeclaration: true\n    AfterStruct: true\n    AfterUnion: true\n    BeforeCatch: true\n    BeforeElse: true\n    IndentBraces: false\n\nBreakBeforeTernaryOperators: true\n\nBreakConstructorInitializers: BeforeComma\n\n# Indent initializers by 3 spaces\nConstructorInitializerIndentWidth: 3\n\n# No indentation for namespaces.\nNamespaceIndentation: None\n\n# Horizontally align arguments after an open bracket.\n# The coding style does not specify the following, but this is what gives\n# results closest to the existing code.\nAlignAfterOpenBracket: true\nAlwaysBreakTemplateDeclarations: true\n\n# Ideally we should also allow less short function in a single line, but\n# clang-format does not handle that.\nAllowShortFunctionsOnASingleLine: Inline\n\n# The coding style specifies some include order categories, but also tells to\n# separate categories with an empty line. It does not specify the order within\n# the categories. Since the SortInclude feature of clang-format does not\n# re-order includes separated by empty lines, the feature is not used.\nSortIncludes: false\n\n# macros for which the opening brace stays attached.\nForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH, forever, Q_FOREVER, QBENCHMARK, QBENCHMARK_ONCE ]\n\nIndentCaseLabels: true\n\nIndentPPDirectives: AfterHash\n\nAlignAfterOpenBracket: Align\n\nAccessModifierOffset: -3\n\nIndentWidth: 3\n\n#StatementMacros ['Q_OBJECT', 'Q_UNUSED']\n\nColumnLimit: 120\n\n\n\n"
  },
  {
    "path": ".gitattributes",
    "content": "etc/* linguist-vendored\ndoc/* linguist-vendored\nlib/* linguist-vendored\n"
  },
  {
    "path": ".github/workflows/Build.yml",
    "content": "#--------------------------------------------------------------------------------\n# Workflow configuration\n#--------------------------------------------------------------------------------\n\nname: Build\non:\n  push:               # Run on push\n    paths-ignore:     # File patterns to ignore\n    - '**.md'         # Ignore changes to *.md files\n\n  pull_request:       # Run on pull-request\n    paths-ignore:     # File-patterns to ignore\n    - '**.md'         # Ignore changes to *.md files\n\n  workflow_dispatch:\n\n#--------------------------------------------------------------------------------\n# Define application name & version\n#--------------------------------------------------------------------------------\n\nenv:\n  VERSION: \"21.04\"\n  EXECUTABLE: \"QDriverStation\"\n  QMAKE_PROJECT: \"QDriverStation.pro\"\n  QML_DIR_NIX: \"qml\"\n  QML_DIR_WIN: \"qml\"\n\n#--------------------------------------------------------------------------------\n# Workflow jobs (GNU/Linux, macOS & Windows)\n#--------------------------------------------------------------------------------\n\njobs:\n\n\n  # GNU/Linux build (we run on Ubuntu 16.04 to generate AppImage)\n  build-linux:\n    runs-on: ubuntu-16.04\n    name: '🐧 Ubuntu 16.04'\n    steps:\n\n    - name: '🧰 Checkout'\n      uses: actions/checkout@v2\n      with:\n        submodules: recursive\n\n    - name: '⚙️ Cache Qt'\n      id: cache-qt\n      uses: actions/cache@v1\n      with:\n        path: ../Qt\n        key: ${{runner.os}}-QtCache\n\n    - name: '⚙️ Install Qt'\n      uses: jurplel/install-qt-action@v2\n      with:\n        modules: qtcharts\n        cached: ${{steps.cache-qt.outputs.cache-hit}}\n\n    # Install additional dependencies, stolen from:\n    # https://github.com/mapeditor/tiled/blob/master/.github/workflows/packages.yml\n    - name: '⚙️ Install dependencies'\n      run: |\n        sudo apt-get update\n        sudo apt-get install libgl1-mesa-dev libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libzstd-dev libsdl2-dev\n\n    - name: '🚧 Compile application'\n      run: |\n          qmake ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr\n          make -j8\n\n    - name: '📦 Create AppImage'\n      run: |\n        make INSTALL_ROOT=appdir install\n\n        wget -c -nv \"https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage\" -O linuxdeployqt\n        chmod a+x linuxdeployqt\n        ./linuxdeployqt appdir/usr/share/applications/*.desktop -appimage -bundle-non-qt-libs -extra-plugins=imageformats/libqsvg.so -qmldir=\"${{env.QML_DIR_NIX}}\"\n\n        # Rename AppImage to match \"%AppName%-%Version%-Linux.AppImage\" format\n        mv *.AppImage ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage\n\n    - name: '📤 Upload artifact: AppImage'\n      uses: actions/upload-artifact@v2\n      with:\n        name: ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage\n        path: ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage\n\n\n  # macOS build\n  build-mac:\n    runs-on: macos-latest\n    name: '🍎 macOS'\n    steps:\n\n    - name: '🧰 Checkout'\n      uses: actions/checkout@v2\n      with:\n        submodules: recursive\n\n    - name: '⚙️ Cache Qt'\n      id: cache-qt\n      uses: actions/cache@v1\n      with:\n        path: ../Qt\n        key: ${{runner.os}}-QtCache\n\n    - name: '⚙️ Install Qt'\n      uses: jurplel/install-qt-action@v2\n      with:\n        modules: qtcharts\n        cached: ${{steps.cache-qt.outputs.cache-hit}}\n\n    - name: '🚧 Compile application'\n      run: |\n           qmake ${{env.QMAKE_PROJECT}} CONFIG+=release\n           make -j8\n\n    - name: '📦 Package application (macdeployqt and zipfile)'\n      run: |\n        macdeployqt ${{env.EXECUTABLE}}.app -qmldir=\"${{env.QML_DIR_NIX}}\"\n\n        # ZIP application \"%AppName%-%Version%-macOS.zip\"\n        # We use ditto instead of zip to use the same commands as Finder\n        ditto -c -k --sequesterRsrc --keepParent \"${{env.EXECUTABLE}}.app\" ${{env.EXECUTABLE}}-${{env.VERSION}}-macOS.zip\n\n    - name: '📤 Upload artifact: ZIP'\n      uses: actions/upload-artifact@v2\n      with:\n        name: ${{env.EXECUTABLE}}-${{env.VERSION}}-macOS.zip\n        path: ${{env.EXECUTABLE}}-${{env.VERSION}}-macOS.zip\n\n\n  # Windows build\n  build-windows:\n    runs-on: windows-latest\n    name: '🧊 Windows'\n    steps:\n\n    - name: '🧰 Checkout'\n      uses: actions/checkout@v2\n      with:\n        submodules: recursive\n\n    - name: '⚙️ Configure MSVC'\n      uses: ilammy/msvc-dev-cmd@v1\n      with:\n        arch: x64\n        spectre: true\n\n    - name: '⚙️ Cache Qt'\n      id: cache-qt\n      uses: actions/cache@v1\n      with:\n        path: ../Qt\n        key: ${{runner.os}}-QtCache\n\n    - name: '⚙️ Install Qt'\n      uses: jurplel/install-qt-action@v2\n      with:\n        modules: qtcharts\n        cached: ${{steps.cache-qt.outputs.cache-hit}}\n\n    - name: '⚙️ Install NSIS'\n      run: |\n        Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')\n        scoop bucket add extras\n        scoop install nsis\n\n    - name: '🚧 Compile application'\n      run: |\n        qmake ${{env.QMAKE_PROJECT}} CONFIG+=release\n        nmake\n\n    # Copy Qt DLLs, compiler runtime & application icon\n    - name: '📦 Package application (windeployqt)'\n      run: |\n        mkdir bin\n        move release/${{env.EXECUTABLE}}.exe bin\n        windeployqt bin/${{env.EXECUTABLE}}.exe -qmldir=\"${{env.QML_DIR_WIN}}\" --compiler-runtime\n        mkdir \"${{env.EXECUTABLE}}\"\n        move bin \"${{env.EXECUTABLE}}\"\n        xcopy etc\\deploy\\windows\\resources\\icon.ico \"${{env.EXECUTABLE}}\"\n        xcopy etc\\deploy\\windows\\depends\\*.dll \"${{env.EXECUTABLE}}\\bin\"\n\n    - name: '📦 Make NSIS installer'\n      run: |\n        move \"${{env.EXECUTABLE}}\" etc\\deploy\\windows\\nsis\\\n        cd etc\\deploy\\windows\\nsis\n        makensis /X\"SetCompressor /FINAL lzma\" setup.nsi\n        ren *.exe ${{env.EXECUTABLE}}-${{env.VERSION}}-Windows.exe\n\n    - name: '📤 Upload artifact: NSIS installer'\n      uses: actions/upload-artifact@v2\n      with:\n        name: ${{env.EXECUTABLE}}-${{env.VERSION}}-Windows.exe\n        path: etc/deploy/windows/nsis/${{env.EXECUTABLE}}-${{env.VERSION}}-Windows.exe\n"
  },
  {
    "path": ".gitignore",
    "content": "\n# General\n.DS_Store\n.AppleDouble\n.LSOverride\n\n# Icon must end with two \\r\nIcon\n\n# Thumbnails\n._*\n\n# Files that might appear in the root of a volume\n.DocumentRevisions-V100\n.fseventsd\n.Spotlight-V100\n.TemporaryItems\n.Trashes\n.VolumeIcon.icns\n.com.apple.timemachine.donotpresent\n\n# Directories potentially created on remote AFP share\n.AppleDB\n.AppleDesktop\nNetwork Trash Folder\nTemporary Items\n.apdisk\n\n# Qt project file\n*.pro.user\n"
  },
  {
    "path": ".gitmodules",
    "content": "[submodule \"lib/QJoysticks\"]\n\tpath = lib/QJoysticks\n\turl = https://github.com/alex-spataru/QJoysticks\n[submodule \"lib/LibDS\"]\n\tpath = lib/LibDS\n\turl = https://github.com/FRC-Utilities/LibDS\n"
  },
  {
    "path": "CHANGES.md",
    "content": "# Changes\n\n### QDriverStation 21.04\n\n- Use GitHub actions for building the project\r\n\n### QDriverStation 20.10\n\n- Add QJoysticks & LibDS as submodules\n- Change code-formating scripts to `clang-format`\n- Add support for 2020 protocol (WIP)\n- Minor fixes for Qt 5.15\n\r\n### QDriverStation 17.05\r\n\r\n- Minor UI changes\r\n- Remove QSimpleUpdater module\r\n- Fix CPU usage code on GNU/Linux\r\n- Improve memory usage of LibDS\r\n\r\n### QDriverStation 17.01.1\r\n\r\n- Fix issue in which joystick input was not detected\r\n\r\n### QDriverStation 17.01\r\n\r\n- Transition to LibDS-C, which does not depend on Qt and is more efficient\r\n- Re-implement logging system\r\n- Avoid crashes when inputting invalid network addresses\r\n- Change settings dialog buttons to be more user friendly\r\n- Minor QML UI improvements/changes\r\n\r\n### QDriverStation 16.08\r\n\r\n- Fix issue where we the QDriverStation could not detect robot code with 2009/2014 robots\r\n\r\n### QDriverStation 16.07\r\n\r\n- Add some CLI options\r\n- Add integrated mDNS responder\r\n- Save logs as JSON files\r\n- Allow user to set custom radio & FMS IPs\r\n- Improve handling of FMS packets\r\n- Minor improvements in code structure\r\n- Add code to interpret 2014 FMS packets\r\n- Implement logs window (netconsole + app logs)\r\n- Fix communication issues\r\n\r\n### QDriverStation 16.06.2\r\n\r\n- Minor UI improvements\r\n- Add automatic DNS/host lookup\r\n- Improve code for obtaining CPU usage & Battery status\r\n- Fix docked windows for Linux\r\n- Save blacklisted joysticks through sessions\r\n- Put blacklisted joysticks at the bottom of the joystick list\r\n\r\n### QDriverStation 16.06.1\r\n\r\n- Fix an issue that did not allow the DS to connect to the robot in some networks\r\n\r\n### QDriverStation 16.06\r\n\r\n- Support for 2014 protocol\r\n- Implement parallel sockets to detect the robot a LOT faster\r\n- Better robot voltage reading code\r\n- Dynamic control of the watchdog\r\n- Fix crash issue on Mac OS X\r\n- Implement a logger\r\n- Fix some minor issues in the UI\r\n- Add base framework for implementing FMS communications\r\n- Redesign UI in QML\r\n- New application icon\r\n- FMS support for 2015 protocol (UNTESTED)\r\n- Allow enabling/disabling joysticks\r\n- Add voltage charts\r\n- Rewrite of LibDS to be more extensible and efficient (if a protocol requires constant comms. with radio or runs on TCP, we've got it!)\r\n\r\n### QDriverStation 0.14:\r\n\r\n- Support for 2016 protocol\r\n- POV/Hat support for joysticks\r\n- Re-write of most of the code base\r\n- Map E-STOP to SHIFT and SPACE keys\r\n- 2015 protocol gets a lot of improvements\r\n- UI is written from ground-up in a more modular way\r\n- Implement global event filter to avoid issues with virtual joystick or E-STOP trigger\r\n- Implement built-in mDNS support for better cross-platform operation\r\n- Do not use XInput for joystick reading, it only makes everything worse\r\n- Improvements in socket programming for the LibDS\r\n- Scalable UI to any pixel density\r\n- Implement UI sound effects\r\n- More options in the preferences window\r\n\r\n### QDriverStation 0.13:\r\n\r\n- Map E-STOP to SHIFT key\r\n- Implement auto-updater\r\n- Remove Gamepad API from joystick reader\r\n\r\n### QDriverStation 0.12:\r\n\r\n- Initial release\r\n"
  },
  {
    "path": "CONTRIBUTORS.md",
    "content": "# Contributors\r\n\r\nWhile [Alex](https://github.com/alex-spataru) does most of the development of this project, the QDriverStation has received contributions and help from many people. If you have contributed to this project and you are not in this list, please [e-mail me](mailto:alex_spataru@outlook.com) so that I can add you to this list (or make a pull request).\r\n\r\n- [Jessica Creighton](https://github.com/jcreigh), for providing [excelent information](https://github.com/jcreigh/FRCDriverStation/wiki) regarding the 2015 protocol and thus solving numerous issues in the 2015 protocol implementation.\r\n- [Thomas Clark](https://github.com/ThomasJClark), for providing the pseudo-code needed to detect user code on the roboRIO and providing information about the \"extra\" data structures in the roboRIO->DS packets.\r\n- [Ray Stubbs](https://github.com/raystubbs), for providing the much-needed help regarding joystick encoding for the 2015 protocol. If you are good with Java (which I am not), you can contribute to his [DS library](https://github.com/raystubbs/RioComAPI).\r\n- [Ben Wolsieffer](https://github.com/lopsided98), for creating an [ArchLinux package](https://aur.archlinux.org/packages/qdriverstation-git/) for the QDriverStation, providing essential information and support for implementing the 2014 protocol and improving the dashboard initialization code.\r\n- [Boomaa23](https://github.com/boomaa23), for implementing the 2020 FRC Comm. protocol.\r\n- [Tyler Veness](https://github.com/calcmogul), for improving the code used to get CPU usage under GNU/Linux.\r\n- [Simon Andrews](https://github.com/simon-andrews), for improving the Linux launcher of the QDriverStation.\r\n- [Thomas Ross](https://github.com/thomassross), for fixing the Travis CI build script.\r\n- [Dakota Keeler](https://github.com/BearzRobotics), for building  [Debian Packages](https://drive.google.com/file/d/0BwmIj7Fz03lXZ1JjYnhLVVdRR0E/view?usp=sharing) of the application, providing feedback and making a video tutorial to compile and run the QDriverStation on Linux systems.\r\n- [Jelomite](https://github.com/jelomite), for creating the application icon.\r\n- [Peter Mitrano](https://github.com/PeterMitrano), for contributing to the .gitignore configuration and thus avoiding possible compilation issues.\r\n- [SoftwareBug2.0](http://www.chiefdelphi.com/forums/member.php?u=7765), for helping fellow GNU/Linux users using Ubuntu to compile the application.\r\n"
  },
  {
    "path": "LICENSE.md",
    "content": "The MIT License (MIT)\r\n\r\nCopyright (c) 2015-2017 Alex Spataru\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the \"Software\"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n"
  },
  {
    "path": "QDriverStation.pro",
    "content": "#\n# Copyright (c) 2015-2021 Alex Spataru <alex_spataru@outlook.com>\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n# copies of the Software, and to permit persons to whom the Software is\n# furnished to do so, subject to the following conditions:\n#\n# The above copyright notice and this permission notice shall be included in\n# all copies or substantial portions of the Software.\n#\n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n# THE SOFTWARE.\n\n#-----------------------------------------------------------------------------------------\n# Make options\n#-----------------------------------------------------------------------------------------\n\nUI_DIR = uic\nMOC_DIR = moc\nRCC_DIR = qrc\nOBJECTS_DIR = obj\n\nCONFIG += c++11\n\nisEmpty(PREFIX) {\n    PREFIX = /usr\n}\n\n#-------------------------------------------------------------------------------\n# Deploy configuration\n#-------------------------------------------------------------------------------\n\nTEMPLATE = app\nTARGET = QDriverStation\nCONFIG += resources_big\nCONFIG += qtquickcompiler\n\nQTPLUGIN += qsvg\n\nQT += xml\nQT += sql\nQT += svg\nQT += core\nQT += quick\nQT += widgets\n\n#-------------------------------------------------------------------------------\n# Compiler options\n#-------------------------------------------------------------------------------\n\n*g++*: {\n    QMAKE_CXXFLAGS_RELEASE -= -O\n    QMAKE_CXXFLAGS_RELEASE *= -O3\n}\n\n*msvc*: {\n    QMAKE_CXXFLAGS_RELEASE -= /O\n    QMAKE_CXXFLAGS_RELEASE *= /O2\n}\n\n#-------------------------------------------------------------------------------\n# Deploy configuration\n#-------------------------------------------------------------------------------\n\nwin32* {\n    LIBS += -lPdh -lgdi32                                    # pthread + gdi\n    RC_FILE = etc/deploy/windows/resources/info.rc           # Set applicaiton icon\n    OTHER_FILES += etc/deploy/windows/nsis/setup.nsi         # Setup script\n}\n\nmacx* {\n    ICON = etc/deploy/macOS/icon.icns                        # icon file\n    RC_FILE = etc/deploy/macOS/icon.icns                     # icon file\n    QMAKE_INFO_PLIST = etc/deploy/macOS/info.plist           # Add info.plist file\n    CONFIG += sdk_no_version_check                           # Avoid warnings with Big Sur\n}\n\nlinux:!android {\n    TARGET = qdriverstation\n    target.path = $$PREFIX/bin\n    icon.path = $$PREFIX/share/pixmaps                       # icon instalation path\n    desktop.path = $$PREFIX/share/applications               # *.desktop instalation path\n    icon.files += etc/deploy/linux/*.png                     # Add application icon\n    desktop.files += etc/deploy/linux/*.desktop              # Add *.desktop file\n    INSTALLS += target desktop icon                          # make install targets\n}\n\n#-------------------------------------------------------------------------------\n# Include other libraries\n#-------------------------------------------------------------------------------\n\ninclude ($$PWD/lib/QJoysticks/QJoysticks.pri)\ninclude ($$PWD/lib/LibDS/wrappers/Qt/LibDS-Qt.pri)\n\n#-------------------------------------------------------------------------------\n# Import source code and QML\n#-------------------------------------------------------------------------------\n\nSOURCES += \\\n  $$PWD/src/main.cpp \\\n  $$PWD/src/utilities.cpp \\\n  $$PWD/src/beeper.cpp \\\n  $$PWD/src/dashboards.cpp \\\n  $$PWD/src/shortcuts.cpp\n  \nHEADERS += \\\n  $$PWD/src/utilities.h \\\n  $$PWD/src/beeper.h \\\n  $$PWD/src/dashboards.h \\\n  $$PWD/src/versions.h \\\n  $$PWD/src/shortcuts.h\n    \nRESOURCES += \\\n  $$PWD/qml/qml.qrc \\\n  $$PWD/etc/resources/resources.qrc\n             \nOTHER_FILES += \\\n  $$PWD/qml/*.qml \\\n  $$PWD/qml/*.js \\\n  $$PWD/qml/Dialogs/*.qml \\\n  $$PWD/qml/Widgets/*.qml \\\n  $$PWD/qml/MainWindow/*.qml\n\n#-------------------------------------------------------------------------------\n# Deploy files\n#-------------------------------------------------------------------------------\n\nOTHER_FILES += \\\n    deploy/linux/* \\\n    deploy/macOS/* \\\n    deploy/windows/nsis/* \\\n    deploy/windows/resources/*\n"
  },
  {
    "path": "README.md",
    "content": "# QDriverStation\r\n\r\n<a href=\"#\">\r\n    <img width=\"192px\" height=\"192px\" src=\"doc/project.png\" align=\"right\" />\r\n</a>\r\n\r\n[![Build Status](https://github.com/FRC-Utilities/QDriverStation/workflows/Build/badge.svg)](https://github.com/FRC-Utilities/QDriverStation/actions)\r\n[![Github All Releases](https://img.shields.io/github/downloads/FRC-Utilities/QDriverStation/total.svg)](https://github.com/FRC-Utilities/QDriverStation/releases/)\r\n\r\nThe QDriverStation is a cross-platform and open-source alternative to the FRC Driver Station. It allows you to operate FRC robots with the major operating systems (Windows, Mac OSX and GNU/Linux). The QDriverStation is able to operate both 2009-2014 robots and 2015-2017 robots, support for 2020 robots is on the way.\r\n\r\nThe actual code that operates a FRC robot is found in a [separate repository](https://github.com/FRC-Utilities/LibDS), which is written in C and can be used for your own projects or change it to support more communication protocols (such as [ROS](https://github.com/FRC-Utilities/QDriverStation/issues/21)).\r\n\r\nYou can find the online documentation of the QDriverStation and its sub-projects [here](http://frc-utilities.github.io/documentation/).\r\n\r\n![macOS Screenshot](doc/QDriverStation-macOS.png)\r\n\r\n### Install notes\r\n\r\nYou can download the QDriverStation from [GitHub](http://github.com/FRC-Utilities/QDriverStation/releases).\r\n\r\nOnce you finish installing the software, you can launch it and begin driving your robot. Just be sure to input your team number and to verify that the joysticks are working correctly.\r\n\r\nMac users will be prompted to download an additional driver for Xbox 360 controllers to work.\r\n\r\n###### Note for Linux users\r\n\r\nFor convenience, Linux releases are now handled with AppImages. To run the AppImage, simply download the latest release, make it executable and run it. \r\n\r\nTerminal commands below:\r\n\r\n    cd Downloads\r\n    chmod +x QDriverStation*.AppImage\r\n    ./QDriverStation*.AppImage\r\n\r\nMore info can be found here: [https://appimage.org/](https://appimage.org/).\r\n\r\n###### Warnings\r\n\r\nIf you are on Linux, the QDriverStation may detect some devices as a joystick ([more info...](https://gist.github.com/denilsonsa/978f1d842cf5430f57f6#file-51-these-are-not-joysticks-rules)). If that happens, just disable the faulty device by clicking on the power button next to its name.\r\n\r\n### Build instructions\r\n\r\n###### Requirements\r\n\r\nThe only requirement to compile the application is to have [Qt](http://www.qt.io/download-open-source/) installed in your system. The desktop application will compile with Qt 5.15 or greater.\r\n\r\n- If you are using Linux, make sure that you have installed the following packages:\r\n    - `libsdl2-dev`\r\n\r\nThe project already contains the compiled SDL libraries for Windows and Mac.\r\n\r\n### Cloning this repository\r\n\r\nThis repository makes use of [`git submodule`](https://git-scm.com/docs/git-submodule). In order to clone it, you have two options:\r\n\r\nOne-liner:\r\n\r\n    git clone --recursive https://github.com/FRC-Utilities/QDriverStation/\r\n\r\nNormal procedure:\r\n\r\n    git clone https://github.com/FRC-Utilities/QDriverStation/\r\n    cd QDriverStation\r\n    git submodule init\r\n    git submodule update\r\n    \r\n###### Compiling the application\r\n\r\nOnce you have Qt installed, open *QDriverStation.pro* in Qt Creator and click the \"Run\" button.\r\n\r\nAlternatively, you can also use the following commands:\r\n- qmake\r\n- make\r\n- **Optional:** sudo make install\r\n\r\n### Credits\r\n\r\nThis application was created by [Alex Spataru](http://github.com/alex-spataru).\r\n\r\nOf course, many people contributed in different ways to this project, you can find more details in the [contributors list](CONTRIBUTORS.md). Finally, we want to thank you for trying this little project, we sincerely hope that you enjoy our application and we would love some of your feedback.\r\n\r\n### License\r\n\r\nThis project is released under the MIT License. For more information, [click here](LICENSE.md).\r\n"
  },
  {
    "path": "doc/config/doxyfile",
    "content": "# Doxyfile 1.8.11\n\n# This file describes the settings to be used by the documentation system\n# doxygen (www.doxygen.org) for a project.\n#\n# All text after a double hash (##) is considered a comment and is placed in\n# front of the TAG it is preceding.\n#\n# All text after a single hash (#) is considered a comment and will be ignored.\n# The format is:\n# TAG = value [value, ...]\n# For lists, items can also be appended using:\n# TAG += value [value, ...]\n# Values that contain spaces should be placed between quotes (\\\" \\\").\n\n#---------------------------------------------------------------------------\n# Project related configuration options\n#---------------------------------------------------------------------------\n\n# This tag specifies the encoding used for all characters in the config file\n# that follow. The default is UTF-8 which is also the encoding used for all text\n# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv\n# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv\n# for the list of possible encodings.\n# The default value is: UTF-8.\n\nDOXYFILE_ENCODING      = UTF-8\n\n# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by\n# double-quotes, unless you are using Doxywizard) that should identify the\n# project for which the documentation is generated. This name is used in the\n# title of most generated pages and in a few other places.\n# The default value is: My Project.\n\nPROJECT_NAME           = QDriverStation\n\n# The PROJECT_NUMBER tag can be used to enter a project or revision number. This\n# could be handy for archiving the generated documentation or if some version\n# control system is used.\n\nPROJECT_NUMBER         = \n\n# Using the PROJECT_BRIEF tag one can provide an optional one line description\n# for a project that appears at the top of each page and should give viewer a\n# quick idea about the purpose of the project. Keep the description short.\n\nPROJECT_BRIEF          = \"The free, cross-platform FRC Driver Station\"\n\n# With the PROJECT_LOGO tag one can specify a logo or an icon that is included\n# in the documentation. The maximum height of the logo should not exceed 55\n# pixels and the maximum width should not exceed 200 pixels. Doxygen will copy\n# the logo to the output directory.\n\nPROJECT_LOGO           = icon.png\n\n# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path\n# into which the generated documentation will be written. If a relative path is\n# entered, it will be relative to the location where doxygen was started. If\n# left blank the current directory will be used.\n\nOUTPUT_DIRECTORY       = ../output\n\n# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-\n# directories (in 2 levels) under the output directory of each output format and\n# will distribute the generated files over these directories. Enabling this\n# option can be useful when feeding doxygen a huge amount of source files, where\n# putting all generated files in the same directory would otherwise causes\n# performance problems for the file system.\n# The default value is: NO.\n\nCREATE_SUBDIRS         = NO\n\n# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII\n# characters to appear in the names of generated files. If set to NO, non-ASCII\n# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode\n# U+3044.\n# The default value is: NO.\n\nALLOW_UNICODE_NAMES    = NO\n\n# The OUTPUT_LANGUAGE tag is used to specify the language in which all\n# documentation generated by doxygen is written. Doxygen will use this\n# information to generate all constant output in the proper language.\n# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese,\n# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),\n# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian,\n# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages),\n# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian,\n# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian,\n# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish,\n# Ukrainian and Vietnamese.\n# The default value is: English.\n\nOUTPUT_LANGUAGE        = English\n\n# If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member\n# descriptions after the members that are listed in the file and class\n# documentation (similar to Javadoc). Set to NO to disable this.\n# The default value is: YES.\n\nBRIEF_MEMBER_DESC      = YES\n\n# If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief\n# description of a member or function before the detailed description\n#\n# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the\n# brief descriptions will be completely suppressed.\n# The default value is: YES.\n\nREPEAT_BRIEF           = YES\n\n# This tag implements a quasi-intelligent brief description abbreviator that is\n# used to form the text in various listings. Each string in this list, if found\n# as the leading text of the brief description, will be stripped from the text\n# and the result, after processing the whole list, is used as the annotated\n# text. Otherwise, the brief description is used as-is. If left blank, the\n# following values are used ($name is automatically replaced with the name of\n# the entity):The $name class, The $name widget, The $name file, is, provides,\n# specifies, contains, represents, a, an and the.\n\nABBREVIATE_BRIEF       = \"The $name class\" \\\n                         \"The $name widget\" \\\n                         \"The $name file\" \\\n                         is \\\n                         provides \\\n                         specifies \\\n                         contains \\\n                         represents \\\n                         a \\\n                         an \\\n                         the\n\n# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then\n# doxygen will generate a detailed section even if there is only a brief\n# description.\n# The default value is: NO.\n\nALWAYS_DETAILED_SEC    = NO\n\n# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all\n# inherited members of a class in the documentation of that class as if those\n# members were ordinary class members. Constructors, destructors and assignment\n# operators of the base classes will not be shown.\n# The default value is: NO.\n\nINLINE_INHERITED_MEMB  = NO\n\n# If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path\n# before files name in the file list and in the header files. If set to NO the\n# shortest path that makes the file name unique will be used\n# The default value is: YES.\n\nFULL_PATH_NAMES        = NO\n\n# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.\n# Stripping is only done if one of the specified strings matches the left-hand\n# part of the path. The tag can be used to show relative paths in the file list.\n# If left blank the directory from which doxygen is run is used as the path to\n# strip.\n#\n# Note that you can specify absolute paths here, but also relative paths, which\n# will be relative from the directory where doxygen is started.\n# This tag requires that the tag FULL_PATH_NAMES is set to YES.\n\nSTRIP_FROM_PATH        = \n\n# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the\n# path mentioned in the documentation of a class, which tells the reader which\n# header file to include in order to use a class. If left blank only the name of\n# the header file containing the class definition is used. Otherwise one should\n# specify the list of include paths that are normally passed to the compiler\n# using the -I flag.\n\nSTRIP_FROM_INC_PATH    = \n\n# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but\n# less readable) file names. This can be useful is your file systems doesn't\n# support long names like on DOS, Mac, or CD-ROM.\n# The default value is: NO.\n\nSHORT_NAMES            = NO\n\n# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the\n# first line (until the first dot) of a Javadoc-style comment as the brief\n# description. If set to NO, the Javadoc-style will behave just like regular Qt-\n# style comments (thus requiring an explicit @brief command for a brief\n# description.)\n# The default value is: NO.\n\nJAVADOC_AUTOBRIEF      = NO\n\n# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first\n# line (until the first dot) of a Qt-style comment as the brief description. If\n# set to NO, the Qt-style will behave just like regular Qt-style comments (thus\n# requiring an explicit \\brief command for a brief description.)\n# The default value is: NO.\n\nQT_AUTOBRIEF           = NO\n\n# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a\n# multi-line C++ special comment block (i.e. a block of //! or /// comments) as\n# a brief description. This used to be the default behavior. The new default is\n# to treat a multi-line C++ comment block as a detailed description. Set this\n# tag to YES if you prefer the old behavior instead.\n#\n# Note that setting this tag to YES also means that rational rose comments are\n# not recognized any more.\n# The default value is: NO.\n\nMULTILINE_CPP_IS_BRIEF = NO\n\n# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the\n# documentation from any documented member that it re-implements.\n# The default value is: YES.\n\nINHERIT_DOCS           = YES\n\n# If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new\n# page for each member. If set to NO, the documentation of a member will be part\n# of the file/class/namespace that contains it.\n# The default value is: NO.\n\nSEPARATE_MEMBER_PAGES  = NO\n\n# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen\n# uses this value to replace tabs by spaces in code fragments.\n# Minimum value: 1, maximum value: 16, default value: 4.\n\nTAB_SIZE               = 4\n\n# This tag can be used to specify a number of aliases that act as commands in\n# the documentation. An alias has the form:\n# name=value\n# For example adding\n# \"sideeffect=@par Side Effects:\\n\"\n# will allow you to put the command \\sideeffect (or @sideeffect) in the\n# documentation, which will result in a user-defined paragraph with heading\n# \"Side Effects:\". You can put \\n's in the value part of an alias to insert\n# newlines.\n\nALIASES                = \n\n# This tag can be used to specify a number of word-keyword mappings (TCL only).\n# A mapping has the form \"name=value\". For example adding \"class=itcl::class\"\n# will allow you to use the command class in the itcl::class meaning.\n\nTCL_SUBST              = \n\n# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources\n# only. Doxygen will then generate output that is more tailored for C. For\n# instance, some of the names that are used will be different. The list of all\n# members will be omitted, etc.\n# The default value is: NO.\n\nOPTIMIZE_OUTPUT_FOR_C  = NO\n\n# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or\n# Python sources only. Doxygen will then generate output that is more tailored\n# for that language. For instance, namespaces will be presented as packages,\n# qualified scopes will look different, etc.\n# The default value is: NO.\n\nOPTIMIZE_OUTPUT_JAVA   = NO\n\n# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran\n# sources. Doxygen will then generate output that is tailored for Fortran.\n# The default value is: NO.\n\nOPTIMIZE_FOR_FORTRAN   = NO\n\n# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL\n# sources. Doxygen will then generate output that is tailored for VHDL.\n# The default value is: NO.\n\nOPTIMIZE_OUTPUT_VHDL   = NO\n\n# Doxygen selects the parser to use depending on the extension of the files it\n# parses. With this tag you can assign which parser to use for a given\n# extension. Doxygen has a built-in mapping, but you can override or extend it\n# using this tag. The format is ext=language, where ext is a file extension, and\n# language is one of the parsers supported by doxygen: IDL, Java, Javascript,\n# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran:\n# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran:\n# Fortran. In the later case the parser tries to guess whether the code is fixed\n# or free formatted code, this is the default for Fortran type files), VHDL. For\n# instance to make doxygen treat .inc files as Fortran files (default is PHP),\n# and .f files as C (default is Fortran), use: inc=Fortran f=C.\n#\n# Note: For files without extension you can use no_extension as a placeholder.\n#\n# Note that for custom extensions you also need to set FILE_PATTERNS otherwise\n# the files are not read by doxygen.\n\nEXTENSION_MAPPING      = \n\n# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments\n# according to the Markdown format, which allows for more readable\n# documentation. See http://daringfireball.net/projects/markdown/ for details.\n# The output of markdown processing is further processed by doxygen, so you can\n# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in\n# case of backward compatibilities issues.\n# The default value is: YES.\n\nMARKDOWN_SUPPORT       = YES\n\n# When enabled doxygen tries to link words that correspond to documented\n# classes, or namespaces to their corresponding documentation. Such a link can\n# be prevented in individual cases by putting a % sign in front of the word or\n# globally by setting AUTOLINK_SUPPORT to NO.\n# The default value is: YES.\n\nAUTOLINK_SUPPORT       = YES\n\n# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want\n# to include (a tag file for) the STL sources as input, then you should set this\n# tag to YES in order to let doxygen match functions declarations and\n# definitions whose arguments contain STL classes (e.g. func(std::string);\n# versus func(std::string) {}). This also make the inheritance and collaboration\n# diagrams that involve STL classes more complete and accurate.\n# The default value is: NO.\n\nBUILTIN_STL_SUPPORT    = NO\n\n# If you use Microsoft's C++/CLI language, you should set this option to YES to\n# enable parsing support.\n# The default value is: NO.\n\nCPP_CLI_SUPPORT        = NO\n\n# Set the SIP_SUPPORT tag to YES if your project consists of sip (see:\n# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen\n# will parse them like normal C++ but will assume all classes use public instead\n# of private inheritance when no explicit protection keyword is present.\n# The default value is: NO.\n\nSIP_SUPPORT            = NO\n\n# For Microsoft's IDL there are propget and propput attributes to indicate\n# getter and setter methods for a property. Setting this option to YES will make\n# doxygen to replace the get and set methods by a property in the documentation.\n# This will only work if the methods are indeed getting or setting a simple\n# type. If this is not the case, or you want to show the methods anyway, you\n# should set this option to NO.\n# The default value is: YES.\n\nIDL_PROPERTY_SUPPORT   = YES\n\n# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC\n# tag is set to YES then doxygen will reuse the documentation of the first\n# member in the group (if any) for the other members of the group. By default\n# all members of a group must be documented explicitly.\n# The default value is: NO.\n\nDISTRIBUTE_GROUP_DOC   = NO\n\n# If one adds a struct or class to a group and this option is enabled, then also\n# any nested class or struct is added to the same group. By default this option\n# is disabled and one has to add nested compounds explicitly via \\ingroup.\n# The default value is: NO.\n\nGROUP_NESTED_COMPOUNDS = NO\n\n# Set the SUBGROUPING tag to YES to allow class member groups of the same type\n# (for instance a group of public functions) to be put as a subgroup of that\n# type (e.g. under the Public Functions section). Set it to NO to prevent\n# subgrouping. Alternatively, this can be done per class using the\n# \\nosubgrouping command.\n# The default value is: YES.\n\nSUBGROUPING            = YES\n\n# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions\n# are shown inside the group in which they are included (e.g. using \\ingroup)\n# instead of on a separate page (for HTML and Man pages) or section (for LaTeX\n# and RTF).\n#\n# Note that this feature does not work in combination with\n# SEPARATE_MEMBER_PAGES.\n# The default value is: NO.\n\nINLINE_GROUPED_CLASSES = NO\n\n# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions\n# with only public data fields or simple typedef fields will be shown inline in\n# the documentation of the scope in which they are defined (i.e. file,\n# namespace, or group documentation), provided this scope is documented. If set\n# to NO, structs, classes, and unions are shown on a separate page (for HTML and\n# Man pages) or section (for LaTeX and RTF).\n# The default value is: NO.\n\nINLINE_SIMPLE_STRUCTS  = NO\n\n# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or\n# enum is documented as struct, union, or enum with the name of the typedef. So\n# typedef struct TypeS {} TypeT, will appear in the documentation as a struct\n# with name TypeT. When disabled the typedef will appear as a member of a file,\n# namespace, or class. And the struct will be named TypeS. This can typically be\n# useful for C code in case the coding convention dictates that all compound\n# types are typedef'ed and only the typedef is referenced, never the tag name.\n# The default value is: NO.\n\nTYPEDEF_HIDES_STRUCT   = NO\n\n# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This\n# cache is used to resolve symbols given their name and scope. Since this can be\n# an expensive process and often the same symbol appears multiple times in the\n# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small\n# doxygen will become slower. If the cache is too large, memory is wasted. The\n# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range\n# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536\n# symbols. At the end of a run doxygen will report the cache usage and suggest\n# the optimal cache size from a speed point of view.\n# Minimum value: 0, maximum value: 9, default value: 0.\n\nLOOKUP_CACHE_SIZE      = 0\n\n#---------------------------------------------------------------------------\n# Build related configuration options\n#---------------------------------------------------------------------------\n\n# If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in\n# documentation are documented, even if no documentation was available. Private\n# class members and static file members will be hidden unless the\n# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES.\n# Note: This will also disable the warnings about undocumented members that are\n# normally produced when WARNINGS is set to YES.\n# The default value is: NO.\n\nEXTRACT_ALL            = NO\n\n# If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will\n# be included in the documentation.\n# The default value is: NO.\n\nEXTRACT_PRIVATE        = YES\n\n# If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal\n# scope will be included in the documentation.\n# The default value is: NO.\n\nEXTRACT_PACKAGE        = NO\n\n# If the EXTRACT_STATIC tag is set to YES, all static members of a file will be\n# included in the documentation.\n# The default value is: NO.\n\nEXTRACT_STATIC         = NO\n\n# If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined\n# locally in source files will be included in the documentation. If set to NO,\n# only classes defined in header files are included. Does not have any effect\n# for Java sources.\n# The default value is: YES.\n\nEXTRACT_LOCAL_CLASSES  = YES\n\n# This flag is only useful for Objective-C code. If set to YES, local methods,\n# which are defined in the implementation section but not in the interface are\n# included in the documentation. If set to NO, only methods in the interface are\n# included.\n# The default value is: NO.\n\nEXTRACT_LOCAL_METHODS  = NO\n\n# If this flag is set to YES, the members of anonymous namespaces will be\n# extracted and appear in the documentation as a namespace called\n# 'anonymous_namespace{file}', where file will be replaced with the base name of\n# the file that contains the anonymous namespace. By default anonymous namespace\n# are hidden.\n# The default value is: NO.\n\nEXTRACT_ANON_NSPACES   = NO\n\n# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all\n# undocumented members inside documented classes or files. If set to NO these\n# members will be included in the various overviews, but no documentation\n# section is generated. This option has no effect if EXTRACT_ALL is enabled.\n# The default value is: NO.\n\nHIDE_UNDOC_MEMBERS     = NO\n\n# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all\n# undocumented classes that are normally visible in the class hierarchy. If set\n# to NO, these classes will be included in the various overviews. This option\n# has no effect if EXTRACT_ALL is enabled.\n# The default value is: NO.\n\nHIDE_UNDOC_CLASSES     = NO\n\n# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend\n# (class|struct|union) declarations. If set to NO, these declarations will be\n# included in the documentation.\n# The default value is: NO.\n\nHIDE_FRIEND_COMPOUNDS  = NO\n\n# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any\n# documentation blocks found inside the body of a function. If set to NO, these\n# blocks will be appended to the function's detailed documentation block.\n# The default value is: NO.\n\nHIDE_IN_BODY_DOCS      = NO\n\n# The INTERNAL_DOCS tag determines if documentation that is typed after a\n# \\internal command is included. If the tag is set to NO then the documentation\n# will be excluded. Set it to YES to include the internal documentation.\n# The default value is: NO.\n\nINTERNAL_DOCS          = NO\n\n# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file\n# names in lower-case letters. If set to YES, upper-case letters are also\n# allowed. This is useful if you have classes or files whose names only differ\n# in case and if your file system supports case sensitive file names. Windows\n# and Mac users are advised to set this option to NO.\n# The default value is: system dependent.\n\nCASE_SENSE_NAMES       = NO\n\n# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with\n# their full class and namespace scopes in the documentation. If set to YES, the\n# scope will be hidden.\n# The default value is: NO.\n\nHIDE_SCOPE_NAMES       = NO\n\n# If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will\n# append additional text to a page's title, such as Class Reference. If set to\n# YES the compound reference will be hidden.\n# The default value is: NO.\n\nHIDE_COMPOUND_REFERENCE= NO\n\n# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of\n# the files that are included by a file in the documentation of that file.\n# The default value is: YES.\n\nSHOW_INCLUDE_FILES     = YES\n\n# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each\n# grouped member an include statement to the documentation, telling the reader\n# which file to include in order to use the member.\n# The default value is: NO.\n\nSHOW_GROUPED_MEMB_INC  = NO\n\n# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include\n# files with double quotes in the documentation rather than with sharp brackets.\n# The default value is: NO.\n\nFORCE_LOCAL_INCLUDES   = NO\n\n# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the\n# documentation for inline members.\n# The default value is: YES.\n\nINLINE_INFO            = YES\n\n# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the\n# (detailed) documentation of file and class members alphabetically by member\n# name. If set to NO, the members will appear in declaration order.\n# The default value is: YES.\n\nSORT_MEMBER_DOCS       = YES\n\n# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief\n# descriptions of file, namespace and class members alphabetically by member\n# name. If set to NO, the members will appear in declaration order. Note that\n# this will also influence the order of the classes in the class list.\n# The default value is: NO.\n\nSORT_BRIEF_DOCS        = NO\n\n# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the\n# (brief and detailed) documentation of class members so that constructors and\n# destructors are listed first. If set to NO the constructors will appear in the\n# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS.\n# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief\n# member documentation.\n# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting\n# detailed member documentation.\n# The default value is: NO.\n\nSORT_MEMBERS_CTORS_1ST = NO\n\n# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy\n# of group names into alphabetical order. If set to NO the group names will\n# appear in their defined order.\n# The default value is: NO.\n\nSORT_GROUP_NAMES       = NO\n\n# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by\n# fully-qualified names, including namespaces. If set to NO, the class list will\n# be sorted only by class name, not including the namespace part.\n# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.\n# Note: This option applies only to the class list, not to the alphabetical\n# list.\n# The default value is: NO.\n\nSORT_BY_SCOPE_NAME     = NO\n\n# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper\n# type resolution of all parameters of a function it will reject a match between\n# the prototype and the implementation of a member function even if there is\n# only one candidate or it is obvious which candidate to choose by doing a\n# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still\n# accept a match between prototype and implementation in such cases.\n# The default value is: NO.\n\nSTRICT_PROTO_MATCHING  = NO\n\n# The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo\n# list. This list is created by putting \\todo commands in the documentation.\n# The default value is: YES.\n\nGENERATE_TODOLIST      = NO\n\n# The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test\n# list. This list is created by putting \\test commands in the documentation.\n# The default value is: YES.\n\nGENERATE_TESTLIST      = YES\n\n# The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug\n# list. This list is created by putting \\bug commands in the documentation.\n# The default value is: YES.\n\nGENERATE_BUGLIST       = YES\n\n# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO)\n# the deprecated list. This list is created by putting \\deprecated commands in\n# the documentation.\n# The default value is: YES.\n\nGENERATE_DEPRECATEDLIST= YES\n\n# The ENABLED_SECTIONS tag can be used to enable conditional documentation\n# sections, marked by \\if <section_label> ... \\endif and \\cond <section_label>\n# ... \\endcond blocks.\n\nENABLED_SECTIONS       = \n\n# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the\n# initial value of a variable or macro / define can have for it to appear in the\n# documentation. If the initializer consists of more lines than specified here\n# it will be hidden. Use a value of 0 to hide initializers completely. The\n# appearance of the value of individual variables and macros / defines can be\n# controlled using \\showinitializer or \\hideinitializer command in the\n# documentation regardless of this setting.\n# Minimum value: 0, maximum value: 10000, default value: 30.\n\nMAX_INITIALIZER_LINES  = 30\n\n# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at\n# the bottom of the documentation of classes and structs. If set to YES, the\n# list will mention the files that were used to generate the documentation.\n# The default value is: YES.\n\nSHOW_USED_FILES        = YES\n\n# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This\n# will remove the Files entry from the Quick Index and from the Folder Tree View\n# (if specified).\n# The default value is: YES.\n\nSHOW_FILES             = YES\n\n# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces\n# page. This will remove the Namespaces entry from the Quick Index and from the\n# Folder Tree View (if specified).\n# The default value is: YES.\n\nSHOW_NAMESPACES        = YES\n\n# The FILE_VERSION_FILTER tag can be used to specify a program or script that\n# doxygen should invoke to get the current version for each file (typically from\n# the version control system). Doxygen will invoke the program by executing (via\n# popen()) the command command input-file, where command is the value of the\n# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided\n# by doxygen. Whatever the program writes to standard output is used as the file\n# version. For an example see the documentation.\n\nFILE_VERSION_FILTER    = \n\n# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed\n# by doxygen. The layout file controls the global structure of the generated\n# output files in an output format independent way. To create the layout file\n# that represents doxygen's defaults, run doxygen with the -l option. You can\n# optionally specify a file name after the option, if omitted DoxygenLayout.xml\n# will be used as the name of the layout file.\n#\n# Note that if you run doxygen from a directory containing a file called\n# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE\n# tag is left empty.\n\nLAYOUT_FILE            = \n\n# The CITE_BIB_FILES tag can be used to specify one or more bib files containing\n# the reference definitions. This must be a list of .bib files. The .bib\n# extension is automatically appended if omitted. This requires the bibtex tool\n# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info.\n# For LaTeX the style of the bibliography can be controlled using\n# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the\n# search path. See also \\cite for info how to create references.\n\nCITE_BIB_FILES         = \n\n#---------------------------------------------------------------------------\n# Configuration options related to warning and progress messages\n#---------------------------------------------------------------------------\n\n# The QUIET tag can be used to turn on/off the messages that are generated to\n# standard output by doxygen. If QUIET is set to YES this implies that the\n# messages are off.\n# The default value is: NO.\n\nQUIET                  = NO\n\n# The WARNINGS tag can be used to turn on/off the warning messages that are\n# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES\n# this implies that the warnings are on.\n#\n# Tip: Turn warnings on while writing the documentation.\n# The default value is: YES.\n\nWARNINGS               = YES\n\n# If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate\n# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag\n# will automatically be disabled.\n# The default value is: YES.\n\nWARN_IF_UNDOCUMENTED   = YES\n\n# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for\n# potential errors in the documentation, such as not documenting some parameters\n# in a documented function, or documenting parameters that don't exist or using\n# markup commands wrongly.\n# The default value is: YES.\n\nWARN_IF_DOC_ERROR      = YES\n\n# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that\n# are documented, but have no documentation for their parameters or return\n# value. If set to NO, doxygen will only warn about wrong or incomplete\n# parameter documentation, but not about the absence of documentation.\n# The default value is: NO.\n\nWARN_NO_PARAMDOC       = NO\n\n# If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when\n# a warning is encountered.\n# The default value is: NO.\n\nWARN_AS_ERROR          = NO\n\n# The WARN_FORMAT tag determines the format of the warning messages that doxygen\n# can produce. The string should contain the $file, $line, and $text tags, which\n# will be replaced by the file and line number from which the warning originated\n# and the warning text. Optionally the format may contain $version, which will\n# be replaced by the version of the file (if it could be obtained via\n# FILE_VERSION_FILTER)\n# The default value is: $file:$line: $text.\n\nWARN_FORMAT            = \"$file:$line: $text\"\n\n# The WARN_LOGFILE tag can be used to specify a file to which warning and error\n# messages should be written. If left blank the output is written to standard\n# error (stderr).\n\nWARN_LOGFILE           = \n\n#---------------------------------------------------------------------------\n# Configuration options related to the input files\n#---------------------------------------------------------------------------\n\n# The INPUT tag is used to specify the files and/or directories that contain\n# documented source files. You may enter file names like myfile.cpp or\n# directories like /usr/src/myproject. Separate the files or directories with\n# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING\n# Note: If this tag is empty the current directory is searched.\n\nINPUT                  = ../../src \\\n                         startpage.md\n\n# This tag can be used to specify the character encoding of the source files\n# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses\n# libiconv (or the iconv built into libc) for the transcoding. See the libiconv\n# documentation (see: http://www.gnu.org/software/libiconv) for the list of\n# possible encodings.\n# The default value is: UTF-8.\n\nINPUT_ENCODING         = UTF-8\n\n# If the value of the INPUT tag contains directories, you can use the\n# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and\n# *.h) to filter out the source-files in the directories.\n#\n# Note that for custom extensions or not directly supported extensions you also\n# need to set EXTENSION_MAPPING for the extension otherwise the files are not\n# read by doxygen.\n#\n# If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp,\n# *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h,\n# *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc,\n# *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f, *.for, *.tcl,\n# *.vhd, *.vhdl, *.ucf, *.qsf, *.as and *.js.\n\nFILE_PATTERNS          = *.c \\\n                         *.cc \\\n                         *.cxx \\\n                         *.cpp \\\n                         *.c++ \\\n                         *.java \\\n                         *.ii \\\n                         *.ixx \\\n                         *.ipp \\\n                         *.i++ \\\n                         *.inl \\\n                         *.idl \\\n                         *.ddl \\\n                         *.odl \\\n                         *.h \\\n                         *.hh \\\n                         *.hxx \\\n                         *.hpp \\\n                         *.h++ \\\n                         *.cs \\\n                         *.d \\\n                         *.php \\\n                         *.php4 \\\n                         *.php5 \\\n                         *.phtml \\\n                         *.inc \\\n                         *.m \\\n                         *.markdown \\\n                         *.md \\\n                         *.mm \\\n                         *.dox \\\n                         *.py \\\n                         *.pyw \\\n                         *.f90 \\\n                         *.f \\\n                         *.for \\\n                         *.tcl \\\n                         *.vhd \\\n                         *.vhdl \\\n                         *.ucf \\\n                         *.qsf \\\n                         *.as \\\n                         *.js\n\n# The RECURSIVE tag can be used to specify whether or not subdirectories should\n# be searched for input files as well.\n# The default value is: NO.\n\nRECURSIVE              = YES\n\n# The EXCLUDE tag can be used to specify files and/or directories that should be\n# excluded from the INPUT source files. This way you can easily exclude a\n# subdirectory from a directory tree whose root is specified with the INPUT tag.\n#\n# Note that relative paths are relative to the directory from which doxygen is\n# run.\n\nEXCLUDE                = \n\n# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or\n# directories that are symbolic links (a Unix file system feature) are excluded\n# from the input.\n# The default value is: NO.\n\nEXCLUDE_SYMLINKS       = NO\n\n# If the value of the INPUT tag contains directories, you can use the\n# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude\n# certain files from those directories.\n#\n# Note that the wildcards are matched against the file with absolute path, so to\n# exclude all test directories for example use the pattern */test/*\n\nEXCLUDE_PATTERNS       = \n\n# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names\n# (namespaces, classes, functions, etc.) that should be excluded from the\n# output. The symbol name can be a fully qualified name, a word, or if the\n# wildcard * is used, a substring. Examples: ANamespace, AClass,\n# AClass::ANamespace, ANamespace::*Test\n#\n# Note that the wildcards are matched against the file with absolute path, so to\n# exclude all test directories use the pattern */test/*\n\nEXCLUDE_SYMBOLS        = \n\n# The EXAMPLE_PATH tag can be used to specify one or more files or directories\n# that contain example code fragments that are included (see the \\include\n# command).\n\nEXAMPLE_PATH           = \n\n# If the value of the EXAMPLE_PATH tag contains directories, you can use the\n# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and\n# *.h) to filter out the source-files in the directories. If left blank all\n# files are included.\n\nEXAMPLE_PATTERNS       = *\n\n# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be\n# searched for input files to be used with the \\include or \\dontinclude commands\n# irrespective of the value of the RECURSIVE tag.\n# The default value is: NO.\n\nEXAMPLE_RECURSIVE      = NO\n\n# The IMAGE_PATH tag can be used to specify one or more files or directories\n# that contain images that are to be included in the documentation (see the\n# \\image command).\n\nIMAGE_PATH             = \n\n# The INPUT_FILTER tag can be used to specify a program that doxygen should\n# invoke to filter for each input file. Doxygen will invoke the filter program\n# by executing (via popen()) the command:\n#\n# <filter> <input-file>\n#\n# where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the\n# name of an input file. Doxygen will then use the output that the filter\n# program writes to standard output. If FILTER_PATTERNS is specified, this tag\n# will be ignored.\n#\n# Note that the filter must not add or remove lines; it is applied before the\n# code is scanned, but not when the output code is generated. If lines are added\n# or removed, the anchors will not be placed correctly.\n#\n# Note that for custom extensions or not directly supported extensions you also\n# need to set EXTENSION_MAPPING for the extension otherwise the files are not\n# properly processed by doxygen.\n\nINPUT_FILTER           = \n\n# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern\n# basis. Doxygen will compare the file name with each pattern and apply the\n# filter if there is a match. The filters are a list of the form: pattern=filter\n# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how\n# filters are used. If the FILTER_PATTERNS tag is empty or if none of the\n# patterns match the file name, INPUT_FILTER is applied.\n#\n# Note that for custom extensions or not directly supported extensions you also\n# need to set EXTENSION_MAPPING for the extension otherwise the files are not\n# properly processed by doxygen.\n\nFILTER_PATTERNS        = \n\n# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using\n# INPUT_FILTER) will also be used to filter the input files that are used for\n# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES).\n# The default value is: NO.\n\nFILTER_SOURCE_FILES    = NO\n\n# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file\n# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and\n# it is also possible to disable source filtering for a specific pattern using\n# *.ext= (so without naming a filter).\n# This tag requires that the tag FILTER_SOURCE_FILES is set to YES.\n\nFILTER_SOURCE_PATTERNS = \n\n# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that\n# is part of the input, its contents will be placed on the main page\n# (index.html). This can be useful if you have a project on for instance GitHub\n# and want to reuse the introduction page also for the doxygen output.\n\nUSE_MDFILE_AS_MAINPAGE = startpage.md\n\n#---------------------------------------------------------------------------\n# Configuration options related to source browsing\n#---------------------------------------------------------------------------\n\n# If the SOURCE_BROWSER tag is set to YES then a list of source files will be\n# generated. Documented entities will be cross-referenced with these sources.\n#\n# Note: To get rid of all source code in the generated output, make sure that\n# also VERBATIM_HEADERS is set to NO.\n# The default value is: NO.\n\nSOURCE_BROWSER         = NO\n\n# Setting the INLINE_SOURCES tag to YES will include the body of functions,\n# classes and enums directly into the documentation.\n# The default value is: NO.\n\nINLINE_SOURCES         = NO\n\n# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any\n# special comment blocks from generated source code fragments. Normal C, C++ and\n# Fortran comments will always remain visible.\n# The default value is: YES.\n\nSTRIP_CODE_COMMENTS    = YES\n\n# If the REFERENCED_BY_RELATION tag is set to YES then for each documented\n# function all documented functions referencing it will be listed.\n# The default value is: NO.\n\nREFERENCED_BY_RELATION = YES\n\n# If the REFERENCES_RELATION tag is set to YES then for each documented function\n# all documented entities called/used by that function will be listed.\n# The default value is: NO.\n\nREFERENCES_RELATION    = YES\n\n# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set\n# to YES then the hyperlinks from functions in REFERENCES_RELATION and\n# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will\n# link to the documentation.\n# The default value is: YES.\n\nREFERENCES_LINK_SOURCE = YES\n\n# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the\n# source code will show a tooltip with additional information such as prototype,\n# brief description and links to the definition and documentation. Since this\n# will make the HTML file larger and loading of large files a bit slower, you\n# can opt to disable this feature.\n# The default value is: YES.\n# This tag requires that the tag SOURCE_BROWSER is set to YES.\n\nSOURCE_TOOLTIPS        = YES\n\n# If the USE_HTAGS tag is set to YES then the references to source code will\n# point to the HTML generated by the htags(1) tool instead of doxygen built-in\n# source browser. The htags tool is part of GNU's global source tagging system\n# (see http://www.gnu.org/software/global/global.html). You will need version\n# 4.8.6 or higher.\n#\n# To use it do the following:\n# - Install the latest version of global\n# - Enable SOURCE_BROWSER and USE_HTAGS in the config file\n# - Make sure the INPUT points to the root of the source tree\n# - Run doxygen as normal\n#\n# Doxygen will invoke htags (and that will in turn invoke gtags), so these\n# tools must be available from the command line (i.e. in the search path).\n#\n# The result: instead of the source browser generated by doxygen, the links to\n# source code will now point to the output of htags.\n# The default value is: NO.\n# This tag requires that the tag SOURCE_BROWSER is set to YES.\n\nUSE_HTAGS              = NO\n\n# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a\n# verbatim copy of the header file for each class for which an include is\n# specified. Set to NO to disable this.\n# See also: Section \\class.\n# The default value is: YES.\n\nVERBATIM_HEADERS       = YES\n\n# If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the\n# clang parser (see: http://clang.llvm.org/) for more accurate parsing at the\n# cost of reduced performance. This can be particularly helpful with template\n# rich C++ code for which doxygen's built-in parser lacks the necessary type\n# information.\n# Note: The availability of this option depends on whether or not doxygen was\n# generated with the -Duse-libclang=ON option for CMake.\n# The default value is: NO.\n\nCLANG_ASSISTED_PARSING = NO\n\n# If clang assisted parsing is enabled you can provide the compiler with command\n# line options that you would normally use when invoking the compiler. Note that\n# the include paths will already be set by doxygen for the files and directories\n# specified with INPUT and INCLUDE_PATH.\n# This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES.\n\nCLANG_OPTIONS          = \n\n#---------------------------------------------------------------------------\n# Configuration options related to the alphabetical class index\n#---------------------------------------------------------------------------\n\n# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all\n# compounds will be generated. Enable this if the project contains a lot of\n# classes, structs, unions or interfaces.\n# The default value is: YES.\n\nALPHABETICAL_INDEX     = YES\n\n# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in\n# which the alphabetical index list will be split.\n# Minimum value: 1, maximum value: 20, default value: 5.\n# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.\n\nCOLS_IN_ALPHA_INDEX    = 5\n\n# In case all classes in a project start with a common prefix, all classes will\n# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag\n# can be used to specify a prefix (or a list of prefixes) that should be ignored\n# while generating the index headers.\n# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.\n\nIGNORE_PREFIX          = \n\n#---------------------------------------------------------------------------\n# Configuration options related to the HTML output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output\n# The default value is: YES.\n\nGENERATE_HTML          = YES\n\n# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: html.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_OUTPUT            = html\n\n# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each\n# generated HTML page (for example: .htm, .php, .asp).\n# The default value is: .html.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_FILE_EXTENSION    = .html\n\n# The HTML_HEADER tag can be used to specify a user-defined HTML header file for\n# each generated HTML page. If the tag is left blank doxygen will generate a\n# standard header.\n#\n# To get valid HTML the header file that includes any scripts and style sheets\n# that doxygen needs, which is dependent on the configuration options used (e.g.\n# the setting GENERATE_TREEVIEW). It is highly recommended to start with a\n# default header using\n# doxygen -w html new_header.html new_footer.html new_stylesheet.css\n# YourConfigFile\n# and then modify the file new_header.html. See also section \"Doxygen usage\"\n# for information on how to generate the default header that doxygen normally\n# uses.\n# Note: The header is subject to change so you typically have to regenerate the\n# default header when upgrading to a newer version of doxygen. For a description\n# of the possible markers and block names see the documentation.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_HEADER            = \n\n# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each\n# generated HTML page. If the tag is left blank doxygen will generate a standard\n# footer. See HTML_HEADER for more information on how to generate a default\n# footer and what special commands can be used inside the footer. See also\n# section \"Doxygen usage\" for information on how to generate the default footer\n# that doxygen normally uses.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_FOOTER            = \n\n# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style\n# sheet that is used by each HTML page. It can be used to fine-tune the look of\n# the HTML output. If left blank doxygen will generate a default style sheet.\n# See also section \"Doxygen usage\" for information on how to generate the style\n# sheet that doxygen normally uses.\n# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as\n# it is more robust and this tag (HTML_STYLESHEET) will in the future become\n# obsolete.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_STYLESHEET        = \n\n# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined\n# cascading style sheets that are included after the standard style sheets\n# created by doxygen. Using this option one can overrule certain style aspects.\n# This is preferred over using HTML_STYLESHEET since it does not replace the\n# standard style sheet and is therefore more robust against future updates.\n# Doxygen will copy the style sheet files to the output directory.\n# Note: The order of the extra style sheet files is of importance (e.g. the last\n# style sheet in the list overrules the setting of the previous ones in the\n# list). For an example see the documentation.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_EXTRA_STYLESHEET  = \n\n# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or\n# other source files which should be copied to the HTML output directory. Note\n# that these files will be copied to the base HTML output directory. Use the\n# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these\n# files. In the HTML_STYLESHEET file, use the file name only. Also note that the\n# files will be copied as-is; there are no commands or markers available.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_EXTRA_FILES       = \n\n# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen\n# will adjust the colors in the style sheet and background images according to\n# this color. Hue is specified as an angle on a colorwheel, see\n# http://en.wikipedia.org/wiki/Hue for more information. For instance the value\n# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300\n# purple, and 360 is red again.\n# Minimum value: 0, maximum value: 359, default value: 220.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_COLORSTYLE_HUE    = 220\n\n# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors\n# in the HTML output. For a value of 0 the output will use grayscales only. A\n# value of 255 will produce the most vivid colors.\n# Minimum value: 0, maximum value: 255, default value: 100.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_COLORSTYLE_SAT    = 100\n\n# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the\n# luminance component of the colors in the HTML output. Values below 100\n# gradually make the output lighter, whereas values above 100 make the output\n# darker. The value divided by 100 is the actual gamma applied, so 80 represents\n# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not\n# change the gamma.\n# Minimum value: 40, maximum value: 240, default value: 80.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_COLORSTYLE_GAMMA  = 80\n\n# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML\n# page will contain the date and time when the page was generated. Setting this\n# to YES can help to show when doxygen was last run and thus if the\n# documentation is up to date.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_TIMESTAMP         = NO\n\n# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML\n# documentation will contain sections that can be hidden and shown after the\n# page has loaded.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_DYNAMIC_SECTIONS  = NO\n\n# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries\n# shown in the various tree structured indices initially; the user can expand\n# and collapse entries dynamically later on. Doxygen will expand the tree to\n# such a level that at most the specified number of entries are visible (unless\n# a fully collapsed tree already exceeds this amount). So setting the number of\n# entries 1 will produce a full collapsed tree by default. 0 is a special value\n# representing an infinite number of entries and will result in a full expanded\n# tree by default.\n# Minimum value: 0, maximum value: 9999, default value: 100.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nHTML_INDEX_NUM_ENTRIES = 100\n\n# If the GENERATE_DOCSET tag is set to YES, additional index files will be\n# generated that can be used as input for Apple's Xcode 3 integrated development\n# environment (see: http://developer.apple.com/tools/xcode/), introduced with\n# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a\n# Makefile in the HTML output directory. Running make will produce the docset in\n# that directory and running make install will install the docset in\n# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at\n# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html\n# for more information.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_DOCSET        = NO\n\n# This tag determines the name of the docset feed. A documentation feed provides\n# an umbrella under which multiple documentation sets from a single provider\n# (such as a company or product suite) can be grouped.\n# The default value is: Doxygen generated docs.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_FEEDNAME        = \"Doxygen generated docs\"\n\n# This tag specifies a string that should uniquely identify the documentation\n# set bundle. This should be a reverse domain-name style string, e.g.\n# com.mycompany.MyDocSet. Doxygen will append .docset to the name.\n# The default value is: org.doxygen.Project.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_BUNDLE_ID       = org.doxygen.Project\n\n# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify\n# the documentation publisher. This should be a reverse domain-name style\n# string, e.g. com.mycompany.MyDocSet.documentation.\n# The default value is: org.doxygen.Publisher.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_PUBLISHER_ID    = org.doxygen.Publisher\n\n# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.\n# The default value is: Publisher.\n# This tag requires that the tag GENERATE_DOCSET is set to YES.\n\nDOCSET_PUBLISHER_NAME  = Publisher\n\n# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three\n# additional HTML index files: index.hhp, index.hhc, and index.hhk. The\n# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop\n# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on\n# Windows.\n#\n# The HTML Help Workshop contains a compiler that can convert all HTML output\n# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML\n# files are now used as the Windows 98 help format, and will replace the old\n# Windows help format (.hlp) on all Windows platforms in the future. Compressed\n# HTML files also contain an index, a table of contents, and you can search for\n# words in the documentation. The HTML workshop also contains a viewer for\n# compressed HTML files.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_HTMLHELP      = NO\n\n# The CHM_FILE tag can be used to specify the file name of the resulting .chm\n# file. You can add a path in front of the file if the result should not be\n# written to the html output directory.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nCHM_FILE               = \n\n# The HHC_LOCATION tag can be used to specify the location (absolute path\n# including file name) of the HTML help compiler (hhc.exe). If non-empty,\n# doxygen will try to run the HTML help compiler on the generated index.hhp.\n# The file has to be specified with full path.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nHHC_LOCATION           = \n\n# The GENERATE_CHI flag controls if a separate .chi index file is generated\n# (YES) or that it should be included in the master .chm file (NO).\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nGENERATE_CHI           = NO\n\n# The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc)\n# and project file content.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nCHM_INDEX_ENCODING     = \n\n# The BINARY_TOC flag controls whether a binary table of contents is generated\n# (YES) or a normal table of contents (NO) in the .chm file. Furthermore it\n# enables the Previous and Next buttons.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nBINARY_TOC             = NO\n\n# The TOC_EXPAND flag can be set to YES to add extra items for group members to\n# the table of contents of the HTML help documentation and to the tree view.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTMLHELP is set to YES.\n\nTOC_EXPAND             = NO\n\n# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and\n# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that\n# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help\n# (.qch) of the generated HTML documentation.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_QHP           = NO\n\n# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify\n# the file name of the resulting .qch file. The path specified is relative to\n# the HTML output folder.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQCH_FILE               = \n\n# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help\n# Project output. For more information please see Qt Help Project / Namespace\n# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace).\n# The default value is: org.doxygen.Project.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_NAMESPACE          = org.doxygen.Project\n\n# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt\n# Help Project output. For more information please see Qt Help Project / Virtual\n# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual-\n# folders).\n# The default value is: doc.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_VIRTUAL_FOLDER     = doc\n\n# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom\n# filter to add. For more information please see Qt Help Project / Custom\n# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-\n# filters).\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_CUST_FILTER_NAME   = \n\n# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the\n# custom filter to add. For more information please see Qt Help Project / Custom\n# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom-\n# filters).\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_CUST_FILTER_ATTRS  = \n\n# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this\n# project's filter section matches. Qt Help Project / Filter Attributes (see:\n# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes).\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHP_SECT_FILTER_ATTRS  = \n\n# The QHG_LOCATION tag can be used to specify the location of Qt's\n# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the\n# generated .qhp file.\n# This tag requires that the tag GENERATE_QHP is set to YES.\n\nQHG_LOCATION           = \n\n# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be\n# generated, together with the HTML files, they form an Eclipse help plugin. To\n# install this plugin and make it available under the help contents menu in\n# Eclipse, the contents of the directory containing the HTML and XML files needs\n# to be copied into the plugins directory of eclipse. The name of the directory\n# within the plugins directory should be the same as the ECLIPSE_DOC_ID value.\n# After copying Eclipse needs to be restarted before the help appears.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_ECLIPSEHELP   = NO\n\n# A unique identifier for the Eclipse help plugin. When installing the plugin\n# the directory name containing the HTML and XML files should also have this\n# name. Each documentation set should have its own identifier.\n# The default value is: org.doxygen.Project.\n# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES.\n\nECLIPSE_DOC_ID         = org.doxygen.Project\n\n# If you want full control over the layout of the generated HTML pages it might\n# be necessary to disable the index and replace it with your own. The\n# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top\n# of each HTML page. A value of NO enables the index and the value YES disables\n# it. Since the tabs in the index contain the same information as the navigation\n# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nDISABLE_INDEX          = NO\n\n# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index\n# structure should be generated to display hierarchical information. If the tag\n# value is set to YES, a side panel will be generated containing a tree-like\n# index structure (just like the one that is generated for HTML Help). For this\n# to work a browser that supports JavaScript, DHTML, CSS and frames is required\n# (i.e. any modern browser). Windows users are probably better off using the\n# HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can\n# further fine-tune the look of the index. As an example, the default style\n# sheet generated by doxygen has an example that shows how to put an image at\n# the root of the tree instead of the PROJECT_NAME. Since the tree basically has\n# the same information as the tab index, you could consider setting\n# DISABLE_INDEX to YES when enabling this option.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nGENERATE_TREEVIEW      = NO\n\n# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that\n# doxygen will group on one line in the generated HTML documentation.\n#\n# Note that a value of 0 will completely suppress the enum values from appearing\n# in the overview section.\n# Minimum value: 0, maximum value: 20, default value: 4.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nENUM_VALUES_PER_LINE   = 4\n\n# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used\n# to set the initial width (in pixels) of the frame in which the tree is shown.\n# Minimum value: 0, maximum value: 1500, default value: 250.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nTREEVIEW_WIDTH         = 250\n\n# If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to\n# external symbols imported via tag files in a separate window.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nEXT_LINKS_IN_WINDOW    = NO\n\n# Use this tag to change the font size of LaTeX formulas included as images in\n# the HTML documentation. When you change the font size after a successful\n# doxygen run you need to manually remove any form_*.png images from the HTML\n# output directory to force them to be regenerated.\n# Minimum value: 8, maximum value: 50, default value: 10.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nFORMULA_FONTSIZE       = 10\n\n# Use the FORMULA_TRANPARENT tag to determine whether or not the images\n# generated for formulas are transparent PNGs. Transparent PNGs are not\n# supported properly for IE 6.0, but are supported on all modern browsers.\n#\n# Note that when changing this option you need to delete any form_*.png files in\n# the HTML output directory before the changes have effect.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nFORMULA_TRANSPARENT    = YES\n\n# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see\n# http://www.mathjax.org) which uses client side Javascript for the rendering\n# instead of using pre-rendered bitmaps. Use this if you do not have LaTeX\n# installed or if you want to formulas look prettier in the HTML output. When\n# enabled you may also need to install MathJax separately and configure the path\n# to it using the MATHJAX_RELPATH option.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nUSE_MATHJAX            = NO\n\n# When MathJax is enabled you can set the default output format to be used for\n# the MathJax output. See the MathJax site (see:\n# http://docs.mathjax.org/en/latest/output.html) for more details.\n# Possible values are: HTML-CSS (which is slower, but has the best\n# compatibility), NativeMML (i.e. MathML) and SVG.\n# The default value is: HTML-CSS.\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_FORMAT         = HTML-CSS\n\n# When MathJax is enabled you need to specify the location relative to the HTML\n# output directory using the MATHJAX_RELPATH option. The destination directory\n# should contain the MathJax.js script. For instance, if the mathjax directory\n# is located at the same level as the HTML output directory, then\n# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax\n# Content Delivery Network so you can quickly see the result without installing\n# MathJax. However, it is strongly recommended to install a local copy of\n# MathJax from http://www.mathjax.org before deployment.\n# The default value is: http://cdn.mathjax.org/mathjax/latest.\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_RELPATH        = http://cdn.mathjax.org/mathjax/latest\n\n# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax\n# extension names that should be enabled during MathJax rendering. For example\n# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_EXTENSIONS     = \n\n# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces\n# of code that will be used on startup of the MathJax code. See the MathJax site\n# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an\n# example see the documentation.\n# This tag requires that the tag USE_MATHJAX is set to YES.\n\nMATHJAX_CODEFILE       = \n\n# When the SEARCHENGINE tag is enabled doxygen will generate a search box for\n# the HTML output. The underlying search engine uses javascript and DHTML and\n# should work on any modern browser. Note that when using HTML help\n# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET)\n# there is already a search function so this one should typically be disabled.\n# For large projects the javascript based search engine can be slow, then\n# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to\n# search using the keyboard; to jump to the search box use <access key> + S\n# (what the <access key> is depends on the OS and browser, but it is typically\n# <CTRL>, <ALT>/<option>, or both). Inside the search box use the <cursor down\n# key> to jump into the search results window, the results can be navigated\n# using the <cursor keys>. Press <Enter> to select an item or <escape> to cancel\n# the search. The filter options can be selected when the cursor is inside the\n# search box by pressing <Shift>+<cursor down>. Also here use the <cursor keys>\n# to select a filter and <Enter> or <escape> to activate or cancel the filter\n# option.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_HTML is set to YES.\n\nSEARCHENGINE           = YES\n\n# When the SERVER_BASED_SEARCH tag is enabled the search engine will be\n# implemented using a web server instead of a web client using Javascript. There\n# are two flavors of web server based searching depending on the EXTERNAL_SEARCH\n# setting. When disabled, doxygen will generate a PHP script for searching and\n# an index file used by the script. When EXTERNAL_SEARCH is enabled the indexing\n# and searching needs to be provided by external tools. See the section\n# \"External Indexing and Searching\" for details.\n# The default value is: NO.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nSERVER_BASED_SEARCH    = NO\n\n# When EXTERNAL_SEARCH tag is enabled doxygen will no longer generate the PHP\n# script for searching. Instead the search results are written to an XML file\n# which needs to be processed by an external indexer. Doxygen will invoke an\n# external search engine pointed to by the SEARCHENGINE_URL option to obtain the\n# search results.\n#\n# Doxygen ships with an example indexer (doxyindexer) and search engine\n# (doxysearch.cgi) which are based on the open source search engine library\n# Xapian (see: http://xapian.org/).\n#\n# See the section \"External Indexing and Searching\" for details.\n# The default value is: NO.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nEXTERNAL_SEARCH        = NO\n\n# The SEARCHENGINE_URL should point to a search engine hosted by a web server\n# which will return the search results when EXTERNAL_SEARCH is enabled.\n#\n# Doxygen ships with an example indexer (doxyindexer) and search engine\n# (doxysearch.cgi) which are based on the open source search engine library\n# Xapian (see: http://xapian.org/). See the section \"External Indexing and\n# Searching\" for details.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nSEARCHENGINE_URL       = \n\n# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed\n# search data is written to a file for indexing by an external tool. With the\n# SEARCHDATA_FILE tag the name of this file can be specified.\n# The default file is: searchdata.xml.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nSEARCHDATA_FILE        = searchdata.xml\n\n# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the\n# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is\n# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple\n# projects and redirect the results back to the right project.\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nEXTERNAL_SEARCH_ID     = \n\n# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen\n# projects other than the one defined by this configuration file, but that are\n# all added to the same external search index. Each project needs to have a\n# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id of\n# to a relative location where the documentation can be found. The format is:\n# EXTRA_SEARCH_MAPPINGS = tagname1=loc1 tagname2=loc2 ...\n# This tag requires that the tag SEARCHENGINE is set to YES.\n\nEXTRA_SEARCH_MAPPINGS  = \n\n#---------------------------------------------------------------------------\n# Configuration options related to the LaTeX output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_LATEX tag is set to YES, doxygen will generate LaTeX output.\n# The default value is: YES.\n\nGENERATE_LATEX         = NO\n\n# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: latex.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_OUTPUT           = latex\n\n# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be\n# invoked.\n#\n# Note that when enabling USE_PDFLATEX this option is only used for generating\n# bitmaps for formulas in the HTML output, but not in the Makefile that is\n# written to the output directory.\n# The default file is: latex.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_CMD_NAME         = latex\n\n# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to generate\n# index for LaTeX.\n# The default file is: makeindex.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nMAKEINDEX_CMD_NAME     = makeindex\n\n# If the COMPACT_LATEX tag is set to YES, doxygen generates more compact LaTeX\n# documents. This may be useful for small projects and may help to save some\n# trees in general.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nCOMPACT_LATEX          = NO\n\n# The PAPER_TYPE tag can be used to set the paper type that is used by the\n# printer.\n# Possible values are: a4 (210 x 297 mm), letter (8.5 x 11 inches), legal (8.5 x\n# 14 inches) and executive (7.25 x 10.5 inches).\n# The default value is: a4.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nPAPER_TYPE             = a4\n\n# The EXTRA_PACKAGES tag can be used to specify one or more LaTeX package names\n# that should be included in the LaTeX output. The package can be specified just\n# by its name or with the correct syntax as to be used with the LaTeX\n# \\usepackage command. To get the times font for instance you can specify :\n# EXTRA_PACKAGES=times or EXTRA_PACKAGES={times}\n# To use the option intlimits with the amsmath package you can specify:\n# EXTRA_PACKAGES=[intlimits]{amsmath}\n# If left blank no extra packages will be included.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nEXTRA_PACKAGES         = \n\n# The LATEX_HEADER tag can be used to specify a personal LaTeX header for the\n# generated LaTeX document. The header should contain everything until the first\n# chapter. If it is left blank doxygen will generate a standard header. See\n# section \"Doxygen usage\" for information on how to let doxygen write the\n# default header to a separate file.\n#\n# Note: Only use a user-defined header if you know what you are doing! The\n# following commands have a special meaning inside the header: $title,\n# $datetime, $date, $doxygenversion, $projectname, $projectnumber,\n# $projectbrief, $projectlogo. Doxygen will replace $title with the empty\n# string, for the replacement values of the other commands the user is referred\n# to HTML_HEADER.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_HEADER           = \n\n# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for the\n# generated LaTeX document. The footer should contain everything after the last\n# chapter. If it is left blank doxygen will generate a standard footer. See\n# LATEX_HEADER for more information on how to generate a default footer and what\n# special commands can be used inside the footer.\n#\n# Note: Only use a user-defined footer if you know what you are doing!\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_FOOTER           = \n\n# The LATEX_EXTRA_STYLESHEET tag can be used to specify additional user-defined\n# LaTeX style sheets that are included after the standard style sheets created\n# by doxygen. Using this option one can overrule certain style aspects. Doxygen\n# will copy the style sheet files to the output directory.\n# Note: The order of the extra style sheet files is of importance (e.g. the last\n# style sheet in the list overrules the setting of the previous ones in the\n# list).\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_EXTRA_STYLESHEET = \n\n# The LATEX_EXTRA_FILES tag can be used to specify one or more extra images or\n# other source files which should be copied to the LATEX_OUTPUT output\n# directory. Note that the files will be copied as-is; there are no commands or\n# markers available.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_EXTRA_FILES      = \n\n# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated is\n# prepared for conversion to PDF (using ps2pdf or pdflatex). The PDF file will\n# contain links (just like the HTML output) instead of page references. This\n# makes the output suitable for online browsing using a PDF viewer.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nPDF_HYPERLINKS         = YES\n\n# If the USE_PDFLATEX tag is set to YES, doxygen will use pdflatex to generate\n# the PDF file directly from the LaTeX files. Set this option to YES, to get a\n# higher quality PDF documentation.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nUSE_PDFLATEX           = YES\n\n# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode\n# command to the generated LaTeX files. This will instruct LaTeX to keep running\n# if errors occur, instead of asking the user for help. This option is also used\n# when generating formulas in HTML.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_BATCHMODE        = NO\n\n# If the LATEX_HIDE_INDICES tag is set to YES then doxygen will not include the\n# index chapters (such as File Index, Compound Index, etc.) in the output.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_HIDE_INDICES     = NO\n\n# If the LATEX_SOURCE_CODE tag is set to YES then doxygen will include source\n# code with syntax highlighting in the LaTeX output.\n#\n# Note that which sources are shown also depends on other settings such as\n# SOURCE_BROWSER.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_SOURCE_CODE      = NO\n\n# The LATEX_BIB_STYLE tag can be used to specify the style to use for the\n# bibliography, e.g. plainnat, or ieeetr. See\n# http://en.wikipedia.org/wiki/BibTeX and \\cite for more info.\n# The default value is: plain.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_BIB_STYLE        = plain\n\n# If the LATEX_TIMESTAMP tag is set to YES then the footer of each generated\n# page will contain the date and time when the page was generated. Setting this\n# to NO can help when comparing the output of multiple runs.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_LATEX is set to YES.\n\nLATEX_TIMESTAMP        = NO\n\n#---------------------------------------------------------------------------\n# Configuration options related to the RTF output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_RTF tag is set to YES, doxygen will generate RTF output. The\n# RTF output is optimized for Word 97 and may not look too pretty with other RTF\n# readers/editors.\n# The default value is: NO.\n\nGENERATE_RTF           = NO\n\n# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: rtf.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_OUTPUT             = rtf\n\n# If the COMPACT_RTF tag is set to YES, doxygen generates more compact RTF\n# documents. This may be useful for small projects and may help to save some\n# trees in general.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nCOMPACT_RTF            = NO\n\n# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated will\n# contain hyperlink fields. The RTF file will contain links (just like the HTML\n# output) instead of page references. This makes the output suitable for online\n# browsing using Word or some other Word compatible readers that support those\n# fields.\n#\n# Note: WordPad (write) and others do not support links.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_HYPERLINKS         = NO\n\n# Load stylesheet definitions from file. Syntax is similar to doxygen's config\n# file, i.e. a series of assignments. You only have to provide replacements,\n# missing definitions are set to their default value.\n#\n# See also section \"Doxygen usage\" for information on how to generate the\n# default style sheet that doxygen normally uses.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_STYLESHEET_FILE    = \n\n# Set optional variables used in the generation of an RTF document. Syntax is\n# similar to doxygen's config file. A template extensions file can be generated\n# using doxygen -e rtf extensionFile.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_EXTENSIONS_FILE    = \n\n# If the RTF_SOURCE_CODE tag is set to YES then doxygen will include source code\n# with syntax highlighting in the RTF output.\n#\n# Note that which sources are shown also depends on other settings such as\n# SOURCE_BROWSER.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_RTF is set to YES.\n\nRTF_SOURCE_CODE        = NO\n\n#---------------------------------------------------------------------------\n# Configuration options related to the man page output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_MAN tag is set to YES, doxygen will generate man pages for\n# classes and files.\n# The default value is: NO.\n\nGENERATE_MAN           = NO\n\n# The MAN_OUTPUT tag is used to specify where the man pages will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it. A directory man3 will be created inside the directory specified by\n# MAN_OUTPUT.\n# The default directory is: man.\n# This tag requires that the tag GENERATE_MAN is set to YES.\n\nMAN_OUTPUT             = man\n\n# The MAN_EXTENSION tag determines the extension that is added to the generated\n# man pages. In case the manual section does not start with a number, the number\n# 3 is prepended. The dot (.) at the beginning of the MAN_EXTENSION tag is\n# optional.\n# The default value is: .3.\n# This tag requires that the tag GENERATE_MAN is set to YES.\n\nMAN_EXTENSION          = .3\n\n# The MAN_SUBDIR tag determines the name of the directory created within\n# MAN_OUTPUT in which the man pages are placed. If defaults to man followed by\n# MAN_EXTENSION with the initial . removed.\n# This tag requires that the tag GENERATE_MAN is set to YES.\n\nMAN_SUBDIR             = \n\n# If the MAN_LINKS tag is set to YES and doxygen generates man output, then it\n# will generate one additional man file for each entity documented in the real\n# man page(s). These additional files only source the real man page, but without\n# them the man command would be unable to find the correct page.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_MAN is set to YES.\n\nMAN_LINKS              = NO\n\n#---------------------------------------------------------------------------\n# Configuration options related to the XML output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_XML tag is set to YES, doxygen will generate an XML file that\n# captures the structure of the code including all documentation.\n# The default value is: NO.\n\nGENERATE_XML           = NO\n\n# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a\n# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of\n# it.\n# The default directory is: xml.\n# This tag requires that the tag GENERATE_XML is set to YES.\n\nXML_OUTPUT             = xml\n\n# If the XML_PROGRAMLISTING tag is set to YES, doxygen will dump the program\n# listings (including syntax highlighting and cross-referencing information) to\n# the XML output. Note that enabling this will significantly increase the size\n# of the XML output.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_XML is set to YES.\n\nXML_PROGRAMLISTING     = YES\n\n#---------------------------------------------------------------------------\n# Configuration options related to the DOCBOOK output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_DOCBOOK tag is set to YES, doxygen will generate Docbook files\n# that can be used to generate PDF.\n# The default value is: NO.\n\nGENERATE_DOCBOOK       = NO\n\n# The DOCBOOK_OUTPUT tag is used to specify where the Docbook pages will be put.\n# If a relative path is entered the value of OUTPUT_DIRECTORY will be put in\n# front of it.\n# The default directory is: docbook.\n# This tag requires that the tag GENERATE_DOCBOOK is set to YES.\n\nDOCBOOK_OUTPUT         = docbook\n\n# If the DOCBOOK_PROGRAMLISTING tag is set to YES, doxygen will include the\n# program listings (including syntax highlighting and cross-referencing\n# information) to the DOCBOOK output. Note that enabling this will significantly\n# increase the size of the DOCBOOK output.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_DOCBOOK is set to YES.\n\nDOCBOOK_PROGRAMLISTING = NO\n\n#---------------------------------------------------------------------------\n# Configuration options for the AutoGen Definitions output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_AUTOGEN_DEF tag is set to YES, doxygen will generate an\n# AutoGen Definitions (see http://autogen.sf.net) file that captures the\n# structure of the code including all documentation. Note that this feature is\n# still experimental and incomplete at the moment.\n# The default value is: NO.\n\nGENERATE_AUTOGEN_DEF   = NO\n\n#---------------------------------------------------------------------------\n# Configuration options related to the Perl module output\n#---------------------------------------------------------------------------\n\n# If the GENERATE_PERLMOD tag is set to YES, doxygen will generate a Perl module\n# file that captures the structure of the code including all documentation.\n#\n# Note that this feature is still experimental and incomplete at the moment.\n# The default value is: NO.\n\nGENERATE_PERLMOD       = NO\n\n# If the PERLMOD_LATEX tag is set to YES, doxygen will generate the necessary\n# Makefile rules, Perl scripts and LaTeX code to be able to generate PDF and DVI\n# output from the Perl module output.\n# The default value is: NO.\n# This tag requires that the tag GENERATE_PERLMOD is set to YES.\n\nPERLMOD_LATEX          = NO\n\n# If the PERLMOD_PRETTY tag is set to YES, the Perl module output will be nicely\n# formatted so it can be parsed by a human reader. This is useful if you want to\n# understand what is going on. On the other hand, if this tag is set to NO, the\n# size of the Perl module output will be much smaller and Perl will parse it\n# just the same.\n# The default value is: YES.\n# This tag requires that the tag GENERATE_PERLMOD is set to YES.\n\nPERLMOD_PRETTY         = YES\n\n# The names of the make variables in the generated doxyrules.make file are\n# prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. This is useful\n# so different doxyrules.make files included by the same Makefile don't\n# overwrite each other's variables.\n# This tag requires that the tag GENERATE_PERLMOD is set to YES.\n\nPERLMOD_MAKEVAR_PREFIX = \n\n#---------------------------------------------------------------------------\n# Configuration options related to the preprocessor\n#---------------------------------------------------------------------------\n\n# If the ENABLE_PREPROCESSING tag is set to YES, doxygen will evaluate all\n# C-preprocessor directives found in the sources and include files.\n# The default value is: YES.\n\nENABLE_PREPROCESSING   = YES\n\n# If the MACRO_EXPANSION tag is set to YES, doxygen will expand all macro names\n# in the source code. If set to NO, only conditional compilation will be\n# performed. Macro expansion can be done in a controlled way by setting\n# EXPAND_ONLY_PREDEF to YES.\n# The default value is: NO.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nMACRO_EXPANSION        = YES\n\n# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then\n# the macro expansion is limited to the macros specified with the PREDEFINED and\n# EXPAND_AS_DEFINED tags.\n# The default value is: NO.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nEXPAND_ONLY_PREDEF     = NO\n\n# If the SEARCH_INCLUDES tag is set to YES, the include files in the\n# INCLUDE_PATH will be searched if a #include is found.\n# The default value is: YES.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nSEARCH_INCLUDES        = YES\n\n# The INCLUDE_PATH tag can be used to specify one or more directories that\n# contain include files that are not input files but should be processed by the\n# preprocessor.\n# This tag requires that the tag SEARCH_INCLUDES is set to YES.\n\nINCLUDE_PATH           = \n\n# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard\n# patterns (like *.h and *.hpp) to filter out the header-files in the\n# directories. If left blank, the patterns specified with FILE_PATTERNS will be\n# used.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nINCLUDE_FILE_PATTERNS  = \n\n# The PREDEFINED tag can be used to specify one or more macro names that are\n# defined before the preprocessor is started (similar to the -D option of e.g.\n# gcc). The argument of the tag is a list of macros of the form: name or\n# name=definition (no spaces). If the definition and the \"=\" are omitted, \"=1\"\n# is assumed. To prevent a macro definition from being undefined via #undef or\n# recursively expanded use the := operator instead of the = operator.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nPREDEFINED             = \n\n# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this\n# tag can be used to specify a list of macro names that should be expanded. The\n# macro definition that is found in the sources will be used. Use the PREDEFINED\n# tag if you want to use a different macro definition that overrules the\n# definition found in the source code.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nEXPAND_AS_DEFINED      = \n\n# If the SKIP_FUNCTION_MACROS tag is set to YES then doxygen's preprocessor will\n# remove all references to function-like macros that are alone on a line, have\n# an all uppercase name, and do not end with a semicolon. Such function macros\n# are typically used for boiler-plate code, and will confuse the parser if not\n# removed.\n# The default value is: YES.\n# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.\n\nSKIP_FUNCTION_MACROS   = YES\n\n#---------------------------------------------------------------------------\n# Configuration options related to external references\n#---------------------------------------------------------------------------\n\n# The TAGFILES tag can be used to specify one or more tag files. For each tag\n# file the location of the external documentation should be added. The format of\n# a tag file without this location is as follows:\n# TAGFILES = file1 file2 ...\n# Adding location for the tag files is done as follows:\n# TAGFILES = file1=loc1 \"file2 = loc2\" ...\n# where loc1 and loc2 can be relative or absolute paths or URLs. See the\n# section \"Linking to external documentation\" for more information about the use\n# of tag files.\n# Note: Each tag file must have a unique name (where the name does NOT include\n# the path). If a tag file is not located in the directory in which doxygen is\n# run, you must also specify the path to the tagfile here.\n\nTAGFILES               = \n\n# When a file name is specified after GENERATE_TAGFILE, doxygen will create a\n# tag file that is based on the input files it reads. See section \"Linking to\n# external documentation\" for more information about the usage of tag files.\n\nGENERATE_TAGFILE       = \n\n# If the ALLEXTERNALS tag is set to YES, all external class will be listed in\n# the class index. If set to NO, only the inherited external classes will be\n# listed.\n# The default value is: NO.\n\nALLEXTERNALS           = NO\n\n# If the EXTERNAL_GROUPS tag is set to YES, all external groups will be listed\n# in the modules index. If set to NO, only the current project's groups will be\n# listed.\n# The default value is: YES.\n\nEXTERNAL_GROUPS        = YES\n\n# If the EXTERNAL_PAGES tag is set to YES, all external pages will be listed in\n# the related pages index. If set to NO, only the current project's pages will\n# be listed.\n# The default value is: YES.\n\nEXTERNAL_PAGES         = YES\n\n# The PERL_PATH should be the absolute path and name of the perl script\n# interpreter (i.e. the result of 'which perl').\n# The default file (with absolute path) is: /usr/bin/perl.\n\nPERL_PATH              = /usr/bin/perl\n\n#---------------------------------------------------------------------------\n# Configuration options related to the dot tool\n#---------------------------------------------------------------------------\n\n# If the CLASS_DIAGRAMS tag is set to YES, doxygen will generate a class diagram\n# (in HTML and LaTeX) for classes with base or super classes. Setting the tag to\n# NO turns the diagrams off. Note that this option also works with HAVE_DOT\n# disabled, but it is recommended to install and use dot, since it yields more\n# powerful graphs.\n# The default value is: YES.\n\nCLASS_DIAGRAMS         = YES\n\n# You can define message sequence charts within doxygen comments using the \\msc\n# command. Doxygen will then run the mscgen tool (see:\n# http://www.mcternan.me.uk/mscgen/)) to produce the chart and insert it in the\n# documentation. The MSCGEN_PATH tag allows you to specify the directory where\n# the mscgen tool resides. If left empty the tool is assumed to be found in the\n# default search path.\n\nMSCGEN_PATH            = \n\n# You can include diagrams made with dia in doxygen documentation. Doxygen will\n# then run dia to produce the diagram and insert it in the documentation. The\n# DIA_PATH tag allows you to specify the directory where the dia binary resides.\n# If left empty dia is assumed to be found in the default search path.\n\nDIA_PATH               = \n\n# If set to YES the inheritance and collaboration graphs will hide inheritance\n# and usage relations if the target is undocumented or is not a class.\n# The default value is: YES.\n\nHIDE_UNDOC_RELATIONS   = YES\n\n# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is\n# available from the path. This tool is part of Graphviz (see:\n# http://www.graphviz.org/), a graph visualization toolkit from AT&T and Lucent\n# Bell Labs. The other options in this section have no effect if this option is\n# set to NO\n# The default value is: NO.\n\nHAVE_DOT               = NO\n\n# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is allowed\n# to run in parallel. When set to 0 doxygen will base this on the number of\n# processors available in the system. You can set it explicitly to a value\n# larger than 0 to get control over the balance between CPU load and processing\n# speed.\n# Minimum value: 0, maximum value: 32, default value: 0.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_NUM_THREADS        = 0\n\n# When you want a differently looking font in the dot files that doxygen\n# generates you can specify the font name using DOT_FONTNAME. You need to make\n# sure dot is able to find the font, which can be done by putting it in a\n# standard location or by setting the DOTFONTPATH environment variable or by\n# setting DOT_FONTPATH to the directory containing the font.\n# The default value is: Helvetica.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_FONTNAME           = Helvetica\n\n# The DOT_FONTSIZE tag can be used to set the size (in points) of the font of\n# dot graphs.\n# Minimum value: 4, maximum value: 24, default value: 10.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_FONTSIZE           = 10\n\n# By default doxygen will tell dot to use the default font as specified with\n# DOT_FONTNAME. If you specify a different font using DOT_FONTNAME you can set\n# the path where dot can find it using this tag.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_FONTPATH           = \n\n# If the CLASS_GRAPH tag is set to YES then doxygen will generate a graph for\n# each documented class showing the direct and indirect inheritance relations.\n# Setting this tag to YES will force the CLASS_DIAGRAMS tag to NO.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCLASS_GRAPH            = YES\n\n# If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a\n# graph for each documented class showing the direct and indirect implementation\n# dependencies (inheritance, containment, and class references variables) of the\n# class with other documented classes.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCOLLABORATION_GRAPH    = YES\n\n# If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for\n# groups, showing the direct groups dependencies.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nGROUP_GRAPHS           = YES\n\n# If the UML_LOOK tag is set to YES, doxygen will generate inheritance and\n# collaboration diagrams in a style similar to the OMG's Unified Modeling\n# Language.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nUML_LOOK               = NO\n\n# If the UML_LOOK tag is enabled, the fields and methods are shown inside the\n# class node. If there are many fields or methods and many nodes the graph may\n# become too big to be useful. The UML_LIMIT_NUM_FIELDS threshold limits the\n# number of items for each type to make the size more manageable. Set this to 0\n# for no limit. Note that the threshold may be exceeded by 50% before the limit\n# is enforced. So when you set the threshold to 10, up to 15 fields may appear,\n# but if the number exceeds 15, the total amount of fields shown is limited to\n# 10.\n# Minimum value: 0, maximum value: 100, default value: 10.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nUML_LIMIT_NUM_FIELDS   = 10\n\n# If the TEMPLATE_RELATIONS tag is set to YES then the inheritance and\n# collaboration graphs will show the relations between templates and their\n# instances.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nTEMPLATE_RELATIONS     = NO\n\n# If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to\n# YES then doxygen will generate a graph for each documented file showing the\n# direct and indirect include dependencies of the file with other documented\n# files.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nINCLUDE_GRAPH          = YES\n\n# If the INCLUDED_BY_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are\n# set to YES then doxygen will generate a graph for each documented file showing\n# the direct and indirect include dependencies of the file with other documented\n# files.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nINCLUDED_BY_GRAPH      = YES\n\n# If the CALL_GRAPH tag is set to YES then doxygen will generate a call\n# dependency graph for every global function or class method.\n#\n# Note that enabling this option will significantly increase the time of a run.\n# So in most cases it will be better to enable call graphs for selected\n# functions only using the \\callgraph command. Disabling a call graph can be\n# accomplished by means of the command \\hidecallgraph.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCALL_GRAPH             = NO\n\n# If the CALLER_GRAPH tag is set to YES then doxygen will generate a caller\n# dependency graph for every global function or class method.\n#\n# Note that enabling this option will significantly increase the time of a run.\n# So in most cases it will be better to enable caller graphs for selected\n# functions only using the \\callergraph command. Disabling a caller graph can be\n# accomplished by means of the command \\hidecallergraph.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nCALLER_GRAPH           = NO\n\n# If the GRAPHICAL_HIERARCHY tag is set to YES then doxygen will graphical\n# hierarchy of all classes instead of a textual one.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nGRAPHICAL_HIERARCHY    = YES\n\n# If the DIRECTORY_GRAPH tag is set to YES then doxygen will show the\n# dependencies a directory has on other directories in a graphical way. The\n# dependency relations are determined by the #include relations between the\n# files in the directories.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDIRECTORY_GRAPH        = YES\n\n# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images\n# generated by dot. For an explanation of the image formats see the section\n# output formats in the documentation of the dot tool (Graphviz (see:\n# http://www.graphviz.org/)).\n# Note: If you choose svg you need to set HTML_FILE_EXTENSION to xhtml in order\n# to make the SVG files visible in IE 9+ (other browsers do not have this\n# requirement).\n# Possible values are: png, jpg, gif, svg, png:gd, png:gd:gd, png:cairo,\n# png:cairo:gd, png:cairo:cairo, png:cairo:gdiplus, png:gdiplus and\n# png:gdiplus:gdiplus.\n# The default value is: png.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_IMAGE_FORMAT       = png\n\n# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to\n# enable generation of interactive SVG images that allow zooming and panning.\n#\n# Note that this requires a modern browser other than Internet Explorer. Tested\n# and working are Firefox, Chrome, Safari, and Opera.\n# Note: For IE 9+ you need to set HTML_FILE_EXTENSION to xhtml in order to make\n# the SVG files visible. Older versions of IE do not have SVG support.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nINTERACTIVE_SVG        = NO\n\n# The DOT_PATH tag can be used to specify the path where the dot tool can be\n# found. If left blank, it is assumed the dot tool can be found in the path.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_PATH               = \n\n# The DOTFILE_DIRS tag can be used to specify one or more directories that\n# contain dot files that are included in the documentation (see the \\dotfile\n# command).\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOTFILE_DIRS           = \n\n# The MSCFILE_DIRS tag can be used to specify one or more directories that\n# contain msc files that are included in the documentation (see the \\mscfile\n# command).\n\nMSCFILE_DIRS           = \n\n# The DIAFILE_DIRS tag can be used to specify one or more directories that\n# contain dia files that are included in the documentation (see the \\diafile\n# command).\n\nDIAFILE_DIRS           = \n\n# When using plantuml, the PLANTUML_JAR_PATH tag should be used to specify the\n# path where java can find the plantuml.jar file. If left blank, it is assumed\n# PlantUML is not used or called during a preprocessing step. Doxygen will\n# generate a warning when it encounters a \\startuml command in this case and\n# will not generate output for the diagram.\n\nPLANTUML_JAR_PATH      = \n\n# When using plantuml, the specified paths are searched for files specified by\n# the !include statement in a plantuml block.\n\nPLANTUML_INCLUDE_PATH  = \n\n# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of nodes\n# that will be shown in the graph. If the number of nodes in a graph becomes\n# larger than this value, doxygen will truncate the graph, which is visualized\n# by representing a node as a red box. Note that doxygen if the number of direct\n# children of the root node in a graph is already larger than\n# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note that\n# the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.\n# Minimum value: 0, maximum value: 10000, default value: 50.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_GRAPH_MAX_NODES    = 50\n\n# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs\n# generated by dot. A depth value of 3 means that only nodes reachable from the\n# root by following a path via at most 3 edges will be shown. Nodes that lay\n# further from the root node will be omitted. Note that setting this option to 1\n# or 2 may greatly reduce the computation time needed for large code bases. Also\n# note that the size of a graph can be further restricted by\n# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.\n# Minimum value: 0, maximum value: 1000, default value: 0.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nMAX_DOT_GRAPH_DEPTH    = 0\n\n# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent\n# background. This is disabled by default, because dot on Windows does not seem\n# to support this out of the box.\n#\n# Warning: Depending on the platform used, enabling this option may lead to\n# badly anti-aliased labels on the edges of a graph (i.e. they become hard to\n# read).\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_TRANSPARENT        = NO\n\n# Set the DOT_MULTI_TARGETS tag to YES to allow dot to generate multiple output\n# files in one run (i.e. multiple -o and -T options on the command line). This\n# makes dot run faster, but since only newer versions of dot (>1.8.10) support\n# this, this feature is disabled by default.\n# The default value is: NO.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_MULTI_TARGETS      = NO\n\n# If the GENERATE_LEGEND tag is set to YES doxygen will generate a legend page\n# explaining the meaning of the various boxes and arrows in the dot generated\n# graphs.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nGENERATE_LEGEND        = YES\n\n# If the DOT_CLEANUP tag is set to YES, doxygen will remove the intermediate dot\n# files that are used to generate the various graphs.\n# The default value is: YES.\n# This tag requires that the tag HAVE_DOT is set to YES.\n\nDOT_CLEANUP            = YES\n"
  },
  {
    "path": "doc/config/startpage.md",
    "content": "# Introduction\r\n\r\nThe QDriverStation is a cross-platform and open-source alternative to the FRC Driver Station. It allows you to operate FRC robots with the major operating systems (Windows, Mac OSX and GNU/Linux). The QDriverStation is able to operate both 2009-2014 robots and 2015-2016 robots.\r\n\r\nThe QDriverStation uses LibDS to handle computer-to-robot and computer-to-FMS communications efficiently.\r\n\r\n### Install notes\r\n\r\nYou can download the QDriverStation from both SourceForge and GitHub. We recommend you to download QDriverStation from GitHub, since SourceForge is known for serving misleading advertisements.\r\n\r\nOnce you finish installing the software, you can launch it and begin driving your robot. Just be sure to input your team number and to verify that the joysticks are working correctly.\r\n\r\nMac users will be prompted to download an additional driver for Xbox 360 controllers to work.\r\n\r\n### Build instructions\r\n\r\n#### Requirements\r\n\r\nThe only requirement to compile the application is to have Qt installed in your system. The desktop application will compile with Qt 5.2 or greater.\r\n\r\n- If you are using Linux, make sure that you have installed the following packages:\r\n    - libsdl2-dev\r\n\r\nThe project already contains the compiled SDL libraries for Windows and Mac.\r\n\r\n#### Compiling the application\r\n\r\nOnce you have Qt installed, open *QDriverStation.pro* in Qt Creator and click the \"Run\" button.\r\n\r\nAlternatively, you can also use the following commands:\r\n- qmake\r\n- make\r\n- **Optional:** sudo make install\r\n\r\n### License\r\n\r\nThe QDriverStation is released under the MIT license.\r\n"
  },
  {
    "path": "etc/deploy/linux/qdriverstation.desktop",
    "content": "[Desktop Entry]\nName=QDriverStation\nComment=Cross-platform clone of the FRC Driver Station\nExec=qdriverstation\nTerminal=false\nType=Application\nStartupNotify=true\nCategories=Development;Education;Qt;Robotics;Utility;\nIcon=qdriverstation\n"
  },
  {
    "path": "etc/deploy/macOS/info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>English</string>\n\t<key>CFBundleExecutable</key>\n\t<string>QDriverStation</string>\n\t<key>CFBundleGetInfoString</key>\n\t<string>Copyright © 2015-2021 Alex Spataru</string>\n\t<key>CFBundleIconFile</key>\n\t<string>icon</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>org.frc-utilities.qdriverstation</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>QDriverStation</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>21.04</string>\n\t<key>LSHasLocalizedDisplayName</key>\n\t<true/>\n\t<key>NSPrincipalClass</key>\n\t<string>NSApplication</string>\n\t<key>NSSupportsSuddenTermination</key>\n\t<false/>\n</dict>\n</plist>\n"
  },
  {
    "path": "etc/deploy/windows/nsis/setup.nsi",
    "content": ";\n;  Copyright (c) 2021 Alex Spataru <alex-spataru.com>\n;\n;  This program is free software; you can redistribute it and/or modify\n;  it under the terms of the GNU General Public License as published by\n;  the Free Software Foundation; either version 3 of the License, or\n;  (at your option) any later version.\n;\n;  This program is distributed in the hope that it will be useful,\n;  but WITHOUT ANY WARRANTY; without even the implied warranty of\n;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;  GNU General Public License for more details.\n;\n;  You should have received a copy of the GNU General Public License\n;  along with this program; if not, write to the Free Software\n;  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301\n;  USA\n;\n\nUnicode True\n\n!include \"MUI2.nsh\"\n!include \"FileFunc.nsh\"\n!include \"LogicLib.nsh\"\n\n!define APPNAME                      \"QDriverStation\"\n!define EXECNAME                     \"QDriverStation\"\n!define COMPANYNAME                  \"Alex Spataru\"\n!define DESCRIPTION                  \"Cross-platform clone of the FRC Driver Station\"\n!define VERSIONMAJOR                 21\n!define VERSIONMINOR                 04\n!define VERSIONBUILD                 0\n!define MUI_ABORTWARNING\n!define INSTALL_DIR                  \"$PROGRAMFILES64\\${APPNAME}\"\n!define MUI_FINISHPAGE_RUN\n!define MUI_FINISHPAGE_RUN_TEXT      \"Run ${APPNAME}\"\n!define MUI_FINISHPAGE_RUN_FUNCTION  \"RunApplication\"\n!define MUI_FINISHPAGE_LINK          \"Visit project website\"\n!define MUI_FINISHPAGE_LINK_LOCATION \"http://frc-utilities.github.io/\"\n!define MUI_WELCOMEPAGE_TITLE        \"Welcome to the ${APPNAME} installer!\"\n\n!insertmacro MUI_PAGE_WELCOME\n!insertmacro MUI_PAGE_DIRECTORY\n!insertmacro MUI_PAGE_INSTFILES\n!insertmacro MUI_PAGE_FINISH\n!insertmacro MUI_UNPAGE_WELCOME\n!insertmacro MUI_UNPAGE_CONFIRM\n!insertmacro MUI_UNPAGE_INSTFILES\n!insertmacro MUI_LANGUAGE \"English\"\n\n!macro VerifyUserIsAdmin\nUserInfo::GetAccountType\npop $0\n${If} $0 != \"admin\"\n        messageBox mb_iconstop \"Administrator rights required!\"\n        setErrorLevel 740\n        quit\n${EndIf}\n!macroend\n\nName \"${APPNAME}\"\nManifestDPIAware true\nInstallDir \"${INSTALL_DIR}\"\nRequestExecutionLevel admin\nOutFile \"${EXECNAME}-${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}-Windows.exe\"\n\t\nFunction .onInit\n\tsetShellVarContext all\n\t!insertmacro VerifyUserIsAdmin\nFunctionEnd\n\nSection \"${APPNAME} (required)\" SecDummy\n  SectionIn RO\n  SetOutPath \"${INSTALL_DIR}\"\n  File /r \"${APPNAME}\\*\"\n  \n  ${GetSize} \"$INSTDIR\" \"/S=0K\" $0 $1 $2\n  IntFmt $0 \"0x%08X\" $0\n  \n  DeleteRegKey HKCU \"Software\\${COMPANYNAME}\\${APPNAME}\"\n  DeleteRegKey HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\"\n\n  WriteUninstaller \"${INSTALL_DIR}\\uninstall.exe\"\n  WriteRegStr   HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\" \"DisplayName\"      \"${APPNAME}\"\n  WriteRegStr   HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\" \"UninstallString\"  \"${INSTALL_DIR}\\uninstall.exe\"\n  WriteRegStr   HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\" \"InstallLocation\"  \"${INSTALL_DIR}\"\n  WriteRegStr   HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\" \"Publisher\"        \"${COMPANYNAME}\"\n  WriteRegStr   HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\" \"DisplayIcon\"      \"${INSTALL_DIR}\\icon.ico\"\n  WriteRegStr   HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\" \"DisplayVersion\"   ${VERSIONMAJOR}.${VERSIONMINOR}${VERSIONBUILD}\n  WriteRegDWORD HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\" \"VersionMajor\"     ${VERSIONMAJOR}\n  WriteRegDWORD HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\" \"VersionMinor\"     ${VERSIONMINOR}\n  WriteRegDWORD HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\" \"NoModify\"         1\n  WriteRegDWORD HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\" \"NoRepair\"         1\n  WriteRegDWORD HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\" \"EstimatedSize\"    \"$0\"\nSectionEnd\n\nSection \"Start Menu Shortcuts\"\n  CreateShortCut  \"$SMPROGRAMS\\${APPNAME}.lnk\" \"${INSTALL_DIR}\\bin\\${EXECNAME}.exe\" \"\" \"${INSTALL_DIR}\\bin\\${EXECNAME}.exe\" 0\nSectionEnd\n\nSection \"Install Visual C++ Redistributable\"\n  ExecWait \"${INSTALL_DIR}\\bin\\vc_redist.x64.exe /quiet /norestart\"\n  Delete \"${INSTALL_DIR}\\bin\\vc_redist.x64.exe\"\nSectionEnd\n\nFunction RunApplication\n  ExecShell \"\" \"${INSTALL_DIR}\\bin\\${EXECNAME}.exe\"\nFunctionEnd\n\nFunction un.onInit\n\tSetShellVarContext all\n\tMessageBox MB_OKCANCEL|MB_ICONQUESTION \"Are you sure that you want to uninstall ${APPNAME}?\" IDOK next\n\t\tAbort\n\tnext:\n\t!insertmacro VerifyUserIsAdmin\nFunctionEnd\n\nSection \"Uninstall\"\n  RMDir /r \"${INSTALL_DIR}\"\n  RMDir /r \"$SMPROGRAMS\\${APPNAME}.lnk\"\n  DeleteRegKey HKCU \"Software\\${COMPANYNAME}\\${APPNAME}\"\n  DeleteRegKey HKLM \"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\${COMPANYNAME} ${APPNAME}\"\nSectionEnd\n"
  },
  {
    "path": "etc/deploy/windows/resources/info.rc",
    "content": "IDI_ICON1               ICON    DISCARDABLE     \"icon.ico\"\r\n"
  },
  {
    "path": "etc/resources/resources.qrc",
    "content": "<RCC>\n    <qresource prefix=\"/\">\n        <file>fonts/FontAwesome.ttf</file>\n        <file>fonts/Ubuntu-Bold.ttf</file>\n        <file>fonts/UbuntuMono.ttf</file>\n        <file>fonts/Ubuntu-Regular.ttf</file>\n    </qresource>\n</RCC>\n"
  },
  {
    "path": "qml/Dialogs/SettingsWindow.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Window 2.0\nimport QtQuick.Layouts 1.0\nimport Qt.labs.settings 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nWindow {\n    id: window\n    visible: false\n    width: minimumWidth\n    height: minimumHeight\n    title: qsTr (\"Settings\")\n    minimumWidth: Globals.scale (420)\n    maximumWidth: Globals.scale (420)\n    minimumHeight: Globals.scale (340)\n    maximumHeight: Globals.scale (340)\n    color: Globals.Colors.WindowBackground\n\n    //\n    // Used to obtain the placeholder of each custom IP box\n    //\n    function getPlaceholder (ip) {\n        return ip === \"\" ? qsTr (\"Auto\") : ip\n    }\n\n    //\n    // Changes the placeholder text of each custom IP box\n    //\n    function updatePlaceholders() {\n        fmsAddress.placeholder = getPlaceholder (CppDS.defaultFMSAddress)\n        radioAddress.placeholder = getPlaceholder (CppDS.defaultRadioAddress)\n        robotAddress.placeholder = getPlaceholder (CppDS.defaultRobotAddress)\n    }\n\n    //\n    // Default window position\n    //\n    x: (Screen.width - width) / 4\n    y: (Screen.height - height) / 4\n\n    //\n    // Set window flags\n    //\n    flags: Qt.Window |\n           Qt.WindowTitleHint |\n           Qt.WindowSystemMenuHint |\n           Qt.WindowCloseButtonHint |\n           Qt.WindowMinimizeButtonHint\n\n    //\n    // Applies the UI settings...\n    //\n    function apply() {\n        updatePlaceholders()\n        CppBeeper.setEnabled (enableSoundEffects.checked)\n        CppUtilities.setAutoScaleEnabled (autoScale.checked)\n\t\t\n        CppDS.customFMSAddress = fmsAddress.text\n        CppDS.customRadioAddress = radioAddress.text\n        CppDS.customRobotAddress = robotAddress.text\n    }\n\n    //\n    // Apply settings on launch\n    //\n    Component.onCompleted: {\n        apply()\n        CppBeeper.setEnabled (enableSoundEffects.checked)\n    }\n\n    //\n    // Configure DS on init\n    //\n    Connections {\n        target: CppDS\n        function onProtocolChanged() {\n            apply()\n        }\n\n        function onTeamNumberChanged() {\n            updatePlaceholders()\n        }\n    }\n\n    //\n    // Save and load the settings\n    //\n    Settings {\n        category: \"SettingsWindow\"\n        property alias x: window.x\n        property alias y: window.y\n        property alias address: robotAddress.text\n        property alias autoScale: autoScale.checked\n        property alias enableSoundEffects: enableSoundEffects.checked\n    }\n\n    //\n    // All the widgets of this window are placed in a column\n    //\n    ColumnLayout {\n        anchors.fill: parent\n        anchors.margins: Globals.spacing\n\n        //\n        // All the controls that indicate or change preferences\n        //\n        Panel {\n            Layout.fillWidth: true\n            Layout.fillHeight: true\n\n            ColumnLayout {\n                anchors.fill: parent\n                spacing: Globals.spacing\n                anchors.margins: Globals.spacing * 1.5\n\n                //\n                // Network settings label\n                //\n                Label {\n                    font.bold: true\n                    text: qsTr (\"Custom network addresses\") + \":\"\n                }\n\n                //\n                // Network settings controls\n                //\n                RowLayout {\n                    Layout.fillWidth: true\n                    spacing: Globals.spacing\n\n                    //\n                    // Networking icon\n                    //\n                    Icon {\n                        name: icons.fa_laptop\n                        size: Globals.scale (48)\n                        Layout.minimumWidth: 2 * size\n                    }\n\n                    //\n                    // Network settings checkbox & line edit\n                    //\n                    GridLayout {\n                        columns: 2\n                        rowSpacing: Globals.spacing\n                        columnSpacing: Globals.spacing\n\n                        Label {\n                            text: qsTr (\"FMS\") + \":\"\n                        }\n\n                        LineEdit {\n                            id: fmsAddress\n                            Layout.fillWidth: true\n                        }\n\n                        Label {\n                            text: qsTr (\"Radio\") + \":\"\n                        }\n\n                        LineEdit {\n                            id: radioAddress\n                            Layout.fillWidth: true\n                        }\n\n                        Label {\n                            text: qsTr (\"Robot\") + \":\"\n                        }\n\n                        LineEdit {\n                            id: robotAddress\n                            Layout.fillWidth: true\n                        }\n                    }\n                }\n\n                Item {\n                    height: Globals.spacing * 2\n                }\n\n                //\n                // \"Other Settings\" label\n                //\n                Label {\n                    font.bold: true\n                    text: qsTr (\"Other Settings\") + \":\"\n                }\n\n                //\n                // \"Other settings\" controls\n                //\n                RowLayout {\n                    Layout.fillWidth: true\n                    spacing: Globals.spacing\n\n                    //\n                    // Gears icon\n                    //\n                    Icon {\n                        name: icons.fa_sliders\n                        size: Globals.scale (48)\n                        Layout.minimumWidth: 2 * size\n                    }\n\n                    //\n                    // Misc. settings\n                    //\n                    ColumnLayout {\n                        spacing: Globals.spacing\n\n                        Checkbox {\n                            checked: true\n                            id: enableSoundEffects\n                            text: qsTr (\"Enable UI sound effects\")\n                        }\n\n                        Checkbox {\n                            checked: true\n                            id: autoScale\n                            text: qsTr (\"Auto-scale text and UI items\")\n                        }\n                    }\n                }  \n\n                Item {\n                    Layout.fillHeight: true\n                }\n            }\n        }\n\n        //\n        // Dialog buttons\n        //\n        RowLayout {\n            Layout.fillWidth: true\n\n            Item {\n                Layout.fillWidth: true\n            }\n\n            Button {\n                text: qsTr (\"OK\")\n                onClicked: {\n                    apply()\n                    close()\n                }\n            }\n\n            Button {\n                text: qsTr (\"Apply\")\n                onClicked: apply()\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "qml/Dialogs/VirtualJoystickWindow.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Window 2.0\nimport QtQuick.Layouts 1.0\nimport Qt.labs.settings 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nWindow {\n    id: window\n\n    //\n    // Window size\n    //\n    width: minimumWidth\n    height: minimumHeight\n    minimumWidth: Globals.scale (460)\n    maximumWidth: Globals.scale (460)\n    minimumHeight: Globals.scale (320)\n    maximumHeight: Globals.scale (320)\n\n    //\n    // Default window position\n    //\n    x: (Screen.width - width) / 4\n    y: (Screen.height - height) / 4\n\n    //\n    // Window properties\n    //\n    visible: false\n    color: Globals.Colors.WindowBackground\n    title: qsTr (\"Virtual Joystick Options\")\n\n    //\n    // Set window flags\n    //\n    flags: Qt.Window |\n           Qt.WindowTitleHint |\n           Qt.WindowSystemMenuHint |\n           Qt.WindowCloseButtonHint |\n           Qt.WindowMinimizeButtonHint\n\n    //\n    // Save settings\n    //\n    Settings {\n        category: \"VirtualJoystick\"\n        property alias x: window.x\n        property alias y: window.y\n        property alias range: spin.value\n        property alias enabled: checkbox.checked\n    }\n\n    //\n    // Apply saved settings into QJoysticks\n    //\n    Component.onCompleted: {\n        QJoysticks.setVirtualJoystickRange (spin.value / 100)\n        QJoysticks.setVirtualJoystickEnabled (checkbox.checked)\n    }\n\n    //\n    // Window controls\n    //\n    ColumnLayout {\n        anchors.fill: parent\n        spacing: Globals.spacing\n        anchors.margins: Globals.spacing\n\n        Label {\n            text: qsTr (\"Keyboard assignments\") + \":\"\n        }\n\n        //\n        // Keyboard assignments tables\n        //\n        RowLayout {\n            Layout.fillWidth: true\n            Layout.fillHeight: true\n            spacing: Globals.spacing\n\n            //\n            // Function table\n            //\n            TextEditor {\n                enabled: false\n                Layout.fillWidth: true\n                Layout.fillHeight: true\n\n                Component.onCompleted: {\n                    editor.append (qsTr (\"Joystick Buttons\"))\n                    editor.append (qsTr (\"Primary Thumb (axes 0 and 1)\"))\n                    editor.append (qsTr (\"Left Trigger (axis 2)\"))\n                    editor.append (qsTr (\"Right Trigger (axis 3)\"))\n                    editor.append (qsTr (\"Secondary Thumb (axes 4 and 5)\"))\n                    editor.append (qsTr (\"POV Hat\"))\n                }\n            }\n\n            //\n            // Keyboard keys table\n            //\n            TextEditor {\n                enabled: false\n                Layout.fillWidth: true\n                Layout.fillHeight: true\n\n                Component.onCompleted: {\n                    editor.append (qsTr (\"0,1,2,3,4,5,6,7,8,9\"))\n                    editor.append (qsTr (\"W,A,S,D\"))\n                    editor.append (qsTr (\"Q & E\"))\n                    editor.append (qsTr (\"U & O\"))\n                    editor.append (qsTr (\"I,J,K,L\"))\n                    editor.append (qsTr (\"Arrows\"))\n                }\n            }\n        }\n\n        Label {\n            text: qsTr (\"Axis range\") + \":\"\n        }\n\n        //\n        // Axis range control\n        //\n        Spinbox {\n            id: spin\n            value: 100\n            from: 0\n            to: 100\n            Layout.fillWidth: true\n            onValueChanged: QJoysticks.setVirtualJoystickRange (value / 100)\n        }\n\n        //\n        // Close button & enable virtual joystick checkbox\n        //\n        RowLayout {\n            Layout.fillWidth: true\n            spacing: Globals.spacing\n\n            //\n            // Enables or disables the virtual joystick\n            //\n            Checkbox {\n                id: checkbox\n                checked: false\n                Layout.fillWidth: true\n                text: qsTr (\"Use my keyboard as a joystick\")\n                backgroundColor: Globals.Colors.WidgetBackground\n                onCheckedChanged: QJoysticks.setVirtualJoystickEnabled (checked)\n            }\n\n            //\n            // Close button\n            //\n            Button {\n                onClicked: close()\n                text: qsTr (\"Close\")\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "qml/Globals.js",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\n//\n// All the colors used by the application are defined here\n//\nvar Colors = {\n    'Foreground'                : \"#FFFFFF\",\n    'Background'                : \"#4B4B4B\",\n    'WidgetBorder'              : \"#282828\",\n    'WidgetBackground'          : \"#4B4B4B\",\n    'WidgetForeground'          : \"#DEDEDE\",\n    'WindowBackground'          : \"#2A2A2A\",\n    'WidgetBackgroundSelected'  : \"#3B3B3B\",\n    'WidgetForegroundSelected'  : \"#DEDEDE\",\n    'WidgetBackgroundHighlight' : \"#8B8B8B\",\n    'WidgetForegroundHighlight' : \"#DEDEDE\",\n    'TextAreaBackground'        : \"#D4D4D4\",\n    'TextAreaForeground'        : \"#000000\",\n    'IndicatorGood'             : \"#64FF00\",\n    'IndicatorError'            : \"#FF1400\",\n    'IndicatorWarning'          : \"#FFAA22\",\n    'HighlightColor'            : \"#52D000\",\n    'IconColor'                 : \"#969696\",\n    'PanelBackground'           : \"#464646\",\n    'AlternativeHighlight'      : \"#01D3FF\",\n    'EnableButtonSelected'      : \"#2EDC00\",\n    'DisableButtonSelected'     : \"#FF0000\",\n    'EnableButtonUnselected'    : \"#002F00\",\n    'DisableButtonUnselected'   : \"#880000\",\n    'CPUProgress'               : \"#DCAE00\",\n    'PacketLoss'                : \"#DC9F00\",\n    'LowBattery'                : \"#C81600\",\n}\n\n//\n// Global-wide animation speeds\n//\nvar slowAnimation = 200\nvar fastAnimation = 100\n\n//\n// Global-wide layout spacing value\n//\nvar spacing = scale (10)\n\n//\n// Used in all text-based status indicators (such as voltage indicator)\n//\nvar invalidStr = \"--.--\"\n\n//\n// Specified the UI and monospace fonts used by the application\n//\nvar uiFont = \"Ubuntu\"\nvar monoFont = \"Ubuntu Mono\"\n\n//\n// Returns the adjusted input for the screen size and density\n//\nfunction scale (input) {\n    return Math.round (input * CppUtilities.scaleRatio);\n}\n\n//\n// A quick beep, some speakers may have trouble reproducing this\n//\nfunction fastBeep() {\n    beep (220, 50)\n}\n\n//\n// A medium-length beep, used when clicking/interacting with UI elements (such as buttons)\n//\nfunction normalBeep() {\n    beep (220, 100)\n}\n\n//\n// Only used to get the user's attention (e.g. when we cannot enable the robot)\n//\nfunction longBeep() {\n    beep (220, 200)\n}\n\n//\n// Beep with a custom frequency (in HZ) and time (in milliseconds)\n//\nfunction beep (frequency, time) {\n    CppBeeper.beep (frequency, time)\n}\n\n//\n// Logs the given message to the console/log dump\n//\nfunction log (message) {\n    console.log (\"qml: \" + message)\n}\n\n//\n// Parses the input text (already formatted in morse) and generates\n// the appropriate sounds. This is used in the status widget to generate\n// several sound tones.\n//\nfunction morse (input, frequency) {\n    for (var i = 0; i < input.length; ++i) {\n        var time = 0\n        var base = 50\n        var character = input.charAt (i)\n\n        if (character === \".\")\n            time = base\n        else if (character === \"-\")\n            time = base * 3\n        else if (character === \" \")\n            time = base * 3\n        else if (character === \"/\")\n            time = base * 7\n\n        beep (frequency, time)\n        beep (0, base)\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/About.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Layouts 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nColumnLayout {\n    spacing: Globals.spacing\n\n    //\n    // The icon of the button\n    //\n    Icon {\n        color: \"#fff\"\n        name: icons.fa_cogs\n        size: Globals.scale (64)\n        Layout.alignment: Qt.AlignHCenter\n    }\n\n    //\n    // A large label displaying the application name and version\n    //\n    Label {\n        size: large\n        font.bold: true\n        Layout.alignment: Qt.AlignHCenter\n        text: CppAppDspName + \" \" + CppAppVersion\n    }\n\n    //\n    // A medium label displaying the LibDS version\n    //\n    Label {\n        size: medium\n        Layout.alignment: Qt.AlignHCenter\n        text: \"LibDS \"\n              + CppDS.libDSVersion\n              + \" (built on \"\n              + CppDS.buildDate\n              + \" at \"\n              + CppDS.buildTime\n              + \")\"\n    }\n\n    //\n    // Website and report bug buttons\n    //\n    RowLayout {\n        Layout.fillWidth: true\n        spacing: Globals.scale (-1)\n        Layout.alignment: Qt.AlignHCenter\n\n        Button {\n            text: qsTr (\"Visit Website\")\n            onClicked: Qt.openUrlExternally (CppAppWebsite)\n        }\n\n        Button {\n            text: qsTr (\"Report Bug\")\n            onClicked: Qt.openUrlExternally (CppAppRepBugs)\n        }\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/BatteryChart.qml",
    "content": "import QtQuick 2.0\n\nimport \"../Globals.js\" as Globals\n\nItem {\n    property var diodeHeight: height * 0.20\n    property var backgroundColor: Globals.Colors.IconColor\n\n    //\n    // Background rectangle\n    //\n    Rectangle {\n        id: cover\n        height: Globals.scale (4)\n        color: parent.backgroundColor\n\n        anchors {\n            top: parent.top\n            left: parent.left\n            right: parent.right\n            topMargin: parent.diodeHeight\n        }\n    }\n\n    //\n    // Left diode\n    //\n    Rectangle {\n        width: parent.width * 0.2\n        color: parent.backgroundColor\n        height: parent.diodeHeight - Globals.scale (2)\n\n        anchors {\n            top: parent.top\n            left: parent.left\n            leftMargin: cover.height\n        }\n    }\n\n    //\n    // Right diode\n    //\n    Rectangle {\n        width: parent.width * 0.2\n        color: parent.backgroundColor\n        height: parent.diodeHeight - Globals.scale (2)\n\n        anchors {\n            top: parent.top\n            right: parent.right\n            rightMargin: cover.height\n        }\n    }\n\n    //\n    // Graph\n    //\n    Rectangle {\n        color: parent.backgroundColor\n\n        anchors {\n            fill: parent\n            leftMargin: Globals.scale (2)\n            rightMargin: Globals.scale (2)\n            topMargin: parent.diodeHeight + (cover.height / 2)\n        }\n\n        VoltageGraph {\n            border.color: parent.color\n            Component.onCompleted: setSpeed (24)\n            color: Globals.Colors.WindowBackground\n            noCommsColor: Globals.Colors.WindowBackground\n\n            anchors {\n                fill: parent\n                topMargin: 0\n                margins: Globals.scale (2)\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/Charts.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Window 2.0\nimport QtQuick.Layouts 1.0\nimport Qt.labs.settings 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nItem {\n    //\n    // Changes the horizontal refresh rate of the charts\n    //\n    function updateGraphTimes (seconds) {\n        loss.clear()\n        voltage.clear()\n        loss.setSpeed (seconds)\n        voltage.setSpeed (seconds)\n    }\n\n    //\n    // Make sure that the \"1 min\" button is checked on start-up\n    //\n    Component.onCompleted: oneMin.checked = true\n\n    //\n    // Displays all the widgets in a vertical layout\n    //\n    ColumnLayout {\n        anchors.fill: parent\n        spacing: Globals.spacing\n\n        //\n        // Show the refresh speed buttons horizontally\n        //\n        RowLayout {\n            spacing: Globals.scale (-1)\n\n            //\n            // Packet loss label\n            //\n            Label {\n                text: qsTr (\"Packet Loss %\") + \":\"\n            }\n\n            //\n            // Horizontal spacer\n            //\n            Item {\n                Layout.fillWidth: true\n            }\n\n            //\n            // \"12 s\" button\n            //\n            Button {\n                id: twelveSecs\n                checkable: true\n                text: qsTr (\"12 s\")\n                width: Globals.scale (48)\n\n                onCheckedChanged: {\n                    if (checked) {\n                        oneMin.checked = false\n                        fiveMin.checked = false\n                        twelveSecs.checked = true\n\n                        updateGraphTimes (12)\n                    }\n\n                    if (!oneMin.checked && !fiveMin.checked && !twelveSecs.checked)\n                        checked = true\n                }\n            }\n\n            //\n            // \"1 m\" button\n            //\n            Button {\n                id: oneMin\n                checkable: true\n                text: qsTr (\"1 m\")\n                width: Globals.scale (48)\n\n                onCheckedChanged: {\n                    if (checked) {\n                        oneMin.checked = true\n                        fiveMin.checked = false\n                        twelveSecs.checked = false\n\n                        updateGraphTimes (60)\n                    }\n\n                    if (!oneMin.checked && !fiveMin.checked && !twelveSecs.checked)\n                        checked = true\n                }\n            }\n\n            //\n            // \"5 m\" button\n            //\n            Button {\n                id: fiveMin\n                checkable: true\n                text: qsTr (\"5 m\")\n                width: Globals.scale (48)\n\n                onCheckedChanged: {\n                    if (checked) {\n                        oneMin.checked = false\n                        fiveMin.checked = true\n                        twelveSecs.checked = false\n\n                        updateGraphTimes (300)\n                    }\n\n                    if (!oneMin.checked && !fiveMin.checked && !twelveSecs.checked)\n                        checked = true\n                }\n            }\n        }\n\n        //\n        // Packet loss chart\n        //\n        Plot {\n            id: loss\n            value: 0\n            from: 0\n            to: 100\n            Layout.fillWidth: true\n            Layout.fillHeight: true\n            barColor: Globals.Colors.PacketLoss\n            onRefreshed: value = Math.max (1, CppDS.robotPacketLoss)\n            Component.onCompleted: value = Math.max (1, CppDS.robotPacketLoss)\n        }\n\n        //\n        // Robot voltage label\n        //\n        Label {\n            text: qsTr (\"Robot Voltage\") + \":\"\n        }\n\n        //\n        // Robot voltage chart\n        //\n        VoltageGraph {\n            id: voltage\n            Layout.fillWidth: true\n            Layout.fillHeight: true\n        }\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/Diagnostics.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Layouts 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nRowLayout {\n    spacing: Globals.spacing\n\n    //\n    // Network diagnostics items\n    //\n    ColumnLayout {\n        Layout.fillHeight: true\n        spacing: Globals.spacing\n        Layout.maximumWidth: Globals.scale (240)\n\n        Label {\n            font.bold: true\n            text: qsTr (\"Network Diagnostics\") + \":\"\n        }\n\n        ColumnLayout {\n            spacing: Globals.scale (1)\n\n            Checkbox {\n                enabled: false\n                text: qsTr (\"FMS\")\n                checked: CppDS.connectedToFMS\n            }\n\n            Checkbox {\n                enabled: false\n                text: qsTr (\"Robot\")\n                checked: CppDS.connectedToRobot\n            }\n\n            Checkbox {\n                enabled: false\n                text: qsTr (\"Bridge/Radio\")\n                checked: CppDS.connectedToRadio\n            }\n        }\n\n        Item {\n            Layout.fillHeight: true\n        }\n\n        ColumnLayout {\n            spacing: Globals.scale (-1)\n\n            Button {\n                Layout.fillWidth: true\n                text: qsTr (\"Reboot RIO\")\n                onClicked: CppDS.rebootRobot()\n            }\n\n            Button {\n                Layout.fillWidth: true\n                text: qsTr (\"Restart Code\")\n                onClicked: CppDS.restartRobotCode()\n            }\n        }\n    }\n\n    //\n    // Horizontal spacer\n    //\n    Item {\n        Layout.fillWidth: true\n    }\n\n    //\n    // Robot information items (labels & indicators)\n    //\n    ColumnLayout {\n        Layout.fillHeight: true\n        spacing: Globals.spacing\n\n        Label {\n            font.bold: true\n            text: qsTr (\"Robot Information\") + \":\"\n        }\n\n        Grid {\n            columns: 2\n            Layout.fillHeight: true\n            rowSpacing: Globals.scale (1)\n            columnSpacing: Globals.spacing\n\n            Label {\n                text: qsTr (\"CPU Usage\")\n            }\n\n            Label {\n                text: CppDS.connectedToRobot ? CppDS.cpuUsage + \" %\" : Globals.invalidStr\n            }\n\n            Label {\n                text: qsTr (\"RAM Usage\")\n            }\n\n            Label {\n                text: CppDS.connectedToRobot ? CppDS.ramUsage + \" %\" : Globals.invalidStr\n            }\n\n            Label {\n                text: qsTr (\"Disk Usage\")\n            }\n\n            Label {\n                text: CppDS.connectedToRobot ? CppDS.diskUsage+ \" %\" : Globals.invalidStr\n            }\n\n            Label {\n                text: qsTr (\"CAN Utilization\")\n            }\n\n            Label {\n                text: CppDS.connectedToRobot ? CppDS.canUsage+ \" %\" : Globals.invalidStr\n            }\n        }\n    }\n\n    //\n    // Another spacer\n    //\n    Item {\n        Layout.fillWidth: true\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/JoystickItem.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Layouts 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nRectangle {\n    //\n    // The joystick that this item represents\n    //\n    property int jsIndex: 0\n\n    //\n    // The joystick that is currently selected by the user\n    //\n    property int currentJS: 0\n\n    //\n    // Holds the title/name of the joystick\n    //\n    property string jsName\n\n    //\n    // Emitted when the item is clicked, this is used by the\n    // Joystick tab to redraw the joystick indicators to the\n    // selected joystick\n    //\n    signal selected\n\n    //\n    // Emitted when the user enables or disables this joystick.\n    // This is used by the Joysticks tab to update the blacklist\n    // status of the selected joystick and redraw the controls\n    //\n    signal blacklistedChanged\n\n    //\n    // The size of the control\n    //\n    height: text.implicitHeight * 1.5\n    anchors {\n        left: parent.left\n        right: parent.right\n    }\n\n    //\n    // If the control is selected, then its background will be\n    // a dark grey, if the control is hovered by the mouse, then\n    // it will be light grey.\n    //\n    // If the control is not selected and not hovered, it will have\n    // no specific background color\n    //\n    color: {\n        if (mouse.containsMouse)\n            return Qt.lighter (Globals.Colors.WidgetBackground, 1.2)\n\n        else if (currentJS === jsIndex)\n            return Globals.Colors.WidgetBackground\n\n        return \"transparent\"\n    }\n\n    //\n    // Displays the joystick name\n    //\n    Label {\n        id: text\n        maximumLineCount: 1\n        text: \"  \" + jsName\n        elide: Text.ElideRight\n\n        anchors {\n            right: icon.left\n            left: parent.left\n            verticalCenter: parent.verticalCenter\n        }\n    }\n\n    //\n    // This is the principal mouse area, if it is clicked, then\n    // the selected joystick will change to this joystick\n    //\n    MouseArea {\n        id: mouse\n        hoverEnabled: true\n\n        anchors {\n            top: parent.top\n            right: icon.left\n            left: parent.left\n            bottom: parent.bottom\n        }\n\n        onClicked: {\n            selected()\n            Globals.normalBeep()\n        }\n    }\n\n    //\n    // The blacklist icon/button. When clicked, the joystick\n    // blacklist status will be toggled\n    //\n    Rectangle {\n        id: icon\n        width: Globals.scale (32)\n\n        anchors {\n            top: parent.top\n            right: parent.right\n            bottom: parent.bottom\n        }\n\n        color: {\n            if (blacklistMouse.containsMouse\n                    || (mouse.containsMouse && currentJS !== jsIndex))\n                return Qt.lighter (Globals.Colors.WidgetBackground, 1.2)\n\n            else if (currentJS === jsIndex)\n                return Globals.Colors.WidgetBackground\n\n            return \"transparent\"\n        }\n\n        //\n        // The power icon.\n        // When the joystick is disabled, it will be red (off).\n        // When the joystick is enabled, it will be green (on).\n        //\n        Icon {\n            name: icons.fa_power_off\n            anchors.centerIn: parent\n            color: QJoysticks.isBlacklisted (jsIndex) ?\n                       Globals.Colors.IndicatorError :\n                       Globals.Colors.HighlightColor\n        }\n\n        //\n        // Toggles the blacklist state of the joystick\n        //\n        MouseArea {\n            id: blacklistMouse\n            hoverEnabled: true\n            anchors.fill: parent\n            onClicked: {\n                Globals.normalBeep()\n                blacklistedChanged()\n            }\n        }\n\n        //\n        // Allows the button to gently change its background color\n        //\n        Behavior on color {\n            ColorAnimation {\n                duration: Globals.slowAnimation\n            }\n        }\n    }\n\n    //\n    // Allows the control to gently change its background color\n    //\n    Behavior on color {\n        ColorAnimation {\n            duration: Globals.slowAnimation\n        }\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/Joysticks.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Layouts 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nItem {\n    id: joysticks\n\n    //\n    // Represents the selected joystick\n    //\n    property int currentJoystick: 0\n\n    //\n    // Regenerate the button, axis and POV indicators for the selected joystick\n    //\n    function regenerateControls() {\n        axes.model = 0\n        povs.model = 0\n        buttons.model = 0\n\n        if (CppDS.joystickCount > currentJoystick) {\n            axes.model = CppDS.getNumAxes (currentJoystick)\n            povs.model = CppDS.getNumHats (currentJoystick)\n            buttons.model = CppDS.getNumButtons (currentJoystick)\n        }\n    }\n\n    //\n    // Updates the joystick list and re-generates the controls\n    //\n    function updateControls() {\n        if (QJoysticks.count > 0) {\n            joysticks.currentJoystick = 0\n            joysticks.regenerateControls()\n\n            widgets.opacity = 1\n            noProblemo.opacity = 0\n        }\n\n        else {\n            axes.model = 0\n            povs.model = 0\n            buttons.model = 0\n            widgets.opacity = 0\n            noProblemo.opacity = 1\n        }\n    }\n\n    //\n    // Calculates the minimum width for the left tab\n    //\n    function getMinimumWidth() {\n        return width;\n    }\n\n    //\n    // Used for determining height of axis and button indicators\n    //\n    function getWidgetHeight (input) {\n        return Math.min (joysticks.height * 0.7 / input, Globals.scale (18))\n    }\n\n    //\n    // Regenerate the UI when a joystick is removed or attached and\n    // update DriverStation joysticks\n    //\n    Connections {\n        target: QJoysticks\n\n        function onCountChanged() {\n            updateControls()\n            CppDS.resetJoysticks()\n\n            for (var i = 0; i < QJoysticks.count; ++i) {\n                CppDS.addJoystick (QJoysticks.getNumAxes (i),\n                                   QJoysticks.getNumPOVs (i),\n                                   QJoysticks.getNumButtons (i))\n            }\n        }\n\n        function onPovChanged(js, pov, angle) {\n            var val = QJoysticks.isBlacklisted (currentJoystick) ? 0 : angle\n            CppDS.setJoystickHat (js, pov, val)\n        }\n\n        function onAxisChanged(js, axis, value) {\n            var val = QJoysticks.isBlacklisted (currentJoystick) ? 0 : value\n            CppDS.setJoystickAxis (js, axis, val)\n        }\n\n        function onButtonChanged(js, button, pressed) {\n            var val = QJoysticks.isBlacklisted (currentJoystick) ? false : pressed\n            CppDS.setJoystickButton (js, button, val)\n        }\n    }\n\n    Connections {\n        target: CppDS\n        function onJoystickCountChanged() {\n            regenerateControls()\n        }\n    }\n\n    //\n    // Regenerate the UI controls when the user selects another joystick\n    //\n    onCurrentJoystickChanged: joysticks.regenerateControls()\n\n    //\n    // Initialize the QJoysticks system and call updateControls(), which will\n    // help us in the case that the virtual joystick is enabled\n    //\n    Component.onCompleted: {\n        QJoysticks.setSortJoysticksByBlacklistState (true)\n        joysticks.updateControls()\n    }\n\n    //\n    // The \"No Joysticks? No Problem\" widget\n    //\n    ColumnLayout {\n        opacity: 1\n        id: noProblemo\n        visible: opacity > 0\n        anchors.fill: parent\n        spacing: Globals.spacing\n\n        Behavior on opacity {\n            NumberAnimation {\n                duration: Globals.slowAnimation\n            }\n        }\n\n        Icon {\n            name: icons.fa_gamepad\n            size: Globals.scale (64)\n            Layout.alignment: Qt.AlignHCenter\n        }\n\n        Label {\n            size: large\n            font.bold: true\n            Layout.alignment: Qt.AlignHCenter\n            text: qsTr (\"No Joysticks? No Problem!\")\n        }\n\n        Label {\n            size: medium\n            Layout.alignment: Qt.AlignHCenter\n            text: qsTr (\"You can also use the virtual joystick\")\n        }\n\n        Button {\n            width: Globals.scale (156)\n            Layout.alignment: Qt.AlignHCenter\n            text: qsTr (\"More information\") + \"...\"\n            onClicked: app.showVirtualJoystickWindow()\n        }\n    }\n\n    //\n    // All the magic happens here\n    //\n    RowLayout {\n        opacity: 0\n        id: widgets\n        visible: opacity > 0\n        anchors.fill: parent\n        spacing: Globals.spacing\n\n        Behavior on opacity {\n            NumberAnimation {\n                duration: Globals.slowAnimation\n            }\n        }\n\n        //\n        // The joystick selector\n        //\n        ColumnLayout {\n            Layout.fillWidth: true\n            spacing: Globals.spacing\n            Layout.minimumWidth: visible ? Globals.scale (112) : 0\n\n            //\n            // The \"USB Devices\" label\n            //\n            Label {\n                font.bold: true\n                text: qsTr (\"USB Devices\")\n            }\n\n            //\n            // The list, with a custom control for each joystick\n            //\n            ListViewer {\n                id: listView\n                Layout.fillWidth: true\n                Layout.fillHeight: true\n                model: QJoysticks.deviceNames\n                Layout.minimumHeight: joysticks.height * 0.8\n\n                delegate: JoystickItem {\n                    jsIndex: index\n                    jsName: modelData\n                    currentJS: currentJoystick\n\n                    onSelected: {\n                        currentJoystick = jsIndex\n                        regenerateControls()\n                    }\n\n                    onBlacklistedChanged: {\n                        var blacklisted = !QJoysticks.isBlacklisted (jsIndex)\n                        QJoysticks.setBlacklisted (jsIndex, blacklisted)\n                    }\n                }\n            }\n\n            //\n            // Vertical spacer\n            //\n            Item {\n                Layout.fillHeight: true\n            }\n        }\n\n        //\n        // Axis indicators\n        //\n        ColumnLayout {\n            visible: axes.model > 0\n            spacing: Globals.spacing\n\n            //\n            // The \"Axes\" label\n            //\n            Label {\n                font.bold: true\n                text: qsTr (\"Axes\")\n            }\n\n            //\n            // Dynamic list of progressbars for each joystick\n            //\n            ColumnLayout {\n                id: axesCol\n                Layout.fillHeight: true\n                spacing: Globals.scale (1)\n\n                Repeater {\n                    id: axes\n                    delegate: Progressbar {\n                        id: progressbar\n                        from: 0\n                        to: 200\n                        width: Globals.scale (54)\n                        text: qsTr (\"Axis\") + \" \" + index\n                        height: getWidgetHeight (axes.model)\n                        barColor: QJoysticks.isBlacklisted (currentJoystick) ?\n                                      Globals.Colors.IndicatorError :\n                                      Globals.Colors.HighlightColor\n\n                        Component.onCompleted: value = maximumValue / 2\n\n                        Connections {\n                            target: QJoysticks\n                            function onAxisChanged(js, axis, value) {\n                                if (joysticks.currentJoystick === js && index === axis)\n                                    progressbar.value = (value + 1) * 100\n                            }\n                        }\n                    }\n                }\n            }\n\n            //\n            // \"Pushes\" the rest of the controls together\n            //\n            Item {\n                Layout.fillHeight: true\n            }\n        }\n\n        //\n        // Button indicators\n        //\n        ColumnLayout {\n            spacing: Globals.spacing\n            visible: buttons.model > 0\n            Layout.minimumWidth: grid.implicitWidth + Globals.spacing\n\n            //\n            // The Buttons label...\n            //\n            Label {\n                font.bold: true\n                text: qsTr (\"Buttons\")\n            }\n\n            //\n            // A dynamic table of button indicators\n            //\n            GridLayout {\n                id: grid\n                rows: 6\n                flow: GridLayout.TopToBottom\n                rowSpacing: Globals.scale (1)\n                columnSpacing: Globals.scale (1)\n\n                Repeater {\n                    id: buttons\n\n                    //\n                    // You did not expect a button to be represented with a\n                    // progressbar? Neither did I first wrote this, but this\n                    // is by far the easiest and simplest way to center the\n                    // label on a 'LED'.\n                    // The minimum and maximum values are set to 0 and 1\n                    // respectively, to disguise a progressbar into a checkbox.\n                    //\n                    delegate: Progressbar {\n                        id: button\n                        from: 0\n                        to: 1\n\n                        text: index\n                        width: Globals.scale (28)\n                        height: getWidgetHeight (axes.model)\n\n                        Connections {\n                            target: QJoysticks\n                            function onButtonChanged(js, button, pressed) {\n                                if (joysticks.currentJoystick === js && button === index)\n                                    value = pressed ? 1 : 0\n                            }\n                        }\n                    }\n                }\n            }\n\n            //\n            // \"Pushes\" the rest of the controls together\n            //\n            Item {\n                Layout.fillHeight: true\n            }\n        }\n\n        //\n        // POVs indicators\n        //\n        ColumnLayout {\n            visible: povs.model > 0\n            spacing: Globals.spacing\n\n            //\n            // The POVs label\n            //\n            Label {\n                font.bold: true\n                text: qsTr (\"POVs\")\n            }\n\n            //\n            // A dynamic list of spinboxes for each POV/hat\n            //\n            ColumnLayout {\n                spacing: Globals.scale (1)\n\n                Repeater {\n                    id: povs\n                    delegate: Spinbox {\n                        id: spinbox\n                        enabled: false\n                        from: 0\n                        to: 360\n                        width: Globals.scale (64)\n\n                        Connections {\n                            target: QJoysticks\n                            function onPovChanged(js, pov, angle) {\n                                if (joysticks.currentJoystick === js && pov === index)\n                                        spinbox.value = angle\n                            }\n                        }\n                    }\n                }\n            }\n\n            //\n            // \"Pushes\" the rest of the controls together\n            //\n            Item {\n                Layout.fillHeight: true\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/LeftTab.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Layouts 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nRowLayout {\n    id: tab\n    spacing: Globals.spacing\n\n    //\n    // Notifiers\n    //\n    signal flashStatusIndicators\n    signal windowModeChanged (var isDocked)\n\n    //\n    // Contains the tab switcher buttons\n    //\n    Column {\n        Layout.fillHeight: true\n        spacing: Globals.scale (-1)\n\n        Button {\n            icon: icons.fa_dashboard\n            caption.font.bold: true\n            width: Globals.scale (36)\n            height: Globals.scale (36)\n            onClicked: leftTab.showOperator()\n            textColor: operator.visible ? Globals.Colors.AlternativeHighlight :\n                                          Globals.Colors.Foreground\n        }\n\n        Button {\n            icon: icons.fa_stethoscope\n            caption.font.bold: true\n            width: Globals.scale (36)\n            height: Globals.scale (36)\n            onClicked: leftTab.showDiagnostics()\n            textColor: diagnostics.visible ? Globals.Colors.AlternativeHighlight :\n                                             Globals.Colors.Foreground\n        }\n\n        Button {\n            icon: icons.fa_wrench\n            caption.font.bold: true\n            width: Globals.scale (36)\n            height: Globals.scale (36)\n            onClicked: leftTab.showPreferences()\n            textColor: preferences.visible ? Globals.Colors.AlternativeHighlight :\n                                             Globals.Colors.Foreground\n        }\n\n        Button {\n            icon: icons.fa_usb\n            caption.font.bold: true\n            width: Globals.scale (36)\n            height: Globals.scale (36)\n            onClicked: leftTab.showJoysticks()\n            textColor: joysticks.visible ? Globals.Colors.AlternativeHighlight :\n                                           Globals.Colors.Foreground\n        }\n    }\n\n    //\n    // Contains the actual controls\n    //\n    Panel {\n        id: leftTab\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n\n        function updateWidth() {\n            if (joysticks.opacity > 0 && Layout.minimumWidth > 1)\n                Layout.minimumWidth = joysticks.getMinimumWidth() * 1.2\n            else\n                Layout.minimumWidth = 0\n        }\n\n        function hideWidgets() {\n            operator.opacity = 0\n            joysticks.opacity = 0\n            preferences.opacity = 0\n            diagnostics.opacity = 0\n        }\n\n        function showOperator() {\n            hideWidgets()\n            updateWidth()\n            operator.opacity = 1\n        }\n\n        function showJoysticks() {\n            hideWidgets()\n            updateWidth()\n            joysticks.opacity = 1\n        }\n\n        function showPreferences() {\n            hideWidgets()\n            updateWidth()\n            preferences.opacity = 1\n        }\n\n        function showDiagnostics() {\n            hideWidgets()\n            updateWidth()\n            diagnostics.opacity = 1\n        }\n\n        Connections {\n            target: CppDS\n            function onJoystickCountChanged() {\n                leftTab.updateWidth()\n            }\n        }\n\n        Component.onCompleted: showOperator()\n\n        Operator {\n            opacity: 1\n            id: operator\n            visible: opacity > 0\n            anchors.fill: parent\n            anchors.margins: Globals.spacing\n            onWindowModeChanged: tab.windowModeChanged (isDocked)\n        }\n\n        Diagnostics {\n            opacity: 0\n            id: diagnostics\n            visible: opacity > 0\n            anchors.fill: parent\n            anchors.margins: Globals.spacing\n        }\n\n        Preferences {\n            opacity: 0\n            id: preferences\n            visible: opacity > 0\n            anchors.fill: parent\n            anchors.margins: Globals.spacing\n        }\n\n        Joysticks {\n            opacity: 0\n            id: joysticks\n            visible: opacity > 0\n            anchors.fill: parent\n            anchors.margins: Globals.spacing\n        }\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/MainWindow.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Window 2.0\nimport QtQuick.Layouts 1.0\nimport QtQuick.Controls 2.15\nimport Qt.labs.settings 1.0\n\nimport \"../Globals.js\" as Globals\n\nWindow {\n    id: mw\n\n    //\n    // Gets the \\c x value used in the initial launch\n    //\n    function getDefaultX() {\n        return (Screen.desktopAvailableWidth - getMinimumWidth()) / 2\n    }\n\n    //\n    // Gets the \\c y value used in the initial launch\n    //\n    function getDefaultY() {\n        return Screen.desktopAvailableHeight - (getMinimumHeight() * 1.2)\n    }\n\n    //\n    // If set to true, the window will dock to the bottom of the screen\n    //\n    property bool docked: false\n\n    //\n    // Holds the old values of x and y\n    //\n    property int oldX: getDefaultX()\n    property int oldY: getDefaultY()\n\n    //\n    // Calculates the minimum width of the window\n    //\n    function getMinimumWidth() {\n        return layout.implicitWidth + (2 * layout.x)\n    }\n\n    //\n    // Calculates the minimum height of the window\n    //\n    function getMinimumHeight() {\n        return Math.max(205, layout.implicitHeight + (2 * layout.y))\n    }\n\n    //\n    // The actual docking procedures\n    //\n    function updateWindowMode() {\n        if (!visible)\n            return\n\n        if (docked) {\n            if (CppIsUnix) {\n                x = 0\n                width = Screen.desktopAvailableWidth\n                minimumWidth = Screen.desktopAvailableWidth\n            }\n\n            else {\n                showMaximized()\n            }\n\n            y = Screen.desktopAvailableHeight - height\n        }\n\n        else {\n            showNormal()\n            width = getMinimumWidth()\n            minimumWidth = getMinimumWidth()\n\n            x = oldX\n            y = oldY\n        }\n    }\n\n    //\n    // Initial position\n    //\n    x: getDefaultX()\n    y: getDefaultY()\n\n    //\n    // Update custom variables\n    //\n    onDockedChanged: updateWindowMode()\n    onXChanged: oldX = !docked ? x : oldX\n    onYChanged: oldY = !docked ? y : oldY\n\n    //\n    // Window geometry hacks\n    //\n    height: getMinimumHeight()\n    minimumWidth: getMinimumWidth()\n    minimumHeight: getMinimumHeight()\n    maximumHeight: getMinimumHeight()\n    onHeightChanged: height = getMinimumHeight()\n\n    //\n    // To hell with you X11\n    //\n    flags: Qt.Dialog | Qt.WindowCloseButtonHint | Qt.WindowTitleHint\n\n    //\n    // Misc. properties\n    //\n    visible: false\n    color: Globals.Colors.WindowBackground\n    title: CppAppDspName + \" - \" + qsTr (\"Version\") + \" \" + CppAppVersion\n\n    //\n    // Save window geometry\n    //\n    Settings {\n        category: \"MainWindow\"\n        property alias x: mw.x\n        property alias y: mw.y\n        property alias oldX: mw.oldX\n        property alias oldY: mw.oldY\n        property alias docked: mw.docked\n    }\n\n    //\n    // Animate window position when dock mode changes\n    //\n    Behavior on x { NumberAnimation { duration: Globals.fastAnimation }}\n    Behavior on y { NumberAnimation { duration: Globals.slowAnimation }}\n\n    //\n    // Display the left tab, status controls and right tab horizontally\n    //\n    RowLayout {\n        id: layout\n        x: Globals.spacing\n        y: Globals.spacing\n        width: Math.max (implicitWidth, mw.width - (2 * x))\n        height: Math.max (implicitHeight, mw.height - (2 * y))\n\n        LeftTab {\n            Layout.fillWidth: false\n            Layout.fillHeight: true\n            Layout.minimumWidth: Globals.scale (440)\n            onWindowModeChanged: mw.docked = isDocked\n            onFlashStatusIndicators: status.flashStatusIndicators()\n        }\n\n        Status {\n            id: status\n            Layout.fillWidth: false\n            Layout.fillHeight: true\n        }\n\n        RightTab {\n            Layout.fillWidth: true\n            Layout.fillHeight: true\n            Layout.minimumWidth: Globals.scale (420)\n        }\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/Messages.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Layouts 1.0\nimport QtQuick.Controls 2.15\nimport Qt.labs.settings 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nColumnLayout {\n    spacing: Globals.spacing\n\n    //\n    // Save protocol value between runs\n    //\n    Settings {\n        property alias protocolVersion: protocol.currentIndex\n    }\n\n    //\n    // Write to the console every time the DS receives a message\n    //\n    Connections {\n        target: CppDS\n        function onNewMessage(message) {\n            messages.editor.append (message)\n        }\n    }\n\n    //\n    // Logs menu\n    //\n    Menu {\n        id: logsContextMenu\n\n        MenuItem {\n            text: qsTr (\"Open Application Logs\")\n            onTriggered: CppDSLogger.openLogsPath()\n        }\n\n        MenuItem {\n            text: qsTr (\"Open Current Log\")\n            onTriggered: CppDSLogger.openCurrentLog()\n        }\n    }\n\n    //\n    // Draw the action buttons\n    //\n    RowLayout {\n        Layout.fillWidth: true\n        spacing: Globals.scale (-1)\n\n        Button {\n            text: qsTr (\"Logs\") + \"...\"\n            onClicked: logsContextMenu.popup()\n        }\n\n        Item {\n            width: Globals.spacing\n            height: Globals.spacing\n        }\n\n        Button {\n            icon: icons.fa_copy\n            width: Globals.scale (48)\n            height: Globals.scale (24)\n            iconSize: Globals.scale (12)\n\n            onClicked: {\n                messages.copy()\n                messages.editor.append (\"<font color=#888>** <font color=#AAA> \"\n                                        + qsTr (\"Information\")\n                                        + \":</font> \"\n                                        + qsTr (\"Console output copied to clipboard\")\n                                        + \"</font>\")\n            }\n        }\n\n        Button {\n            icon: icons.fa_trash\n            width: Globals.scale (48)\n            height: Globals.scale (24)\n            iconSize: Globals.scale (12)\n            onClicked: messages.text = \"\"\n        }\n\n        Item {\n            Layout.fillWidth: true\n        }\n\n        Combobox {\n            width: 92\n            id: protocol\n            alignRight: true\n            model: CppDS.protocols\n            Layout.fillHeight: true\n            onCurrentIndexChanged: CppDS.setProtocol (currentIndex)\n        }\n    }\n\n    //\n    // Draw the console\n    //\n    TextEditor {\n        id: messages\n        editor.readOnly: true\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n        editor.textFormat: Text.RichText\n        editor.font.family: Globals.monoFont\n        editor.font.pixelSize: Globals.scale (13)\n        foregroundColor: Globals.Colors.WidgetForeground\n        backgroundColor: Globals.Colors.WindowBackground\n        editor.wrapMode: TextEdit.WrapAtWordBoundaryOrAnywhere\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/Operator.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Layouts 1.0\nimport Qt.labs.settings 1.0\n\nimport DriverStation 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nRowLayout {\n    spacing: Globals.spacing\n    signal windowModeChanged (var isDocked)\n\n    //\n    // Control modes & enable/disable buttons\n    //\n    ColumnLayout {\n        Layout.fillHeight: true\n        Layout.minimumWidth: Globals.scale (160)\n        Layout.maximumWidth: Globals.scale (160)\n\n        //\n        // Control mode selector\n        //\n        ColumnLayout {\n            Layout.fillWidth: true\n            Layout.fillHeight: true\n            spacing: Globals.scale (-1)\n\n            Button {\n                Layout.fillWidth: true\n                text: \"  \" + qsTr (\"Teleoperated\")\n                caption.horizontalAlignment: Text.AlignLeft\n                checked: CppDS.controlMode === LibDS.ControlTeleoperated\n                onClicked: CppDS.controlMode = LibDS.ControlTeleoperated\n            }\n\n            Button {\n                Layout.fillWidth: true\n                text: \"  \" + qsTr (\"Autonomous\")\n                caption.horizontalAlignment: Text.AlignLeft\n                checked: CppDS.controlMode === LibDS.ControlAutonomous\n                onClicked: CppDS.controlMode = LibDS.ControlAutonomous\n            }\n\n            Button {\n                enabled: false\n                Layout.fillWidth: true\n                text: \"  \" + qsTr (\"Practice\")\n                caption.horizontalAlignment: Text.AlignLeft\n            }\n\n            Button {\n                Layout.fillWidth: true\n                text: \"  \" + qsTr (\"Test\")\n                caption.horizontalAlignment: Text.AlignLeft\n                checked: CppDS.controlMode === LibDS.ControlTest\n                onClicked: CppDS.controlMode = LibDS.ControlTest\n            }\n        }\n\n        //\n        // Vertical spacer\n        //\n        Item {\n            Layout.fillHeight: true\n        }\n\n        //\n        // Enable/Disable buttons\n        //\n        RowLayout {\n            Layout.fillWidth: true\n            spacing: Globals.scale (-1)\n\n            Button {\n                checked: CppDS.enabled\n                text: qsTr (\"Enable\")\n                Layout.fillWidth: true\n                Layout.fillHeight: true\n                caption.font.bold: true\n                onClicked: CppDS.enabled = CppDS.canBeEnabled\n                caption.font.pixelSize: Globals.scale (16)\n                caption.color: checked ? Globals.Colors.EnableButtonSelected :\n                                         Globals.Colors.EnableButtonUnselected\n            }\n\n            Button {\n                checked: !CppDS.enabled\n                text: qsTr (\"Disable\")\n                Layout.fillWidth: true\n                Layout.fillHeight: true\n                caption.font.bold: true\n                onClicked: CppDS.enabled = false\n                caption.font.pixelSize: Globals.scale (16)\n                caption.color: checked ? Globals.Colors.DisableButtonSelected :\n                                         Globals.Colors.DisableButtonUnselected\n            }\n        }\n    }\n\n    //\n    // Small sepatator between core operator and information indicators\n    //\n    Rectangle {\n        Layout.fillHeight: true\n        width: Globals.scale (1)\n        color: Globals.Colors.WidgetBorder\n    }\n\n    //\n    // Extra information indicators\n    //\n    GridLayout {\n        columns: 2\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n        rowSpacing: Globals.scale (4)\n        columnSpacing: Globals.spacing\n\n        //\n        // Elapsed time label\n        //\n        Label {\n            Layout.fillWidth: true\n            text: qsTr (\"Elapsed Time\")\n            horizontalAlignment: Text.AlignRight\n        }\n\n        //\n        // Elapsed time indicator\n        //\n        Label {\n            font.bold: true\n            Layout.fillWidth: true\n            size: Globals.scale (18)\n            text: CppDS.elapsedTime\n            Layout.rightMargin: Globals.spacing\n            horizontalAlignment: Text.AlignRight\n        }\n\n        //\n        // Spacer (for both columns)\n        //\n        Item {\n            Layout.fillHeight: true\n        }\n        Item {\n            Layout.fillHeight: true\n        }\n\n        //\n        // PC Battery label\n        //\n        RowLayout {\n            Layout.fillWidth: true\n\n            Icon {\n                name: icons.fa_plug\n                Layout.fillWidth: true\n                size: Globals.scale (10)\n                horizontalAlignment: Text.AlignRight\n                opacity: CppUtilities.connectedToAC ? 1 : 0\n                Behavior on opacity { NumberAnimation{} }\n            }\n\n            Label {\n                text: qsTr (\"PC Battery\")\n                horizontalAlignment: Text.AlignRight\n            }\n        }\n\n        //\n        // Battery progressbar\n        //\n        Progressbar {\n            text: \"\"\n            Layout.fillWidth: true\n            value: CppUtilities.batteryLevel\n            barColor: {\n                if (value > 60)\n                    return Globals.Colors.HighlightColor\n\n                else if (value > 25)\n                    return Globals.Colors.CPUProgress\n\n                return Globals.Colors.LowBattery\n            }\n        }\n\n        //\n        // PC CPU label\n        //\n        Label {\n            Layout.fillWidth: true\n            text: qsTr (\"PC CPU\") + \" %\"\n            horizontalAlignment: Text.AlignRight\n        }\n\n        //\n        // CPU prgoressbar\n        //\n        Progressbar {\n            text: \"\"\n            Layout.fillWidth: true\n            value: CppUtilities.cpuUsage\n            barColor: Globals.Colors.CPUProgress\n        }\n\n        //\n        // Spacer (for both columns)\n        //\n        Item {\n            Layout.fillHeight: true\n        }\n        Item {\n            Layout.fillHeight: true\n        }\n\n        //\n        // Window type label\n        //\n        Label {\n            Layout.fillWidth: true\n            text: qsTr (\"Window\")\n            horizontalAlignment: Text.AlignRight\n        }\n\n        //\n        // Dock/Normal buttons\n        //\n        RowLayout {\n            Layout.fillWidth: true\n            spacing: Globals.scale (-1)\n\n            Button {\n                id: normal\n                checked: !mw.docked\n                Layout.fillWidth: true\n                icon: icons.fa_mail_reply\n                width: Globals.scale (48)\n                iconSize: Globals.scale (12)\n                onClicked: {\n                    normal.checked = true\n                    docked.checked = false\n                    windowModeChanged (false)\n                }\n            }\n\n            Button {\n                id: docked\n                checked: mw.docked\n                icon: icons.fa_expand\n                Layout.fillWidth: true\n                width: Globals.scale (48)\n                iconSize: Globals.scale (12)\n                onClicked: {\n                    docked.checked = true\n                    normal.checked = false\n                    windowModeChanged (true)\n                }\n            }\n        }\n\n        //\n        // Spacer (for both columns)\n        //\n        Item {\n            Layout.fillHeight: true\n        }\n        Item {\n            Layout.fillHeight: true\n        }\n\n        //\n        // Team station label\n        //\n        Label {\n            Layout.fillWidth: true\n            text: qsTr (\"Team Station\")\n            horizontalAlignment: Text.AlignRight\n        }\n\n        //\n        // Team station selector\n        //\n        Combobox {\n            id: stations\n            model: CppDS.stations\n            Layout.fillWidth: true\n            onCurrentIndexChanged: CppDS.station = currentIndex\n        }\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/Preferences.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Layouts 1.0\nimport Qt.labs.settings 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nRowLayout {\n    spacing: Globals.spacing\n\n    Settings {\n        property alias delay: delay.value\n        property alias teleop: teleop.value\n        property alias team: teamNumber.value\n        property alias endGame: endGame.value\n        property alias gameDataStr: gameData.text\n        property alias countdown: countdown.value\n        property alias autonomous: autonomous.value\n        property alias dashbaord: dashboard.currentIndex\n    }\n\n    //\n    // Open the dashboard on application launch\n    //\n    Component.onCompleted: {\n        CppDashboard.openDashboard (dashboard.currentIndex)\n    }\n\n    //\n    // Team number, dashboard & game data\n    //\n    ColumnLayout {\n        spacing: Globals.scale (5)\n        Layout.maximumWidth: parent.width * 0.5\n\n        //\n        // Team number label\n        //\n        Label {\n            font.bold: true\n            text: qsTr (\"Team Number\") + \":\"\n        }\n\n        //\n        // Team number control\n        //\n        Spinbox {\n            id: teamNumber\n            from: 0\n            to: 9999\n            Layout.fillWidth: true\n            value: CppDS.teamNumber\n            onValueChanged: CppDS.teamNumber = value\n        }\n\n        //\n        // Dashboard label\n        //\n        Label {\n            font.bold: true\n            text: qsTr (\"Dashboard Type\") + \":\"\n        }\n\n        //\n        // Dashboard selector\n        //\n        Combobox {\n            id: dashboard\n            Layout.fillWidth: true\n            model: CppDashboard.dashboardList()\n            onCurrentIndexChanged: CppDashboard.openDashboard (dashboard.currentIndex)\n        }\n\n        //\n        // Game data label\n        //\n        Label {\n            font.bold: true\n            text: qsTr (\"Game Data\") + \":\"\n        }\n\n        //\n        // Game data field\n        //\n        LineEdit {\n            id: gameData\n            text: CppDS.gameData\n            Layout.fillWidth: true\n            onTextChanged: CppDS.setGameData(text)\n        }\n\n        //\n        // Vertical spacer\n        //\n        Item {\n            Layout.fillHeight: true\n        }\n    }\n\n    //\n    // Horizontal spacer\n    //\n    Item {\n        Layout.fillWidth: true\n    }\n\n    //\n    // Practice timings\n    //\n    ColumnLayout {\n        Layout.fillWidth: true\n        spacing: Globals.spacing\n        Layout.maximumWidth: Globals.scale (150)\n\n        //\n        // Title label\n        //\n        Label {\n            font.bold: true\n            text: qsTr (\"Practice Timings\") + \":\"\n        }\n\n        //\n        // Practice timings controls & labels\n        //\n        GridLayout {\n            columns: 2\n            rowSpacing: Globals.scale (1)\n            columnSpacing: Globals.spacing\n\n            Label {\n                Layout.fillWidth: true\n                text: qsTr (\"Countdown\")\n            }\n\n            //\n            // Countdown control\n            //\n            Spinbox {\n                value: 5\n                id: countdown\n                from: 0\n                to: 150\n                Layout.minimumWidth: Globals.scale (36)\n            }\n\n            Label {\n                Layout.fillWidth: true\n                text: qsTr (\"Autonomous\")\n            }\n\n            //\n            // Autonomous period\n            //\n            Spinbox {\n                value: 15\n                id: autonomous\n                from: 0\n                to: 150\n                Layout.minimumWidth: Globals.scale (36)\n            }\n\n            Label {\n                Layout.fillWidth: true\n                text: qsTr (\"Delay\")\n            }\n\n            //\n            // Delay timings\n            //\n            Spinbox {\n                value: 1\n                id: delay\n                from: 0\n                to: 150\n                Layout.minimumWidth: Globals.scale (36)\n            }\n\n            Label {\n                Layout.fillWidth: true\n                text: qsTr (\"Teleoperated\")\n            }\n\n            //\n            // Teleop period\n            //\n            Spinbox {\n                value: 100\n                id: teleop\n                from: 0\n                to: 150\n                Layout.minimumWidth: Globals.scale (36)\n            }\n\n            Label {\n                Layout.fillWidth: true\n                text: qsTr (\"End Game\")\n            }\n\n            //\n            // End game warning\n            //\n            Spinbox {\n                value: 20\n                id: endGame\n                from: 0\n                to: 150\n                Layout.minimumWidth: Globals.scale (36)\n            }\n        }\n\n        //\n        // Put a vertical spacer to compact the controls\n        //\n        Item {\n            Layout.fillHeight: true\n        }\n    }\n\n    //\n    // Yet another horizontal spacer to keep things tidy\n    //\n    Item {\n        Layout.fillWidth: true\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/RightTab.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Layouts 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nRowLayout {\n    spacing: Globals.spacing\n\n    //\n    // Contains the actual tab controls/buttons\n    //\n    Panel {\n        id: rightTab\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n\n        function hideWidgets() {\n            about.opacity = 0\n            charts.opacity = 0\n            messages.opacity = 0\n        }\n\n        function showMessages() {\n            hideWidgets()\n            messages.opacity = 1\n        }\n\n        function showCharts() {\n            hideWidgets()\n            charts.opacity = 1\n        }\n\n        function showAbout() {\n            hideWidgets()\n            about.opacity = 1\n        }\n\n        Component.onCompleted: showMessages()\n\n        Messages {\n            opacity: 1\n            id: messages\n            visible: opacity > 0\n            anchors.fill: parent\n            anchors.margins: Globals.spacing\n        }\n\n        Charts {\n            opacity: 0\n            id: charts\n            visible: opacity > 0\n            anchors.fill: parent\n            anchors.margins: Globals.spacing\n        }\n\n        About {\n            id: about\n            opacity: 0\n            visible: opacity > 0\n            anchors.fill: parent\n            anchors.margins: Globals.spacing\n        }\n    }\n\n    //\n    // Contains the tab switcher buttons\n    //\n    ColumnLayout {\n        Layout.fillHeight: true\n        spacing: Globals.scale (-1)\n        Layout.minimumWidth: Globals.scale (36)\n        Layout.maximumWidth: Globals.scale (36)\n\n        Button {\n            icon: icons.fa_envelope\n            caption.font.bold: true\n            width: Globals.scale (36)\n            height: Globals.scale (36)\n            onClicked: rightTab.showMessages()\n            textColor: messages.visible ? Globals.Colors.AlternativeHighlight :\n                                          Globals.Colors.Foreground\n        }\n\n        Button {\n            caption.font.bold: true\n            icon: icons.fa_area_chart\n            width: Globals.scale (36)\n            height: Globals.scale (36)\n            onClicked: rightTab.showCharts()\n            textColor: charts.visible ? Globals.Colors.AlternativeHighlight :\n                                         Globals.Colors.Foreground\n        }\n\n        Button {\n            icon: icons.fa_info\n            caption.font.bold: true\n            width: Globals.scale (36)\n            height: Globals.scale (36)\n            onClicked: rightTab.showAbout()\n            textColor: about.visible ? Globals.Colors.AlternativeHighlight :\n                                       Globals.Colors.Foreground\n        }\n\n        Item {\n            Layout.fillWidth: true\n            Layout.fillHeight: true\n            Layout.minimumHeight: Globals.spacing\n        }\n\n        Button {\n            icon: icons.fa_cog\n            caption.font.bold: true\n            width: Globals.scale (36)\n            height: Globals.scale (36)\n            onClicked: app.showSettingsWindow()\n        }\n\n        Button {\n            icon: icons.fa_keyboard_o\n            caption.font.bold: true\n            width: Globals.scale (36)\n            height: Globals.scale (36)\n            onClicked: app.showVirtualJoystickWindow()\n        }\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/Status.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Layouts 1.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nColumnLayout {\n    id: status\n\n    //\n    // Defines the separation between the different components of the widget\n    //\n    property double spacerHeight: Globals.spacing / 2\n\n    //\n    // Layout/geometry options\n    //\n    spacing: 0\n    Layout.margins: 0\n    Layout.leftMargin: Globals.spacing\n    Layout.rightMargin: Globals.spacing\n    Layout.minimumWidth: Globals.scale (144)\n    Layout.preferredWidth: Globals.scale (144)\n\n    //\n    // Team number indicator\n    //\n    RowLayout {\n        spacing: Globals.spacing\n\n        Label {\n            size: large\n            font.bold: true\n            Layout.fillWidth: true\n            text: qsTr (\"Team\") + \" #\"\n            verticalAlignment: Qt.AlignCenter\n        }\n\n        Label {\n            size: large\n            font.bold: true\n            text: CppDS.teamNumber\n            verticalAlignment: Qt.AlignVCenter\n            horizontalAlignment: Qt.AlignHCenter\n        }\n    }\n\n    //\n    // Spacer\n    //\n    Item {\n        Layout.fillHeight: true\n        Layout.minimumHeight: spacerHeight\n    }\n\n    //\n    // Voltage indicator & plot\n    //\n    RowLayout {\n        spacing: Globals.spacing\n        Layout.minimumHeight: Globals.scale (42)\n\n        //\n        // Robot battery graph\n        //\n        BatteryChart {\n            width: Globals.scale (53)\n            height: Globals.scale (32)\n        }\n\n        //\n        // Horizontal spacer\n        //\n        Item {\n            Layout.fillWidth: true\n        }\n\n        //\n        // Voltage text (finally)\n        //\n        Label {\n            size: large\n            font.bold: true\n            verticalAlignment: Text.AlignVCenter\n            horizontalAlignment: Text.AlignHCenter\n            text: CppDS.connectedToRobot ? CppDS.voltageString : Globals.invalidStr\n        }\n    }\n\n    //\n    // Another spacer\n    //\n    Item {\n        Layout.fillHeight: true\n        Layout.minimumHeight: spacerHeight\n    }\n\n    //\n    // Status LEDs\n    //\n    Column {\n        Layout.fillWidth: true\n        spacing: Globals.scale (3)\n\n        LED {\n            id: commsLed\n            leftToRight: true\n            anchors.right: parent.right\n            text: qsTr (\"Communications\")\n            checked: CppDS.connectedToRobot\n        }\n\n        LED {\n            id: codeLed\n            leftToRight: true\n            text: qsTr (\"Robot Code\")\n            anchors.right: parent.right\n            checked: CppDS.robotCode\n        }\n\n        LED {\n            leftToRight: true\n            text: qsTr (\"Joysticks\")\n            anchors.right: parent.right\n            checked: QJoysticks.nonBlacklistedCount\n        }\n    }\n\n    //\n    // (Yet) Another spacer\n    //\n    Item {\n        Layout.fillHeight: true\n        Layout.minimumHeight: spacerHeight\n    }\n\n    //\n    // Robot status\n    //\n    Label {\n        size: large\n        font.bold: true\n        text: CppDS.status\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n        verticalAlignment: Qt.AlignVCenter\n        horizontalAlignment: Qt.AlignHCenter\n        Layout.minimumHeight: Globals.scale (42)\n        wrapMode: Text.WrapAtWordBoundaryOrAnywhere\n    }\n}\n"
  },
  {
    "path": "qml/MainWindow/VoltageGraph.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\n\nimport \"../Widgets\"\nimport \"../Globals.js\" as Globals\n\nPlot {\n    //\n    // The graph will be black when there are no communications with the robot\n    //\n    property string noCommsColor: \"#000\"\n\n    //\n    // Gets current voltage and changes plot settings accordingly\n    //\n    function update() {\n        value = CppDS.voltage\n\n        if (!CppDS.connectedToRobot) {\n            barColor = noCommsColor\n            value = to * 0.95\n        }\n\n        else if (getLevel() > 0.80)\n            barColor = Globals.Colors.IndicatorGood\n        else if (getLevel() > 0.70)\n            barColor = Globals.Colors.IndicatorWarning\n        else\n            barColor = Globals.Colors.IndicatorError\n    }\n\n    //\n    // Refresh the graph values from time to time\n    //\n    onRefreshed: update()\n    barColor: Globals.Colors.TextAreaBackground\n\n    //\n    // Start graphing from origin, not from the middle or some other place\n    //\n    from: 0\n    Component.onCompleted: update()\n    to: CppDS.maximumBatteryVoltage\n}\n"
  },
  {
    "path": "qml/Widgets/Button.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport \"../Globals.js\" as Globals\n\nRectangle {\n    //\n    // Holds the text displayed by the button\n    //\n    property string text\n\n    //\n    // Holds the icon displayed by the button\n    //\n    property string icon\n\n    //\n    // Misc. properties\n    //\n    property bool enabled: true\n    property bool checked: false\n    property bool checkable: false\n\n    //\n    // Gives direct access to the text control\n    //\n    property alias caption: label\n\n    //\n    // Holds the list of the icon names\n    //\n    property alias icons: awesome.icons\n\n    //\n    // These properties control the size of the text and the icon\n    //\n    property alias textSize: label.size\n    property alias iconSize: awesome.size\n\n    //\n    // These properties control the colors of the text and the icon\n    //\n    property color textColor: Globals.Colors.Foreground\n    property color baseColor: Globals.Colors.WidgetBackground\n\n    //\n    // Emitted when the button is clicked, you can control what to\n    // do when the button is clicked with the onClicked: property\n    //\n    signal clicked\n\n    //\n    // Change the background color when the button is pressed or checked\n    //\n    color: {\n        if (checked || mouse.pressed)\n            return Qt.darker (baseColor, 1.7)\n\n        return baseColor\n    }\n\n    //\n    // Border size and color\n    //\n    border.width: Globals.scale (1)\n    border.color: Globals.Colors.WidgetBorder\n\n    //\n    // You may need to re-define these values when dealing with layouts\n    //\n    height: Globals.scale (24)\n    width: Math.max (label.implicitWidth + Globals.scale (12), Globals.scale (120))\n\n    //\n    // Perform a simple animation when the background color is changed\n    //\n    Behavior on baseColor {\n        ColorAnimation {\n            duration: Globals.slowAnimation\n        }\n    }\n\n    //\n    // Perform a simple animation when the foreground color is changed\n    //\n    Behavior on textColor {\n        ColorAnimation {\n            duration: Globals.slowAnimation\n        }\n    }\n\n    //\n    // The actual label/caption/text of the button\n    //\n    Label {\n        id: label\n        color: textColor\n        text: parent.text\n        anchors.fill: parent\n        opacity: parent.enabled ? 1 : 0.5\n        anchors.margins: Globals.scale (1)\n        verticalAlignment: Text.AlignVCenter\n        horizontalAlignment: Text.AlignHCenter\n    }\n\n    //\n    // The icon of the button\n    //\n    Icon {\n        id: awesome\n        size: large\n        color: textColor\n        name: parent.icon\n        anchors.fill: parent\n        anchors.margins: Globals.scale (1)\n    }\n\n    //\n    // Allows the Button to know if the mouse is over the control\n    // or pressing the control...\n    //\n    MouseArea {\n        id: mouse\n        hoverEnabled: true\n        anchors.fill: parent\n        enabled: parent.enabled\n\n        onClicked: {\n            Globals.normalBeep()\n            parent.clicked()\n\n            if (parent.checkable)\n                parent.checked = !parent.checked\n        }\n    }\n}\n"
  },
  {
    "path": "qml/Widgets/Checkbox.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport \"../Globals.js\" as Globals\n\nItem {\n    //\n    // Holds the text/caption of the control\n    //\n    property string text\n\n    //\n    // Misc. properties of the checkbox\n    //\n    property bool enabled: true\n    property bool checked: false\n    property bool leftToRight: false\n    property alias backgroundColor: checkbox.color\n\n    //\n    // Gives direct access to the caption/label control\n    //\n    property alias caption: label\n\n    //\n    // Resize the control to fit the text length and height\n    //\n    height: Math.max (checkbox.height, label.height)\n    width: checkbox.implicitWidth + label.implicitWidth + (2 * Globals.spacing)\n\n    //\n    // Holds the actual checkbox, because the rectangle is like a box...Ba Dum Tss!\n    //\n    Rectangle {\n        id: checkbox\n        border.width: Globals.scale (1)\n        implicitWidth: Globals.scale (16)\n        implicitHeight: Globals.scale (16)\n        color: Globals.Colors.WindowBackground\n        border.color: Globals.Colors.WidgetBorder\n\n        anchors {\n            verticalCenter: parent.verticalCenter\n            left: leftToRight ? label.right : parent.left\n            leftMargin: leftToRight ? Globals.spacing : 0\n        }\n\n        Icon {\n            name: icons.fa_check\n            anchors.centerIn: parent\n            color: checked ? Globals.Colors.AlternativeHighlight : parent.color\n        }\n    }\n\n    ///\n    /// The text of the control\n    ///\n    Label {\n        id: label\n        text: parent.text\n\n        anchors {\n            margins: Globals.spacing * 0.75\n            verticalCenter: parent.verticalCenter\n            left: leftToRight ? parent.left : checkbox.right\n        }\n    }\n\n    //\n    // Inverts the check-state of the widget when clicked\n    //\n    MouseArea {\n        anchors.fill: parent\n        enabled: parent.enabled\n        onClicked: {\n            Globals.normalBeep()\n            parent.checked = !parent.checked\n        }\n    }\n}\n"
  },
  {
    "path": "qml/Widgets/Combobox.qml",
    "content": "import QtQuick 2.0\nimport QtQuick.Controls 2.15\n\nimport \"../Globals.js\" as Globals\n\nComboBox {\n    id: combo\n\n    //\n    // Moves the current label to the right if set to true\n    //\n    property bool alignRight: false\n\n    //\n    // Qt 6 ComboBox with simplified styling\n    //\n    background: Rectangle {\n        border.width: Globals.scale (1)\n        color: Globals.Colors.WidgetBackground\n        border.color: Globals.Colors.WidgetBorder\n\n        Icon {\n            size: Globals.scale (12)\n            name: icons.fa_chevron_down\n\n            anchors {\n                right: parent.right\n                margins: Globals.spacing\n                verticalCenter: parent.verticalCenter\n            }\n        }\n    }\n\n    contentItem: Text {\n        leftPadding: alignRight ? 0 : Globals.spacing\n        rightPadding: alignRight ? Globals.spacing + Globals.scale(12) : 0\n        smooth: true\n        text: combo.displayText\n        font.family: Globals.uiFont\n        color: Globals.Colors.Foreground\n        font.pixelSize: Globals.scale (12)\n        verticalAlignment: Text.AlignVCenter\n        horizontalAlignment: alignRight ? Text.AlignRight : Text.AlignLeft\n        elide: Text.ElideRight\n    }\n}\n"
  },
  {
    "path": "qml/Widgets/Icon.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\n\nLabel {\n    id: label\n\n    property var icons: Icons {}\n    property alias name: label.text\n\n    font.family: \"FontAwesome\"\n    verticalAlignment: Text.AlignVCenter\n    horizontalAlignment: Text.AlignHCenter\n}\n"
  },
  {
    "path": "qml/Widgets/Icons.qml",
    "content": "/****************************************************************************\n**\n** The MIT License (MIT)\n**\n** Copyright (c) 2014 Ricardo do Valle Flores de Oliveira\n**\n** $BEGIN_LICENSE:MIT$\n** Permission is hereby granted, free of charge, to any person obtaining a copy\n** of this software and associated documentation files (the \"Software\"), to deal\n** in the Software without restriction, including without limitation the rights\n** to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n** copies of the Software, and to permit persons to whom the Software is\n** furnished to do so, subject to the following conditions:\n**\n** The above copyright notice and this permission notice shall be included in\n** all copies or substantial portions of the Software.\n**\n** THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n** IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n** AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n** OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n** SOFTWARE.\n**\n** $END_LICENSE$\n**\n****************************************************************************/\n\nimport QtQuick 2.0\n\nQtObject {\n    readonly property string fa_adjust                  : \"\\uf042\"\n    readonly property string fa_adn                     : \"\\uf170\"\n    readonly property string fa_align_center            : \"\\uf037\"\n    readonly property string fa_align_justify           : \"\\uf039\"\n    readonly property string fa_align_left              : \"\\uf036\"\n    readonly property string fa_align_right             : \"\\uf038\"\n    readonly property string fa_ambulance               : \"\\uf0f9\"\n    readonly property string fa_anchor                  : \"\\uf13d\"\n    readonly property string fa_android                 : \"\\uf17b\"\n    readonly property string fa_angellist               : \"\\uf209\"\n    readonly property string fa_angle_double_down       : \"\\uf103\"\n    readonly property string fa_angle_double_left       : \"\\uf100\"\n    readonly property string fa_angle_double_right      : \"\\uf101\"\n    readonly property string fa_angle_double_up         : \"\\uf102\"\n    readonly property string fa_angle_down              : \"\\uf107\"\n    readonly property string fa_angle_left              : \"\\uf104\"\n    readonly property string fa_angle_right             : \"\\uf105\"\n    readonly property string fa_angle_up                : \"\\uf106\"\n    readonly property string fa_apple                   : \"\\uf179\"\n    readonly property string fa_archive                 : \"\\uf187\"\n    readonly property string fa_area_chart              : \"\\uf1fe\"\n    readonly property string fa_arrow_circle_down       : \"\\uf0ab\"\n    readonly property string fa_arrow_circle_left       : \"\\uf0a8\"\n    readonly property string fa_arrow_circle_o_down     : \"\\uf01a\"\n    readonly property string fa_arrow_circle_o_left     : \"\\uf190\"\n    readonly property string fa_arrow_circle_o_right    : \"\\uf18e\"\n    readonly property string fa_arrow_circle_o_up       : \"\\uf01b\"\n    readonly property string fa_arrow_circle_right      : \"\\uf0a9\"\n    readonly property string fa_arrow_circle_up         : \"\\uf0aa\"\n    readonly property string fa_arrow_down              : \"\\uf063\"\n    readonly property string fa_arrow_left              : \"\\uf060\"\n    readonly property string fa_arrow_right             : \"\\uf061\"\n    readonly property string fa_arrow_up                : \"\\uf062\"\n    readonly property string fa_arrows                  : \"\\uf047\"\n    readonly property string fa_arrows_alt              : \"\\uf0b2\"\n    readonly property string fa_arrows_h                : \"\\uf07e\"\n    readonly property string fa_arrows_v                : \"\\uf07d\"\n    readonly property string fa_asterisk                : \"\\uf069\"\n    readonly property string fa_at                      : \"\\uf1fa\"\n    readonly property string fa_automobile              : \"\\uf1b9\"\n    readonly property string fa_backward                : \"\\uf04a\"\n    readonly property string fa_ban                     : \"\\uf05e\"\n    readonly property string fa_bank                    : \"\\uf19c\"\n    readonly property string fa_bar_chart_o             : \"\\uf080\"\n    readonly property string fa_barcode                 : \"\\uf02a\"\n    readonly property string fa_bars                    : \"\\uf0c9\"\n    readonly property string fa_beer                    : \"\\uf0fc\"\n    readonly property string fa_behance                 : \"\\uf1b4\"\n    readonly property string fa_behance_square          : \"\\uf1b5\"\n    readonly property string fa_bell                    : \"\\uf0f3\"\n    readonly property string fa_bell_o                  : \"\\uf0a2\"\n    readonly property string fa_bell_slash              : \"\\uf1f6\"\n    readonly property string fa_bell_slash_o            : \"\\uf1f7\"\n    readonly property string fa_bicycle                 : \"\\uf206\"\n    readonly property string fa_binoculars              : \"\\uf1e5\"\n    readonly property string fa_birthday_cake           : \"\\uf1fd\"\n    readonly property string fa_bitbucket               : \"\\uf171\"\n    readonly property string fa_bitbucket_square        : \"\\uf172\"\n    readonly property string fa_bitcoin                 : \"\\uf15a\"\n    readonly property string fa_bold                    : \"\\uf032\"\n    readonly property string fa_bolt                    : \"\\uf0e7\"\n    readonly property string fa_bomb                    : \"\\uf1e2\"\n    readonly property string fa_book                    : \"\\uf02d\"\n    readonly property string fa_bookmark                : \"\\uf02e\"\n    readonly property string fa_bookmark_o              : \"\\uf097\"\n    readonly property string fa_briefcase               : \"\\uf0b1\"\n    readonly property string fa_btc                     : \"\\uf15a\"\n    readonly property string fa_bug                     : \"\\uf188\"\n    readonly property string fa_building                : \"\\uf1ad\"\n    readonly property string fa_building_o              : \"\\uf0f7\"\n    readonly property string fa_bullhorn                : \"\\uf0a1\"\n    readonly property string fa_bullseye                : \"\\uf140\"\n    readonly property string $fa_bus                    : \"\\uf207\"\n    readonly property string fa_cab                     : \"\\uf1ba\"\n    readonly property string $fa_calculator             : \"\\uf1ec\"\n    readonly property string fa_calendar                : \"\\uf073\"\n    readonly property string fa_calendar_o              : \"\\uf133\"\n    readonly property string fa_camera                  : \"\\uf030\"\n    readonly property string fa_camera_retro            : \"\\uf083\"\n    readonly property string fa_car                     : \"\\uf1b9\"\n    readonly property string fa_caret_down              : \"\\uf0d7\"\n    readonly property string fa_caret_left              : \"\\uf0d9\"\n    readonly property string fa_caret_right             : \"\\uf0da\"\n    readonly property string fa_caret_square_o_down     : \"\\uf150\"\n    readonly property string fa_caret_square_o_left     : \"\\uf191\"\n    readonly property string fa_caret_square_o_right    : \"\\uf152\"\n    readonly property string fa_caret_square_o_up       : \"\\uf151\"\n    readonly property string fa_caret_up                : \"\\uf0d8\"\n    readonly property string fa_cc                      : \"\\uf20a\"\n    readonly property string fa_cc_amex                 : \"\\uf1f3\"\n    readonly property string fa_cc_discover             : \"\\uf1f2\"\n    readonly property string fa_cc_mastercard           : \"\\uf1f1\"\n    readonly property string fa_cc_paypal               : \"\\uf1f4\"\n    readonly property string fa_cc_stripe               : \"\\uf1f5\"\n    readonly property string fa_cc_visa                 : \"\\uf1f0\"\n    readonly property string fa_certificate             : \"\\uf0a3\"\n    readonly property string fa_chain                   : \"\\uf0c1\"\n    readonly property string fa_battery                 : \"\\uf244\"\n    readonly property string fa_chain_broken            : \"\\uf127\"\n    readonly property string fa_check                   : \"\\uf00c\"\n    readonly property string fa_check_circle            : \"\\uf058\"\n    readonly property string fa_check_circle_o          : \"\\uf05d\"\n    readonly property string fa_check_square            : \"\\uf14a\"\n    readonly property string fa_check_square_o          : \"\\uf046\"\n    readonly property string fa_chevron_circle_down     : \"\\uf13a\"\n    readonly property string fa_chevron_circle_left     : \"\\uf137\"\n    readonly property string fa_chevron_circle_right    : \"\\uf138\"\n    readonly property string fa_chevron_circle_up       : \"\\uf139\"\n    readonly property string fa_chevron_down            : \"\\uf078\"\n    readonly property string fa_chevron_left            : \"\\uf053\"\n    readonly property string fa_chevron_right           : \"\\uf054\"\n    readonly property string fa_chevron_up              : \"\\uf077\"\n    readonly property string fa_child                   : \"\\uf1ae\"\n    readonly property string fa_circle                  : \"\\uf111\"\n    readonly property string fa_circle_o                : \"\\uf10c\"\n    readonly property string fa_circle_o_notch          : \"\\uf1ce\"\n    readonly property string fa_circle_thin             : \"\\uf1db\"\n    readonly property string fa_clipboard               : \"\\uf0ea\"\n    readonly property string fa_clock_o                 : \"\\uf017\"\n    readonly property string fa_cloud                   : \"\\uf0c2\"\n    readonly property string fa_cloud_download          : \"\\uf0ed\"\n    readonly property string fa_cloud_upload            : \"\\uf0ee\"\n    readonly property string fa_cny                     : \"\\uf157\"\n    readonly property string fa_code                    : \"\\uf121\"\n    readonly property string fa_code_fork               : \"\\uf126\"\n    readonly property string fa_codepen                 : \"\\uf1cb\"\n    readonly property string fa_coffee                  : \"\\uf0f4\"\n    readonly property string fa_cog                     : \"\\uf013\"\n    readonly property string fa_cogs                    : \"\\uf085\"\n    readonly property string fa_columns                 : \"\\uf0db\"\n    readonly property string fa_comment                 : \"\\uf075\"\n    readonly property string fa_comment_o               : \"\\uf0e5\"\n    readonly property string fa_comments                : \"\\uf086\"\n    readonly property string fa_comments_o              : \"\\uf0e6\"\n    readonly property string fa_compass                 : \"\\uf14e\"\n    readonly property string fa_compress                : \"\\uf066\"\n    readonly property string fa_copy                    : \"\\uf0c5\"\n    readonly property string fa_copyright               : \"\\uf1f9\"\n    readonly property string fa_credit_card             : \"\\uf09d\"\n    readonly property string fa_crop                    : \"\\uf125\"\n    readonly property string fa_crosshairs              : \"\\uf05b\"\n    readonly property string fa_css3                    : \"\\uf13c\"\n    readonly property string fa_cube                    : \"\\uf1b2\"\n    readonly property string fa_cubes                   : \"\\uf1b3\"\n    readonly property string fa_cut                     : \"\\uf0c4\"\n    readonly property string fa_cutlery                 : \"\\uf0f5\"\n    readonly property string fa_dashboard               : \"\\uf0e4\"\n    readonly property string fa_database                : \"\\uf1c0\"\n    readonly property string fa_dedent                  : \"\\uf03b\"\n    readonly property string fa_delicious               : \"\\uf1a5\"\n    readonly property string fa_desktop                 : \"\\uf108\"\n    readonly property string fa_deviantart              : \"\\uf1bd\"\n    readonly property string fa_digg                    : \"\\uf1a6\"\n    readonly property string fa_dollar                  : \"\\uf155\"\n    readonly property string fa_dot_circle_o            : \"\\uf192\"\n    readonly property string fa_download                : \"\\uf019\"\n    readonly property string fa_dribbble                : \"\\uf17d\"\n    readonly property string fa_dropbox                 : \"\\uf16b\"\n    readonly property string fa_drupal                  : \"\\uf1a9\"\n    readonly property string fa_edit                    : \"\\uf044\"\n    readonly property string fa_eject                   : \"\\uf052\"\n    readonly property string fa_ellipsis_h              : \"\\uf141\"\n    readonly property string fa_ellipsis_v              : \"\\uf142\"\n    readonly property string fa_empire                  : \"\\uf1d1\"\n    readonly property string fa_envelope                : \"\\uf0e0\"\n    readonly property string fa_envelope_o              : \"\\uf003\"\n    readonly property string fa_envelope_square         : \"\\uf199\"\n    readonly property string fa_eraser                  : \"\\uf12d\"\n    readonly property string fa_eur                     : \"\\uf153\"\n    readonly property string fa_euro                    : \"\\uf153\"\n    readonly property string fa_exchange                : \"\\uf0ec\"\n    readonly property string fa_exclamation             : \"\\uf12a\"\n    readonly property string fa_exclamation_circle      : \"\\uf06a\"\n    readonly property string fa_exclamation_triangle    : \"\\uf071\"\n    readonly property string fa_expand                  : \"\\uf065\"\n    readonly property string fa_external_link           : \"\\uf08e\"\n    readonly property string fa_external_link_square    : \"\\uf14c\"\n    readonly property string fa_eye                     : \"\\uf06e\"\n    readonly property string fa_eye_slash               : \"\\uf070\"\n    readonly property string fa_eyedropper              : \"\\uf1fb\"\n    readonly property string fa_facebook                : \"\\uf09a\"\n    readonly property string fa_facebook_square         : \"\\uf082\"\n    readonly property string fa_fast_backward           : \"\\uf049\"\n    readonly property string fa_fast_forward            : \"\\uf050\"\n    readonly property string fa_fax                     : \"\\uf1ac\"\n    readonly property string fa_female                  : \"\\uf182\"\n    readonly property string fa_fighter_jet             : \"\\uf0fb\"\n    readonly property string fa_file                    : \"\\uf15b\"\n    readonly property string fa_file_archive_o          : \"\\uf1c6\"\n    readonly property string fa_file_audio_o            : \"\\uf1c7\"\n    readonly property string fa_file_code_o             : \"\\uf1c9\"\n    readonly property string fa_file_excel_o            : \"\\uf1c3\"\n    readonly property string fa_file_image_o            : \"\\uf1c5\"\n    readonly property string fa_file_movie_o            : \"\\uf1c8\"\n    readonly property string fa_file_o                  : \"\\uf016\"\n    readonly property string fa_file_pdf_o              : \"\\uf1c1\"\n    readonly property string fa_file_photo_o            : \"\\uf1c5\"\n    readonly property string fa_file_picture_o          : \"\\uf1c5\"\n    readonly property string fa_file_powerpoint_o       : \"\\uf1c4\"\n    readonly property string fa_file_sound_o            : \"\\uf1c7\"\n    readonly property string fa_file_text               : \"\\uf15c\"\n    readonly property string fa_file_text_o             : \"\\uf0f6\"\n    readonly property string fa_file_video_o            : \"\\uf1c8\"\n    readonly property string fa_file_word_o             : \"\\uf1c2\"\n    readonly property string fa_file_zip_o              : \"\\uf1c6\"\n    readonly property string fa_files_o                 : \"\\uf0c5\"\n    readonly property string fa_film                    : \"\\uf008\"\n    readonly property string fa_filter                  : \"\\uf0b0\"\n    readonly property string fa_fire                    : \"\\uf06d\"\n    readonly property string fa_fire_extinguisher       : \"\\uf134\"\n    readonly property string fa_flag                    : \"\\uf024\"\n    readonly property string fa_flag_checkered          : \"\\uf11e\"\n    readonly property string fa_flag_o                  : \"\\uf11d\"\n    readonly property string fa_flash                   : \"\\uf0e7\"\n    readonly property string fa_flask                   : \"\\uf0c3\"\n    readonly property string fa_flickr                  : \"\\uf16e\"\n    readonly property string fa_floppy_o                : \"\\uf0c7\"\n    readonly property string fa_folder                  : \"\\uf07b\"\n    readonly property string fa_folder_o                : \"\\uf114\"\n    readonly property string fa_folder_open             : \"\\uf07c\"\n    readonly property string fa_folder_open_o           : \"\\uf115\"\n    readonly property string fa_font                    : \"\\uf031\"\n    readonly property string fa_forward                 : \"\\uf04e\"\n    readonly property string fa_foursquare              : \"\\uf180\"\n    readonly property string fa_frown_o                 : \"\\uf119\"\n    readonly property string fa_futbol_o                : \"\\uf1e3\"\n    readonly property string fa_gamepad                 : \"\\uf11b\"\n    readonly property string fa_gavel                   : \"\\uf0e3\"\n    readonly property string fa_gbp                     : \"\\uf154\"\n    readonly property string fa_ge                      : \"\\uf1d1\"\n    readonly property string fa_gear                    : \"\\uf013\"\n    readonly property string fa_gears                   : \"\\uf085\"\n    readonly property string fa_gift                    : \"\\uf06b\"\n    readonly property string fa_git                     : \"\\uf1d3\"\n    readonly property string fa_git_square              : \"\\uf1d2\"\n    readonly property string fa_github                  : \"\\uf09b\"\n    readonly property string fa_github_alt              : \"\\uf113\"\n    readonly property string fa_github_square           : \"\\uf092\"\n    readonly property string fa_gittip                  : \"\\uf184\"\n    readonly property string fa_glass                   : \"\\uf000\"\n    readonly property string fa_globe                   : \"\\uf0ac\"\n    readonly property string fa_google                  : \"\\uf1a0\"\n    readonly property string fa_google_plus             : \"\\uf0d5\"\n    readonly property string fa_google_plus_square      : \"\\uf0d4\"\n    readonly property string fa_google_wallet           : \"\\uf1ee\"\n    readonly property string fa_graduation_cap          : \"\\uf19d\"\n    readonly property string fa_group                   : \"\\uf0c0\"\n    readonly property string fa_h_square                : \"\\uf0fd\"\n    readonly property string fa_hacker_news             : \"\\uf1d4\"\n    readonly property string fa_hand_o_down             : \"\\uf0a7\"\n    readonly property string fa_hand_o_left             : \"\\uf0a5\"\n    readonly property string fa_hand_o_right            : \"\\uf0a4\"\n    readonly property string fa_hand_o_up               : \"\\uf0a6\"\n    readonly property string fa_hdd_o                   : \"\\uf0a0\"\n    readonly property string fa_header                  : \"\\uf1dc\"\n    readonly property string fa_headphones              : \"\\uf025\"\n    readonly property string fa_heart                   : \"\\uf004\"\n    readonly property string fa_heart_o                 : \"\\uf08a\"\n    readonly property string fa_history                 : \"\\uf1da\"\n    readonly property string fa_home                    : \"\\uf015\"\n    readonly property string fa_hospital_o              : \"\\uf0f8\"\n    readonly property string fa_html5                   : \"\\uf13b\"\n    readonly property string fa_ils                     : \"\\uf20b\"\n    readonly property string fa_image                   : \"\\uf03e\"\n    readonly property string fa_inbox                   : \"\\uf01c\"\n    readonly property string fa_indent                  : \"\\uf03c\"\n    readonly property string fa_info                    : \"\\uf129\"\n    readonly property string fa_info_circle             : \"\\uf05a\"\n    readonly property string fa_inr                     : \"\\uf156\"\n    readonly property string fa_instagram               : \"\\uf16d\"\n    readonly property string fa_institution             : \"\\uf19c\"\n    readonly property string fa_ioxhost                 : \"\\uf208\"\n    readonly property string fa_italic                  : \"\\uf033\"\n    readonly property string fa_joomla                  : \"\\uf1aa\"\n    readonly property string fa_jpy                     : \"\\uf157\"\n    readonly property string fa_jsfiddle                : \"\\uf1cc\"\n    readonly property string fa_key                     : \"\\uf084\"\n    readonly property string fa_keyboard_o              : \"\\uf11c\"\n    readonly property string fa_krw                     : \"\\uf159\"\n    readonly property string fa_language                : \"\\uf1ab\"\n    readonly property string fa_laptop                  : \"\\uf109\"\n    readonly property string fa_lastfm                  : \"\\uf202\"\n    readonly property string fa_lastfm_square           : \"\\uf203\"\n    readonly property string fa_leaf                    : \"\\uf06c\"\n    readonly property string fa_legal                   : \"\\uf0e3\"\n    readonly property string fa_lemon_o                 : \"\\uf094\"\n    readonly property string fa_level_down              : \"\\uf149\"\n    readonly property string fa_level_up                : \"\\uf148\"\n    readonly property string fa_life_bouy               : \"\\uf1cd\"\n    readonly property string fa_life_buoy               : \"\\uf1cd\"\n    readonly property string fa_life_ring               : \"\\uf1cd\"\n    readonly property string fa_life_saver              : \"\\uf1cd\"\n    readonly property string fa_lightbulb_o             : \"\\uf0eb\"\n    readonly property string fa_line_chart              : \"\\uf201\"\n    readonly property string fa_link                    : \"\\uf0c1\"\n    readonly property string fa_linkedin                : \"\\uf0e1\"\n    readonly property string fa_linkedin_square         : \"\\uf08c\"\n    readonly property string fa_linux                   : \"\\uf17c\"\n    readonly property string fa_list                    : \"\\uf03a\"\n    readonly property string fa_list_alt                : \"\\uf022\"\n    readonly property string fa_list_ol                 : \"\\uf0cb\"\n    readonly property string fa_list_ul                 : \"\\uf0ca\"\n    readonly property string fa_location_arrow          : \"\\uf124\"\n    readonly property string fa_lock                    : \"\\uf023\"\n    readonly property string fa_long_arrow_down         : \"\\uf175\"\n    readonly property string fa_long_arrow_left         : \"\\uf177\"\n    readonly property string fa_long_arrow_right        : \"\\uf178\"\n    readonly property string fa_long_arrow_up           : \"\\uf176\"\n    readonly property string fa_magic                   : \"\\uf0d0\"\n    readonly property string fa_magnet                  : \"\\uf076\"\n    readonly property string fa_mail_forward            : \"\\uf064\"\n    readonly property string fa_mail_reply              : \"\\uf112\"\n    readonly property string fa_mail_reply_all          : \"\\uf122\"\n    readonly property string fa_male                    : \"\\uf183\"\n    readonly property string fa_map_marker              : \"\\uf041\"\n    readonly property string fa_maxcdn                  : \"\\uf136\"\n    readonly property string fa_meanpath                : \"\\uf20c\"\n    readonly property string fa_medkit                  : \"\\uf0fa\"\n    readonly property string fa_meh_o                   : \"\\uf11a\"\n    readonly property string fa_microphone              : \"\\uf130\"\n    readonly property string fa_microphone_slash        : \"\\uf131\"\n    readonly property string fa_minus                   : \"\\uf068\"\n    readonly property string fa_minus_circle            : \"\\uf056\"\n    readonly property string fa_minus_square            : \"\\uf146\"\n    readonly property string fa_minus_square_o          : \"\\uf147\"\n    readonly property string fa_mobile                  : \"\\uf10b\"\n    readonly property string fa_mobile_phone            : \"\\uf10b\"\n    readonly property string fa_money                   : \"\\uf0d6\"\n    readonly property string fa_moon_o                  : \"\\uf186\"\n    readonly property string fa_mortar_board            : \"\\uf19d\"\n    readonly property string fa_music                   : \"\\uf001\"\n    readonly property string fa_navicon                 : \"\\uf0c9\"\n    readonly property string fa_newspaper_o             : \"\\uf1ea\"\n    readonly property string fa_openid                  : \"\\uf19b\"\n    readonly property string fa_outdent                 : \"\\uf03b\"\n    readonly property string fa_pagelines               : \"\\uf18c\"\n    readonly property string fa_paint_brush             : \"\\uf1fc\"\n    readonly property string fa_paper_plane             : \"\\uf1d8\"\n    readonly property string fa_paper_plane_o           : \"\\uf1d9\"\n    readonly property string fa_paperclip               : \"\\uf0c6\"\n    readonly property string fa_paragraph               : \"\\uf1dd\"\n    readonly property string fa_paste                   : \"\\uf0ea\"\n    readonly property string fa_pause                   : \"\\uf04c\"\n    readonly property string fa_paw                     : \"\\uf1b0\"\n    readonly property string fa_paypal                  : \"\\uf1ed\"\n    readonly property string fa_pencil                  : \"\\uf040\"\n    readonly property string fa_pencil_square           : \"\\uf14b\"\n    readonly property string fa_pencil_square_o         : \"\\uf044\"\n    readonly property string fa_phone                   : \"\\uf095\"\n    readonly property string fa_phone_square            : \"\\uf098\"\n    readonly property string fa_photo                   : \"\\uf03e\"\n    readonly property string fa_picture_o               : \"\\uf03e\"\n    readonly property string fa_pie_chart               : \"\\uf200\"\n    readonly property string fa_pied_piper              : \"\\uf1a7\"\n    readonly property string fa_pied_piper_alt          : \"\\uf1a8\"\n    readonly property string fa_pinterest               : \"\\uf0d2\"\n    readonly property string fa_pinterest_square        : \"\\uf0d3\"\n    readonly property string fa_plane                   : \"\\uf072\"\n    readonly property string fa_play                    : \"\\uf04b\"\n    readonly property string fa_play_circle             : \"\\uf144\"\n    readonly property string fa_play_circle_o           : \"\\uf01d\"\n    readonly property string fa_plug                    : \"\\uf1e6\"\n    readonly property string fa_plus                    : \"\\uf067\"\n    readonly property string fa_plus_circle             : \"\\uf055\"\n    readonly property string fa_plus_square             : \"\\uf0fe\"\n    readonly property string fa_plus_square_o           : \"\\uf196\"\n    readonly property string fa_power_off               : \"\\uf011\"\n    readonly property string fa_print                   : \"\\uf02f\"\n    readonly property string fa_puzzle_piece            : \"\\uf12e\"\n    readonly property string fa_qq                      : \"\\uf1d6\"\n    readonly property string fa_qrcode                  : \"\\uf029\"\n    readonly property string fa_question                : \"\\uf128\"\n    readonly property string fa_question_circle         : \"\\uf059\"\n    readonly property string fa_quote_left              : \"\\uf10d\"\n    readonly property string fa_quote_right             : \"\\uf10e\"\n    readonly property string fa_ra                      : \"\\uf1d0\"\n    readonly property string fa_random                  : \"\\uf074\"\n    readonly property string fa_rebel                   : \"\\uf1d0\"\n    readonly property string fa_recycle                 : \"\\uf1b8\"\n    readonly property string fa_reddit                  : \"\\uf1a1\"\n    readonly property string fa_reddit_square           : \"\\uf1a2\"\n    readonly property string fa_refresh                 : \"\\uf021\"\n    readonly property string fa_remove                  : \"\\uf00d\"\n    readonly property string fa_renren                  : \"\\uf18b\"\n    readonly property string fa_reorder                 : \"\\uf0c9\"\n    readonly property string fa_repeat                  : \"\\uf01e\"\n    readonly property string fa_reply                   : \"\\uf112\"\n    readonly property string fa_reply_all               : \"\\uf122\"\n    readonly property string fa_retweet                 : \"\\uf079\"\n    readonly property string fa_rmb                     : \"\\uf157\"\n    readonly property string fa_road                    : \"\\uf018\"\n    readonly property string fa_rocket                  : \"\\uf135\"\n    readonly property string fa_rotate_left             : \"\\uf0e2\"\n    readonly property string fa_rotate_right            : \"\\uf01e\"\n    readonly property string fa_rouble                  : \"\\uf158\"\n    readonly property string fa_rss                     : \"\\uf09e\"\n    readonly property string fa_rss_square              : \"\\uf143\"\n    readonly property string fa_rub                     : \"\\uf158\"\n    readonly property string fa_ruble                   : \"\\uf158\"\n    readonly property string fa_rupee                   : \"\\uf156\"\n    readonly property string fa_save                    : \"\\uf0c7\"\n    readonly property string fa_scissors                : \"\\uf0c4\"\n    readonly property string fa_search                  : \"\\uf002\"\n    readonly property string fa_search_minus            : \"\\uf010\"\n    readonly property string fa_search_plus             : \"\\uf00e\"\n    readonly property string fa_send                    : \"\\uf1d8\"\n    readonly property string fa_send_o                  : \"\\uf1d9\"\n    readonly property string fa_share                   : \"\\uf064\"\n    readonly property string fa_share_alt               : \"\\uf1e0\"\n    readonly property string fa_share_alt_square        : \"\\uf1e1\"\n    readonly property string fa_share_square            : \"\\uf14d\"\n    readonly property string fa_share_square_o          : \"\\uf045\"\n    readonly property string fa_shekel                  : \"\\uf20b\"\n    readonly property string fa_sheqel                  : \"\\uf20b\"\n    readonly property string fa_shield                  : \"\\uf132\"\n    readonly property string fa_shopping_cart           : \"\\uf07a\"\n    readonly property string fa_sign_in                 : \"\\uf090\"\n    readonly property string fa_sign_out                : \"\\uf08b\"\n    readonly property string fa_signal                  : \"\\uf012\"\n    readonly property string fa_sitemap                 : \"\\uf0e8\"\n    readonly property string fa_skype                   : \"\\uf17e\"\n    readonly property string fa_slack                   : \"\\uf198\"\n    readonly property string fa_sliders                 : \"\\uf1de\"\n    readonly property string fa_slideshare              : \"\\uf1e7\"\n    readonly property string fa_smile_o                 : \"\\uf118\"\n    readonly property string fa_soccer_ball_o           : \"\\uf1e3\"\n    readonly property string fa_sort                    : \"\\uf0dc\"\n    readonly property string fa_sort_alpha_asc          : \"\\uf15d\"\n    readonly property string fa_sort_alpha_desc         : \"\\uf15e\"\n    readonly property string fa_sort_amount_asc         : \"\\uf160\"\n    readonly property string fa_sort_amount_desc        : \"\\uf161\"\n    readonly property string fa_sort_asc                : \"\\uf0de\"\n    readonly property string fa_sort_desc               : \"\\uf0dd\"\n    readonly property string fa_sort_down               : \"\\uf0dd\"\n    readonly property string fa_sort_numeric_asc        : \"\\uf162\"\n    readonly property string fa_sort_numeric_desc       : \"\\uf163\"\n    readonly property string fa_sort_up                 : \"\\uf0de\"\n    readonly property string fa_soundcloud              : \"\\uf1be\"\n    readonly property string fa_space_shuttle           : \"\\uf197\"\n    readonly property string fa_spinner                 : \"\\uf110\"\n    readonly property string fa_spoon                   : \"\\uf1b1\"\n    readonly property string fa_spotify                 : \"\\uf1bc\"\n    readonly property string fa_square                  : \"\\uf0c8\"\n    readonly property string fa_square_o                : \"\\uf096\"\n    readonly property string fa_stack_exchange          : \"\\uf18d\"\n    readonly property string fa_stack_overflow          : \"\\uf16c\"\n    readonly property string fa_star                    : \"\\uf005\"\n    readonly property string fa_star_half               : \"\\uf089\"\n    readonly property string fa_star_half_empty         : \"\\uf123\"\n    readonly property string fa_star_half_full          : \"\\uf123\"\n    readonly property string fa_star_half_o             : \"\\uf123\"\n    readonly property string fa_star_o                  : \"\\uf006\"\n    readonly property string fa_steam                   : \"\\uf1b6\"\n    readonly property string fa_steam_square            : \"\\uf1b7\"\n    readonly property string fa_step_backward           : \"\\uf048\"\n    readonly property string fa_step_forward            : \"\\uf051\"\n    readonly property string fa_stethoscope             : \"\\uf0f1\"\n    readonly property string fa_stop                    : \"\\uf04d\"\n    readonly property string fa_strikethrough           : \"\\uf0cc\"\n    readonly property string fa_stumbleupon             : \"\\uf1a4\"\n    readonly property string fa_stumbleupon_circle      : \"\\uf1a3\"\n    readonly property string fa_subscript               : \"\\uf12c\"\n    readonly property string fa_suitcase                : \"\\uf0f2\"\n    readonly property string fa_sun_o                   : \"\\uf185\"\n    readonly property string fa_superscript             : \"\\uf12b\"\n    readonly property string fa_support                 : \"\\uf1cd\"\n    readonly property string fa_table                   : \"\\uf0ce\"\n    readonly property string fa_tablet                  : \"\\uf10a\"\n    readonly property string fa_tachometer              : \"\\uf0e4\"\n    readonly property string fa_tag                     : \"\\uf02b\"\n    readonly property string fa_tags                    : \"\\uf02c\"\n    readonly property string fa_tasks                   : \"\\uf0ae\"\n    readonly property string fa_taxi                    : \"\\uf1ba\"\n    readonly property string fa_tencent_weibo           : \"\\uf1d5\"\n    readonly property string fa_terminal                : \"\\uf120\"\n    readonly property string fa_text_height             : \"\\uf034\"\n    readonly property string fa_text_width              : \"\\uf035\"\n    readonly property string fa_th                      : \"\\uf00a\"\n    readonly property string fa_th_large                : \"\\uf009\"\n    readonly property string fa_th_list                 : \"\\uf00b\"\n    readonly property string fa_thumb_tack              : \"\\uf08d\"\n    readonly property string fa_thumbs_down             : \"\\uf165\"\n    readonly property string fa_thumbs_o_down           : \"\\uf088\"\n    readonly property string fa_thumbs_o_up             : \"\\uf087\"\n    readonly property string fa_thumbs_up               : \"\\uf164\"\n    readonly property string fa_ticket                  : \"\\uf145\"\n    readonly property string fa_times                   : \"\\uf00d\"\n    readonly property string fa_times_circle            : \"\\uf057\"\n    readonly property string fa_times_circle_o          : \"\\uf05c\"\n    readonly property string fa_tint                    : \"\\uf043\"\n    readonly property string fa_toggle_down             : \"\\uf150\"\n    readonly property string fa_toggle_left             : \"\\uf191\"\n    readonly property string fa_toggle_off              : \"\\uf204\"\n    readonly property string fa_toggle_on               : \"\\uf205\"\n    readonly property string fa_toggle_right            : \"\\uf152\"\n    readonly property string fa_toggle_up               : \"\\uf151\"\n    readonly property string fa_trash                   : \"\\uf1f8\"\n    readonly property string fa_trash_o                 : \"\\uf014\"\n    readonly property string fa_tree                    : \"\\uf1bb\"\n    readonly property string fa_trello                  : \"\\uf181\"\n    readonly property string fa_trophy                  : \"\\uf091\"\n    readonly property string fa_truck                   : \"\\uf0d1\"\n    readonly property string fa_try                     : \"\\uf195\"\n    readonly property string fa_tty                     : \"\\uf1e4\"\n    readonly property string fa_tumblr                  : \"\\uf173\"\n    readonly property string fa_tumblr_square           : \"\\uf174\"\n    readonly property string fa_turkish_lira            : \"\\uf195\"\n    readonly property string fa_twitch                  : \"\\uf1e8\"\n    readonly property string fa_twitter                 : \"\\uf099\"\n    readonly property string fa_twitter_square          : \"\\uf081\"\n    readonly property string fa_umbrella                : \"\\uf0e9\"\n    readonly property string fa_underline               : \"\\uf0cd\"\n    readonly property string fa_undo                    : \"\\uf0e2\"\n    readonly property string fa_university              : \"\\uf19c\"\n    readonly property string fa_unlink                  : \"\\uf127\"\n    readonly property string fa_unlock                  : \"\\uf09c\"\n    readonly property string fa_unlock_alt              : \"\\uf13e\"\n    readonly property string fa_unsorted                : \"\\uf0dc\"\n    readonly property string fa_upload                  : \"\\uf093\"\n    readonly property string fa_usd                     : \"\\uf155\"\n    readonly property string fa_usb                     : \"\\uf287\"\n    readonly property string fa_user                    : \"\\uf007\"\n    readonly property string fa_user_md                 : \"\\uf0f0\"\n    readonly property string fa_users                   : \"\\uf0c0\"\n    readonly property string fa_video_camera            : \"\\uf03d\"\n    readonly property string fa_vimeo_square            : \"\\uf194\"\n    readonly property string fa_vine                    : \"\\uf1ca\"\n    readonly property string fa_vk                      : \"\\uf189\"\n    readonly property string fa_volume_down             : \"\\uf027\"\n    readonly property string fa_volume_off              : \"\\uf026\"\n    readonly property string fa_volume_up               : \"\\uf028\"\n    readonly property string fa_warning                 : \"\\uf071\"\n    readonly property string fa_wechat                  : \"\\uf1d7\"\n    readonly property string fa_weibo                   : \"\\uf18a\"\n    readonly property string fa_weixin                  : \"\\uf1d7\"\n    readonly property string fa_wheelchair              : \"\\uf193\"\n    readonly property string fa_wifi                    : \"\\uf1eb\"\n    readonly property string fa_windows                 : \"\\uf17a\"\n    readonly property string fa_won                     : \"\\uf159\"\n    readonly property string fa_wordpress               : \"\\uf19a\"\n    readonly property string fa_wrench                  : \"\\uf0ad\"\n    readonly property string fa_xing                    : \"\\uf168\"\n    readonly property string fa_xing_square             : \"\\uf169\"\n    readonly property string fa_yahoo                   : \"\\uf19e\"\n    readonly property string fa_yelp                    : \"\\uf1e9\"\n    readonly property string fa_yen                     : \"\\uf157\"\n    readonly property string fa_youtube                 : \"\\uf167\"\n    readonly property string fa_youtube_play            : \"\\uf16a\"\n    readonly property string fa_youtube_square          : \"\\uf166\"\n}\n"
  },
  {
    "path": "qml/Widgets/LED.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport \"../Globals.js\" as Globals\n\nItem {\n    //\n    // Holds the text/caption/label of the control\n    //\n    property string text\n\n    //\n    // Misc. properties...\n    //\n    property bool enabled: false\n    property bool checked: false\n    property bool showBorder: false\n    property bool leftToRight: false\n    property string textColor: Globals.Colors.Foreground\n\n    //\n    // LED on/off colors\n    //\n    property string poweredColor: Globals.Colors.IndicatorGood\n    property string unpoweredColor: Globals.Colors.IndicatorError\n\n    //\n    // Gives direct access to the caption control\n    //\n    property alias caption: label\n\n    //\n    // Gives access to the LED size\n    //\n    property int ledWidth: Globals.scale (28)\n    property int ledHeight: Globals.scale (12)\n\n    //\n    // Control sizes\n    //\n    implicitHeight: Math.max (ledHeight, label.height)\n    implicitWidth: ledWidth + label.implicitWidth + (2 * Globals.spacing)\n\n    ///\n    /// This is the actual LED...\n    ///\n    Rectangle {\n        id: led\n        implicitWidth: ledWidth\n        implicitHeight: ledHeight\n        border.color: Globals.Colors.WidgetBorder\n        color: checked ? poweredColor : unpoweredColor\n        border.width: Globals.scale (showBorder ? 1 : 0)\n\n        Behavior on color {\n            ColorAnimation {\n                duration: Globals.slowAnimation\n            }\n        }\n\n        anchors {\n            margins: Globals.spacing\n            verticalCenter: parent.verticalCenter\n            left: leftToRight ? label.right : parent.left\n        }\n    }\n\n    //\n    // The text of the LED/checkbox\n    //\n    Label {\n        id: label\n        text: parent.text\n        color: parent.textColor\n\n        anchors {\n            margins: Globals.spacing\n            verticalCenter: parent.verticalCenter\n            left: leftToRight ? parent.left : led.right\n        }\n    }\n\n    //\n    // Inverts the checked state of the widget when clicked\n    //\n    MouseArea {\n        anchors.fill: parent\n        enabled: parent.enabled\n        onClicked: {\n            Globals.normalBeep()\n            parent.checked = !parent.checked\n        }\n    }\n}\n"
  },
  {
    "path": "qml/Widgets/Label.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport \"../Globals.js\" as Globals\n\nText {\n    property int size: normal\n    readonly property int small:  Globals.scale (10)\n    readonly property int large:  Globals.scale (16)\n    readonly property int normal: Globals.scale (12)\n    readonly property int medium: Globals.scale (14)\n\n    smooth: true\n    font.pixelSize: size\n    font.family: Globals.uiFont\n    color: Globals.Colors.Foreground\n}\n"
  },
  {
    "path": "qml/Widgets/LineEdit.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport \"../Globals.js\" as Globals\n\nItem {\n    //\n    // Gives direct access to the line edit\n    //\n    property alias editor: input\n\n    //\n    // Holds the text of the line edit\n    //\n    property alias text: input.text\n\n    //\n    // Holds the placeholder text of the control, which is\n    // shown when the text is empty\n    //\n    property string placeholder\n\n    //\n    // The colors of the base rectangle and the text\n    //\n    property string foregroundColor: Globals.Colors.TextAreaForeground\n    property string backgroundColor: Globals.Colors.TextAreaBackground\n\n    //\n    // Control size\n    //\n    height: Globals.scale (24)\n    implicitWidth: Globals.scale (128)\n    implicitHeight: Globals.scale (24)\n\n    //\n    // Base rectangle of the line edit\n    //\n    Rectangle {\n        anchors.fill: parent\n        color: backgroundColor\n        border.width: Globals.scale (1)\n        opacity: parent.enabled ? 1 :0.5\n        border.color: Globals.Colors.WidgetBorder\n\n        Behavior on opacity {\n            NumberAnimation {\n                duration: Globals.slowAnimation\n            }\n        }\n    }\n\n    //\n    // Placeholder text edit\n    //\n    TextInput {\n        opacity: 0.5\n        readOnly: true\n        text: placeholder\n        anchors.fill: parent\n        color: foregroundColor\n        visible: input.text === \"\"\n        font.family: Globals.uiFont\n        font.pixelSize: Globals.scale (12)\n        anchors.margins: Globals.scale (5)\n    }\n\n    //\n    // The actual line edit\n    //\n    TextInput {\n        id: input\n        anchors.fill: parent\n        color: foregroundColor\n        readOnly: !parent.enabled\n        font.family: Globals.uiFont\n        font.pixelSize: Globals.scale (12)\n        anchors.margins: Globals.scale (5)\n        selectionColor: Globals.Colors.HighlightColor\n    }\n}\n"
  },
  {
    "path": "qml/Widgets/ListViewer.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport \"../Globals.js\" as Globals\n\nRectangle {\n    property alias list: view\n    property alias model: view.model\n    property alias delegate: view.delegate\n\n    border.width: Globals.scale (1)\n    color: Globals.Colors.WindowBackground\n    border.color: Globals.Colors.WidgetBorder\n\n    //\n    // Allows the scrollbar to show/hide automatically\n    //\n    MouseArea {\n        id: mouse\n        anchors.fill: parent\n    }\n\n    //\n    // Contains the list in a scrollable area\n    //\n    Flickable {\n        id: flick\n        clip: true\n        interactive: true\n        contentWidth: parent.width\n        contentHeight: view.contentHeight\n        flickableDirection: Flickable.VerticalFlick\n\n        anchors {\n            fill: parent\n            margins: Globals.scale (5)\n            rightMargin: scroll.width + Globals.scale (8)\n        }\n\n        //\n        // The actual list\n        //\n        ListView {\n            id: view\n            anchors.fill: parent\n            anchors.rightMargin: flick.anchors.rightMargin\n        }\n    }\n\n    //\n    // The scrollbar, it is smart and it will show and hide automatically,\n    // it will also go back in time and kill your younger self\n    //\n    Scrollbar {\n        id: scroll\n        mouseArea: mouse\n        scrollArea: flick\n        height: parent.height\n        width: opacity > 0 ? Globals.scale (8) : 0\n\n        Behavior on width {NumberAnimation{}}\n\n        anchors {\n            top: parent.top\n            right: parent.right\n            bottom: parent.bottom\n            margins: Globals.scale (6)\n        }\n    }\n\n    //\n    // Animate when changing size\n    //\n    Behavior on width {\n        NumberAnimation {\n            duration: Globals.slowAnimation\n        }\n    } Behavior on height {\n        NumberAnimation {\n            duration: Globals.slowAnimation\n        }\n    }\n}\n"
  },
  {
    "path": "qml/Widgets/Panel.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport \"../Globals.js\" as Globals\n\n//\n// This item is the ultimate expression of my lazyness\n//\nRectangle {\n    radius: Globals.scale (5)\n    border.width: Globals.scale (1)\n    color: Globals.Colors.PanelBackground\n    border.color: Globals.Colors.WidgetBorder\n\n    Behavior on color {\n        ColorAnimation {\n            duration: Globals.slowAnimation\n        }\n    }\n}\n"
  },
  {
    "path": "qml/Widgets/Plot.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport \"../Globals.js\" as Globals\n\nRectangle {\n    id: plot\n\n    //\n    // Defines the refresh interval (in milliseconds) of the graph\n    //\n    property int refreshInterval: 50\n\n    //\n    // Defines the width of each bar generated during each refresh\n    //\n    property double rectWidth: Globals.scale (2)\n\n    //\n    // Gives direct access to the canvas object\n    //\n    property alias canvasObject: canvas\n\n    //\n    // Defines the color to use to draw the lines\n    //\n    property string barColor: Globals.Colors.HighlightColor\n\n    //\n    // Display options\n    //\n    property double value: 0\n    property double from: 0\n    property double to: 100\n\n    //\n    // Emitted when the timer expires and a canvas repaint is done\n    //\n    signal refreshed\n\n    //\n    // Calculates the ratio between the current value and the maxinum value\n    //\n    function getLevel() {\n        return Math.max (value / to, from / to)\n    }\n\n    //\n    // Changes the time in which the graph resets itself\n    //\n    function setSpeed (seconds) {\n        /* Get current time required to reset the graph */\n        var pixelsPerSec = rectWidth * (1000 / refreshInterval)\n        var resetTime = width / pixelsPerSec\n\n        /* Do a rule of three to obtain new refresh interval */\n        var newInterval = (seconds * refreshInterval) / resetTime\n\n        /* Apply obtained interval */\n        refreshInterval = newInterval\n        timer.interval = refreshInterval\n    }\n\n    //\n    // Forces the canvas to clear its plot\n    //\n    function clear() {\n        timer.currentPos = canvas.width / rectWidth\n    }\n\n    //\n    // Rectangle color & border\n    //\n    border.width: Globals.scale (1)\n    color: Globals.Colors.WindowBackground\n    border.color: Globals.Colors.WidgetBorder\n\n    //\n    // Refreshes the graph on real-time\n    //\n    Timer {\n        id: timer\n        interval: refreshInterval\n        Component.onCompleted: start()\n\n        property int currentPos: 0\n\n        onTriggered: {\n            if (plot.visible)\n                ++currentPos\n\n            canvas.requestPaint()\n            parent.refreshed()\n        }\n    }\n\n    //\n    // The actual canvas used to draw the graph\n    //\n    Canvas {\n        id: canvas\n        anchors.fill: parent\n        renderStrategy: Canvas.Threaded\n        anchors.margins: parent.border.width\n\n        onPaint: {\n            /* Lazy is good sometimes */\n            if (plot.visible) {\n                /* Get drawing context */\n                var context = getContext('2d')\n\n                /* Set the bar color */\n                context.fillStyle = barColor\n\n                /* Calculate X and Y coordinates */\n                var yOffset = (1 - getLevel()) * height\n                var xOffset = timer.currentPos * rectWidth\n\n                /* Reset the graph if it is greater than the width */\n                if (xOffset > canvas.width) {\n                    xOffset = 0\n                    timer.currentPos = 0\n                    context.clearRect (0, 0, canvas.width, canvas.height)\n                }\n\n                /* Draw a single bar */\n                context.fillRect (xOffset, yOffset, rectWidth, height)\n            }\n\n            /* Restart the timer */\n            timer.restart()\n        }\n    }\n}\n"
  },
  {
    "path": "qml/Widgets/Progressbar.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport \"../Globals.js\" as Globals\n\nRectangle {\n    //\n    // Holds the relative value of the progressbar\n    //\n    property int value: 0\n\n    //\n    // The values hold the 'range' of the progressbar\n    //\n    property int from: 0\n    property int to: 100\n\n    //\n    // Default caption will display current relative value of progressbar\n    //\n    property string text: value + \"%\"\n\n    //\n    // Define the colors of the progressbar\n    //\n    property string barColor: Globals.Colors.HighlightColor\n    property string textColor: Globals.Colors.TextAreaForeground\n\n    //\n    // Set height of widget and width of border\n    //\n    height: Globals.scale (14)\n    border.width: Globals.scale (1)\n\n    //\n    // Set background color and border color\n    //\n    color: Globals.Colors.WindowBackground\n    border.color: Globals.Colors.WidgetBorder\n\n    //\n    // Animate the progrssbar when it changes its value\n    //\n    Behavior on value {\n        NumberAnimation {\n            duration: Globals.slowAnimation\n        }\n    }\n\n    //\n    // The 'foreground' part of the progress bar that displays its value\n    //\n    Rectangle {\n        y: 0\n        x: 0\n        color: barColor\n        radius: parent.radius\n        height: parent.height\n        border.width: parent.border.width\n        border.color: parent.border.color\n        width: parent.width * ((from + value) / to)\n    }\n\n    //\n    // The text/caption of the progressbar\n    //\n    Label {\n        text: parent.text\n        anchors.centerIn: parent\n        opacity: font.pixelSize > Globals.scale (8)\n        font.pixelSize: Math.min (Globals.scale (12), parent.height * (2/3))\n    }\n}\n"
  },
  {
    "path": "qml/Widgets/Scrollbar.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport \"../Globals.js\" as Globals\n\nItem {\n    id: container\n    opacity: 0\n\n    property variant mouseArea\n    property variant scrollArea\n    property variant orientation: Qt.Vertical\n\n    //\n    // Shows the control and enables the 'watchdog' timer\n    //\n    function showControl() {\n        if (scroll.height < container.height)\n            opacity = 1\n\n        else\n            opacity = 0\n\n        timer.start()\n    }\n\n    //\n    // Used to calculate the position that the scrollbar\n    // should have to stay in reference with the height/width of\n    // the parent flickable\n    //\n    function calculatePosition()\n    {\n        var ny = 0;\n\n        if (container.orientation == Qt.Vertical)\n            ny = scrollArea.visibleArea.yPosition * container.height;\n\n        else\n            ny = scrollArea.visibleArea.xPosition * container.width;\n\n        if (ny > Globals.scale (2))\n            return ny;\n\n        else return Globals.scale (2);\n    }\n\n    //\n    // Used to calculate the size that the scrollbar should have\n    //\n    function calculateSize()\n    {\n        var nh, ny;\n\n        if (container.orientation == Qt.Vertical)\n            nh = scrollArea.visibleArea.heightRatio * container.height;\n        else\n            nh = scrollArea.visibleArea.widthRatio * container.width;\n\n        if (container.orientation == Qt.Vertical)\n            ny = scrollArea.visibleArea.yPosition * container.height;\n        else\n            ny = scrollArea.visibleArea.xPosition * container.width;\n\n        if (ny > Globals.scale (3)) {\n            var t;\n\n            if (container.orientation == Qt.Vertical)\n                t = Math.ceil (container.height - ny);\n\n            else\n                t = Math.ceil (container.width - ny);\n\n            if (nh > t)\n                return t\n\n            else\n                return nh\n        }\n\n        else return nh + ny;\n    }\n\n    //\n    // Enables a smooth fade when the control is hovered\n    // or changes its size\n    //\n    Behavior on opacity {\n        NumberAnimation {\n            duration: Globals.slowAnimation\n        }\n    }\n\n    //\n    // Hides the control after certain amount of time without\n    // any activity\n    //\n    Timer {\n        id: timer\n        interval: 800\n        onTriggered: {\n            if (opacity > 0 && !mouseArea.containsMouse)\n                opacity = 0\n        }\n    }\n\n    //\n    // The actual iOS-like scrollbar\n    //\n    Rectangle {\n        id: scroll\n        opacity: 0.5\n        radius: Globals.scale (5)\n        onHeightChanged: showControl()\n        color: Globals.Colors.TextAreaBackground\n        width: container.orientation == Qt.Vertical ? container.width : calculateSize()\n        height: container.orientation == Qt.Vertical ? calculateSize() : container.height\n        x: container.orientation == Qt.Vertical ? Globals.scale (2) : calculatePosition()\n        y: container.orientation == Qt.Vertical ? calculatePosition() : Globals.scale (2)\n    }\n}\n"
  },
  {
    "path": "qml/Widgets/Spinbox.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport QtQuick.Controls 2.15\n\nimport \"../Globals.js\" as Globals\n\nSpinBox {\n    editable: true\n    implicitWidth: Globals.scale (64)\n    implicitHeight: Globals.scale (24)\n\n    // Qt 6 SpinBox doesn't support custom styling in the same way\n    // Basic styling through properties\n\n    background: Rectangle {\n        implicitWidth: parent.width\n        implicitHeight: parent.height\n        border.width: Globals.scale (1)\n        opacity: parent.enabled ? 1 : 0.5\n        color: Globals.Colors.TextAreaBackground\n        border.color: Globals.Colors.WidgetBorder\n\n        Behavior on opacity {\n            NumberAnimation {\n                duration: Globals.slowAnimation\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "qml/Widgets/TextEditor.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\nimport \"../Globals.js\" as Globals\n\nItem {\n    //\n    // Gives us direct access to the text editor\n    //\n    property alias editor: edit\n\n    //\n    // Gives us access to the text of the text editor\n    //\n    property alias text: edit.text\n\n    //\n    // If set to true, the text will automatically scroll down when\n    // its changed (like a terminal emulator does)\n    //\n    property bool autoscroll: true\n\n    //\n    // Define the colors of the control\n    //\n    property string foregroundColor: height > Globals.scale (140) ? Globals.Colors.WidgetForeground :\n                                                                    Globals.Colors.TextAreaForeground\n    property string backgroundColor: height > Globals.scale (140) ? Globals.Colors.WidgetBackground :\n                                                                    Globals.Colors.TextAreaBackground\n\n    //\n    // Copies the text to the system clipboard\n    //\n    function copy() {\n        /* Get current text */\n        var html = editor.getFormattedText (0, editor.length)\n\n        /* Remove HTML codes */\n        html = html.replace(/<style([\\s\\S]*?)<\\/style>/gi, '');\n        html = html.replace(/<script([\\s\\S]*?)<\\/script>/gi, '');\n        html = html.replace(/<\\/div>/ig, '\\n');\n        html = html.replace(/<\\/li>/ig, '\\n');\n        html = html.replace(/<li>/ig, '  *  ');\n        html = html.replace(/<\\/ul>/ig, '\\n');\n        html = html.replace(/<\\/p>/ig, '\\n');\n        html = html.replace(/<br\\s*[\\/]?>/gi, \"\\n\");\n        html = html.replace(/<[^>]+>/ig, '');\n\n        /* Copy result to system clipboard */\n        CppUtilities.copy (html)\n    }\n\n    //\n    // Define a standard size for the widget\n    //\n    width: Globals.scale (250)\n    height: Globals.scale (120)\n\n    //\n    // The widget drawing (e.g. background, border, etc)\n    //\n    Rectangle {\n        anchors.fill: parent\n        color: backgroundColor\n        border.width: Globals.scale (1)\n        opacity: parent.enabled ? 1 :0.5\n        border.color: Globals.Colors.WidgetBorder\n\n        Behavior on opacity {\n            NumberAnimation {\n                duration: Globals.slowAnimation\n            }\n        }\n    }\n\n    //\n    // A flickable item allows us to implement scrolling for\n    // the text editor.\n    //\n    Flickable {\n        id: flick\n        clip: true\n        interactive: true\n        contentWidth: parent.width\n        contentHeight: edit.contentHeight\n        flickableDirection: Flickable.VerticalFlick\n\n        anchors {\n            fill: parent\n            margins: Globals.spacing\n        }\n\n        //\n        // This code was written by a Russian guy, original post:\n        // Link: http://www.cyberforum.ru/qt/thread578187.html\n        //\n        function ensureVisible (r) {\n            if (autoscroll) {\n                if (contentX >= r.x)\n                    contentX = r.x;\n                else if (contentX + width <= r.x + r.width)\n                    contentX = r.x + r.width - width;\n                if (contentY >= r.y)\n                    contentY = r.y;\n                else if (contentY + height <= r.y + r.height)\n                    contentY = r.y + r.height - height;\n            }\n        }\n\n        //\n        // The actual text editor\n        //\n        TextEdit {\n            id: edit\n            selectByMouse: true\n            color: foregroundColor\n            readOnly: !parent.enabled\n            font.family: Globals.uiFont\n            font.pixelSize: Globals.scale (12)\n            wrapMode: Text.WrapAtWordBoundaryOrAnywhere\n            selectionColor: Globals.Colors.HighlightColor\n            onCursorRectangleChanged: flick.ensureVisible (cursorRectangle)\n\n            anchors {\n                left: parent.left\n                right: parent.right\n                margins: Globals.scale (5)\n            }\n        }\n    }\n\n    //\n    // The scrollbar\n    //\n    Scrollbar {\n        id: scroll\n        mouseArea: mouse\n        scrollArea: flick\n        height: parent.height\n        width: Globals.scale (8)\n\n        anchors {\n            top: parent.top\n            right: parent.right\n            bottom: parent.bottom\n            margins: Globals.scale (6)\n        }\n    }\n\n    //\n    // Used to show the scrollbar when mouse is over control\n    //\n    MouseArea {\n        id: mouse\n        hoverEnabled: true\n        anchors.fill: parent\n        onContainsMouseChanged: scroll.showControl()\n    }\n}\n"
  },
  {
    "path": "qml/main.qml",
    "content": "/*\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nimport QtQuick 2.0\n\nimport \"Dialogs\"\nimport \"MainWindow\"\nimport \"Globals.js\" as Globals\n\nItem {\n    id: app\n    visible: false\n\n    //\n    // Display the virtual joystick window (from anywhere in the app)\n    //\n    function showVirtualJoystickWindow() {\n        virtualJoystickWindow.show()\n    }\n\n    //\n    // Display the settings window (from anywhere in the app)\n    //\n    function showSettingsWindow() {\n        settingsWindow.show()\n    }\n\n    //\n    // Load the fonts used by the application\n    //\n    FontLoader { source: Qt.resolvedUrl (\"qrc:/fonts/UbuntuMono.ttf\")     }\n    FontLoader { source: Qt.resolvedUrl (\"qrc:/fonts/FontAwesome.ttf\")    }\n    FontLoader { source: Qt.resolvedUrl (\"qrc:/fonts/Ubuntu-Bold.ttf\")    }\n    FontLoader { source: Qt.resolvedUrl (\"qrc:/fonts/Ubuntu-Regular.ttf\") }\n\n    //\n    // Initialize the DS engine when the application starts\n    //\n    Component.onCompleted: {\n        if (!mainwindow.visible) {\n            mainwindow.visible = true\n            mainwindow.updateWindowMode()\n        }\n\n        Globals.beep (440, 100)\n        Globals.beep (220, 100)\n    }\n\n\n    //\n    // The Main window\n    //\n    MainWindow {\n        id: mainwindow\n        onVisibleChanged: {\n            if (!visible)\n                Qt.quit()\n        }\n    }\n\n    //\n    // The settings window\n    //\n    SettingsWindow {\n        id: settingsWindow\n    }\n\n    //\n    // The virtual joystick window\n    //\n    VirtualJoystickWindow {\n        id: virtualJoystickWindow\n    }\n}\n"
  },
  {
    "path": "qml/qml.qrc",
    "content": "<RCC>\r\n    <qresource prefix=\"/qml\">\r\n        <file>Globals.js</file>\r\n        <file>main.qml</file>\r\n        <file>Dialogs/SettingsWindow.qml</file>\r\n        <file>Dialogs/VirtualJoystickWindow.qml</file>\r\n        <file>MainWindow/About.qml</file>\r\n        <file>MainWindow/Charts.qml</file>\r\n        <file>MainWindow/Diagnostics.qml</file>\r\n        <file>MainWindow/JoystickItem.qml</file>\r\n        <file>MainWindow/Joysticks.qml</file>\r\n        <file>MainWindow/LeftTab.qml</file>\r\n        <file>MainWindow/MainWindow.qml</file>\r\n        <file>MainWindow/Messages.qml</file>\r\n        <file>MainWindow/Operator.qml</file>\r\n        <file>MainWindow/Preferences.qml</file>\r\n        <file>MainWindow/RightTab.qml</file>\r\n        <file>MainWindow/Status.qml</file>\r\n        <file>MainWindow/VoltageGraph.qml</file>\r\n        <file>Widgets/Button.qml</file>\r\n        <file>Widgets/Checkbox.qml</file>\r\n        <file>Widgets/Combobox.qml</file>\r\n        <file>Widgets/Icon.qml</file>\r\n        <file>Widgets/Icons.qml</file>\r\n        <file>Widgets/Label.qml</file>\r\n        <file>Widgets/LED.qml</file>\r\n        <file>Widgets/LineEdit.qml</file>\r\n        <file>Widgets/ListViewer.qml</file>\r\n        <file>Widgets/Panel.qml</file>\r\n        <file>Widgets/Plot.qml</file>\r\n        <file>Widgets/Progressbar.qml</file>\r\n        <file>Widgets/Scrollbar.qml</file>\r\n        <file>Widgets/Spinbox.qml</file>\r\n        <file>Widgets/TextEditor.qml</file>\r\n        <file>MainWindow/BatteryChart.qml</file>\r\n    </qresource>\r\n</RCC>\r\n"
  },
  {
    "path": "src/beeper.cpp",
    "content": "/*\r\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\r\n *\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy\r\n * of this software and associated documentation files (the \"Software\"), to deal\r\n * in the Software without restriction, including without limitation the rights\r\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n * copies of the Software, and to permit persons to whom the Software is\r\n * furnished to do so, subject to the following conditions:\r\n *\r\n * The above copyright notice and this permission notice shall be included in\r\n * all copies or substantial portions of the Software.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n * THE SOFTWARE.\r\n */\r\n\r\n#include \"beeper.h\"\r\n\r\n/* Used for generating the sine wave and various operations */\r\n#include <QtMath>\r\n#include <QQueue>\r\n\r\n/* Used for generating the sounds */\r\n#include <SDL.h>\r\n#include <SDL_audio.h>\r\n\r\n/**\r\n * \\brief Holds information regarding a beep/wave sound\r\n */\r\nstruct BeepObject\r\n{\r\n   qreal frequency;\r\n   int samplesLeft;\r\n};\r\n\r\n/* Think of this as the 'volume' of the sound wave */\r\nconst int AMPLITUDE = 16000;\r\n\r\n/* Corresponds to the freq. used in phones, we do not need more than that */\r\nconst int SAMPLING_FREQ = 8000;\r\n\r\n/* Holds the beep objects to be processed */\r\nQQueue<BeepObject> BEEPS;\r\n\r\n/**\r\n * Calls the beeper when and generates the audio\r\n */\r\nvoid AUDIO_CALLBACK(void *beeper, quint8 *stream, int length)\r\n{\r\n   Beeper *object = static_cast<Beeper *>(beeper);\r\n   object->generateSamples((qint16 *)stream, length / 2);\r\n}\r\n\r\n/**\r\n * Configures the audio spec\r\n */\r\nBeeper::Beeper()\r\n{\r\n   m_angle = 0;\r\n   m_enabled = false;\r\n\r\n   SDL_LockAudio();\r\n\r\n   /* Generate the audio configuration */\r\n   SDL_AudioSpec desiredSpec;\r\n   desiredSpec.channels = 1;\r\n   desiredSpec.samples = 1024;\r\n   desiredSpec.userdata = this;\r\n   desiredSpec.freq = SAMPLING_FREQ;\r\n   desiredSpec.format = AUDIO_S16SYS;\r\n   desiredSpec.callback = AUDIO_CALLBACK;\r\n\r\n   /* Open the audio device */\r\n   SDL_AudioSpec obtainedSpec;\r\n   SDL_OpenAudio(&desiredSpec, &obtainedSpec);\r\n\r\n   /* Forces to initialize the data for the callback function */\r\n   SDL_PauseAudio(0);\r\n}\r\n\r\n/**\r\n * Stop using the SDL audio when destroying this class\r\n */\r\nBeeper::~Beeper()\r\n{\r\n   SDL_CloseAudio();\r\n   SDL_UnlockAudio();\r\n}\r\n\r\nvoid Beeper::generateSamples(qint16 *stream, int length)\r\n{\r\n   int i = 0;\r\n   while (i < length)\r\n   {\r\n\r\n      /* Beeps object is empty, ensure that stream has neutral values */\r\n      if (BEEPS.empty())\r\n      {\r\n         for (; i < length; ++i)\r\n            stream[i] = 0;\r\n\r\n         return;\r\n      }\r\n\r\n      /* Get the beep object */\r\n      BeepObject &beep = BEEPS.front();\r\n      int samplesToDo = qMin(i + beep.samplesLeft, length);\r\n      beep.samplesLeft -= samplesToDo - i;\r\n\r\n      /* Generate the sound */\r\n      for (; i < samplesToDo; ++i)\r\n      {\r\n         m_angle += beep.frequency;\r\n         stream[i] = AMPLITUDE * qSin((m_angle * 2 * M_PI) / SAMPLING_FREQ);\r\n      }\r\n\r\n      /* Go to next beep object */\r\n      if (beep.samplesLeft == 0)\r\n         BEEPS.pop_front();\r\n   }\r\n}\r\n\r\n/**\r\n * Enables or disables the sound output\r\n */\r\nvoid Beeper::setEnabled(bool enabled)\r\n{\r\n   m_enabled = enabled;\r\n}\r\n\r\n/**\r\n * Generates a beep of the given \\a frequency & \\a duration (in milliseconds).\r\n * \\note The request will be ignored if the beeper is disabled\r\n */\r\nvoid Beeper::beep(qreal frequency, int duration)\r\n{\r\n   if (m_enabled)\r\n   {\r\n      BeepObject beep_object;\r\n      beep_object.frequency = frequency;\r\n      beep_object.samplesLeft = duration * SAMPLING_FREQ / 1000;\r\n\r\n      BEEPS.append(beep_object);\r\n   }\r\n}\r\n"
  },
  {
    "path": "src/beeper.h",
    "content": "/*\r\n * This code is based on the answer provided at:\r\n * http://stackoverflow.com/questions/10110905/simple-wave-generator-with-sdl-in-c\r\n */\r\n\r\n#ifndef _QDS_BEEPER_H\r\n#define _QDS_BEEPER_H\r\n\r\n#include <QObject>\r\n\r\n/**\r\n * \\brief Uses SDL to generate telephone-like sound tones on the fly\r\n */\r\nclass Beeper : public QObject\r\n{\r\n   Q_OBJECT\r\n\r\npublic:\r\n   explicit Beeper();\r\n   ~Beeper();\r\n\r\n   void generateSamples(qint16 *stream, int length);\r\n\r\npublic slots:\r\n   void setEnabled(bool enabled);\r\n   void beep(qreal frequency, int duration);\r\n\r\nprivate:\r\n   bool m_enabled;\r\n   double m_angle;\r\n};\r\n\r\n#endif\r\n"
  },
  {
    "path": "src/dashboards.cpp",
    "content": "/*\r\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\r\n *\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy\r\n * of this software and associated documentation files (the \"Software\"), to deal\r\n * in the Software without restriction, including without limitation the rights\r\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n * copies of the Software, and to permit persons to whom the Software is\r\n * furnished to do so, subject to the following conditions:\r\n *\r\n * The above copyright notice and this permission notice shall be included in\r\n * all copies or substantial portions of the Software.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n * THE SOFTWARE.\r\n */\r\n\r\n#include <QDir>\r\n#include <QDebug>\r\n#include <QApplication>\r\n\r\n#include \"dashboards.h\"\r\n\r\n// *INDENT-OFF*\r\n#if defined Q_OS_WIN\r\n#   include <windows.h>\r\n#   define IS_64_BIT true\r\n#   if _WIN32\r\n#      undef IS_64_BIT\r\n#      define IS_64_BIT GetProcAddress(GetModuleHandle(TEXT(\"kernel32\")), \"IsWow64Process\")\r\n#   endif\r\n#   define PROGRAM_FILES IS_64_BIT ? \"C:/Program Files (x86)\" : \"C:/Program Files\"\r\n#endif\r\n// *INDENT-ON*\r\n\r\n/* Dashboard open commands */\r\nconst QString LVD_COMMAND = \"\\\"%1/FRC Dashboard/Dashboard.exe\\\"\";\r\nconst QString SFX_COMMAND = \"java -jar \\\"%1/wpilib/tools/sfx.jar\\\"\";\r\nconst QString SBD_COMMAND = \"java -jar \\\"%1/wpilib/tools/SmartDashboard.jar\\\"\";\r\nconst QString SHB_COMMAND = \"java -jar \\\"%1/wpilib/tools/shuffleboard.jar\\\"\";\r\n\r\n/**\r\n * Configures the application to close the dashboard when it quits\r\n */\r\nDashboards::Dashboards()\r\n{\r\n   connect(qApp, SIGNAL(aboutToQuit()), &m_process, SLOT(kill()));\r\n}\r\n\r\n/**\r\n * Returns a list with the available dashboards.\r\n * \\note This list may differ from operating system to operating system\r\n */\r\nQStringList Dashboards::dashboardList()\r\n{\r\n   QStringList list;\r\n   list.append(tr(\"None\"));\r\n   list.append(tr(\"SFX Dashboard\"));\r\n   list.append(tr(\"SmartDashboard\"));\r\n   list.append(tr(\"Shuffleboard\"));\r\n\r\n#if defined Q_OS_WIN\r\n   list.append(tr(\"LabVIEW Dashboard\"));\r\n#endif\r\n\r\n   return list;\r\n}\r\n\r\n/**\r\n * Opens the given \\a dashboard process\r\n */\r\nvoid Dashboards::openDashboard(int dashboard)\r\n{\r\n   m_process.kill();\r\n   QString command = \"\";\r\n\r\n   switch (dashboard)\r\n   {\r\n      case kSFXDashboard:\r\n         command = SFX_COMMAND.arg(QDir::homePath());\r\n         break;\r\n      case kSmartDashboard:\r\n         command = SBD_COMMAND.arg(QDir::homePath());\r\n         break;\r\n      case kShuffleboard:\r\n         command = SHB_COMMAND.arg(QDir::homePath());\r\n         break;\r\n#if defined Q_OS_WIN\r\n      case kLabVIEWDashboard:\r\n         command = LVD_COMMAND.arg(PROGRAM_FILES);\r\n         break;\r\n#endif\r\n   }\r\n\r\n   if (!command.isEmpty())\r\n   {\r\n      m_process.start(command, QStringList(), QIODevice::ReadOnly);\r\n      qDebug() << \"Dashboard command set to:\" << command.toStdString().c_str();\r\n   }\r\n}\r\n"
  },
  {
    "path": "src/dashboards.h",
    "content": "﻿/*\r\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\r\n *\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy\r\n * of this software and associated documentation files (the \"Software\"), to deal\r\n * in the Software without restriction, including without limitation the rights\r\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n * copies of the Software, and to permit persons to whom the Software is\r\n * furnished to do so, subject to the following conditions:\r\n *\r\n * The above copyright notice and this permission notice shall be included in\r\n * all copies or substantial portions of the Software.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n * THE SOFTWARE.\r\n */\r\n\r\n#ifndef _QDS_DASHBOARDS_H\r\n#define _QDS_DASHBOARDS_H\r\n\r\n#include <QProcess>\r\n\r\n/**\r\n * \\brief Opens and closes the available FRC Dashboards\r\n */\r\nclass Dashboards : public QObject\r\n{\r\n   Q_OBJECT\r\n   Q_ENUMS(DashboardTypes)\r\n\r\npublic:\r\n   explicit Dashboards();\r\n\r\n   enum DashboardTypes\r\n   {\r\n      kNone = 0,\r\n      kSFXDashboard = 1,\r\n      kSmartDashboard = 2,\r\n      kShuffleboard = 3,\r\n      kLabVIEWDashboard = 4,\r\n   };\r\n\r\n   Q_INVOKABLE QStringList dashboardList();\r\n\r\npublic slots:\r\n   void openDashboard(int dashboard);\r\n\r\nprivate:\r\n   QProcess m_process;\r\n};\r\n\r\n#endif\r\n"
  },
  {
    "path": "src/main.cpp",
    "content": "/*\r\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\r\n *\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy\r\n * of this software and associated documentation files (the \"Software\"), to deal\r\n * in the Software without restriction, including without limitation the rights\r\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n * copies of the Software, and to permit persons to whom the Software is\r\n * furnished to do so, subject to the following conditions:\r\n *\r\n * The above copyright notice and this permission notice shall be included in\r\n * all copies or substantial portions of the Software.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n * THE SOFTWARE.\r\n */\r\n\r\n//------------------------------------------------------------------------------\r\n// Qt includes\r\n//------------------------------------------------------------------------------\r\n\r\n#include <QTime>\r\n#include <QtQml>\r\n#include <QMessageBox>\r\n#include <QApplication>\r\n#include <QDesktopServices>\r\n#include <QQmlApplicationEngine>\r\n\r\n#ifdef Q_OS_WIN\r\n#    include <windows.h>\r\n#endif\r\n\r\n//------------------------------------------------------------------------------\r\n// Library includes\r\n//------------------------------------------------------------------------------\r\n\r\n#include <stdio.h>\r\n#include <iostream>\r\n\r\n#include <QJoysticks.h>\r\n#include <EventLogger.h>\r\n#include <DriverStation.h>\r\n\r\n//------------------------------------------------------------------------------\r\n// Application includes\r\n//------------------------------------------------------------------------------\r\n\r\n#include \"beeper.h\"\r\n#include \"versions.h\"\r\n#include \"shortcuts.h\"\r\n#include \"utilities.h\"\r\n#include \"dashboards.h\"\r\n\r\n//------------------------------------------------------------------------------\r\n// CLI messages\r\n//------------------------------------------------------------------------------\r\n\r\nconst QString WEBS = \"We instructed your web browser to navigate to:        \\n\"\r\n                     \"    %1                                                \\n\"\r\n                     \"If nothing happens, please navigate to that URL.        \";\r\n\r\nconst QString HELP = \"Usage: qdriverstation [ options ... ]                 \\n\"\r\n                     \"                                                      \\n\"\r\n                     \"Options include:                                      \\n\"\r\n                     \"    -b, --bug       Report a bug                      \\n\"\r\n                     \"    -h, --help      Show this message                 \\n\"\r\n                     \"    -r, --reset     Reset/clear the settings          \\n\"\r\n                     \"    -c, --contact   Contact the lead developer        \\n\"\r\n                     \"    -v, --version   Display the application version   \\n\"\r\n                     \"    -w, --website   Open a web site of this project   \\n\";\r\n\r\n//------------------------------------------------------------------------------\r\n// Download joystick drivers if needed\r\n//------------------------------------------------------------------------------\r\n\r\nstatic void WelcomeMessages()\r\n{\r\n   QSettings settings(APP_COMPANY, APP_DSPNAME);\r\n   if (settings.value(\"FirstLaunch\", true).toBool())\r\n   {\r\n      // Download Xbox drivers on Mac\r\n#ifdef Q_OS_MAC\r\n      QMessageBox xboxDrivers;\r\n      xboxDrivers.setIcon(QMessageBox::Question);\r\n      xboxDrivers.setStandardButtons(QMessageBox::Yes | QMessageBox::No);\r\n      xboxDrivers.setDefaultButton(QMessageBox::Yes);\r\n      xboxDrivers.setWindowTitle(QObject::tr(\"Download Joystick Drivers\"));\r\n      xboxDrivers.setText(QObject::tr(\"Do you want to install a driver \"\r\n                                      \"for Xbox joysticks?\"));\r\n\r\n      xboxDrivers.setInformativeText(QObject::tr(\"Clicking \\\"Yes\\\" will open a web \"\r\n                                                 \"browser to download the drivers\"));\r\n\r\n      if (xboxDrivers.exec() == QMessageBox::Yes)\r\n         QDesktopServices::openUrl(QUrl(\"https://github.com/360Controller/\"\r\n                                        \"360Controller/releases/latest\"));\r\n#endif\r\n\r\n      settings.setValue(\"FirstLaunch\", false);\r\n   }\r\n}\r\n\r\n//------------------------------------------------------------------------------\r\n// Utility functions\r\n//------------------------------------------------------------------------------\r\n\r\nstatic void showHelp()\r\n{\r\n   qDebug() << HELP.toStdString().c_str();\r\n}\r\n\r\nstatic void resetSettings()\r\n{\r\n   QSettings(APP_COMPANY, APP_DSPNAME).clear();\r\n   qDebug() << \"QDriverStation settings cleared!\";\r\n}\r\n\r\nstatic void contact()\r\n{\r\n   QString url = \"mailto:\" + CONTACT_URL;\r\n   QDesktopServices::openUrl(QUrl(url));\r\n   qDebug() << WEBS.arg(url).toStdString().c_str();\r\n}\r\n\r\nstatic void reportBug()\r\n{\r\n   QDesktopServices::openUrl(QUrl(APP_REPBUGS));\r\n   qDebug() << WEBS.arg(APP_REPBUGS).toStdString().c_str();\r\n}\r\n\r\nstatic void openWebsite()\r\n{\r\n   QDesktopServices::openUrl(QUrl(APP_WEBSITE));\r\n   qDebug() << WEBS.arg(APP_WEBSITE).toStdString().c_str();\r\n}\r\n\r\nstatic void showVersion()\r\n{\r\n   QString appver = APP_DSPNAME + \" version \" + APP_VERSION;\r\n   QString author = \"Written by Alex Spataru <\" + CONTACT_URL + \">\";\r\n\r\n   qDebug() << appver.toStdString().c_str();\r\n   qDebug() << author.toStdString().c_str();\r\n}\r\n\r\n//------------------------------------------------------------------------------\r\n// Application init\r\n//------------------------------------------------------------------------------\r\n\r\nint main(int argc, char *argv[])\r\n{\r\n    // Fix console output on Windows (https://stackoverflow.com/a/41701133)\r\n    // This code will only execute if the application is started from the comamnd prompt\r\n#ifdef _WIN32\r\n    if (AttachConsole(ATTACH_PARENT_PROCESS))\r\n    {\r\n        // Open the console's active buffer\r\n        (void)freopen(\"CONOUT$\", \"w\", stdout);\r\n        (void)freopen(\"CONOUT$\", \"w\", stderr);\r\n\r\n        // Force print new-line (to avoid printing text over user commands)\r\n        printf(\"\\n\");\r\n    }\r\n#endif\r\n\r\n   /* Fix scalling issues on Windows */\r\n #ifndef Q_OS_WIN\r\n   QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);\r\n #else\r\n   QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);\r\n #endif\r\n\r\n   /* Set application info */\r\n   QApplication::setApplicationName(APP_DSPNAME);\r\n   QApplication::setOrganizationName(APP_COMPANY);\r\n   QApplication::setApplicationVersion(APP_VERSION);\r\n   QApplication::setOrganizationDomain(APP_WEBSITE);\r\n\r\n   /* Initialize application */\r\n   QString arguments;\r\n   QApplication app(argc, argv);\r\n\r\n   /* Read command line arguments */\r\n   if (app.arguments().count() >= 2)\r\n      arguments = app.arguments().at(1);\r\n\r\n   /* We have some arguments, read them */\r\n   if (!arguments.isEmpty() && arguments.startsWith(\"-\"))\r\n   {\r\n      if (arguments == \"-b\" || arguments == \"--bug\")\r\n         reportBug();\r\n\r\n      else if (arguments == \"-r\" || arguments == \"--reset\")\r\n         resetSettings();\r\n\r\n      else if (arguments == \"-c\" || arguments == \"--contact\")\r\n         contact();\r\n\r\n      else if (arguments == \"-v\" || arguments == \"--version\")\r\n         showVersion();\r\n\r\n      else if (arguments == \"-w\" || arguments == \"--website\")\r\n         openWebsite();\r\n\r\n      else\r\n         showHelp();\r\n\r\n      return EXIT_SUCCESS;\r\n   }\r\n\r\n   /* Start the initialization time clock */\r\n   QElapsedTimer timer;\r\n   timer.start();\r\n\r\n   /* Initialize OS variables */\r\n   bool isMac = false;\r\n   bool isUnx = false;\r\n   bool isWin = false;\r\n\r\n   /* Let QML know the operating system */\r\n#if defined Q_OS_MAC\r\n   isMac = true;\r\n#elif defined Q_OS_WIN\r\n   isWin = true;\r\n#else\r\n   isUnx = true;\r\n#endif\r\n\r\n   /* Install the LibDS event logger */\r\n   DSEventLogger *CppDSLogger = DSEventLogger::getInstance();\r\n   qInstallMessageHandler(CppDSLogger->messageHandler);\r\n\r\n   /* Initialize application modules */\r\n   Beeper beeper;\r\n   Utilities utilities;\r\n   Shortcuts shortcuts;\r\n   Dashboards dashboards;\r\n   QJoysticks *qjoysticks = QJoysticks::getInstance();\r\n   DriverStation *driverstation = DriverStation::getInstance();\r\n\r\n   /* Set virtual joystick axis range */\r\n   qjoysticks->setVirtualJoystickAxisSensibility(0);\r\n\r\n   /* Configure the shortcuts handler and start the DS */\r\n   app.installEventFilter(&shortcuts);\r\n   driverstation->declareQML();\r\n   driverstation->start();\r\n\r\n   /* Load the QML interface */\r\n   QQmlApplicationEngine engine;\r\n   engine.rootContext()->setContextProperty(\"CppIsMac\", isMac);\r\n   engine.rootContext()->setContextProperty(\"CppIsUnix\", isUnx);\r\n   engine.rootContext()->setContextProperty(\"CppIsWindows\", isWin);\r\n   engine.rootContext()->setContextProperty(\"CppBeeper\", &beeper);\r\n   engine.rootContext()->setContextProperty(\"QJoysticks\", qjoysticks);\r\n   engine.rootContext()->setContextProperty(\"CppUtilities\", &utilities);\r\n   engine.rootContext()->setContextProperty(\"CppDashboard\", &dashboards);\r\n   engine.rootContext()->setContextProperty(\"CppAppDspName\", APP_DSPNAME);\r\n   engine.rootContext()->setContextProperty(\"CppAppVersion\", APP_VERSION);\r\n   engine.rootContext()->setContextProperty(\"CppAppWebsite\", APP_WEBSITE);\r\n   engine.rootContext()->setContextProperty(\"CppAppRepBugs\", APP_REPBUGS);\r\n   engine.rootContext()->setContextProperty(\"CppDSLogger\", CppDSLogger);\r\n   engine.rootContext()->setContextProperty(\"CppDS\", driverstation);\r\n   engine.load(QUrl(QStringLiteral(\"qrc:/qml/main.qml\")));\r\n\r\n   /* QML loading failed, exit the application */\r\n   if (engine.rootObjects().isEmpty())\r\n      return EXIT_FAILURE;\r\n\r\n   /* Tell user how much time was needed to initialize the app */\r\n   qDebug() << \"Initialized in \" << timer.elapsed() << \"milliseconds\";\r\n\r\n   /* Warn first-timers to download the xbox drivers on macOS */\r\n   WelcomeMessages();\r\n\r\n   /* Run normally */\r\n   return app.exec();\r\n}\r\n"
  },
  {
    "path": "src/shortcuts.cpp",
    "content": "/*\r\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\r\n *\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy\r\n * of this software and associated documentation files (the \"Software\"), to deal\r\n * in the Software without restriction, including without limitation the rights\r\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n * copies of the Software, and to permit persons to whom the Software is\r\n * furnished to do so, subject to the following conditions:\r\n *\r\n * The above copyright notice and this permission notice shall be included in\r\n * all copies or substantial portions of the Software.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n * THE SOFTWARE.\r\n */\r\n\r\n#include \"shortcuts.h\"\r\n#include <QJoysticks.h>\r\n#include <DriverStation.h>\r\n\r\nbool Shortcuts::eventFilter(QObject *object, QEvent *event)\r\n{\r\n   Q_UNUSED(object);\r\n\r\n   if (event->type() == QEvent::KeyPress)\r\n   {\r\n      switch (static_cast<QKeyEvent *>(event)->key())\r\n      {\r\n         case Qt::Key_Space:\r\n            DriverStation::getInstance()->setEmergencyStopped(true);\r\n            break;\r\n         case Qt::Key_Enter:\r\n            DriverStation::getInstance()->setEnabled(true);\r\n            break;\r\n         case Qt::Key_F1:\r\n            QJoysticks::getInstance()->updateInterfaces();\r\n            break;\r\n      }\r\n   }\r\n\r\n   return false;\r\n}\r\n"
  },
  {
    "path": "src/shortcuts.h",
    "content": "/*\r\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\r\n *\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy\r\n * of this software and associated documentation files (the \"Software\"), to deal\r\n * in the Software without restriction, including without limitation the rights\r\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n * copies of the Software, and to permit persons to whom the Software is\r\n * furnished to do so, subject to the following conditions:\r\n *\r\n * The above copyright notice and this permission notice shall be included in\r\n * all copies or substantial portions of the Software.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n * THE SOFTWARE.\r\n */\r\n\r\n#ifndef _QDS_SHORTCUTS_H\r\n#define _QDS_SHORTCUTS_H\r\n\r\n#include <QObject>\r\n#include <QKeyEvent>\r\n#include <QApplication>\r\n\r\n/**\r\n * \\brief Listens for keyboard events and acts if a shortcut has been activated\r\n *\r\n * This allows us to implement safety features, such as triggering an emergency\r\n * stop when pressing the spacebar, or disabling the robot when pressing enter.\r\n */\r\nclass Shortcuts : public QObject\r\n{\r\n   Q_OBJECT\r\n\r\nprivate:\r\n   bool eventFilter(QObject *object, QEvent *event);\r\n};\r\n\r\n#endif\r\n"
  },
  {
    "path": "src/utilities.cpp",
    "content": "/*\r\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\r\n *\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy\r\n * of this software and associated documentation files (the \"Software\"), to deal\r\n * in the Software without restriction, including without limitation the rights\r\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n * copies of the Software, and to permit persons to whom the Software is\r\n * furnished to do so, subject to the following conditions:\r\n *\r\n * The above copyright notice and this permission notice shall be included in\r\n * all copies or substantial portions of the Software.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n * THE SOFTWARE.\r\n */\r\n\r\n#include \"utilities.h\"\r\n\r\n#include <QTimer>\r\n#include <QDebug>\r\n#include <QScreen>\r\n#include <QSettings>\r\n#include <QClipboard>\r\n#include <QApplication>\r\n\r\n//------------------------------------------------------------------------------\r\n// Windows hacks\r\n//------------------------------------------------------------------------------\r\n\r\n#if defined Q_OS_WIN\r\n#   include <pdh.h>\r\n#   include <tchar.h>\r\n#   include <windows.h>\r\n#   include <windowsx.h>\r\n\r\nstatic PDH_HQUERY cpuQuery;\r\nstatic PDH_HCOUNTER cpuTotal;\r\nstatic SYSTEM_POWER_STATUS power;\r\n#endif\r\n\r\n//------------------------------------------------------------------------------\r\n// Mac OS hacks\r\n//------------------------------------------------------------------------------\r\n\r\n#if defined Q_OS_MAC\r\nstatic const QString CPU_CMD = \"bash -c \\\"ps -A -o %cpu | \"\r\n                               \"awk '{s+=$1} END {print s}'\\\"\";\r\nstatic const QString BTY_CMD = \"pmset -g batt\";\r\nstatic const QString PWR_CMD = \"pmset -g batt\";\r\n#endif\r\n\r\n//------------------------------------------------------------------------------\r\n// Linux hacks\r\n//------------------------------------------------------------------------------\r\n\r\n#if defined Q_OS_LINUX\r\n#   include <QFile>\r\n#   include <QRegExp>\r\n\r\nstatic const QString BTY_CMD = \"bash -c \\\"upower -i \"\r\n                               \"$(upower -e | grep 'BAT') | \"\r\n                               \"grep -E 'state|to\\\\ full|percentage'\\\"\";\r\nstatic const QString PWR_CMD = \"bash -c \\\"upower -i \"\r\n                               \"$(upower -e | grep 'BAT') | \"\r\n                               \"grep -E 'state|to\\\\ full|percentage'\\\"\";\r\n#endif\r\n\r\n//------------------------------------------------------------------------------\r\n// Ensure that application compiles even if OS is not supported\r\n//------------------------------------------------------------------------------\r\n\r\n#if !defined Q_OS_WIN && !defined Q_OS_MAC && !defined Q_OS_LINUX\r\nstatic const QString CPU_CMD = \"\";\r\nstatic const QString BTY_CMD = \"\";\r\nstatic const QString PWR_CMD = \"\";\r\n#endif\r\n\r\n//------------------------------------------------------------------------------\r\n// Start class code\r\n//------------------------------------------------------------------------------\r\n\r\n/**\r\n * Configures the class and nitializes the CPU querying process under Windows.\r\n */\r\nUtilities::Utilities()\r\n{\r\n   m_ratio = 0;\r\n   m_cpuUsage = 0;\r\n   m_batteryLevel = 0;\r\n   m_connectedToAC = 0;\r\n\r\n   m_settings = new QSettings(qApp->organizationName(), qApp->applicationName());\r\n\r\n   /* Read process data when they finish */\r\n   connect(&m_cpuProcess, SIGNAL(finished(int)), this, SLOT(readCpuUsageProcess(int)));\r\n   connect(&m_batteryLevelProcess, SIGNAL(finished(int)), this, SLOT(readBatteryLevelProcess(int)));\r\n   connect(&m_connectedToACProcess, SIGNAL(finished(int)), this, SLOT(readConnectedToACProcess(int)));\r\n\r\n   /* Kill the probing processes when application quits */\r\n   connect(qApp, SIGNAL(aboutToQuit()), &m_cpuProcess, SLOT(kill()));\r\n   connect(qApp, SIGNAL(aboutToQuit()), &m_batteryLevelProcess, SLOT(kill()));\r\n   connect(qApp, SIGNAL(aboutToQuit()), &m_connectedToACProcess, SLOT(kill()));\r\n\r\n   /* Configure Windows */\r\n#if defined Q_OS_WIN\r\n   PdhOpenQuery(0, 0, &cpuQuery);\r\n   PdhAddCounter(cpuQuery, L\"\\\\Processor(_Total)\\\\% Processor Time\", 0, &cpuTotal);\r\n   PdhCollectQueryData(cpuQuery);\r\n#endif\r\n\r\n   /* Start loop */\r\n   updateCpuUsage();\r\n   updateBatteryLevel();\r\n   updateConnectedToAC();\r\n}\r\n\r\n/**\r\n * Returns the auto-calculates scale ratio\r\n */\r\nqreal Utilities::scaleRatio()\r\n{\r\n   if (m_ratio < 1)\r\n      calculateScaleRatio();\r\n\r\n   return m_ratio;\r\n}\r\n\r\n/**\r\n * Returns the current CPU usage (from 0 to 100)\r\n */\r\nint Utilities::cpuUsage()\r\n{\r\n   m_cpuUsage = abs(m_cpuUsage);\r\n\r\n   if (m_cpuUsage <= 100)\r\n      return m_cpuUsage;\r\n\r\n   return 0;\r\n}\r\n\r\n/**\r\n * Returns the current battery level (from 0 to 100)\r\n */\r\nint Utilities::batteryLevel()\r\n{\r\n   m_batteryLevel = abs(m_batteryLevel);\r\n\r\n   if (m_batteryLevel <= 100)\r\n      return m_batteryLevel;\r\n\r\n   return 0;\r\n}\r\n\r\n/**\r\n * Returns \\c true if the computer is connected to a power source or the\r\n * battery is not discharging.\r\n */\r\nbool Utilities::isConnectedToAC()\r\n{\r\n   return m_connectedToAC;\r\n}\r\n\r\n/**\r\n * Copies the given \\a data to the system clipboard\r\n */\r\nvoid Utilities::copy(const QVariant &data)\r\n{\r\n   qApp->clipboard()->setText(data.toString(), QClipboard::Clipboard);\r\n}\r\n\r\n/**\r\n * Enables or disables the autoscale feature.\r\n * \\note The application must be restarted for changes to take effect\r\n */\r\nvoid Utilities::setAutoScaleEnabled(const bool enabled)\r\n{\r\n   m_settings->setValue(\"AutoScale\", enabled);\r\n}\r\n\r\n/**\r\n * Queries for the current CPU usage\r\n */\r\nvoid Utilities::updateCpuUsage()\r\n{\r\n#if defined Q_OS_WIN\r\n   PDH_FMT_COUNTERVALUE counterVal;\r\n   PdhCollectQueryData(cpuQuery);\r\n   PdhGetFormattedCounterValue(cpuTotal, PDH_FMT_DOUBLE, 0, &counterVal);\r\n   m_cpuUsage = static_cast<int>(counterVal.doubleValue);\r\n   emit cpuUsageChanged();\r\n#elif defined Q_OS_MAC\r\n   m_cpuProcess.terminate();\r\n   m_cpuProcess.startCommand(CPU_CMD, QIODevice::ReadOnly);\r\n#elif defined Q_OS_LINUX\r\n   auto cpuJiffies = getCpuJiffies();\r\n\r\n   m_cpuUsage = (cpuJiffies.first - m_pastCpuJiffies.first) * 100 / (cpuJiffies.second - m_pastCpuJiffies.second);\r\n\r\n   m_pastCpuJiffies = cpuJiffies;\r\n   emit cpuUsageChanged();\r\n#endif\r\n\r\n   QTimer::singleShot(1000, Qt::PreciseTimer, this, SLOT(updateCpuUsage()));\r\n}\r\n\r\n/**\r\n * Queries for the current battery level\r\n */\r\nvoid Utilities::updateBatteryLevel()\r\n{\r\n#if defined Q_OS_WIN\r\n   GetSystemPowerStatus(&power);\r\n   m_batteryLevel = static_cast<int>(power.BatteryLifePercent);\r\n   emit batteryLevelChanged();\r\n#else\r\n   m_batteryLevelProcess.terminate();\r\n   m_batteryLevelProcess.startCommand(BTY_CMD, QIODevice::ReadOnly);\r\n#endif\r\n\r\n   QTimer::singleShot(1000, Qt::PreciseTimer, this, SLOT(updateBatteryLevel()));\r\n}\r\n\r\n/**\r\n * Queries for the current AC power source status\r\n */\r\nvoid Utilities::updateConnectedToAC()\r\n{\r\n#if defined Q_OS_WIN\r\n   GetSystemPowerStatus(&power);\r\n   m_connectedToAC = (power.ACLineStatus != 0);\r\n   emit connectedToACChanged();\r\n#else\r\n   m_connectedToACProcess.terminate();\r\n   m_connectedToACProcess.startCommand(PWR_CMD, QIODevice::ReadOnly);\r\n#endif\r\n\r\n   QTimer::singleShot(1000, Qt::PreciseTimer, this, SLOT(updateConnectedToAC()));\r\n}\r\n\r\n/**\r\n * Calculates the scale factor to apply to the UI.\r\n * \\note This function uses different procedures depending on the OS\r\n */\r\nvoid Utilities::calculateScaleRatio()\r\n{\r\n   bool enabled = m_settings->value(\"AutoScale\", true).toBool();\r\n\r\n   /* Get scale factor using OS-specific code */\r\n#if defined Q_OS_WIN\r\n   HDC screen = GetDC(Q_NULLPTR);\r\n   m_ratio = (qreal)GetDeviceCaps(screen, LOGPIXELSX) / 96;\r\n   ReleaseDC(Q_NULLPTR, screen);\r\n#elif defined Q_OS_LINUX\r\n   m_ratio = qApp->primaryScreen()->physicalDotsPerInch() / 120;\r\n#endif\r\n\r\n   /* Ensure that values between x.40 and x.65 round down to x.40 */\r\n   qreal decimals = m_ratio - (int)m_ratio;\r\n   if (decimals >= 0.40 && decimals <= 0.65)\r\n      m_ratio -= (decimals - 0.40);\r\n\r\n   /* Ratio is too small to be useful to us */\r\n   if (!enabled || m_ratio < 1.2)\r\n      m_ratio = 1;\r\n\r\n   /* Brag about the obtained result */\r\n   qDebug() << \"Scale factor set to:\" << m_ratio;\r\n}\r\n\r\n/**\r\n * Reads the output of the process launched to get the CPU usage\r\n */\r\nvoid Utilities::readCpuUsageProcess(int exit_code)\r\n{\r\n   if (exit_code == EXIT_FAILURE)\r\n      return;\r\n\r\n#if defined Q_OS_MAC\r\n   m_cpuUsage = 0;\r\n   m_cpuProcess.terminate();\r\n   QByteArray data = m_cpuProcess.readAll();\r\n\r\n   if (!data.isEmpty() && data.length() >= 2)\r\n   {\r\n      /* Parse the digits of the percentage */\r\n      int t = data.at(0) - '0'; // Tens\r\n      int u = data.at(1) - '0'; // Units\r\n\r\n      /* Check if process data is invalid */\r\n      if (t < 0)\r\n         t = 0;\r\n      if (u < 0)\r\n         u = 0;\r\n\r\n      /* Update information */\r\n      m_cpuUsage = (t * 10) + u;\r\n      emit cpuUsageChanged();\r\n   }\r\n#endif\r\n}\r\n\r\n/**\r\n * Reads the output of the process launched to get the battery level\r\n */\r\nvoid Utilities::readBatteryLevelProcess(int exit_code)\r\n{\r\n   if (exit_code == EXIT_FAILURE)\r\n      return;\r\n\r\n#if defined Q_OS_MAC || defined Q_OS_LINUX\r\n   m_batteryLevel = 0;\r\n   m_batteryLevelProcess.terminate();\r\n   QByteArray data = m_batteryLevelProcess.readAll();\r\n\r\n   if (!data.isEmpty())\r\n   {\r\n      /* Parse the digits of the percentage */\r\n      int h = data.at(data.indexOf(\"%\") - 3) - '0'; // Hundreds\r\n      int t = data.at(data.indexOf(\"%\") - 2) - '0'; // Tens\r\n      int u = data.at(data.indexOf(\"%\") - 1) - '0'; // Units\r\n\r\n      /* Check if process data is invalid */\r\n      if (h < 0)\r\n         h = 0;\r\n      if (t < 0)\r\n         t = 0;\r\n      if (u < 0)\r\n         u = 0;\r\n\r\n      /* Update information */\r\n      m_batteryLevel = (h * 100) + (t * 10) + u;\r\n      emit batteryLevelChanged();\r\n   }\r\n#endif\r\n}\r\n\r\n/**\r\n * Reads the output of the process launched to get the AC power source status\r\n */\r\nvoid Utilities::readConnectedToACProcess(int exit_code)\r\n{\r\n   if (exit_code == EXIT_FAILURE)\r\n      return;\r\n\r\n#if defined Q_OS_MAC || defined Q_OS_LINUX\r\n   m_connectedToAC = false;\r\n   m_connectedToACProcess.terminate();\r\n   QByteArray data = m_connectedToACProcess.readAll();\r\n\r\n   if (!data.isEmpty())\r\n   {\r\n      m_connectedToAC = !data.contains(\"discharging\");\r\n      emit connectedToACChanged();\r\n   }\r\n#endif\r\n}\r\n\r\n#if defined Q_OS_LINUX\r\n/**\r\n * Reads the current count of CPU jiffies from /proc/stat and return a pair\r\n * consisting of non-idle jiffies and total jiffies\r\n */\r\nQPair<quint64, quint64> Utilities::getCpuJiffies()\r\n{\r\n   quint64 totalJiffies = 0;\r\n   quint64 nonIdleJiffies = 0;\r\n\r\n   QFile file(\"/proc/stat\");\r\n   if (file.open(QFile::ReadOnly))\r\n   {\r\n      QString line = file.readLine();\r\n      QStringList jiffies = line.replace(\"cpu  \", \"\").split(\" \");\r\n\r\n      if (jiffies.count() > 3)\r\n      {\r\n         nonIdleJiffies = jiffies.at(0).toInt() + jiffies.at(2).toInt();\r\n         totalJiffies = nonIdleJiffies + jiffies.at(3).toInt();\r\n      }\r\n\r\n      file.close();\r\n   }\r\n\r\n   return QPair<quint64, quint64>(nonIdleJiffies, totalJiffies);\r\n}\r\n#endif\r\n"
  },
  {
    "path": "src/utilities.h",
    "content": "/*\r\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\r\n *\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy\r\n * of this software and associated documentation files (the \"Software\"), to deal\r\n * in the Software without restriction, including without limitation the rights\r\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n * copies of the Software, and to permit persons to whom the Software is\r\n * furnished to do so, subject to the following conditions:\r\n *\r\n * The above copyright notice and this permission notice shall be included in\r\n * all copies or substantial portions of the Software.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n * THE SOFTWARE.\r\n */\r\n\r\n#ifndef _QDS_UTILITIES_H\r\n#define _QDS_UTILITIES_H\r\n\r\n#include <QProcess>\r\n\r\n#if defined Q_OS_LINUX\r\n#   include <QPair>\r\n#endif\r\n\r\nclass QSettings;\r\n\r\n/**\r\n * \\brief Provides CPU and Battery information to the QML interface\r\n */\r\nclass Utilities : public QObject\r\n{\r\n   Q_OBJECT\r\n   Q_PROPERTY(int cpuUsage READ cpuUsage NOTIFY cpuUsageChanged)\r\n   Q_PROPERTY(int batteryLevel READ batteryLevel NOTIFY batteryLevelChanged)\r\n   Q_PROPERTY(bool connectedToAC READ isConnectedToAC NOTIFY connectedToACChanged)\r\n   Q_PROPERTY(qreal scaleRatio READ scaleRatio CONSTANT)\r\n\r\nsignals:\r\n   void cpuUsageChanged();\r\n   void batteryLevelChanged();\r\n   void connectedToACChanged();\r\n\r\npublic:\r\n   explicit Utilities();\r\n\r\n   int cpuUsage();\r\n   int batteryLevel();\r\n   qreal scaleRatio();\r\n   bool isConnectedToAC();\r\n\r\npublic slots:\r\n   void copy(const QVariant &data);\r\n   void setAutoScaleEnabled(const bool enabled);\r\n\r\nprivate slots:\r\n   void updateCpuUsage();\r\n   void updateBatteryLevel();\r\n   void updateConnectedToAC();\r\n   void calculateScaleRatio();\r\n   void readCpuUsageProcess(int exit_code = 0);\r\n   void readBatteryLevelProcess(int exit_code = 0);\r\n   void readConnectedToACProcess(int exit_code = 0);\r\n\r\nprivate:\r\n#if defined(Q_OS_LINUX)\r\n   QPair<quint64, quint64> getCpuJiffies();\r\n   QPair<quint64, quint64> m_pastCpuJiffies { 0, 0 };\r\n#endif\r\n\r\n   qreal m_ratio;\r\n   int m_cpuUsage;\r\n   int m_batteryLevel;\r\n   bool m_connectedToAC;\r\n\r\n   QSettings *m_settings;\r\n   QProcess m_cpuProcess;\r\n   QProcess m_batteryLevelProcess;\r\n   QProcess m_connectedToACProcess;\r\n};\r\n\r\n#endif\r\n"
  },
  {
    "path": "src/versions.h",
    "content": "/*\r\n * Copyright (c) 2015-2020 Alex Spataru <alex_spataru@outlook.com>\r\n *\r\n * Permission is hereby granted, free of charge, to any person obtaining a copy\r\n * of this software and associated documentation files (the \"Software\"), to deal\r\n * in the Software without restriction, including without limitation the rights\r\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n * copies of the Software, and to permit persons to whom the Software is\r\n * furnished to do so, subject to the following conditions:\r\n *\r\n * The above copyright notice and this permission notice shall be included in\r\n * all copies or substantial portions of the Software.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r\n * THE SOFTWARE.\r\n */\r\n\r\n#ifndef _QDS_VERSIONS_H\r\n#define _QDS_VERSIONS_H\r\n\r\n#include <QString>\r\n\r\n// *INDENT-OFF*\r\nstatic const QString APP_VERSION = \"21.04\";\r\nstatic const QString APP_COMPANY = \"FRC Utilities\";\r\nstatic const QString APP_DSPNAME = \"QDriverStation\";\r\nstatic const QString CONTACT_URL = \"https://github.com/alex-spataru\";\r\nstatic const QString APP_WEBSITE = \"http://frc-utilities.github.io/\";\r\nstatic const QString APP_REPBUGS = \"http://github.com/FRC-Utilities/QDriverStation/issues\";\r\n// *INDENT-ON*\r\n\r\n#endif\r\n"
  }
]