-
Notifications
You must be signed in to change notification settings - Fork 6
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 #6 from OpenSmock/dev
Dev
- Loading branch information
Showing
6 changed files
with
167 additions
and
17 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 |
---|---|---|
@@ -0,0 +1,107 @@ | ||
Class { | ||
#name : #PyramidWorld, | ||
#superclass : #Object, | ||
#category : #'Pyramid-IDE-Menus' | ||
} | ||
|
||
{ #category : #menu } | ||
PyramidWorld class >> menuBrowseSourcesOn: aBuilder [ | ||
|
||
<worldMenu> | ||
(aBuilder item: #New) | ||
parent: #PyramidDev; | ||
order: 2.0; | ||
action: [ self startBrowseSources ]; | ||
icon: (self iconNamed: #nautilus); | ||
help: 'Open Pyramid sources packages in a browser'; | ||
label: 'Browse sources' | ||
] | ||
|
||
{ #category : #menu } | ||
PyramidWorld class >> menuGithubOn: aBuilder [ | ||
|
||
<worldMenu> | ||
(aBuilder item: #Github) | ||
parent: #PyramidDev; | ||
order: 3.0; | ||
label: 'Github'; | ||
help: 'Open Pyramid Github page'; | ||
icon: (self iconNamed: #github); | ||
action: [ WebBrowser openOn: 'https://github.com/OpenSmock/Pyramid' ] | ||
] | ||
|
||
{ #category : #menu } | ||
PyramidWorld class >> menuNewOn: aBuilder [ | ||
|
||
<worldMenu> | ||
(aBuilder item: #New) | ||
parent: #PyramidUser; | ||
order: 1.0; | ||
action: [ self startNewDesign ]; | ||
icon: (self iconNamed: #page); | ||
help: 'Create a new User-Interface'; | ||
label: 'New project' | ||
] | ||
|
||
{ #category : #'menu - root' } | ||
PyramidWorld class >> menuPyramidOn: aBuilder [ | ||
|
||
<worldMenu> | ||
(aBuilder item: #Pyramid) | ||
parent: #Tools; | ||
label: 'Pyramid'; | ||
help: 'A UI editor'; | ||
order: 777; | ||
|
||
with:[ | ||
(aBuilder group: #PyramidUser) | ||
order: 1; | ||
withSeparatorAfter. | ||
(aBuilder group: #PyramidDev) | ||
order: 2. | ||
] | ||
] | ||
|
||
{ #category : #menu } | ||
PyramidWorld class >> menuRefreshPluginOn: aBuilder [ | ||
|
||
<worldMenu> | ||
(aBuilder item: #New) | ||
parent: #PyramidDev; | ||
order: 1.0; | ||
action: [ self startRefreshPlugins ]; | ||
icon: (self iconNamed: #refresh); | ||
help: 'Reload all Pyramid plugins, use this to install a new plugin'; | ||
label: 'Refresh plugins' | ||
] | ||
|
||
{ #category : #menu } | ||
PyramidWorld class >> menuReportABugOn: aBuilder [ | ||
|
||
<worldMenu> | ||
(aBuilder item: #Github) | ||
parent: #PyramidDev; | ||
order: 4.0; | ||
label: 'Report a Bug'; | ||
icon: (self iconNamed: #smallDebug); | ||
help: 'Will open the github page to report an issue'; | ||
action: [ WebBrowser openOn: 'https://github.com/OpenSmock/Pyramid/issues/new' ] | ||
] | ||
|
||
{ #category : #actions } | ||
PyramidWorld class >> startBrowseSources [ | ||
|
||
Smalltalk tools browser open packageView filterField setText: 'Pyramid' | ||
] | ||
|
||
{ #category : #actions } | ||
PyramidWorld class >> startNewDesign [ | ||
|
||
PyramidPluginManager uniqueInstance makeEditor window open | ||
] | ||
|
||
{ #category : #actions } | ||
PyramidWorld class >> startRefreshPlugins [ | ||
|
||
PyramidPluginManager reset | ||
] |
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 @@ | ||
Package { #name : #'Pyramid-IDE' } |
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,17 @@ | ||
Class { | ||
#name : #PyramidEditorTest, | ||
#superclass : #TestCase, | ||
#category : #'Pyramid-Tests-Cases' | ||
} | ||
|
||
{ #category : #tests } | ||
PyramidEditorTest >> testOpenNewEditor [ | ||
|
||
| editor | | ||
editor := PyramidPluginManager uniqueInstance makeEditor. | ||
editor window open. | ||
self assert: editor window isOpen. | ||
|
||
editor window close. | ||
self assert: editor window isClosed. | ||
] |
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