wiki:BOOK_BOTTOM_PANEL_R0

Version 18 (modified by boyan, 16 years ago) (diff)

--

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

Analysis

Overview

  • The book bottom panel is located at the bottom of the book window.
  • The panel acts as a container for different elements controlling what is displayed in the book window.
  • The panel should allow attaching and detaching of controls.
  • The panel should change its appearance according to the contained controls.

An example book bottom panel:
source:trunk/sophie2-platform/doc/spec-diagrams/BookPanel.png

At this revision:
Revise the panel. Modularize it and extract the extensions. The Analysis should be made carefully.

Task requirements

  • Revisе the existing code.
  • Make the panel use extensions of the BookBottomPanelElement extension point of the book window
  • Keep the existing controls statically linked. They will be extracted as extensions in a different module later.
  • It should be part of the book window module.

Task result

The result of this task should be source code.

Implementation idea

Write a method that gets the extensions and adds them to the panel.

UNPLANNED_BOOK_WINDOW_R0
PAGE_SELECTOR_R0

How to demo

  • Start sophie and create a book.
  • Show the panel.

Design

  • The book bottom panel currently contains four parts:
    • the 'navigation panel',
    • the 'quick search panel',
    • the 'reader mode check box'
    • the 'show frames check box'
  • They are all defined as extensions. This is done by creating them from the corresponding 'provider'. see => Book window wiki page for mode information.
  • There will be one more part of the book bottom panel and it is the ZoomPercentagePanel.
    • This panel will be created by the ZoomPercentageProvider loaded as an extension.
    • ZoomPercentagePanels will be created for every book by their provider.

Implementation

  • done according to design. => BookPanel
  • diagram:
    source:/trunk/sophie2-platform/doc/uml-design-diagrams/BookPanel.png

Testing

Comments

Log

Error: Macro Include(wiki:BOOK_BOTTOM_PANEL_R0_LOG) failed
current transaction is aborted, commands ignored until end of transaction block