libjxl

FORK: libjxl patches used on blog
git clone https://git.neptards.moe/blog/libjxl.git
Log | Files | Refs | Submodules | README | LICENSE

settings.h (986B)


      1 // Copyright (c) the JPEG XL Project Authors. All rights reserved.
      2 //
      3 // Use of this source code is governed by a BSD-style
      4 // license that can be found in the LICENSE file.
      5 
      6 #ifndef TOOLS_COMPARISON_VIEWER_SETTINGS_H_
      7 #define TOOLS_COMPARISON_VIEWER_SETTINGS_H_
      8 
      9 #include <QDialog>
     10 #include <QSettings>
     11 
     12 #include "tools/comparison_viewer/split_image_renderer.h"
     13 #include "tools/comparison_viewer/ui_settings.h"
     14 
     15 namespace jpegxl {
     16 namespace tools {
     17 
     18 class SettingsDialog : public QDialog {
     19   Q_OBJECT
     20 
     21  public:
     22   explicit SettingsDialog(QWidget* parent = nullptr);
     23   ~SettingsDialog() override = default;
     24 
     25   SplitImageRenderingSettings renderingSettings() const;
     26 
     27  private slots:
     28   void on_SettingsDialog_accepted();
     29   void on_SettingsDialog_rejected();
     30 
     31  private:
     32   void settingsToUi();
     33 
     34   Ui::SettingsDialog ui_;
     35   QSettings settings_;
     36   SplitImageRenderingSettings renderingSettings_;
     37 };
     38 
     39 }  // namespace tools
     40 }  // namespace jpegxl
     41 
     42 #endif  // TOOLS_COMPARISON_VIEWER_SETTINGS_H_