dialogexportimage.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 3.1
4  Written in Qt
5 
6  dialogexportimage.h - description
7  -------------------
8  copyright : (C) 2005-2023 by Dimitris B. Kalamaras
9  project site : https://socnetv.org
10 
11  ***************************************************************************/
12 
13 /*******************************************************************************
14 * This program is free software: you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation, either version 3 of the License, or *
17 * (at your option) any later version. *
18 * *
19 * This program is distributed in the hope that it will be useful, *
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22 * GNU General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU General Public License *
25 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
26 ********************************************************************************/
27 
28 
29 #ifndef DIALOGEXPORTIMAGE_H
30 #define DIALOGEXPORTIMAGE_H
31 
32 #include <QDialog>
33 
34 namespace Ui {
35 class DialogExportImage;
36 }
37 
38 class DialogExportImage : public QDialog
39 {
40  Q_OBJECT
41 
42 public:
43  explicit DialogExportImage(QWidget *parent = Q_NULLPTR);
45  void changeCompressionRange(const int &min, const int &max, const int &step);
46  void changeQualityRange(const int &min, const int &max, const int &step);
47 
48 public slots:
49  void getFilename();
50  void getFormat(const QString &format);
51  void getUserChoices();
52 
53 signals:
54  void userChoices( const QString &filename,
55  const QByteArray &format,
56  const int &quality,
57  const int &compression
58  );
59 
60 private:
61  Ui::DialogExportImage *ui;
62 };
63 
64 #endif // DIALOGEXPORTIMAGE_H
Definition: dialogexportimage.h:39
void changeCompressionRange(const int &min, const int &max, const int &step)
Changes Compression widgets range and stepping.
Definition: dialogexportimage.cpp:106
~DialogExportImage()
DialogExportImage::~DialogExportImage.
Definition: dialogexportimage.cpp:94
void getFilename()
Opens a dialog to get the filename of the new image to export.
Definition: dialogexportimage.cpp:133
Ui::DialogExportImage * ui
Definition: dialogexportimage.h:61
void getUserChoices()
Definition: dialogexportimage.cpp:192
void userChoices(const QString &filename, const QByteArray &format, const int &quality, const int &compression)
void getFormat(const QString &format)
Gets the file format of the Image.
Definition: dialogexportimage.cpp:176
DialogExportImage(QWidget *parent=Q_NULLPTR)
Definition: dialogexportimage.cpp:38
void changeQualityRange(const int &min, const int &max, const int &step)
Changes Quality widgets range and stepping.
Definition: dialogexportimage.cpp:120
Definition: dialogexportimage.h:34