Changeset View
Changeset View
Standalone View
Standalone View
document/kpDocument.h
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Line(s) | 62 | public: | |||
---|---|---|---|---|---|
134 | // | 134 | // | ||
135 | // If this returns true and the kpDocument hasn't been modified, | 135 | // If this returns true and the kpDocument hasn't been modified, | ||
136 | // this gives a pretty good indication that the image stored at url() | 136 | // this gives a pretty good indication that the image stored at url() | ||
137 | // is equal to image() (unless the something has happened to that url | 137 | // is equal to image() (unless the something has happened to that url | ||
138 | // outside of KolourPaint). | 138 | // outside of KolourPaint). | ||
139 | // | 139 | // | ||
140 | // e.g. If the user types "kolourpaint doesnotexist.png" to start | 140 | // e.g. If the user types "kolourpaint doesnotexist.png" to start | ||
141 | // KolourPaint, this method will return false. | 141 | // KolourPaint, this method will return false. | ||
142 | bool isFromExistingURL (bool checkURLStillExists = true) const; | 142 | bool isFromExistingURL () const; | ||
143 | | ||||
144 | // Checks whether @p url still exists | ||||
145 | bool urlExists (const QUrl &url) const; | ||||
143 | 146 | | |||
144 | // (will convert: empty Url --> "Untitled") | 147 | // (will convert: empty Url --> "Untitled") | ||
145 | QString prettyUrl () const; | 148 | QString prettyUrl () const; | ||
146 | 149 | | |||
147 | // (will convert: empty Url --> "Untitled") | 150 | // (will convert: empty Url --> "Untitled") | ||
148 | QString prettyFilename () const; | 151 | QString prettyFilename () const; | ||
149 | 152 | | |||
150 | // (guaranteed to return valid pointer) | 153 | // (guaranteed to return valid pointer) | ||
▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines |