Ticket #2308 (closed tweak: obsolete)
dnd-apply-templates – Apply templates via drag and drop
Reported by: | deyan | Owned by: | deni |
---|---|---|---|
Priority: | major | Milestone: | X3 |
Component: | uncategorized | Version: | 2.0 |
Keywords: | Cc: | ||
Category: | unknown | Effort: | |
Importance: | Ticket_group: | ||
Estimated Number of Hours: | 0 | Add Hours to Ticket: | 0 |
Billable?: | yes | Total Hours: | 0 |
Analysis_owners: | deyan | Design_owners: | deni |
Imp._owners: | deni | Test_owners: | |
Analysis_reviewers: | deni | Changelog: | |
Design_reviewers: | meddle | Imp._reviewers: | meddle, deyan |
Test_reviewers: | Analysis_score: | 4 | |
Design_score: | 4 | Imp._score: | 4 |
Test_score: | 0 |
Description
Add ability to apply templates via drag and drop (over PWA). When a template is dragged over frame, the template should be applied to this frame. When a page template is dragged over page, the template should be applied to the page.
Change History
comment:1 Changed 15 years ago by deni
- Category set to unknown
- Status changed from new to s1a_analysis_started
- Analysis_score set to 0
- Test_score set to 0
- Design_score set to 0
- Owner set to deni
- Imp._score set to 0
comment:2 Changed 15 years ago by deni
- Design_owners set to deni
- Status changed from s1a_analysis_started to s1b_analysis_finished
- Imp._owners set to deni
- Analysis_reviewers set to deni
- Analysis_score changed from 0 to 4
comment:5 Changed 15 years ago by deni
- Create a new DndData responsible for transferring templates in org.sophie2.main.dnd module - TemplateRefData.
- It will compose a ResourceRefData and delegate most of the logic to its methos. However it will have a different data flavor and we'll always know that we should use the ref to open a template.
- Create a provider for it andregister it in MainDndModule.
- Create a new SophieTransferable responsible for transferring templates. Its only supported DndData should be TemplateRefData.
- Use TemplateRefData to drag&drop templates from the templates palette to the page work area. Most changes are in LibraryTabLogic.
- In setDndTransferable(EventR3, ResourceH) create a new TemplateTransferable instead of a ResourceRefTransferable.
- Add TemplateRefData in ScenePageLogic.ON_DND_PRE_IMPORT to indicate that the page work area supports dropping templates.
- ON_PAGE_TEMPLATE_DND_IMPORT handles dropping a page template over a RootPageView and applies the template to the view's model.
- ON_FRAME_TEMPLATE_DND_IMPORT_FRAME handles the dropping a frame template over a FrameView and applies the template to the view's model.
- Make sure that the other operations still work as before, especially:
- ON_FRAME_TEMPLATE_APPLY
- ON_FRAME_TEMPLATE_DND_IMPORT_PWA - formerly just ON_FRAME_TEMPLATE_DND_IMPORT
- ON_PAGE_TEMPLATE_APPLY
- ON_BOOK_TEMPLATE_DND_IMPORT
- ON_FRAME_TEMPLATE_APPLY and ON_PAGE_TEMPLATE_APPLY will be removed, but when the visual dnd effects are implemented.
- Make sure that when applying a frame template that changes the main resource of a frame (for example from text to image), there are no exceptions - fix SceneInteractionLogic's SCENE_DND_OPERATION not to fire events with sources that are no longer in the scene.
comment:6 Changed 15 years ago by deni
- Status changed from s2a_design_started to s2b_design_finished
comment:8 Changed 15 years ago by deni
- Status changed from s2c_design_ok to s3a_implementation_started
comment:9 Changed 15 years ago by deni
- Status changed from s3a_implementation_started to s3b_implementation_finished
- Source code: [8621]
- I think that ON_BOOK_TEMPLATE_DND_IMPORT was not working before, it's not working now, too...
comment:10 Changed 15 years ago by meddle
- Status changed from s3b_implementation_finished to s3c_implementation_ok
- Design_score changed from 0 to 4
- Design_reviewers set to meddle
- Imp._score changed from 0 to 4
- Imp._reviewers set to meddle, deyan
Closing along with #2309.
comment:11 Changed 13 years ago by meddle
- Status changed from s3c_implementation_ok to closed
- Resolution set to obsolete
Closing all the tickets before M Y1
Note: See
TracTickets for help on using
tickets.