Kstars

pwizprint.h
1/*
2 SPDX-FileCopyrightText: 2011 Rafał Kułaga <rl.kulaga@gmail.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "ui_pwizprint.h"
10
11class QPrinter;
12
13class 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 */
21class PWizPrintUI : public QFrame, public Ui::PWizPrint
22{
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};
User interface for last "Print and export finder chart" step of the Printing Wizard.
Definition pwizprint.h:22
PWizPrintUI(PrintingWizard *wizard, QWidget *parent=nullptr)
Constructor.
Definition pwizprint.cpp:25
Class representing Printing Wizard for KStars printed documents (currently only finder charts).
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.