Thank you Stephan, in the meantime I did as well a question on the file dialog on http://stackoverflow.com/questions/32198476/how-do-i-ask-the-user-for-a-file... Would you mind putting the answer there as well because of ease of reference for other people? --Hannes On 8/25/15, Stephan Eggermont <stephan@stack.nl> wrote:
On 25-08-15 09:09, H. Hirzel wrote:
Hello
I am looking for a list of ready made dialog windows in Pharo 4.0 and the main API to use them.
- FileDialog,
MindmapNode class>>open |fileName| fileName := UITheme current chooseFileIn: World title: 'Choose file' extensions: nil path: nil preview:nil. fileName ifNotNil: [(FLMaterializer materializationFromFileNamed: fileName) root openInWorld attachAllSubnodes detachAllSubnodes ]
MindmapNode>>saveMap |fileName| fileName := UITheme current fileSaveIn: World title: 'Choose file' extensions: nil path: nil. fileName ifNotNil: [ FLSerializer serialize: self toFileNamed: fileName].
Stephan