/************************************************************************** * * @@@BUILDINFO@@@ 95favoritesPrefs-2.jsx 2.0.1.61 08-Feb-2007 * Copyright 2006-2007 Adobe Systems Incorporated * All Rights Reserved. * * NOTICE: All information contained herein is, and remains the property of * Adobe Systems Incorporated and its suppliers, if any. The intellectual * and technical concepts contained herein are proprietary to Adobe Systems * Incorporated and its suppliers and may be covered by U.S. and Foreign * Patents,patents in process,and are protected by trade secret or copyright * law. Dissemination of this information or reproduction of this material * is strictly forbidden unless prior written permission is obtained from * Adobe Systems Incorporated. **************************************************************************/ // Each Prefs object needs the following methods: // prefsObj.create (parentPane) - create the pane and return the Pane object. // pane.preProcess() - preprocess the pane just before being shown. // pane.layoutDone() - informs the pane that the initial layout is done (optional) // pane.postProcess() - do any work just before the pane is being hidden. // pane.store() - store the preferences. Return true if the Next Time dialog is needed. // pane.toDefault() - set back to default values var favoritesPrefs = { todefault : false }; favoritesPrefs.create = function (parentPane) { this.pane = parentPane.add ( "group { \ orientation:'column', alignChildren:['fill','fill'], visible:false, alignment: ['fill','fill'], \ list : ListBox \ { \ helpTip : '$$$/ESToolkit/PreferencesDlg/hiFavrites=List of defined favorites used in the Scripts panel' \ }, \ buttons : Group \ { \ orientation : 'row', \ alignment : ['left','bottom']\ btAdd : Button \ { \ text : '$$$/ESToolkit/PreferencesDlg/addFav=Add...', \ helpTip : '$$$/ESToolkit/PreferencesDlg/hiAddFav=Add new favorite' \ }, \ btModify : Button \ { \ text : '$$$/ESToolkit/PreferencesDlg/modFav=&Modify', \ helpTip : '$$$/ESToolkit/PreferencesDlg/hiModFav=Modify selected favorite' \ } \ btRemove : Button \ { \ text : '$$$/ESToolkit/PreferencesDlg/remFav=&Remove', \ helpTip : '$$$/ESToolkit/PreferencesDlg/hiRemFav=Remove selected favorite' \ } \ } \ }"); this.pane.prefsObj = this; this.pane.layoutDone = function() { this.list.textWidth = this.list.size.width / 2; var items = this.list.items; for (var i = 0; i < items.length; i++) { var item = items [i]; var favorite = item.favorite; item.setTabbedText (favorite.name, this.list.textWidth, decodeURIComponent( favorite.path ) ); } } this.pane.preProcess = function() { // Needs always to be loaded - favorites may have changed this.prefsObj.load(); } this.pane.postProcess = function() {} this.pane.toDefault = function() { for( var i=0; i 0 ) { for( var i=0; i