-
Notifications
You must be signed in to change notification settings - Fork 5
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 #83 from hpi-swa-teaching/issue/33-tutorial
Open Tutorial on first launch
- Loading branch information
Showing
13 changed files
with
55 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
The ATDDHelper assists new users. |
4 changes: 4 additions & 0 deletions
4
packages/AutoTDD-Core.package/ATDDHelper.class/class/HasSeenTutorialPrompt..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 | ||
HasSeenTutorialPrompt: aBoolean | ||
|
||
HasSeenTutorialPrompt := aBoolean |
4 changes: 4 additions & 0 deletions
4
packages/AutoTDD-Core.package/ATDDHelper.class/class/HasSeenTutorialPrompt.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 | ||
HasSeenTutorialPrompt | ||
|
||
^ HasSeenTutorialPrompt ifNil: [ HasSeenTutorialPrompt := false ] |
8 changes: 8 additions & 0 deletions
8
packages/AutoTDD-Core.package/ATDDHelper.class/class/openHelpPrompt.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,8 @@ | ||
action | ||
openHelpPrompt | ||
|
||
| answer | | ||
|
||
answer := UserDialogBoxMorph confirm: 'Would you like to view a tutorial on AutoTDD?' title: 'Input requested'. | ||
self HasSeenTutorialPrompt: true. | ||
answer ifTrue: [ HelpBrowser openOn: ATDDHelp ] |
4 changes: 4 additions & 0 deletions
4
packages/AutoTDD-Core.package/ATDDHelper.class/class/openTutorialIfNecessary.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 @@ | ||
action | ||
openTutorialIfNecessary | ||
|
||
self HasSeenTutorialPrompt ifFalse: [ self openHelpPrompt ] |
8 changes: 8 additions & 0 deletions
8
packages/AutoTDD-Core.package/ATDDHelper.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,8 @@ | ||
{ | ||
"class" : { | ||
"HasSeenTutorialPrompt" : "ClassTest 6/11/2021 15:56", | ||
"HasSeenTutorialPrompt:" : "ClassTest 6/11/2021 15:56", | ||
"openHelpPrompt" : "ClassTest 6/11/2021 15:59", | ||
"openTutorialIfNecessary" : "ClassTest 6/11/2021 16:00" }, | ||
"instance" : { | ||
} } |
14 changes: 14 additions & 0 deletions
14
packages/AutoTDD-Core.package/ATDDHelper.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" : "AutoTDD-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
"HasSeenTutorialPrompt" ], | ||
"commentStamp" : "ClassTest 6/11/2021 16:08", | ||
"instvars" : [ | ||
], | ||
"name" : "ATDDHelper", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |
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,4 @@ | ||
instance creation | ||
open | ||
|
||
^ ToolBuilder open: self new |
4 changes: 2 additions & 2 deletions
4
packages/AutoTDD-GUI.package/ATDDBrowser.class/class/registerInWorldMenu.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,9 @@ | ||
class initialization | ||
registerInWorldMenu | ||
|
||
self environment at: #TheWorldMenu | ||
ifPresent: [ :class | | ||
class | ||
registerOpenCommand: (Array | ||
with: self worldMenuLabel | ||
with: (Array with: self with: #open)) ] | ||
with: (Array with: self with: #open)) ] |
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 |
---|---|---|
|
@@ -17,4 +17,6 @@ buildWith: aBuilder | |
yourself); | ||
yourself. | ||
|
||
ATDDHelper openTutorialIfNecessary. | ||
|
||
^ aBuilder build: window |
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
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