Skip to content

Commit

Permalink
Add menu-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianKleissl committed May 11, 2020
1 parent 6052bd1 commit bee687b
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
building
buildWith: aBuilder

| windowSpec |
windowSpec := aBuilder pluggableWindowSpec new
model: self;
children: {self buildEditorTextMorphWith: aBuilder};
label: 'Markdown Editor';
yourself.
^ aBuilder build: windowSpec

windowSpec := self buildWindowWith: aBuilder specs: {
(LayoutFrame fractions: (0 @ 0 corner: 1 @ 0) offsets: (0 @ 0 corner: 0 @ (MarkdownEditorMenuBar height))) -> [MarkdownEditorMenuBar buildWith: aBuilder].
(LayoutFrame fractions: (0 @ 0 corner: 1 @ 1) offsets: (0 @ (MarkdownEditorMenuBar height) corner: 0 @ 0)) -> [self buildEditorTextMorphWith: aBuilder]}.

^ aBuilder build: windowSpec
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"open" : "kgr 4/29/2019 13:18" },
"instance" : {
"buildEditorTextMorphWith:" : "jko 6/25/2019 20:37",
"buildWith:" : "lpf 6/13/2019 15:28",
"buildWith:" : "MK 5/11/2020 14:33",
"markdownText" : "lpf 6/13/2019 15:26",
"markdownText:" : "lpf 6/13/2019 15:27" } }
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
as yet unclassified
buildWith: aBuilder

^ aBuilder pluggablePanelSpec new
layout: #horizontal;
children: {
aBuilder pluggableButtonSpec new
label: 'new';
model: self;
enabled: true;
action: 'MarkdownEditor new' asSymbol;
yourself.
aBuilder pluggableButtonSpec new
label: 'Save';
model: self;
enabled: false;
action: #showNextTip;
yourself.
aBuilder pluggableButtonSpec new
label: 'Options';
model: self;
action: #close;
enabled: false;
yourself };
yourself
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
height

^ 2 * Preferences standardButtonFont height
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
height

^ Preferences standardButtonFont height * 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"class" : {
"buildWith:" : "MK 5/11/2020 14:36",
"height" : "MK 5/11/2020 14:36" },
"instance" : {
"height" : "MK 5/11/2020 14:29" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"category" : "MarkdownEditor-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "MarkdownEditorMenuBar",
"pools" : [
],
"super" : "Object",
"type" : "normal" }

0 comments on commit bee687b

Please sign in to comment.