-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85f74fb
commit 03ba156
Showing
12 changed files
with
111 additions
and
15 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
src/PharoLauncher-IceTray.package/PhLImagePresenter.class/class/defaultSpec.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,63 @@ | ||
specs | ||
defaultSpec | ||
|
||
<spec: #default> | ||
|
||
| fontWidth labelsWidth rowHeight checkboxWidth | | ||
fontWidth := (StandardFonts defaultFont widthOfString: 'M'). | ||
labelsWidth := fontWidth * 8. | ||
rowHeight := self inputTextHeight. | ||
checkboxWidth := fontWidth * 2. | ||
|
||
^ SpecLayout composed | ||
newRow: [ :mainRow | | ||
mainRow newColumn: [ :col | | ||
|
||
col newRow: [ : row | | ||
row add: #nameLabel right: labelsWidth. | ||
row add: #nameTextInput ] | ||
height: rowHeight. | ||
|
||
col newRow: [ :row | | ||
row add: #vmLabel right: labelsWidth. | ||
row add: #vmInput ] | ||
height: rowHeight. | ||
|
||
col newRow: [ :row | | ||
row add: #templateLabel right: labelsWidth. | ||
row add: #templateInput ] | ||
height: rowHeight. | ||
|
||
col newRow: [ :row | | ||
row add: #locationLabel right: labelsWidth. | ||
row add: #locationInput ] | ||
height: rowHeight. | ||
|
||
col newRow: [ :row | ]. "fill the rest" | ||
|
||
]. | ||
|
||
mainRow newColumn: [ :col | | ||
|
||
col newRow: [ :row | | ||
row add: #lastModificationLabel right: labelsWidth. | ||
row add: #lastModificationInput ] | ||
height: rowHeight. | ||
|
||
col newRow: [ :row | | ||
row add: #tagsLabel right: labelsWidth. | ||
row add: #tagsInput ] | ||
height: rowHeight. | ||
|
||
|
||
col newRow: [ :row | | ||
row add: #commentLabel right: labelsWidth. | ||
row add: #commentInput ] | ||
height: rowHeight*2. | ||
|
||
col newRow: [ :row | ]. "fill the rest" | ||
|
||
]]. | ||
|
||
|
||
|
13 changes: 9 additions & 4 deletions
13
...haroLauncher-IceTray.package/PhLImagePresenter.class/instance/fillFormWithWorkingModel.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,9 +1,14 @@ | ||
initialization | ||
fillFormWithWorkingModel | ||
|
||
self nameTextInput text: self workingModel asString. | ||
"self surnameTextInput text: self workingModel asString. | ||
self number1Input text: self workingModel asString. | ||
self number2Input text: self workingModel asString." | ||
self workingModel ifNil: [ ^ self ]. | ||
|
||
self nameTextInput text: self workingModel name asString. | ||
self vmInput text: self workingModel vm asString. | ||
self templateInput text: self workingModel template asString. | ||
self lastModificationInput text: self workingModel lastModification asString. | ||
self tagsInput text: 'no tags support'. | ||
self commentInput text: 'no comments support'. | ||
self locationInput text: 'no location support'. | ||
|
||
|
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
9 changes: 8 additions & 1 deletion
9
src/PharoLauncher-IceTray.package/PhLPharoLauncher.class/class/defaultSpec.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,4 +1,11 @@ | ||
specs | ||
defaultSpec | ||
<spec: #default> | ||
^ SpecLayout composed newColumn: [ :column | column add: #imagesTable ] | ||
|
||
^ SpecLayout composed | ||
newColumn: [ :column | | ||
column add: #imagesTable. | ||
column addSplitter. | ||
column add: #propertyPanel ]; | ||
yourself. | ||
|
2 changes: 1 addition & 1 deletion
2
src/PharoLauncher-IceTray.package/PhLPharoLauncher.class/instance/copySelectedImage.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,5 +1,5 @@ | ||
actions | ||
copySelectedImage | ||
PhLCopyImageCommand new | ||
setContext: self context; | ||
setModel: self context; | ||
execute |
2 changes: 1 addition & 1 deletion
2
src/PharoLauncher-IceTray.package/PhLPharoLauncher.class/instance/deleteSelectedImage.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,6 +1,6 @@ | ||
actions | ||
deleteSelectedImage | ||
PhLDeleteImageCommand new | ||
setContext: self context; | ||
setModel: self context; | ||
execute. | ||
self refresh |
6 changes: 6 additions & 0 deletions
6
src/PharoLauncher-IceTray.package/PhLPharoLauncher.class/instance/firstlySelectedImage.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,6 @@ | ||
actions | ||
firstlySelectedImage | ||
|
||
^ imagesTable morph selectedItems size = 1 | ||
ifTrue: [ imagesTable morph selectedItems anyOne ] | ||
ifFalse: [ nil ] |
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
8 changes: 5 additions & 3 deletions
8
src/PharoLauncher-IceTray.package/PhLPharoLauncher.class/instance/initializeWidgets.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,8 +1,10 @@ | ||
initialization | ||
initializeWidgets | ||
|
||
propertyPanel := (self instantiate: PhLImagePresenter on: self). | ||
|
||
self initializeToolbar. | ||
self initializeStatusbar. | ||
self initializeBody | ||
self initializeBody. | ||
|
||
propertyPanel := (self instantiate: PhLImagePresenter on: self firstlySelectedImage). | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...uncher-IceTray.package/PhLPharoLauncher.class/instance/launchSelectedImageWithSettings.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,5 +1,5 @@ | ||
actions | ||
launchSelectedImageWithSettings | ||
PhLLaunchImageCommand new | ||
setContext: self context; | ||
setModel: self context; | ||
execute |
2 changes: 1 addition & 1 deletion
2
...her-IceTray.package/PhLPharoLauncher.class/instance/launchSelectedImageWithoutSettings.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,5 +1,5 @@ | ||
actions | ||
launchSelectedImageWithoutSettings | ||
PhLLaunchImageWithoutSettingCommand new | ||
setContext: self context; | ||
setModel: self context; | ||
execute |
5 changes: 5 additions & 0 deletions
5
src/PharoLauncher-IceTray.package/PhLPharoLauncher.class/instance/selectionChanged..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,5 @@ | ||
actions | ||
selectionChanged: anAnnouncement | ||
|
||
imagesTable morph selectedItems size = 1 ifTrue: [ | ||
propertyPanel model: imagesTable morph selectedItems anyOne ]. |