Files
tustu/app_qml/TableEditorPanel.qml
johndoe6345789 741702cedf feat: Add Offline Activation Dialog and Registration Dialog
- 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.
2026-01-11 03:11:28 +00:00

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
}
}
}
}