Make ACBF library data accesible from QML
Open, WishlistPublic

Description

Right now it is not possible to turn lists of objects into QQMLListProperties, because the 'this' in the ACBF library is always a const QObject.

We have two options to deal with this:

  1. Figure out how to 'unconst' this.
  2. Use the author object workaround functions.

The latter would require that each of such list properties gets a

  • Count function.
  • Index at function
  • Is registered as a QMetatype.
  • Add entry function
  • Remove entry function
  • entries Changed signal.

These entries are:

  • Sequence
  • DatabaseRef
  • ContentRating
  • Pages
  • Textlayers
  • Textareas
  • Frames
  • Jumps
  • References
  • Author List in document info.

Furthermore, the following entries need to be made into Q_Properties, and need signals to indicate they've changed.

BookInfo

  • Reading direction.

Publishing Info

  • Publisher
  • Publishing city
  • Publing date
  • ISBN

DocumentInfo

  • Source
  • ID
  • Version
  • History

Finally, StringLists of paragraphs need to have an extra function to access and write them as a single string. These are at.
EDIT: Unecessary. :p

woltherav triaged this task as Wishlist priority.
woltherav updated the task description. (Show Details)Sep 14 2018, 4:25 PM

Okay, I've managed to get all the entries in the metadata section editable from peruse creator, meaning that part is done. This is pushed in a branch.

Next up: pages/body section.

woltherav updated the task description. (Show Details)Sep 15 2018, 12:10 PM
woltherav updated the task description. (Show Details)Sep 17 2018, 1:15 PM