mirror of
https://github.com/johndoe6345789/tustu.git
synced 2026-04-24 13:45:00 +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.
52 lines
1.4 KiB
QML
52 lines
1.4 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
Item {
|
|
id: table2DEditor
|
|
|
|
ColumnLayout {
|
|
anchors.fill: parent
|
|
spacing: 10
|
|
|
|
Label {
|
|
text: "2D Table Editor"
|
|
font.pixelSize: 16
|
|
font.bold: true
|
|
}
|
|
|
|
ScrollView {
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
|
|
GridLayout {
|
|
columns: 3
|
|
rowSpacing: 5
|
|
columnSpacing: 10
|
|
|
|
// Header
|
|
Label { text: "Index"; font.bold: true }
|
|
Label { text: "X-Axis"; font.bold: true }
|
|
Label { text: "Value"; font.bold: true }
|
|
|
|
// Data rows
|
|
Repeater {
|
|
model: 8
|
|
|
|
delegate: RowLayout {
|
|
Label { text: index; width: 40 }
|
|
TextField {
|
|
text: (index * 500).toFixed(0)
|
|
Layout.preferredWidth: 80
|
|
}
|
|
TextField {
|
|
text: (50 + Math.random() * 50).toFixed(1)
|
|
Layout.preferredWidth: 80
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|