mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 03:10:07 +00:00 
			
		
		
		
	cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									375cde19c0
								
							
						
					
					
						commit
						5ce56e02c3
					
				| @ -2567,6 +2567,7 @@ module.FileSystemWriter = core.ImageGridFeatures.Feature({ | |||||||
| // XXX add writer UI feature...
 | // XXX add writer UI feature...
 | ||||||
| // 		- save as.. (browser)
 | // 		- save as.. (browser)
 | ||||||
| // 		- save if not base path present (browser)
 | // 		- save if not base path present (browser)
 | ||||||
|  | // XXX should export history and presets base be here or in the writer???
 | ||||||
| var FileSystemWriterUIActions = actions.Actions({ | var FileSystemWriterUIActions = actions.Actions({ | ||||||
| 	config: { | 	config: { | ||||||
| 		// NOTE: for more docs on export settings see FileSystemWriter.config...
 | 		// NOTE: for more docs on export settings see FileSystemWriter.config...
 | ||||||
| @ -2675,6 +2676,16 @@ var FileSystemWriterUIActions = actions.Actions({ | |||||||
| 	// XXX should this be here or in FileSystemWriter???
 | 	// XXX should this be here or in FileSystemWriter???
 | ||||||
| 	// 		...FileSystemWriter does not define .mode for this to work correctly...
 | 	// 		...FileSystemWriter does not define .mode for this to work correctly...
 | ||||||
| 	exportAs: ['- File/', | 	exportAs: ['- File/', | ||||||
|  | 		core.doc`Get export mode from settings and export via the appropriate
 | ||||||
|  | 		export method. | ||||||
|  | 
 | ||||||
|  | 			Export via .config['export-settings']... | ||||||
|  | 			.exportAs() | ||||||
|  | 
 | ||||||
|  | 			Export via settings... | ||||||
|  | 			.exportAs(settings) | ||||||
|  | 		 | ||||||
|  | 		`,
 | ||||||
| 		function(settings){ | 		function(settings){ | ||||||
| 			settings = settings  | 			settings = settings  | ||||||
| 				|| this.config['export-settings'] | 				|| this.config['export-settings'] | ||||||
| @ -2711,9 +2722,6 @@ var FileSystemWriterUIActions = actions.Actions({ | |||||||
| 
 | 
 | ||||||
| 	// Export dialog...
 | 	// Export dialog...
 | ||||||
| 	//
 | 	//
 | ||||||
| 	// Export <mode> is set by:
 |  | ||||||
| 	// 		.config['export-mode']
 |  | ||||||
| 	//
 |  | ||||||
| 	// The fields used and their order is set by:
 | 	// The fields used and their order is set by:
 | ||||||
| 	// 		.config['export-modes'][<mode>].data	(list)
 | 	// 		.config['export-modes'][<mode>].data	(list)
 | ||||||
| 	//
 | 	//
 | ||||||
| @ -3122,6 +3130,8 @@ var FileSystemWriterUIActions = actions.Actions({ | |||||||
| 		'exportDialog: "images"'], | 		'exportDialog: "images"'], | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | 	// Export presets...
 | ||||||
|  | 	//
 | ||||||
| 	// XXX UI:
 | 	// XXX UI:
 | ||||||
| 	// 		- element format:
 | 	// 		- element format:
 | ||||||
| 	// 			TITLE
 | 	// 			TITLE
 | ||||||
| @ -3187,6 +3197,8 @@ var FileSystemWriterUIActions = actions.Actions({ | |||||||
| 
 | 
 | ||||||
| 			// last used preset...
 | 			// last used preset...
 | ||||||
| 			var last_used = Object.assign({}, history[0] || {}) | 			var last_used = Object.assign({}, history[0] || {}) | ||||||
|  | 			// NOTE: this is done for last_used to be matchable with presets...
 | ||||||
|  | 			// 		XXX a better way to do this is to check for subset match...
 | ||||||
| 			delete last_used.date | 			delete last_used.date | ||||||
| 			// get the matching preset if available...
 | 			// get the matching preset if available...
 | ||||||
| 			last_used = presets | 			last_used = presets | ||||||
| @ -3362,7 +3374,7 @@ var FileSystemWriterUIActions = actions.Actions({ | |||||||
| 	// XXX these do note need the ui -- move to a separate feature...
 | 	// XXX these do note need the ui -- move to a separate feature...
 | ||||||
| 	// XXX these are essentially the same as the history API, make a 
 | 	// XXX these are essentially the same as the history API, make a 
 | ||||||
| 	// 		generic list manager???
 | 	// 		generic list manager???
 | ||||||
| 	// XXX need to check preset uniqueness...
 | 	// XXX need to check preset uniqueness... (???)
 | ||||||
| 	exportPresetSave: ['- File/',  | 	exportPresetSave: ['- File/',  | ||||||
| 		function(settings){ | 		function(settings){ | ||||||
| 			settings = settings  | 			settings = settings  | ||||||
| @ -3379,7 +3391,7 @@ var FileSystemWriterUIActions = actions.Actions({ | |||||||
| 					this.config['export-presets']  | 					this.config['export-presets']  | ||||||
| 					|| []) | 					|| []) | ||||||
| 				.push(settings) }], | 				.push(settings) }], | ||||||
| 	// XXX need to check item uniqueness???
 | 
 | ||||||
| 	exportHistoryPush: ['- File/',  | 	exportHistoryPush: ['- File/',  | ||||||
| 		function(settings){ | 		function(settings){ | ||||||
| 			settings = settings  | 			settings = settings  | ||||||
| @ -3398,7 +3410,6 @@ var FileSystemWriterUIActions = actions.Actions({ | |||||||
| 			// trim the history...
 | 			// trim the history...
 | ||||||
| 			history.length > l | 			history.length > l | ||||||
| 				&& history.splice(0, history.length - l) }], | 				&& history.splice(0, history.length - l) }], | ||||||
| 
 |  | ||||||
| 	clearExportHistory: ['- File/Clear export history', | 	clearExportHistory: ['- File/Clear export history', | ||||||
| 		function(){ | 		function(){ | ||||||
| 			delete this.config['export-history'] }], | 			delete this.config['export-history'] }], | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user