Version 7 (modified by deyan, 16 years ago) (diff) |
---|
Analysis
Overview
Frame templates provide the ability a frame to be saved as template. Frame elements that are included into the template are frame properties (excluding frame position in the page) and optionally frame containing. Frame templates can be accessed via Frame Templates Palette
Task requirements
You should provide templating of the following frame properties:
- position (frame bounds without z-order) (should position be here?)
- size (frame bounds without z-order)
- insets
- padding
- margins
- content
- border style
- color
- thickness?
- opacity
- shadow style
- color
- thickness
- opacity
- background style
- image
- color
- opacity
Frame HUD
- In the frame hud checkboxes "Use template" and "Lock" should be present for the following
- position
- size
- insets
- content
- border style
- shadow style
- background style
"Use template" resets the property to the template's value. This should be implemented in this task.
"Lock" prevents the property value from changing. This should be implemented in FRAME_PROPERTY_LOCKING_R0
Task result
The result of this task should be code. You should provide a prototype of frame templating.
Implementation idea
(It is advisable to include some rough implementations ideas.)
Related
PAGE_TEMPLATES_R0
FRAME_CONTENT_R0
FRAME_BOUNDS_R0
FRAME_INSETS_R0
FRAME_MARGINS_R0
FRAME_PADDING_R0
FRAME_BORDERS_R0
FRAME_POSITION_R0
FRAME_SIZE_R0
FRAME_PROPERTY_LOCKING_R0
How to demo
(In this section you must add instructions for the demo of the task.)
Design
Implementation
(Implementation results should be described and linked here (from the wiki or the repository))
Testing
Comments
If saving is done in this revision, different behavior should be present for creating a frame by dragging it or menu (when dragged, property "position" should not be used.