Giter Club home page Giter Club logo

qquickmaterialhelper's Introduction

Qt Quick Material Helper (DEPRECATED)

THIS PROJECT ISN'T UPDATED ANYMORE, YOU SHOULD USE Qaterial AND QaterialGallery. THEY ARE HARD FROM THIS LIBRARY WITH BETTER NAMING (SHORTER) AND BETTER QML MODULES ORGANIZATION.

A collection of helper for QtQuick and QtQuickControls to build faster UI using Qml. This library contain multiple override of QtQuickControls (Material) to match better google guideline and allow more customization.

Dependencies

  • Doxygen : To generate the documentation.
  • DoxygenBootstrapped : Integrate doxygen with CMake. v1.3.2.
  • QtCore QtGui QtQuick QtQuickControls2

CMake

Build

git clone https://github.com/OlivierLDff/QtQuickHelper
cd QQuickMaterialHelper && mkdir build && cd build
cmake -DQT_DIR="path/to/Qt/toolchain" -DQQUICKMATERIALHELPER_BUILD_SHARED=ON -DQQUICKMATERIALHELPER_USE_NAMESPACE=ON -DQQUICKMATERIALHELPER_BUILD_DOC=ON ..
make

Input

  • QQUICKMATERIALHELPER_TARGET : Name of the library target. Default : "QQuickMaterialHelper"
  • QQUICKMATERIALHELPER_PROJECT : Name of the project. Default : "QQuickMaterialHelper"
  • QQUICKMATERIALHELPER_BUILD_SHARED : Build shared library [ON OFF]. Default: OFF.
  • QQUICKMATERIALHELPER_BUILD_STATIC : Build static library [ON OFF]. Default: ON.
  • QQUICKMATERIALHELPER_USE_NAMESPACE : If the library compile with a namespace [ON OFF]. Default: ON.
  • QQUICKMATERIALHELPER_NAMESPACE : Namespace for the library. Only relevant if QQUICKMATERIALHELPER_USE_NAMESPACE is ON. Default: "Qqh".

Output

  • QQUICKMATERIALHELPER_TARGET : Output target to link to.
  • QQUICKMATERIALHELPER_VERSION : Current version of the library

Integration in CMake project

The main goal of this CMake project is to big included into another CMake project.

SET( QQUICKMATERIALHELPER_TARGET QQuickMaterialHelper )
SET( QQUICKMATERIALHELPER_PROJECT QQuickMaterialHelper )
SET( QQUICKMATERIALHELPER_BUILD_SHARED OFF )
SET( QQUICKMATERIALHELPER_BUILD_STATIC ON )
ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/path/to/QQuickMaterialHelper ${CMAKE_CURRENT_BINARY_DIR}/QQuickMaterialHelper_Build)

It is also possible to download the repository with the scripts inside cmake/. folder Simply call BuildQQuickMaterialHelper.cmake.

You will need:

  • DownloadProject.cmake
  • DownloadProject.CMakeLists.cmake.in
  • BuildQQuickMaterialHelper.cmake
SET( QQUICKMATERIALHELPER_TARGET QQuickMaterialHelper )
SET( QQUICKMATERIALHELPER_PROJECT QQuickMaterialHelper )
SET( QQUICKMATERIALHELPER_BUILD_SHARED OFF )
SET( QQUICKMATERIALHELPER_BUILD_STATIC ON )
SET( QQUICKMATERIALHELPER_USE_NAMESPACE ON )
SET( QQUICKMATERIALHELPER_REPOSITORY "https://github.com/OlivierLDff/QQuickMaterialHelper.git" )
SET( QQUICKMATERIALHELPER_TAG v1.0.1 )
INCLUDE(path/to/BuildQQuickMaterialHelper.cmake)

qquickmaterialhelper's People

Contributors

colombel-vincent avatar nathanvandehel avatar olivierldff avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sammyenigma

qquickmaterialhelper's Issues

Move font folder to qml/Fonts

  • Move all fonts from /fonts to /qml/Fonts.
  • Use only one qrc file and remove font.qrc
  • Fix roboto font loading that behave wrong in some project (ie MaterialHelperGallery)
  • Update font loader to log when each font is loaded and when a font is loaded with errors

Create a Snackbar Manager

That can create snackbar and have a stack of snackbar that display them when one is close.
Snackbar take an option item.

snackbarManager.show({
    text: "Snackbar text"
    action: "Reply"
    timeout: 5000
    onAccept: function()
    {
        console.log("accept callback")
    }
    onClose: function()
    {
        console.log("close callback")
    }
})

// in SnackbarManager

function show(config)
{
    //config.onAccept
    //config.onClose
    //config.text
    //config.action
    //config.timeout

    //(config.onAccept === undefined)


}

Component
{
    Snackbar
    {
        onActionPressed: root.config.onAccept()
        action: root.config && root.config.action ? root.config.action : ""
    }
}

Loader
{
    
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.