mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-25 22:25:34 +00:00
- Implemented OfflineActivationDialog.qml for offline activation process with detailed instructions and file handling. - Created RegistrationDialog.qml for user registration with manual input and email parsing options. - Added new components: RoundGauge.qml, ScalarEditor.qml, Table2DEditor.qml, Table3DEditor.qml, TableEditorPanel.qml, and TableEditorView.qml for enhanced table editing features. - Updated main.py to include clipboard operations and file handling for saving/loading activation requests and codes. - Enhanced README.md to document new features and file structure.
73 lines
1.7 KiB
QML
73 lines
1.7 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
Item {
|
|
id: tableEditorPanel
|
|
|
|
property var currentTable: null
|
|
|
|
function loadTable(table) {
|
|
currentTable = table
|
|
if (table.type === "3D") {
|
|
stackLayout.currentIndex = 0
|
|
} else if (table.type === "2D") {
|
|
stackLayout.currentIndex = 1
|
|
} else {
|
|
stackLayout.currentIndex = 2
|
|
}
|
|
}
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
anchors.margins: 10
|
|
spacing: 10
|
|
|
|
// Header
|
|
RowLayout {
|
|
Layout.fillWidth: true
|
|
|
|
Label {
|
|
text: currentTable ? currentTable.name : "Select a Table"
|
|
font.pixelSize: 18
|
|
font.bold: true
|
|
Layout.fillWidth: true
|
|
}
|
|
|
|
Button {
|
|
text: "Burn to ECU"
|
|
highlighted: true
|
|
enabled: currentTable !== null
|
|
}
|
|
|
|
Button {
|
|
text: "Get from ECU"
|
|
enabled: currentTable !== null
|
|
}
|
|
}
|
|
|
|
// Table editor stack
|
|
StackLayout {
|
|
id: stackLayout
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
currentIndex: 0
|
|
|
|
// 3D Table Editor
|
|
Table3DEditor {
|
|
id: table3DEditor
|
|
}
|
|
|
|
// 2D Table Editor
|
|
Table2DEditor {
|
|
id: table2DEditor
|
|
}
|
|
|
|
// Scalar Editor
|
|
ScalarEditor {
|
|
id: scalarEditor
|
|
}
|
|
}
|
|
}
|
|
}
|