Compare commits

...

2 Commits

Author SHA1 Message Date
1243ed9c06 devlog: finished 2019-12-18 2019-12-18 22:36:55 +01:00
dd28135d14 editor: add simple carp editor 2019-12-18 22:33:36 +01:00
7 changed files with 44 additions and 1 deletions

View File

@@ -0,0 +1 @@
Im a simple editor with Carp code in it.

View File

@@ -0,0 +1,8 @@
initialization
gtCheck
<gtInspectorAction>
"TODO: make carp checker configurable"
^ GLMGenericAction new
action: [ GTInspector openOn: (CarpCheckExample new succeedingCarpChecker file: editor text asString; check) ];
icon: GLMUIThemeExtraIcons glamorousRefresh;
title: 'Check'

View File

@@ -0,0 +1,6 @@
initialization
gtContent: aView
<gtInspectorPresentationOrder: 0>
(aView custom: editor)
title: 'Editor';
display: text

View File

@@ -0,0 +1,5 @@
initialization
initialize
text := ''.
"TODO: find out how to override the mode properly"
editor := GLMRubricHighlightedTextPresentation new withLineNumbers: true; editingMode: RubPlainTextMode new

View File

@@ -0,0 +1,3 @@
initialization
text
^ text

View File

@@ -0,0 +1,14 @@
{
"commentStamp" : "VeitHeller 12/18/2019 21:39",
"super" : "Object",
"category" : "Pond",
"classinstvars" : [ ],
"pools" : [ ],
"classvars" : [ ],
"instvars" : [
"text",
"editor"
],
"name" : "CarpEditor",
"type" : "normal"
}

View File

@@ -15,4 +15,10 @@ at all, but I really want to.
## Review ## Review
Time worked: Time worked: 1:00
I was able to make it kinda sorta work. I can open an unhighlighted Carp
editor, play around in it, and try to check the results using a button that
spits out the error in a new inspector for me. This isnt quite what I
envisioned, but all the pieces are there. I just need to connect the dots
somehow now.