import QtQuick 2.7
import QtQuick.Controls 2.1
import QtQml.Models 2.2

Rectangle {
  width: ROOT_WIDTH ; height: ROOT_HEIGHT

  BACKGROUND

  ListModel {
      id: appGridModel

  ELEMENTS
  }

    GridView {
            id: menu
            objectName: "informationScreen"
            boundsBehavior :Flickable.StopAtBounds
            anchors.centerIn: parent
            anchors.margins: 16
            width: parent.width
            height: parent.height
            model: appGridModel
            cellWidth: width / NUMBER_COLS
            cellHeight: height / NUMBER_ROWS
            delegate: Component {
                id: appGridDelegate
                Item {
                    id: wrapper
                     width: menu.cellWidth
                     height: menu.cellHeight
                     Rectangle {
                        anchors.fill: parent
                        anchors.margins: 10
                        color: "#ffffff"
                        ICONS_VIEW

                        Rectangle{
                            id: titleRec
                            width:menu.cellWidth - 20
                            height : menu.cellHeight * 0.1
                            color: "transparent"
                            Text {
                                id: title
                                text: cardTitle
                                horizontalAlignment: Text.AlignLeft
                                anchors.topMargin: 10
                                anchors.leftMargin: 20
                                fontSizeMode: Text.Fit
                                minimumPointSize: 6
                                font.pointSize: 120
                                anchors.fill: titleRec
                            }
                        }
                       ToolSeparator {
                         id: separator
                         orientation: Qt.Horizontal
                         anchors.top: titleRec.bottom
                         width: parent.width - 30
                         anchors.rightMargin: 15
                       }

                        CARD_VIEW_PROPERTY
                    }
                }
            }
        }
    }
