wiki:PAGE_STRUCTURE_PALETTE_R0

Version 11 (modified by milen, 16 years ago) (diff)

--

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

Error: Macro TicketQuery(summary=PAGE_STRUCTURE_PALETTE_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

(Give as much as possible of the needed information for designing and implementing the task in the following sections.)

Overview

The page structure palette shows a tree of all the objects on current page.

Task requirements

  • Create a Page Structure palette in the Pages tab, which is in the left flap.
  • Create a tree, according to the following requirements:
  • The root node of the displayed tree should be the current page.
  • Children nodes:
    • Non grouped frames (display the name, for example "Frame A")
    • Top-level groups
      • Groups are represented as a tree of frames and subgroups.
  • Children nodes can be hidden and shown by a button located in front of the corresponding root node
  • Children are arranged by their Z-order, starting from highest (front-most).
  • When the user selects something on the page it is selected in that tree and vice versa.
  • When the user switches to another page/book, the palette is automatically updated.
  • Every node in the the displayed tree can be renamed and this new name is changed for the appropriate element.
  • An element can be dragged up and down changing its Z order.

Task result

Source code

Implementation idea

Page structure palette looks like this:

PAGE_STRUCTURE_DISPLAYING_R0
PAGE_STRUCTURE_EDITING_R0

How to demo

  1. Open the page structure palette.
  2. Insert a new text frame and show it in the tree.
  3. Insert a new image frame and show it in the tree.
  4. Drag the text frame to the highest position in the palette list and show that it is displayed over the image frame in the page.
  5. Rename the text frame in the palette and show how its title in the page also changes.

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.)

Attachments