forked from dupriezt/Chest
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #23 from adri09070/reworking-main-ui
Reworking main UI
- Loading branch information
Showing
7 changed files
with
377 additions
and
46 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,35 @@ | ||
Class { | ||
#name : #ChestAddNewItemCommand, | ||
#superclass : #ChestCommand, | ||
#category : #'Chest-Commands' | ||
} | ||
|
||
{ #category : #default } | ||
ChestAddNewItemCommand class >> defaultDescription [ | ||
|
||
^ 'Request an expression whose result will be stored inside the selected chest' | ||
] | ||
|
||
{ #category : #default } | ||
ChestAddNewItemCommand class >> defaultIconName [ | ||
|
||
^ #add | ||
] | ||
|
||
{ #category : #default } | ||
ChestAddNewItemCommand class >> defaultName [ | ||
|
||
^ 'Add item' | ||
] | ||
|
||
{ #category : #testing } | ||
ChestAddNewItemCommand >> canBeExecuted [ | ||
|
||
^ context selectedChest isNotNil | ||
] | ||
|
||
{ #category : #executing } | ||
ChestAddNewItemCommand >> execute [ | ||
|
||
^ context requestExpressionToStoreInChest | ||
] |
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,41 @@ | ||
Class { | ||
#name : #ChestInspectChestCommand, | ||
#superclass : #ChestCommand, | ||
#category : #'Chest-Commands' | ||
} | ||
|
||
{ #category : #default } | ||
ChestInspectChestCommand class >> defaultDescription [ | ||
|
||
^ 'Inspect the chest' | ||
] | ||
|
||
{ #category : #default } | ||
ChestInspectChestCommand class >> defaultIconName [ | ||
|
||
^ #glamorousInspect | ||
] | ||
|
||
{ #category : #default } | ||
ChestInspectChestCommand class >> defaultName [ | ||
|
||
^ 'Inspect chest' | ||
] | ||
|
||
{ #category : #default } | ||
ChestInspectChestCommand class >> defaultShortcutKey [ | ||
|
||
^ $i meta | ||
] | ||
|
||
{ #category : #testing } | ||
ChestInspectChestCommand >> canBeExecuted [ | ||
|
||
^ context selectedChest isNotNil | ||
] | ||
|
||
{ #category : #executing } | ||
ChestInspectChestCommand >> execute [ | ||
|
||
context selectedChest inspect | ||
] |
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
Oops, something went wrong.