Skip to content
Snippets Groups Projects
Commit 9a66683b authored by Alexandr Mruchok's avatar Alexandr Mruchok
Browse files

[-] DapTabForm;

[*] changedTopPanel;
parent 1e3fc3ce
No related merge requests found
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
<file>widgets/DapScreen.qml</file> <file>widgets/DapScreen.qml</file>
<file>widgets/DapScreenForm.ui.qml</file> <file>widgets/DapScreenForm.ui.qml</file>
<file>widgets/DapTab.qml</file> <file>widgets/DapTab.qml</file>
<file>widgets/DapTabForm.ui.qml</file>
<file>widgets/DapTopPanel.qml</file> <file>widgets/DapTopPanel.qml</file>
<file>Device.qml</file> <file>Device.qml</file>
<file>widgets/DapRadioButton.qml</file> <file>widgets/DapRadioButton.qml</file>
......
//****************************************************************************
// Implements a general view of the tab.
//****************************************************************************
import QtQuick 2.4 import QtQuick 2.4
import QtQuick.Controls 2.0
DapTabForm Rectangle
{ {
id: frameTab
///@detalis Top panel widget.
property Item dapTopPanel
///@detalis Screen widget.
property Item dapScreen
///@detalis Separator widget.
property alias dapSeparator: separator
///@detalis Right pane widget.
property Item dapRightPanel
///@detalis Tab frame.
property alias dapFrame: frameTab
property alias rightPanel: rightPanel
anchors.fill: parent
// Install the top panel widget
Item
{
id: topPanel
data: dapTopPanel
height: dapTopPanel.height
width: parent.width
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
}
// Install the screen widget and the right panel
Row
{
anchors.top: topPanel.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
// Screen widget
Item
{
id: screen
data: dapScreen
height: parent.height
width: parent.width - separator.width - rightPanel.width
}
// Separator widget
Rectangle
{
id: separator
height: parent.height
}
// Right pane widget
Item
{
id: rightPanel
data: dapRightPanel
height: parent.height
width: dapRightPanel.width
}
}
} }
//****************************************************************************
// Implements a general view of the tab.
//****************************************************************************
import QtQuick 2.4
import QtQuick.Controls 2.0
Rectangle
{
id: frameTab
///@detalis Top panel widget.
property Item dapTopPanel
///@detalis Screen widget.
property Item dapScreen
///@detalis Separator widget.
property alias dapSeparator: separator
///@detalis Right pane widget.
property Item dapRightPanel
///@detalis Tab frame.
property alias dapFrame: frameTab
property alias rightPanel: rightPanel
anchors.fill: parent
// Install the top panel widget
Item
{
id: topPanel
data: dapTopPanel
height: dapTopPanel.height
width: parent.width
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
}
// Install the screen widget and the right panel
Row
{
anchors.top: topPanel.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
// Screen widget
Item
{
id: screen
data: dapScreen
height: parent.height
width: parent.width - separator.width - rightPanel.width
}
// Separator widget
Rectangle
{
id: separator
height: parent.height
}
// Right pane widget
Item
{
id: rightPanel
data: dapRightPanel
height: parent.height
width: dapRightPanel.width
}
}
}
...@@ -2,11 +2,18 @@ import QtQuick 2.4 ...@@ -2,11 +2,18 @@ import QtQuick 2.4
Rectangle Rectangle
{ {
id: frameTopPanel anchors.top: parent.top
radius: 8 * pt
height: 60 * pt height: 60 * pt
width: parent.width
color: "#070023" color: "#070023"
anchors.fill: parent
///@detalis Top panel frame. Rectangle {
property alias dapFrame: frameTopPanel color: parent.color
height: parent.height
width: parent.radius
x: parent.width - width
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment