Skip to content
Snippets Groups Projects
DapRightPanelForm.ui.qml 1.78 KiB
Newer Older
Andrey Daragan's avatar
Andrey Daragan committed
//****************************************************************************
//                     Implements the right panel widget.
//****************************************************************************

import QtQuick.Controls 2.0
Andrey Daragan's avatar
Andrey Daragan committed
Rectangle 
{
littletux89@gmail.com's avatar
littletux89@gmail.com committed
    id: frameRightPanel

    ///@detalis Signal initiating switching to the previous displayed form.
    signal nextActivated (var parametrsRightPanel)
    ///@detalis Signal initiating switching to the previous displayed form.
    signal previousActivated (var parametrsRightPanel)
    ///@detalis Next display right panel.
    property string dapNextRightPanel
    ///@detalis Previous display right panel.
    property string dapPreviousRightPanel
    ///@detalis Right panel widget.
littletux89@gmail.com's avatar
littletux89@gmail.com committed
    property alias dapFrame: frameRightPanel
    ///@detalis Right pane title widget.
    property alias dapHeader: headerRightPanel
    ///@detalis Right pane header data.
littletux89@gmail.com's avatar
littletux89@gmail.com committed
    property Item dapHeaderData
    ///@detalis Stack of right panels owned by current.
    property alias dapContentPanel: contentItemRightPanel
    ///@detalis Content of the current right panel.
littletux89@gmail.com's avatar
littletux89@gmail.com committed
    property  Item dapContentItemData
    ///@detalis dapRightPanelWidth External property for possibility to hiding RightPanel
    property int dapRightPanelWidth
    width: dapRightPanelWidth
    // Install right panel title
        id: headerRightPanel
Andrey Daragan's avatar
Andrey Daragan committed
        data: dapHeaderData
        anchors.top: parent.top
        anchors.left: parent.left
        anchors.right: parent.right
    }
    // Install right panel content
littletux89@gmail.com's avatar
littletux89@gmail.com committed
    Item
        id: contentItemRightPanel
littletux89@gmail.com's avatar
littletux89@gmail.com committed
        data: dapContentItemData
        anchors.top: headerRightPanel.bottom
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: parent.bottom
    }