File indexing completed on 2025-02-02 04:11:21

0001 /*
0002  * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best>
0003  *
0004  * SPDX-License-Identifier: GPL-3.0-or-later
0005  */
0006 
0007 #ifndef ABOUTDIALOG_H
0008 #define ABOUTDIALOG_H
0009 
0010 #include <memory>
0011 #include <QDialog>
0012 
0013 namespace glaxnimate::gui::Ui
0014 {
0015 class AboutDialog;
0016 }
0017 
0018 class QListWidget;
0019 
0020 namespace glaxnimate::gui {
0021 
0022 class AboutDialog : public QDialog
0023 {
0024     Q_OBJECT
0025 
0026 public:
0027     AboutDialog(QWidget* parent = nullptr);
0028 
0029     ~AboutDialog();
0030 
0031 protected:
0032     void changeEvent(QEvent *e) override;
0033     void populate_view(QListWidget* wid, const QStringList& paths);
0034 
0035 private Q_SLOTS:
0036     void open_user_data();
0037     void open_settings_file();
0038     void copy_system();
0039     void about_qt();
0040     void dir_open(const QModelIndex& index);
0041     void open_backup();
0042 
0043 private:
0044     std::unique_ptr<Ui::AboutDialog> d;
0045 };
0046 
0047 } // namespace glaxnimate::gui
0048 
0049 #endif // ABOUTDIALOG_H