Add Cell, CellModel
diff --git a/ide/qml/main.qml b/ide/qml/main.qml
index d3bca25..73a4581 100644
--- a/ide/qml/main.qml
+++ b/ide/qml/main.qml
@@ -3,6 +3,8 @@
import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.3
+import sh.swisschili.REFAL 1.0
+
ApplicationWindow {
id: root
width: 1080
@@ -10,9 +12,19 @@
title: "Notebook"
visible: true
- Material.theme: Material.Dark
+ Material.theme: Material.Light
Material.accent: Material.Orange
+ CellModel {
+ id: model
+ }
+
+ Component.onCompleted: {
+ model.addCell("Refal { = Hi!; }", "");
+ model.addCell("<Refal>", "Hi!");
+ model.addCell("Hello there", "Hello there");
+ }
+
ColumnLayout {
id: column
anchors.fill: parent
@@ -45,10 +57,10 @@
id: codeEditor
SplitView.fillWidth: true
SplitView.minimumWidth: 400
- model: 3
+ model: model
clip: true
- delegate: Cell {
+ delegate: NotebookCell {
width: codeEditor.width - 5
}
}