diff options
Diffstat (limited to 'media/libjxl/src/tools/viewer/viewer_window.h')
-rw-r--r-- | media/libjxl/src/tools/viewer/viewer_window.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/media/libjxl/src/tools/viewer/viewer_window.h b/media/libjxl/src/tools/viewer/viewer_window.h new file mode 100644 index 0000000000..42de5bc267 --- /dev/null +++ b/media/libjxl/src/tools/viewer/viewer_window.h @@ -0,0 +1,41 @@ +// 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_VIEWER_VIEWER_WINDOW_H_ +#define TOOLS_VIEWER_VIEWER_WINDOW_H_ + +#include <QByteArray> +#include <QMainWindow> +#include <QStringList> + +#include "tools/viewer/ui_viewer_window.h" + +namespace jxl { + +class ViewerWindow : public QMainWindow { + Q_OBJECT + public: + explicit ViewerWindow(QWidget* parent = nullptr); + + public slots: + void loadFilesAndDirectories(QStringList entries); + + private slots: + void on_actionOpen_triggered(); + void on_actionPreviousImage_triggered(); + void on_actionNextImage_triggered(); + void refreshImage(); + + private: + const QByteArray monitorProfile_; + Ui::ViewerWindow ui_; + QStringList filenames_; + int currentFileIndex_ = 0; + bool hasWarnedAboutMonitorProfile_ = false; +}; + +} // namespace jxl + +#endif // TOOLS_VIEWER_VIEWER_WINDOW_H_ |