Krita Source Code Documentation
Loading...
Searching...
No Matches
KoDocumentInfoDlg.h
Go to the documentation of this file.
1/*
2 This file is part of the KDE project
3
4 SPDX-FileCopyrightText: 2000 Simon Hausmann <hausmann@kde.org>
5 SPDX-FileCopyrightText: 2006 Martin Pfeiffer <hubipete@gmx.net>
6
7 SPDX-License-Identifier: LGPL-2.0-or-later
8*/
9
10#ifndef __koDocumentInfoDlg_h__
11#define __koDocumentInfoDlg_h__
12
13#include <kpagedialog.h>
14
15class KoDocumentInfo;
16class KPageWidgetItem;
18
19#include "kritaui_export.h"
20
39class KRITAUI_EXPORT KoDocumentInfoDlg : public KPageDialog
40{
41 Q_OBJECT
42
43public:
49 KoDocumentInfoDlg(QWidget *parent, KoDocumentInfo* docInfo);
50
52 ~KoDocumentInfoDlg() override;
53
54 QList<KPageWidgetItem*> pages() const;
55
57 bool isDocumentSaved();
58
60 void setReadOnly(bool ro);
61
62 void addPageItem(KoPageWidgetItem *item);
63
64public Q_SLOTS: // QDialog API
65 void accept() override;
66
67protected: // QWidget API
68 void hideEvent(QHideEvent * event) override;
69
70private Q_SLOTS:
72 void slotResetMetaData();
73
74Q_SIGNALS:
76
77private:
79 void initAboutTab();
81 void initAuthorTab();
83 void saveAboutData();
84
85 void updateEditingTime();
86
89};
90
91#endif
The dialog that shows information about the document.
KoDocumentInfoDlgPrivate *const d
The class containing all meta information about a document.