Changeset View
Changeset View
Standalone View
Standalone View
src/document/katedocument.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | |||||
934 | public: | 934 | public: | ||
935 | QString documentName() const override | 935 | QString documentName() const override | ||
936 | { | 936 | { | ||
937 | return m_docName; | 937 | return m_docName; | ||
938 | } | 938 | } | ||
939 | 939 | | |||
940 | private: | 940 | private: | ||
941 | void updateDocName(); | 941 | void updateDocName(); | ||
942 | void setDocumentName(const QString &name, int number = -1); | ||||
942 | 943 | | |||
943 | public: | 944 | public: | ||
944 | /** | 945 | /** | ||
945 | * @return whether the document is modified on disk since last saved | 946 | * @return whether the document is modified on disk since last saved | ||
946 | */ | 947 | */ | ||
947 | bool isModifiedOnDisc() | 948 | bool isModifiedOnDisc() | ||
948 | { | 949 | { | ||
949 | return m_modOnHd; | 950 | return m_modOnHd; | ||
▲ Show 20 Lines • Show All 182 Lines • ▼ Show 20 Line(s) | 1326 | private: | |||
1358 | */ | 1359 | */ | ||
1359 | DocumentStates m_documentState = DocumentIdle; | 1360 | DocumentStates m_documentState = DocumentIdle; | ||
1360 | 1361 | | |||
1361 | /** | 1362 | /** | ||
1362 | * read-write state before loading started | 1363 | * read-write state before loading started | ||
1363 | */ | 1364 | */ | ||
1364 | bool m_readWriteStateBeforeLoading = false; | 1365 | bool m_readWriteStateBeforeLoading = false; | ||
1365 | 1366 | | |||
1366 | /** | | |||
1367 | * if the document is untitled | | |||
1368 | */ | | |||
1369 | bool m_isUntitled = true; | | |||
1370 | /** | 1367 | /** | ||
1371 | * loading job, we want to cancel with cancel in the loading message | 1368 | * loading job, we want to cancel with cancel in the loading message | ||
1372 | */ | 1369 | */ | ||
1373 | QPointer<KJob> m_loadingJob; | 1370 | QPointer<KJob> m_loadingJob; | ||
1374 | 1371 | | |||
1375 | /** | 1372 | /** | ||
1376 | * message to show during loading | 1373 | * message to show during loading | ||
1377 | */ | 1374 | */ | ||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |