118 lines
2.6 KiB
QML
118 lines
2.6 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
ColumnLayout {
|
|
height: parent.height
|
|
spacing: 0
|
|
|
|
anchors {
|
|
left: parent.left
|
|
top: parent.top
|
|
}
|
|
ButtonGroup {
|
|
id: buttonBar
|
|
}
|
|
BarButton {
|
|
id: dashBoard
|
|
|
|
ButtonGroup.group: buttonBar
|
|
icon.source: "qrc:/images/Square3Stack3D-Outline.svg"
|
|
text: qsTr("Dashboard")
|
|
target: "/Gui/Dashboard.qml"
|
|
}
|
|
BarButton {
|
|
id: kunden
|
|
|
|
ButtonGroup.group: buttonBar
|
|
icon.source: "qrc:/images/UserGroup-Outline.svg"
|
|
text: qsTr("Kunden")
|
|
target: "/Gui/CustomersTable.qml"
|
|
}
|
|
BarButton {
|
|
id: objekt
|
|
|
|
ButtonGroup.group: buttonBar
|
|
icon.source: "qrc:/images/BuildingOffice2-Outline.svg"
|
|
text: qsTr("Objekt")
|
|
target: "/Gui/ObjectsTable.qml"
|
|
}
|
|
BarButton {
|
|
id: mitarbeiter
|
|
|
|
ButtonGroup.group: buttonBar
|
|
icon.source: "qrc:/images/Identification-Outline.svg"
|
|
text: qsTr("Mitarbeiter")
|
|
target: "/Gui/Employees/EmployeesTable.qml"
|
|
}
|
|
BarButton {
|
|
id: offers
|
|
|
|
ButtonGroup.group: buttonBar
|
|
icon.source: "qrc:/images/RectangleStack-Outline.svg"
|
|
text: qsTr("Angebote")
|
|
target: "/Gui/OffersTable.qml"
|
|
}
|
|
BarButton {
|
|
id: abrechnung
|
|
|
|
ButtonGroup.group: buttonBar
|
|
icon.source: "qrc:/images/Wallet-Outline.svg"
|
|
text: qsTr("Abrechnung")
|
|
}
|
|
Item {
|
|
id: hspacer
|
|
|
|
Layout.fillHeight: true
|
|
}
|
|
BarButton {
|
|
id: atajos
|
|
|
|
Layout.bottomMargin: Dimensions.s
|
|
checkable: false
|
|
flat: true
|
|
icon.source: "qrc:/images/Bars3.svg"
|
|
implicitHeight: 90
|
|
implicitWidth: 90
|
|
|
|
onClicked: mainMenu.open()
|
|
|
|
Menu {
|
|
id: mainMenu
|
|
|
|
MenuItem {
|
|
text: qsTr("Einstellungen")
|
|
|
|
onTriggered: {
|
|
// TODO: Check if logged-in user is admin first!!
|
|
|
|
contentStack.push("PyqcrmConf.qml");
|
|
}
|
|
}
|
|
MenuSeparator {
|
|
}
|
|
MenuItem {
|
|
text: qsTr("Als PDF exportieren")
|
|
}
|
|
MenuSeparator {
|
|
}
|
|
MenuItem {
|
|
text: qsTr("Drucken")
|
|
}
|
|
MenuItem {
|
|
text: qsTr("Erweiterter Druck")
|
|
|
|
onTriggered: printerDialog.show()
|
|
}
|
|
MenuSeparator {
|
|
}
|
|
MenuItem {
|
|
text: qsTr("Über PYQCRM")
|
|
|
|
onTriggered: readMeWin.show()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|