Seamly2D
Code documentation
shortcuts_dialog.h
Go to the documentation of this file.
1 /************************************************************************
2  **
3  ** @file shortcuts_dialog.h
4  ** @author DSCaskey <dscaskey@gmail.com>
5  ** @date 5 11, 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 SHORTCUTS_DIALOG_H
30 #define SHORTCUTS_DIALOG_H
31 
32 #include <QDialog>
33 
34 namespace Ui
35 {
36  class ShortcutsDialog;
37 }
38 
39 class ShortcutsDialog : public QDialog
40 {
41  Q_OBJECT
42 
43 public:
44  explicit ShortcutsDialog(QWidget *parent = nullptr);
45  virtual ~ShortcutsDialog();
46 
47 protected:
48  virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
49 
50 private:
51  Ui::ShortcutsDialog *ui;
53  Q_DISABLE_COPY(ShortcutsDialog)
54 
55  void copyToClipboard();
56  void sendToPrinter();
57  void exportPdf();
58 };
59 
60 #endif // SHORTCUTS_DIALOG_H
virtual ~ShortcutsDialog()
Ui::ShortcutsDialog * ui
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE
ShortcutsDialog(QWidget *parent=nullptr)