File indexing completed on 2025-02-02 04:11:29
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 LOTTIEFILESSEARCHDIALOG_H 0008 #define LOTTIEFILESSEARCHDIALOG_H 0009 0010 #include <memory> 0011 #include <QDialog> 0012 0013 namespace glaxnimate::gui { 0014 0015 class LottieFilesSearchDialog : public QDialog 0016 { 0017 Q_OBJECT 0018 0019 public: 0020 enum Code 0021 { 0022 Import = 2, 0023 Open = 3, 0024 }; 0025 0026 LottieFilesSearchDialog(QWidget* parent = nullptr); 0027 ~LottieFilesSearchDialog(); 0028 0029 const QUrl& selected_url() const; 0030 const QString& selected_name() const; 0031 0032 protected: 0033 void changeEvent ( QEvent* e ) override; 0034 0035 private Q_SLOTS: 0036 void clicked_open(); 0037 void clicked_import(); 0038 void clicked_search(); 0039 void clicked_next(); 0040 void clicked_previous(); 0041 0042 private: 0043 class Private; 0044 std::unique_ptr<Private> d; 0045 }; 0046 0047 0048 } // namespace glaxnimate::gui 0049 0050 #endif // LOTTIEFILESSEARCHDIALOG_H