File indexing completed on 2024-05-19 05:01:19
0001 // /* This file is part of the KDE project 0002 // SPDX-FileCopyrightText: 2023 Stefano Crocco <stefano.crocco@alice.it> 0003 // 0004 // SPDX-License-Identifier: LGPL-2.0-or-later 0005 // */ 0006 0007 #ifndef CHOOSEPAGESAVEFORMATDLG_H 0008 #define CHOOSEPAGESAVEFORMATDLG_H 0009 0010 #include "qtwebengine6compat.h" 0011 0012 #include <QDialog> 0013 #include <QScopedPointer> 0014 0015 class QButtonGroup; 0016 0017 namespace Ui 0018 { 0019 class ChoosePageSaveFormatDlg; 0020 } 0021 0022 /** 0023 * Dialog where the user can choose the format to save a full web page 0024 */ 0025 class ChoosePageSaveFormatDlg : public QDialog 0026 { 0027 Q_OBJECT 0028 0029 public: 0030 ChoosePageSaveFormatDlg(QWidget* parent=nullptr); 0031 ~ChoosePageSaveFormatDlg(); 0032 0033 QWebEngineDownloadRequest::SavePageFormat choosenFormat() const; 0034 0035 private slots: 0036 void updateInfoText(int id); 0037 0038 private: 0039 QScopedPointer<Ui::ChoosePageSaveFormatDlg> m_ui; 0040 QButtonGroup *m_choicesGroup; 0041 }; 0042 0043 #endif // CHOOSEPAGESAVEFORMATDLG_H