wiki:IMAGE_CONTENT_R0
Last modified 16 years ago Last modified on 01/08/09 12:22:35

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=IMAGE_CONTENT_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

Image content view is a view for images which supports scenes and advanced features such as cropping, zooming, rotation and etc. Image content is a model for image content (resources).

Task requirements

  • Define an image content view.
  • It should contain a basic (supporting no advanced features) scene element representing an image.
  • Define image content.
  • It should be associated with an image resource.

Task result

The result of this task should be source code.

Implementation idea

  • Create ImageContentView which is image content view.
  • It should inherit ContentView.
  • It should be able to construct an ImageSceneElement.
  • Create ImageFrameContent wich ia a model describing images as content.
  • It should inherit FrameContent.
  • It should point to an ImageBookResource.

How to demo

  • Create FrameView containing a Frame with ImageFrameContent.
  • The FrameView should contain an ImageContentView.
  • We should be able to view a frame with an image using scenes and the scene element from the FrameView. (Can't be created at the moment because of problems with FrameView);

Design

  • Create ImageContentView class extending ContentView. It's concrete implementation of ContentView for images.
  • It should implement the model property of ContentView with template type ImageFrameContent.
  • It should implement the element property of ContentView with template type ImageSceneElement.
  • It should implement the property of ContentView associated with halo menus for images. (Can't be done right now because halo menus for content aren't implemented yet.)
  • Create ImageFrameContent class extending FrameContent. It's concrete implementation of FrameContent for images.
  • It should implement the mainResource property of FrameContent with template type ImageBookResource.

Implementation

[1122]
[1144]
[1101]

Unit test:
[1000]
[1001]
[1145]

Testing

Comments

(Write comments for this or later revisions here.)