Changeset View
Changeset View
Standalone View
Standalone View
kate/katedocmanager.h
Show All 36 Lines | |||||
37 | class KateMainWindow; | 37 | class KateMainWindow; | ||
38 | 38 | | |||
39 | class KateDocumentInfo | 39 | class KateDocumentInfo | ||
40 | { | 40 | { | ||
41 | public: | 41 | public: | ||
42 | enum CustomRoles {RestoreOpeningFailedRole }; | 42 | enum CustomRoles {RestoreOpeningFailedRole }; | ||
43 | 43 | | |||
44 | public: | 44 | public: | ||
45 | KateDocumentInfo() | 45 | KateDocumentInfo() = default; | ||
46 | : modifiedOnDisc(false) | | |||
47 | , modifiedOnDiscReason(KTextEditor::ModificationInterface::OnDiskUnmodified) | | |||
48 | , openedByUser(false) | | |||
49 | , openSuccess(true) | | |||
50 | {} | | |||
51 | 46 | | |||
52 | bool modifiedOnDisc; | 47 | bool modifiedOnDisc = false; | ||
53 | KTextEditor::ModificationInterface::ModifiedOnDiskReason modifiedOnDiscReason; | 48 | KTextEditor::ModificationInterface::ModifiedOnDiskReason modifiedOnDiscReason = KTextEditor::ModificationInterface::OnDiskUnmodified; | ||
54 | 49 | | |||
55 | bool openedByUser; | 50 | bool openedByUser = false; | ||
56 | bool openSuccess; | 51 | bool openSuccess = true; | ||
57 | }; | 52 | }; | ||
58 | 53 | | |||
59 | class KateDocManager : public QObject | 54 | class KateDocManager : public QObject | ||
60 | { | 55 | { | ||
61 | Q_OBJECT | 56 | Q_OBJECT | ||
62 | 57 | | |||
63 | public: | 58 | public: | ||
64 | KateDocManager(QObject *parent); | 59 | KateDocManager(QObject *parent); | ||
▲ Show 20 Lines • Show All 155 Lines • Show Last 20 Lines |