wiki:APPEREANCE-BACKGROUND-SUB-HUD
Last modified 15 years ago Last modified on 02/02/10 17:39:08

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

Error: Macro TicketQuery(summary=APPEREANCE-BACKGROUND-SUB-HUD, 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

The goal is to create easy way to manipulate page/frame background properties via sub hud.

Task requirements

  • Remove background opacity slider from the appearance hud
  • For type combo box (defines the type of the background "none", "solid", "gradient", "image")
  • Remove pattern option
  • This combo box controls the appearance of color chooser, gradient chooser and image chooser (defined on the state). Leave color chooser and gradient chooser as they are. In case of selecting image leave the control that appear the same, but instead of opening file chooser, let it open sub hud.
  • Add sub hud for the background inside appearance hud. Add the following items inside it:
    • Resource chooser - combo box that contain default selected item "none", second item "<browse...>" (open file chooser when selected), and list of available appropriate resources that are linked or embed inside the current book. (same as book properties resource chooser)
    • Image style combo box - combo box that controls the way the image paint itself. Values are the following:
      • Stretch - the default one. Stretches the image in order to fit and fill the entire frame content.
      • [OPTIONAL] "Center" - image placed with no scale in the center of the frame. NOTE: Cutting could occur. NOTE: there is no actual reason to remove offsets(see below) for this, so it actually may not be centered, better name needed here.
      • Tile - tiles the image.
    • [OPTIONAL] Scale label - label that indicates the controls beneath him
    • [OPTIONAL] Scale text input - Allows the user to scale the image. Only active if the "Stretch" style is not selected, else it's disabled. The default value is 100(%).
    • [OPTIONAL] Opacity slider - controls the opacity of the background
    • [OPTIONAL] Rotation label - label that indicates the controls beneath him
    • [OPTIONAL] Rotation text field - controls the angle of rotation (min value -360 and max value 360)
    • [OPTIONAL] Rotation point controller - nine check boxes ordered in square.
    • [OPTIONAL] Offset label - label that indicates the controls beneath him
    • [OPTIONAL] Offset controller - two text fields that define the offset of the background, one for x and one for y with labels in front of them (same as the one for frame position ).

Task result

  • The result should be code.

Implementation idea

(Provide some rough implementation idea(s).)

How to demo

  • Start the application and create a book with few frames and pages.
  • On each frame apply different background (color, gradient, stretched image, tiled one and if possible centered image)
  • Demonstrate opacity, offset, rotation and scale of a background image (if possible).

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

(Write comments for this or later revisions here.)