Skip to content
  • Pino Toscano's avatar
    Refator a bit the way Document and the generators use to read the font information from a document. · e5037f45
    Pino Toscano authored
    Instead of having a synchronous function that extracts all the information at once, use a function to read the fonts of a single page.
    This way, we can get all the result step by step (aka page by page), and possibly in an asynchronous way.
    The resuls of the font "scanning" are sent via signals, as well the end of the work.
    So, instead of block waiting for the results of all the document at once, the Fonts tab in the properties dialog can have a progress bar with the progress, and the results (the fonts) that are added incrementally to the list.
    
    Only two minor things are left:
    - the process is always asynchronous at the moment, as the only generator that can provide this kind of information is the Poppler one (safe)
    - there is no check for duplicate fonts
    But they should be easy to solve.
    
    svn path=/trunk/KDE/kdegraphics/okular/; revision=685002
    e5037f45