summaryrefslogtreecommitdiff
path: root/media/libjxl/src/tools/flicker_test/setup.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/libjxl/src/tools/flicker_test/setup.h')
-rw-r--r--media/libjxl/src/tools/flicker_test/setup.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/media/libjxl/src/tools/flicker_test/setup.h b/media/libjxl/src/tools/flicker_test/setup.h
new file mode 100644
index 0000000000..0da78d60c8
--- /dev/null
+++ b/media/libjxl/src/tools/flicker_test/setup.h
@@ -0,0 +1,44 @@
+// Copyright (c) the JPEG XL Project Authors. All rights reserved.
+//
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+#ifndef TOOLS_FLICKER_TEST_SETUP_H_
+#define TOOLS_FLICKER_TEST_SETUP_H_
+
+#include <QWizard>
+
+#include "tools/flicker_test/parameters.h"
+#include "tools/flicker_test/ui_setup.h"
+
+namespace jxl {
+
+class FlickerTestWizard : public QWizard {
+ Q_OBJECT
+
+ public:
+ explicit FlickerTestWizard(QWidget* parent = nullptr);
+ ~FlickerTestWizard() override = default;
+
+ FlickerTestParameters parameters() const;
+
+ protected:
+ bool validateCurrentPage() override;
+
+ private slots:
+ void on_originalFolderBrowseButton_clicked();
+ void on_alteredFolderBrowseButton_clicked();
+ void on_outputFileBrowseButton_clicked();
+
+ void on_timingButtonBox_clicked(QAbstractButton* button);
+
+ void updateTotalGrayTime();
+
+ private:
+ Ui::FlickerTestWizard ui_;
+ QSettings settings_;
+};
+
+} // namespace jxl
+
+#endif // TOOLS_FLICKER_TEST_SETUP_H_