Skip to content

Commit

Permalink
move WelcomeHelp to a standalone package and load it after the Catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-krivanek committed Oct 21, 2019
1 parent c66f60d commit 168cb90
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/BaselineOfIDE/BaselineOfIDE.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ BaselineOfIDE >> baseline: spec [
spec baseline: 'PharoGlamour' with: [ spec repository: repository ].
spec baseline: 'PharoGT' with: [ spec repository: repository ].
spec baseline: 'Catalog' with: [ spec repository: repository ].
spec package: 'Pharo-WelcomeHelp'.
].

]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ I pass through basic concepts to getting started with Pharo.
Class {
#name : #WelcomeHelp,
#superclass : #CustomHelp,
#category : #'Pharo-Help'
#category : #'Pharo-WelcomeHelp'
}

{ #category : #accessing }
Expand Down Expand Up @@ -202,6 +202,13 @@ One chapter of particular interest is the one that provides a quick tour of the
', (self url: 'https://ci.inria.fr/pharo-contribution/job/UpdatedPharoByExample/lastSuccessfulBuild/artifact/book-result/PharoTour/PharoTour.pdf')
]

{ #category : #defaults }
WelcomeHelp class >> fastNetworkDefaults [
"Allow to display catalog projects in spotter on regular and fast networks"
CatalogSettings displayCatalogProjectsInSpotter: true.
self inform: 'Catalog projects accessible through Spotter'
]

{ #category : #pages }
WelcomeHelp class >> gettingHelp [
^ HelpTopic
Expand Down Expand Up @@ -278,6 +285,20 @@ WelcomeHelp class >> openForRelease [
window center: Display extent / 2
]

{ #category : #'defaults - actions' }
WelcomeHelp class >> openNetworkSettings [

| browser window path |
browser := SettingBrowser new
changePackageSet: {
#'Network-Kernel' asPackage.
};
yourself.
window := browser open.
path := (window submorphs detect: [ :each | (each isKindOf: MorphTreeMorph) ]) nodeList.
browser expandNodePath: path
]

{ #category : #accessing }
WelcomeHelp class >> pages [
^ #(welcome changeLog learn exploreEnvironment useExternalPackages documentation gettingHelp)
Expand All @@ -299,6 +320,13 @@ WelcomeHelp class >> pharoVersionString [
aStream nextPutAll: version commitHashShort ]
]

{ #category : #defaults }
WelcomeHelp class >> slowNetworkDefaults [
"Do not display network bound catalog projects in spotter to keep it responsive."
CatalogSettings displayCatalogProjectsInSpotter: false.
self inform: 'Catalog projects not accessible through Spotter due to slow network. Use search in catalog tool to load external packages.'
]

{ #category : #pages }
WelcomeHelp class >> useExternalPackages [
^ HelpTopic
Expand Down Expand Up @@ -339,6 +367,12 @@ For more information, please visit here: ', (self url: 'http://pharo.org'),
(self doItFrom: 'PharoLightTheme beCurrent' text: 'Light Theme'), ' or ',
(self doItFrom: 'PharoDarkTheme beCurrent' text: 'Dark Theme'), '
Click if you have access to a: ',
(self doItFrom: 'WelcomeHelp fastNetworkDefaults' text: 'regular network connection'), ' or ',
(self doItFrom: 'WelcomeHelp slowNetworkDefaults' text: 'slow network'), '
or if need to ',
(self doItFrom: 'WelcomeHelp openNetworkSettings' text: 'setup a network proxy'), '.
You can also ',
(self doItFrom: 'SettingBrowser open' text: 'apply many other other settings'), ' or extend the image ',
(self doItFrom: 'CatalogBrowser open' text: 'by loading additional external packages from catalog'), '.'
Expand Down
1 change: 1 addition & 0 deletions src/Pharo-WelcomeHelp/package.st
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Package { #name : #'Pharo-WelcomeHelp' }

0 comments on commit 168cb90

Please sign in to comment.