2023-06-30 11:11:14 +00:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
2024-02-22 14:51:16 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2023-06-30 11:11:14 +00:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Window
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
|
|
|
ApplicationWindow {
|
|
|
|
visible: true
|
|
|
|
width: 640
|
2023-07-11 11:06:48 +00:00
|
|
|
height: 600
|
2023-07-24 08:36:00 +00:00
|
|
|
AboutDialog {
|
|
|
|
id: aboutDialog
|
|
|
|
anchors.centerIn: parent
|
|
|
|
}
|
2023-07-07 05:26:14 +00:00
|
|
|
WasmMenu {
|
|
|
|
id: wasmMenu
|
2023-08-25 09:33:27 +00:00
|
|
|
Accessible.focusable: true
|
|
|
|
focusPolicy: Qt.StrongFocus
|
|
|
|
focus: true
|
2023-07-24 08:36:00 +00:00
|
|
|
property string timeCaption: "Initiated at :"
|
2023-06-30 11:11:14 +00:00
|
|
|
anchors {
|
|
|
|
left: parent.left
|
2023-07-10 05:52:54 +00:00
|
|
|
leftMargin: 20
|
2023-07-07 05:26:14 +00:00
|
|
|
top: parent.top
|
2023-06-30 11:11:14 +00:00
|
|
|
}
|
2023-07-24 08:36:00 +00:00
|
|
|
function getCurrentDate() {
|
|
|
|
var currentDate = new Date()
|
|
|
|
var year = currentDate.getFullYear()
|
|
|
|
var month = currentDate.getMonth() + 1
|
|
|
|
var day = currentDate.getDate()
|
|
|
|
return day + "/" + month + "/" + year
|
|
|
|
}
|
|
|
|
function getCurrentTime() {
|
|
|
|
var currentDate = new Date()
|
|
|
|
var hours = currentDate.getHours()
|
|
|
|
var minutes = currentDate.getMinutes()
|
|
|
|
var seconds = currentDate.getSeconds()
|
|
|
|
return hours + ":" + minutes + ":" + seconds
|
|
|
|
}
|
|
|
|
function removeTextAfterIndex(rmText, currdateTime) {
|
|
|
|
var index = currdateTime.indexOf(rmText)
|
|
|
|
if (index !== -1) {
|
|
|
|
currdateTime = currdateTime.substring(0, index)
|
|
|
|
}
|
|
|
|
return currdateTime
|
|
|
|
}
|
|
|
|
onShowTime: {
|
|
|
|
timeCaption = removeTextAfterIndex(", time:", timeCaption)
|
|
|
|
timeCaption += ", time: " + getCurrentTime()
|
|
|
|
meetingTabs.setTime.text = timeCaption
|
|
|
|
}
|
|
|
|
onShowDate: {
|
|
|
|
timeCaption = removeTextAfterIndex(" date:", timeCaption)
|
|
|
|
timeCaption += " date: " + getCurrentDate()
|
|
|
|
meetingTabs.setTime.text = timeCaption
|
|
|
|
}
|
|
|
|
onShowAboutDialog: {
|
|
|
|
aboutDialog.open()
|
|
|
|
}
|
2023-06-30 11:11:14 +00:00
|
|
|
}
|
|
|
|
|
2023-07-07 05:26:14 +00:00
|
|
|
WasmToolBar {
|
|
|
|
id: wasmToolbar
|
|
|
|
anchors {
|
2023-07-10 05:52:54 +00:00
|
|
|
left: parent.left
|
|
|
|
leftMargin: 20
|
2023-07-07 05:26:14 +00:00
|
|
|
top: wasmMenu.bottom
|
|
|
|
topMargin: 3
|
|
|
|
}
|
2023-08-01 12:25:52 +00:00
|
|
|
enabled: meetingTabs.currentIndex === MeetingTabs.Types.Summary ? true : false
|
2023-07-07 05:26:14 +00:00
|
|
|
}
|
2023-06-30 11:11:14 +00:00
|
|
|
|
2023-07-18 07:00:55 +00:00
|
|
|
Rectangle {
|
2023-09-15 10:34:24 +00:00
|
|
|
width: parent.width - 30
|
|
|
|
height: parent.height - wasmToolbar.height - wasmMenu.height - 30
|
2023-07-18 07:00:55 +00:00
|
|
|
border.color: "black"
|
|
|
|
border.width: 1
|
2023-09-15 10:34:24 +00:00
|
|
|
id:outerRect
|
2023-07-18 07:00:55 +00:00
|
|
|
anchors {
|
|
|
|
left: parent.left
|
|
|
|
leftMargin: 20
|
|
|
|
top: wasmToolbar.bottom
|
|
|
|
topMargin: 10
|
2023-09-15 10:34:24 +00:00
|
|
|
bottomMargin: 10
|
2023-07-18 07:00:55 +00:00
|
|
|
}
|
2023-06-30 11:11:14 +00:00
|
|
|
|
2023-07-18 07:00:55 +00:00
|
|
|
MeetingTabs {
|
2023-07-24 08:36:00 +00:00
|
|
|
id: meetingTabs
|
2023-09-15 10:34:24 +00:00
|
|
|
parent:outerRect
|
2023-07-18 07:00:55 +00:00
|
|
|
anchors {
|
2023-08-25 09:33:27 +00:00
|
|
|
centerIn: parent
|
2023-07-18 07:00:55 +00:00
|
|
|
}
|
2023-09-15 10:34:24 +00:00
|
|
|
height: parent.height - 20
|
|
|
|
width: parent.width - 20
|
2023-07-18 07:00:55 +00:00
|
|
|
}
|
2023-06-30 11:11:14 +00:00
|
|
|
}
|
|
|
|
}
|