Changeset View
Changeset View
Standalone View
Standalone View
part.h
Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Line(s) | 151 | public Q_SLOTS: // dbus | |||
---|---|---|---|---|---|
163 | Q_SCRIPTABLE void slotGotoFirst(); | 163 | Q_SCRIPTABLE void slotGotoFirst(); | ||
164 | Q_SCRIPTABLE void slotGotoLast(); | 164 | Q_SCRIPTABLE void slotGotoLast(); | ||
165 | Q_SCRIPTABLE void slotTogglePresentation(); | 165 | Q_SCRIPTABLE void slotTogglePresentation(); | ||
166 | Q_SCRIPTABLE void slotToggleChangeColors(); | 166 | Q_SCRIPTABLE void slotToggleChangeColors(); | ||
167 | Q_SCRIPTABLE void slotSetChangeColors(bool active); | 167 | Q_SCRIPTABLE void slotSetChangeColors(bool active); | ||
168 | Q_SCRIPTABLE Q_NOREPLY void reload(); | 168 | Q_SCRIPTABLE Q_NOREPLY void reload(); | ||
169 | Q_SCRIPTABLE Q_NOREPLY void enableStartWithPrint(); | 169 | Q_SCRIPTABLE Q_NOREPLY void enableStartWithPrint(); | ||
170 | Q_SCRIPTABLE Q_NOREPLY void enableExitAfterPrint(); | 170 | Q_SCRIPTABLE Q_NOREPLY void enableExitAfterPrint(); | ||
171 | Q_SCRIPTABLE Q_NOREPLY void enableStartWithFind(const QString &text); | ||||
171 | 172 | | |||
172 | Q_SIGNALS: | 173 | Q_SIGNALS: | ||
173 | void enablePrintAction(bool enable); | 174 | void enablePrintAction(bool enable); | ||
174 | void openSourceReference(const QString& absFileName, int line, int column); | 175 | void openSourceReference(const QString& absFileName, int line, int column); | ||
175 | void viewerMenuStateChange(bool enabled); | 176 | void viewerMenuStateChange(bool enabled); | ||
176 | void enableCloseAction(bool enable); | 177 | void enableCloseAction(bool enable); | ||
177 | void mimeTypeChanged(QMimeType mimeType); | 178 | void mimeTypeChanged(QMimeType mimeType); | ||
178 | void urlsDropped( const QList<QUrl>& urls ); | 179 | void urlsDropped( const QList<QUrl>& urls ); | ||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 195 | protected Q_SLOTS: | |||
225 | void close(); | 226 | void close(); | ||
226 | void cannotQuit(); | 227 | void cannotQuit(); | ||
227 | void slotShowFindBar(); | 228 | void slotShowFindBar(); | ||
228 | void slotHideFindBar(); | 229 | void slotHideFindBar(); | ||
229 | void slotJobStarted(KIO::Job *job); | 230 | void slotJobStarted(KIO::Job *job); | ||
230 | void slotJobFinished(KJob *job); | 231 | void slotJobFinished(KJob *job); | ||
231 | void loadCancelled(const QString &reason); | 232 | void loadCancelled(const QString &reason); | ||
232 | void setWindowTitleFromDocument(); | 233 | void setWindowTitleFromDocument(); | ||
234 | void findTextOnStartUp(); | ||||
233 | // can be connected to widget elements | 235 | // can be connected to widget elements | ||
234 | void updateViewActions(); | 236 | void updateViewActions(); | ||
235 | void updateBookmarksActions(); | 237 | void updateBookmarksActions(); | ||
236 | void enableTOC(bool enable); | 238 | void enableTOC(bool enable); | ||
237 | void slotRebuildBookmarkMenu(); | 239 | void slotRebuildBookmarkMenu(); | ||
238 | void enableLayers( bool enable ); | 240 | void enableLayers( bool enable ); | ||
239 | 241 | | |||
240 | public Q_SLOTS: | 242 | public Q_SLOTS: | ||
▲ Show 20 Lines • Show All 161 Lines • ▼ Show 20 Line(s) | 385 | #endif | |||
402 | KXMLGUIClient *m_generatorGuiClient; | 404 | KXMLGUIClient *m_generatorGuiClient; | ||
403 | FileKeeper *m_keeper; | 405 | FileKeeper *m_keeper; | ||
404 | 406 | | |||
405 | // Timer for m_infoMessage | 407 | // Timer for m_infoMessage | ||
406 | QTimer *m_infoTimer; | 408 | QTimer *m_infoTimer; | ||
407 | 409 | | |||
408 | QString m_registerDbusName; | 410 | QString m_registerDbusName; | ||
409 | 411 | | |||
412 | // String to search in document startup | ||||
413 | QString *m_textToFindOnOpen = nullptr; | ||||
aacid: Needs m_ prefix.
And also a better name, something m_textToFindOnOpen. | |||||
This should just be a QString, not a QString *, set to it QString() when clearing it for "already searched" aacid: This should just be a QString, not a QString *, set to it QString() when clearing it for… | |||||
414 | | ||||
410 | private Q_SLOTS: | 415 | private Q_SLOTS: | ||
411 | void slotAnnotationPreferences(); | 416 | void slotAnnotationPreferences(); | ||
412 | void slotHandleActivatedSourceReference(const QString& absFileName, int line, int col, bool *handled); | 417 | void slotHandleActivatedSourceReference(const QString& absFileName, int line, int col, bool *handled); | ||
413 | }; | 418 | }; | ||
414 | 419 | | |||
415 | } | 420 | } | ||
416 | 421 | | |||
417 | #endif | 422 | #endif | ||
418 | 423 | | |||
419 | /* kate: replace-tabs on; indent-width 4; */ | 424 | /* kate: replace-tabs on; indent-width 4; */ |
Needs m_ prefix.
And also a better name, something m_textToFindOnOpen.