wiki:TEXT_CHARACTER_FORMAT_COMMONS_R0
Last modified 14 years ago Last modified on 02/05/09 15:17:44

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

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

User should be able to manipulate main character format options(bold, italic, underlined etc.) from the halo menu, that appears automatically when the focus is set to a text content. Also this settings should be accessible from detached text frame editor menu.
There should be a character settings hud that is evoked from text halo menu. It should provide control over all character settings.

Task requirements

  • Create a prototype for character settings hud.
  • Provide accessible interface for all settings.
  • Provide easy way for development of sub tasks (TEXT_CHAR_* and TEXT_FONTS_* listed in the related section).

Task result

  • The result should be code.

Implementation idea

  • Use javax.swing.text.StyleConstants class to provide needed styles.
  • Currently there is a select font dialog that appears(org.sophie2.main.dialogs.input.FontChooserDialogInput) triggered directly from org.sophie2.main.view.logic.frame.frameLogic. You may need to refacture this.
  • Here is a scheme how character settings hud could look like

source:trunk/sophie2-platform/doc/userdoc-images/RELEASE_5/textSettingsHud.jpg

TEXT_CHAR_SPACING_R0
TEXT_CHAR_COLOR_R0
TEXT_CHAR_SPACE_OVERLAP_R0
TEXT_CHAR_STYLE_FLAGS_R0
TEXT_FONTS_SUPPORT_R0
TEXT_FONTS_INTERFACE_R0

TEXT_HALO_MENU_R0
DETACHED_TEXT_FRAME_EDITOR_R0

How to demo

  • Run the application
  • Create a new book and place text frame inside
  • Populate some lorem ipsum text inside with a number of paragraphs(lorem ipsum generator --> http://www.lipsum.com/)
  • Open character settings hud and see if you can adjust some settings

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