setup.h (1052B)
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_FLICKER_TEST_SETUP_H_ 7 #define TOOLS_FLICKER_TEST_SETUP_H_ 8 9 #include <QWizard> 10 11 #include "tools/flicker_test/parameters.h" 12 #include "tools/flicker_test/ui_setup.h" 13 14 namespace jpegxl { 15 namespace tools { 16 17 class FlickerTestWizard : public QWizard { 18 Q_OBJECT 19 20 public: 21 explicit FlickerTestWizard(QWidget* parent = nullptr); 22 ~FlickerTestWizard() override = default; 23 24 FlickerTestParameters parameters() const; 25 26 protected: 27 bool validateCurrentPage() override; 28 29 private slots: 30 void on_originalFolderBrowseButton_clicked(); 31 void on_alteredFolderBrowseButton_clicked(); 32 void on_outputFileBrowseButton_clicked(); 33 34 void on_timingButtonBox_clicked(QAbstractButton* button); 35 36 void updateTotalGrayTime(); 37 38 private: 39 Ui::FlickerTestWizard ui_; 40 QSettings settings_; 41 }; 42 43 } // namespace tools 44 } // namespace jpegxl 45 46 #endif // TOOLS_FLICKER_TEST_SETUP_H_