-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from hpi-swa-teaching/feature/menu-bar
Add menu-bar
- Loading branch information
Showing
13 changed files
with
72 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ os: | |
smalltalk: | ||
- Squeak-trunk | ||
- Squeak-5.2 | ||
- Squeak-5.1 | ||
|
||
matrix: | ||
allow_failures: | ||
|
14 changes: 6 additions & 8 deletions
14
packages/MarkdownEditor-Core.package/MarkdownEditor.class/instance/buildWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Core.package/MarkdownEditor.class/instance/windowTitle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
windowTitle | ||
|
||
^ 'Markdown Editor' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
25 changes: 25 additions & 0 deletions
25
packages/MarkdownEditor-Core.package/MarkdownEditorMenuBar.class/class/buildWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Core.package/MarkdownEditorMenuBar.class/class/height.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
height | ||
|
||
^ 2 * Preferences standardButtonFont height |
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Core.package/MarkdownEditorMenuBar.class/instance/height.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
as yet unclassified | ||
height | ||
|
||
^ Preferences standardButtonFont height * 2 |
6 changes: 6 additions & 0 deletions
6
packages/MarkdownEditor-Core.package/MarkdownEditorMenuBar.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } } |
14 changes: 14 additions & 0 deletions
14
packages/MarkdownEditor-Core.package/MarkdownEditorMenuBar.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" } |
4 changes: 4 additions & 0 deletions
4
packages/MarkdownEditor-Tests.package/MarkdownEditorTest.class/instance/testMenuBarExists.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
tests - window | ||
testMenuBarExists | ||
|
||
self assert: (window submorphs select: [:each | each class = PluggablePanelMorph]) size > 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters