[Pkg] The Trunk: PreferenceBrowser-mt.64.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Aug 5 08:21:49 UTC 2016


Marcel Taeumel uploaded a new version of PreferenceBrowser to project The Trunk:
http://source.squeak.org/trunk/PreferenceBrowser-mt.64.mcz

==================== Summary ====================

Name: PreferenceBrowser-mt.64
Author: mt
Time: 5 August 2016, 10:21:41.942358 am
UUID: a2cd25be-24e5-c743-bc43-928c959fb71e
Ancestors: PreferenceBrowser-mt.63

Fixes some usability issues saving/loading sets of preferences.

Improve wording to not use "theme" for sets of preferences anymore to not confuse the user in the face of the new UI themes.

(Yes, UI themes could, theoretically, store any preference. This is just a minor trade-off for now.)

=============== Diff against PreferenceBrowser-mt.63 ===============

Item was changed:
  ----- Method: PreferenceBrowser>>defaultSelected (in category 'preferences search') -----
  defaultSelected
+ 
+ 	(UIManager default
+ 		confirm: 'Do you really want to restorethe default\preferences?\\If you want to keep the current state,\you have to save it first.' translated withCRs
+ 		title: 'Restore Preferences') ifFalse: [^ self].
+ 
+ 
  	Preferences chooseInitialSettings!

Item was changed:
  ----- Method: PreferenceBrowser>>loadFromDiskSelected (in category 'preferences search') -----
  loadFromDiskSelected 
+ 
+ 	(UIManager default
+ 		confirm: 'Do you really want to restore your\personal preferences from disk?\\The file ''my.prefs'' will be loaded.' translated withCRs
+ 		title: 'Restore Preferences from Disk') ifFalse: [^ self].
+ 
  	preferences restorePreferencesFromDisk!

Item was changed:
  ----- Method: PreferenceBrowser>>loadSelected (in category 'preferences search') -----
  loadSelected
+ 
+ 	(UIManager default
+ 		confirm: 'Do you really want to restore\your personal preferences?' translated withCRs
+ 		title: 'Restore Preferences') ifFalse: [^ self].
+ 		
+ 	preferences restorePersonalPreferences.!
- 	preferences restorePersonalPreferences !

Item was changed:
  ----- Method: PreferenceBrowser>>saveSelected (in category 'preferences search') -----
  saveSelected
+ 
+ 	(UIManager default
+ 		confirm: 'Do you really want to overwrite\your personal preferences?' translated withCRs
+ 		title: 'Save Preferences') ifFalse: [^ self].
+ 
+ 	preferences savePersonalPreferences.!
- 	preferences savePersonalPreferences !

Item was changed:
  ----- Method: PreferenceBrowser>>saveToDiskSelected (in category 'preferences search') -----
  saveToDiskSelected 
+ 
+ 	(UIManager default
+ 		confirm: 'Do you really want to overwrite your\personal preferences on disk?\\The file ''my.prefs'' will be updated.' translated withCRs
+ 		title: 'Save Preferences to Disk') ifFalse: [^ self].
+ 		
  	preferences storePreferencesToDisk!

Item was changed:
  ----- Method: PreferenceBrowserMorph>>themeButton (in category 'submorphs - buttons') -----
  themeButton
  	^themeButton ifNil: 
  		[themeButton := self basicButton 
+ 						label: 'more ...' translated; 
- 						label: 'theme...' translated; 
  						action: #themeSelected;
+ 						setBalloonText: 'Presents you with a menu of sets or preferences; each item''s balloon-help will tell you about the particular set.  If you choose one, many different preferences that come along are set at the same time; you can subsequently change any settings by using a Preferences Panel' translated].!
- 						setBalloonText: 
- 							'Numerous "Preferences" govern many things about the ',
- 							'way Squeak looks and behaves.  Set individual preferences ',
- 							'using a "Preferences" panel.  Set an entire "theme" of many ',
- 							'Preferences all at the same time by pressing this "change ',
- 							'theme" button and choosing a theme to install.  Look in ',
- 							'category "themes" in Preferences class to see what each ', 
- 							'theme does; add your own methods to the "themes" ',
- 							'category and they will show up in the list of theme ',
- 							'choices.' translated].!



More information about the Packages mailing list