Kstars

pwizprint.h
1 /*
2  SPDX-FileCopyrightText: 2011 Rafał Kułaga <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "ui_pwizprint.h"
10 
11 class QPrinter;
12 
13 class PrintingWizard;
14 
15 /**
16  * @class PWizPrintUI
17  * @brief User interface for last "Print and export finder chart" step of the Printing Wizard.
18  *
19  * @author Rafał Kułaga
20  */
21 class PWizPrintUI : public QFrame, public Ui::PWizPrint
22 {
23  Q_OBJECT
24  public:
25  /** Constructor. */
26  explicit PWizPrintUI(PrintingWizard *wizard, QWidget *parent = nullptr);
27 
28  private slots:
29  /** Slot: show "Print preview" dialog window for finder chart. */
30  void slotPreview();
31 
32  /**
33  * @brief Slot: show "Print preview" dialog window for finder chart (on passed QPrinter).
34  * @param printer Printer on which preview should be painted.
35  */
36  void slotPrintPreview(QPrinter *printer);
37 
38  /** Slot: open printing dialog and print document. */
39  void slotPrint();
40 
41  /** Slot: open "Save file" dialog to select export file name and format. */
42  void slotExport();
43 
44  private:
45  /**
46  * @brief Print document on passed printer.
47  * @param printer Printer.
48  */
49  void printDocument(QPrinter *printer);
50 
51  PrintingWizard *m_ParentWizard { nullptr };
52 };
Q_OBJECTQ_OBJECT
User interface for last "Print and export finder chart" step of the Printing Wizard.
Definition: pwizprint.h:21
Class representing Printing Wizard for KStars printed documents (currently only finder charts).
PWizPrintUI(PrintingWizard *wizard, QWidget *parent=nullptr)
Constructor.
Definition: pwizprint.cpp:25
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Aug 8 2022 04:13:23 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.