Implementing point 1 on http://forum.world.st/Couple-grafoscopio-notes-tt4929939.html. Thanks to Peter Uhnak.
This commit is contained in:
parent
20bb08e412
commit
cbd53aa595
@ -27,11 +27,10 @@ ExternalApp class >> compareHashFor: aFileName with: aSHAString [
|
||||
|
||||
{ #category : #configuration }
|
||||
ExternalApp class >> configureFossil [
|
||||
"Stablish where is located pandoc according to the operative system and/or the input of the user"
|
||||
"Stablish where is located fossil according to the operative system and/or the input of the user"
|
||||
| fileStream fossil |
|
||||
|
||||
fileStream := UITheme builder
|
||||
fileOpen: 'Coloque la ruta de pandoc'.
|
||||
fileStream := UIManager default fileOpen: 'Path to the fossil program binary'.
|
||||
fileStream isNil ifTrue: [ ^nil ].
|
||||
fossil := fileStream name asFileReference fullName.
|
||||
|
||||
@ -42,8 +41,7 @@ ExternalApp class >> configurePandoc [
|
||||
"Stablish where is located pandoc according to the operative system and/or the input of the user"
|
||||
| fileStream pandoc |
|
||||
|
||||
fileStream := UITheme builder
|
||||
fileOpen: 'Coloque la ruta de pandoc'.
|
||||
fileStream := UIManager default fileOpen: 'Path to pandoc program binary'.
|
||||
fileStream isNil ifTrue: [ ^nil ].
|
||||
pandoc := fileStream name asFileReference fullName.
|
||||
|
||||
|
@ -380,8 +380,8 @@ GrafoscopioBrowser >> openFromFileSelector [
|
||||
This creates errors on debugging and worse on proper behavior"
|
||||
| fileStream currentChildren |
|
||||
"GrafoscopioBrowser configureSettings."
|
||||
fileStream := UITheme builder
|
||||
fileOpen: 'Elija un archivo .ston'
|
||||
fileStream := UIManager default
|
||||
fileOpen: 'Choose a notebook file'
|
||||
extensions: #('ston').
|
||||
|
||||
fileStream isNil ifTrue: [ ^nil ].
|
||||
@ -493,12 +493,12 @@ GrafoscopioBrowser >> saveToFileUI [
|
||||
|
||||
| file |
|
||||
|
||||
file := UITheme builder
|
||||
fileSave: 'Guardar archivo como...'
|
||||
file := UIManager default
|
||||
fileSave: 'Save file as...'
|
||||
extensions: #('ston')
|
||||
path: nil.
|
||||
file
|
||||
ifNil: [ self inform: 'Exportación cancelada'. ^ self ]
|
||||
ifNil: [ self inform: 'File export canceled'. ^ self ]
|
||||
ifNotNil:[self saveToFile: file].
|
||||
browser update.
|
||||
]
|
||||
|
@ -410,7 +410,7 @@ GrafoscopioNotebook >> openFromFile: aFileName [
|
||||
GrafoscopioNotebook >> openFromFileSelector [
|
||||
|
||||
| fileStream nb |
|
||||
fileStream := UITheme builder
|
||||
fileStream := UIManager default
|
||||
fileOpen: 'Choose a file'
|
||||
extensions: #('ston').
|
||||
fileStream ifNil: [
|
||||
@ -547,7 +547,7 @@ GrafoscopioNotebook >> saveToFileUI [
|
||||
|
||||
| file |
|
||||
|
||||
file := UITheme builder
|
||||
file := UIManager default
|
||||
fileSave: 'Export notebook to file as...'
|
||||
extensions: #('ston')
|
||||
path: nil.
|
||||
|
Loading…
Reference in New Issue
Block a user