import QtQuick 2.12
import BTPhone 1.0
import QtQuick.Layouts 1.11
import QtQuick.Controls 2.15

Item {
    id: root

    width: Constants.width
    height: Constants.height * 0.1
    property alias menuBtn: menuBtn

    Rectangle {
        id: bg
        color: "#ffffff"
        anchors.fill: parent
    }

    TabBar {
        id: tabBar
        width: parent.width * 0.6
        anchors.left: parent.left
        anchors.top: parent.top
        anchors.bottom: parent.bottom
        Layout.fillWidth: false
        contentHeight: height

        TabButton {
            id: cllHistory
            text: qsTr("Call History\n(Icon)")
        }

        TabButton {
            id: favorites
            text: qsTr("Favorites\n(Icon)")
        }

        TabButton {
            id: contacts
            text: qsTr("Contacts\n(Icon)")
        }

        TabButton {
            id: dial
            text: qsTr("Dial\n(Icon)")
        }

        TabButton {
            id: messages
            text: qsTr("Messages\n(Icon)")
        }
    }

    RowLayout {
        id: btnBar
        anchors.left: tabBar.right
        anchors.right: parent.right
        anchors.top: parent.top
        anchors.bottom: parent.bottom
        anchors.leftMargin: 15
        anchors.topMargin: 0
        Layout.fillWidth: false
        property alias menuRight: menuBtn.right

        Button {
            id: bTSettingBtn
            text: qsTr("BT")
            Layout.fillHeight: true
            Layout.fillWidth: true
        }

        Button {
            id: menuBtn
            text: qsTrId("LID_4946")
            Layout.fillHeight: true
            Layout.fillWidth: true
        }

        Button {
            id: backBtn
            text: qsTr("<-")
            Layout.fillHeight: true
            Layout.fillWidth: true
        }
    }
}

/*##^##
Designer {
    D{i:0;height:40;width:800}D{i:10;annotation:"1 //;;// Menu //;;//  //;;// <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\np, li { white-space: pre-wrap; }\n</style></head><body style=\" font-family:'Titillium Web'; font-size:9pt; font-weight:400; font-style:normal;\">\n<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Menu : Button : Always</p></body></html> //;;// 1594172130";customId:""}
}
##^##*/

