Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_delayed_save_dialog.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_DELAYED_SAVE_DIALOG_H
8#define KIS_DELAYED_SAVE_DIALOG_H
9
10#include <QScopedPointer>
11
12#include <KoDialog.h>
13#include <kis_types.h>
14
16
17class KisDelayedSaveDialog : public KoDialog
18{
19 Q_OBJECT
20
21public:
23 Rejected = QDialog::Rejected,
24 Accepted = QDialog::Accepted,
25 Ignored = 2
26 };
27
33
34public:
35 explicit KisDelayedSaveDialog(KisImageSP image, Type type, int busyWait, QWidget *parent = nullptr);
36 ~KisDelayedSaveDialog() override;
37
38 void blockIfImageIsBusy();
39
40private Q_SLOTS:
41 void slotTimerTimeout();
44
45private:
47 struct Private;
48 const QScopedPointer<Private> m_d;
49};
50
51#endif // KIS_DELAYED_SAVE_DIALOG_H
A dialog base class with standard buttons and predefined layouts.
Definition KoDialog.h:116
KisDelayedSaveDialog(KisImageSP image, Type type, int busyWait, QWidget *parent=nullptr)
const QScopedPointer< Private > m_d
WdgDelayedSaveDialog * ui