1 /*
2     This file is part of Photoflare.
3 
4     Photoflare is free software: you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation, either version 3 of the License, or
7     (at your option) any later version.
8 
9     Photoflare is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13 
14     You should have received a copy of the GNU General Public License
15     along with Photoflare.  If not, see <https://www.gnu.org/licenses/>.
16 */
17 
18 #ifndef COMPRESSIONDIALOG_H
19 #define COMPRESSIONDIALOG_H
20 
21 #include <QDialog>
22 
23 namespace Ui {
24 class CompressionDialog;
25 }
26 
27 class CompressionDialog : public QDialog
28 {
29     Q_OBJECT
30 
31 public:
32     explicit CompressionDialog(QWidget *parent = nullptr);
33     ~CompressionDialog();
34 
35     int quality() const;
36     bool enableSaveImage;
37 private slots:
38     void on_horizontalSlider_sliderMoved(int position);
39     void on_buttonBox_accepted();
40     void on_buttonBox_rejected();
41     void on_horizontalSlider_valueChanged(int value);
42 
43 private:
44     Ui::CompressionDialog *ui;
45 };
46 
47 #endif // COMPRESSIONDIALOG_H
48