Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add suport for non-PDF files served by ChartFox #209

Merged
merged 7 commits into from
Jul 21, 2024

Commits on Jun 25, 2024

  1. Update curl submodule to v8.7.1.

    curl-8.7.1 is the most recent version that does not require an update
    to mbedtls.
    
    Added bcrypt to the list of libraries required by the MinGW build
    system. Other platforms appear to handle this automatically.
    
    Downgraded the required version of CMake to 3.16 since this is the version
    currently supported by Ubuntu/WSL and the Avitab CMake scripts do not
    require any features that are not available in 3.16.
    mjh65 committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    d55fa06 View commit details
    Browse the repository at this point in the history
  2. Refactor: rename PDFSource to DocumentSource

    This renaming reflects the more generic capabilities of the underlying
    MuPDF (fitz) rendering library, and is preparation for enhancements to
    the ChartFox provider module to support downloading of charts in formats
    other than PDF.
    mjh65 committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    adff14d View commit details
    Browse the repository at this point in the history
  3. Refactor: remove PDFViewer sources

    The PDFViewer class isn't actually used in Avitab. It could be renamed
    to DocumentViewer in keeping with the other refactoring in this set of
    updates, but it seems cleaner to simply remove it.
    mjh65 committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    747325c View commit details
    Browse the repository at this point in the history
  4. Refactor: cosmetic symbol renaming

    Various symbols including the word PDF are changed to document to
    better reflect the use/purpose of the named entity.
    mjh65 committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    9e0035a View commit details
    Browse the repository at this point in the history
  5. Refactor: update preference key names

    Preference groups named pdfreading are changed to docreading to reflect
    the more general capabilities of the related apps. The preference file
    version number is incremented, and code to upgrade the preference file
    from version 1 to version 2 is implemented.
    mjh65 committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    a39b73b View commit details
    Browse the repository at this point in the history
  6. Refactor: specialize DocumentSource with subclasses

    Define LocalFileSource and DownloadedSource as specializations of
    DocumentSource, and move LocalFile-specific methods and data into
    LocalFileSource class. This is in preparation for downloaded content
    type, which will be specific to the DownloadedSource class.
    mjh65 committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    a61167f View commit details
    Browse the repository at this point in the history
  7. Add support for non-PDF charts served by ChartFox.

    Obtain the content type header from the curl get request and use this
    string as the parameter to the MuPDF fitz rasterizer.
    mjh65 committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    9eed5d8 View commit details
    Browse the repository at this point in the history