dialogexportpdf.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 3.1
4  Written in Qt
5 
6  dialogexportpdf.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 #ifndef DIALOGEXPORTPDF_H
29 #define DIALOGEXPORTPDF_H
30 
31 #include <QDialog>
32 #include <QPrinter>
33 #include <QPageLayout>
34 
35 
36 namespace Ui {
37 class DialogExportPDF;
38 }
39 
40 
41 class DialogExportPDF : public QDialog
42 {
43  Q_OBJECT
44 public:
45  explicit DialogExportPDF (QWidget *parent = Q_NULLPTR );
47 public slots:
48  void checkFilename(const QString &fileName = QString());
49  void getFilename();
50  void getPrinterMode(const QString &mode);
51  void getUserChoices ();
52 signals:
53  void userChoices( QString &filename,
54  const QPageLayout::Orientation &orientation,
55  const int &dpi,
56  const QPrinter::PrinterMode printerMode,
57  const QPageSize &pageSize = QPageSize(QPageSize::A4));
58 private:
59  QString m_fileName;
60  int m_dpi;
61  QPageLayout::Orientation m_orientation;
62  QPrinter::PrinterMode m_printerMode;
63  Ui::DialogExportPDF *ui;
64 
65 
66 };
67 
68 #endif // DIALOGEXPORTPDF_H
Definition: dialogexportpdf.h:42
void getUserChoices()
Definition: dialogexportpdf.cpp:158
DialogExportPDF(QWidget *parent=Q_NULLPTR)
Definition: dialogexportpdf.cpp:37
~DialogExportPDF()
Definition: dialogexportpdf.cpp:85
QString m_fileName
Definition: dialogexportpdf.h:59
void checkFilename(const QString &fileName=QString())
Definition: dialogexportpdf.cpp:91
void getFilename()
Gets the filename of the PDF.
Definition: dialogexportpdf.cpp:128
Ui::DialogExportPDF * ui
Definition: dialogexportpdf.h:63
int m_dpi
Definition: dialogexportpdf.h:60
QPrinter::PrinterMode m_printerMode
Definition: dialogexportpdf.h:62
void getPrinterMode(const QString &mode)
Gets printer quality mode.
Definition: dialogexportpdf.cpp:142
QPageLayout::Orientation m_orientation
Definition: dialogexportpdf.h:61
void userChoices(QString &filename, const QPageLayout::Orientation &orientation, const int &dpi, const QPrinter::PrinterMode printerMode, const QPageSize &pageSize=QPageSize(QPageSize::A4))
Definition: dialogexportimage.h:34