srecord noeq G22ProjectOverviewPanel(G22Utils g22utils) { JSyntaxTextFileEditor storyView; cachedVisualize { lblStats = jlabel("Database size: " + str_toKB(fileSize(g22utils.concepts().conceptsFile()))); storyView = new JSyntaxTextFileEditor(g22utils.projectStoryTextFile()) .uneditable(true); storyView.adaptSyntaxTextArea = textArea -> g22_adaptSyntaxTextAreaForHashRefs(textArea, g22utils); addInFront(storyView.buttons(), jImageButtonScaledToWidth(16, #1103068, "Edit", rThread { //g22utils.projectActions.editProjectStory(); storyView.uneditable(false); })); ret withTopAndBottomMargin(jRaisedCenteredSection("Project " + quote(g22utils.projectName()) + " Overview", jhsplit(0.75, jCenteredSection("Project Story", centerAndSouthWithMargin( storyView.visualize(), lblStats )), northAndCenterWithMargin( new G22AutoStartPanel(g22utils).visualize(), new G22VariablesPanel(g22utils).compactView(true).visualize() )) )); } }