Last modified 16 years ago
Last modified on 02/02/09 19:03:07
Analysis
Overview
Resources should be able to be saved to the file system using drag'n'drop or the appropriate menu items from the File menu. For example, an image resource should be able to be saved as an image to the file system. What is more, an image resource should be created from an image file from the file system via the appropriate menu item from the File menu or after a drop onto any of the palettes with resources.
Task requirements
- Provide that resources could be saved to the file system.
- Provide that resources could be created from files from the file system.
- For the first revision just create two items in the File menu for import and export of resources.
Task result
- The result of this task should be source code.
Implementation idea
- Create two items in the File menu - one for import of resources and one for export.
- Implement drag'n'drop functionality using BASE_DND_R0 if there is time.
Related
How to demo
- Run Sophie 2.0.
- Open File menu.
- Press "Import a resource".
- A Dialog should open and a file from the file system could be chosen.
- Select an image file.
- It should appear as an image resource in the appropriate palette.
Design
(Describe your design here.)
Implementation
(Describe and link the implementation results here (from the wiki or the repository).)
Testing
(Place the testing results here.)
Comments
- Export and Import of resources are in the File menu of Sophie 1.0. We can change the menu, if we decide that there is a menu that is more appropriate.