Seamly2D
Code documentation
show_info_dialog.h
Go to the documentation of this file.
1 /************************************************************************
2  **
3  ** @file show_info_dialog.h
4  ** @author DSCaskey <dscaskey@gmail.com>
5  ** @date Nov 6, 2022
6  **
7  ** @brief
8  ** @copyright
9  ** This source code is part of the Valentine project, a pattern making
10  ** program, whose allow create and modeling patterns of clothing.
11  ** Copyright (C) 2013-2015 Seamly2D project
12  ** All Rights Reserved.
13  **
14  ** Seamly2D 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  ** Seamly2D 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 Seamly2D. If not, see <http://www.gnu.org/licenses/>.
26  **
27  *************************************************************************/
28 
29 #ifndef SHOW_INFO_DIALOG_INFO
30 #define SHOW_INFO_DIALOG_INFO
31 
32 #include <QDialog>
33 #include <QImage>
34 
35 #include "../xml/vpattern.h"
36 
37 namespace Ui
38 {
39  class ShowInfoDialog;
40 }
41 
42 class ShowInfoDialog : public QDialog
43 {
44  Q_OBJECT
45 
46 public:
47  explicit ShowInfoDialog(VPattern *doc, QWidget *parent = nullptr);
48  virtual ~ShowInfoDialog();
49 
50 protected:
51  virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
52 
53 private:
54  Ui::ShowInfoDialog *ui;
57  Q_DISABLE_COPY(ShowInfoDialog)
58 
59  void copyToClipboard();
60  void sendToPrinter();
61  void exportPdf();
62 };
63 
64 #endif // SHOW_INFO_DIALOG_INFO
Ui::ShowInfoDialog * ui
ShowInfoDialog(VPattern *doc, QWidget *parent=nullptr)
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE
virtual ~ShowInfoDialog()
The VPattern class working with pattern file.
Definition: vpattern.h:68