Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/katedialogs.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 311 | private: | |||
---|---|---|---|---|---|
313 | Ui::OpenSaveConfigAdvWidget *uiadv; | 313 | Ui::OpenSaveConfigAdvWidget *uiadv; | ||
314 | ModeConfigPage *modeConfigPage; | 314 | ModeConfigPage *modeConfigPage; | ||
315 | }; | 315 | }; | ||
316 | 316 | | |||
317 | /** | 317 | /** | ||
318 | * This dialog will prompt the user for what do with a file that is | 318 | * This dialog will prompt the user for what do with a file that is | ||
319 | * modified on disk. | 319 | * modified on disk. | ||
320 | * If the file wasn't deleted, it has a 'diff' button, which will create | 320 | * If the file wasn't deleted, it has a 'diff' button, which will create | ||
321 | * a diff file (uing diff(1)) and launch that using KRun. | 321 | * a diff file (using diff(1)) and launch that using KRun. | ||
322 | */ | 322 | */ | ||
323 | class KateModOnHdPrompt : public QObject | 323 | class KateModOnHdPrompt : public QObject | ||
324 | { | 324 | { | ||
325 | Q_OBJECT | 325 | Q_OBJECT | ||
326 | public: | 326 | public: | ||
327 | enum Status { | 327 | enum Status { | ||
328 | Reload = 1, // 0 is QDialog::Rejected | 328 | Reload = 1, // 0 is QDialog::Rejected | ||
329 | Save, | 329 | Save, | ||
330 | Overwrite, | 330 | Overwrite, | ||
331 | Ignore, | 331 | Ignore, | ||
332 | Close | 332 | Close | ||
333 | }; | 333 | }; | ||
334 | KateModOnHdPrompt(KTextEditor::DocumentPrivate *doc, | 334 | KateModOnHdPrompt(KTextEditor::DocumentPrivate *doc, | ||
335 | KTextEditor::ModificationInterface::ModifiedOnDiskReason modtype, | 335 | KTextEditor::ModificationInterface::ModifiedOnDiskReason modtype, | ||
336 | const QString &reason); | 336 | const QString &reason); | ||
337 | ~KateModOnHdPrompt(); | 337 | ~KateModOnHdPrompt(); | ||
338 | 338 | | |||
339 | Q_SIGNALS: | 339 | Q_SIGNALS: | ||
340 | void saveAsTriggered(); | 340 | void saveAsTriggered(); | ||
341 | void ignoreTriggered(); | 341 | void ignoreTriggered(); | ||
342 | void reloadTriggered(); | 342 | void reloadTriggered(); | ||
343 | void autoReloadTriggered(); | ||||
343 | 344 | | |||
344 | private Q_SLOTS: | 345 | private Q_SLOTS: | ||
345 | /** | 346 | /** | ||
346 | * Show a diff between the document text and the disk file. | 347 | * Show a diff between the document text and the disk file. | ||
347 | */ | 348 | */ | ||
348 | void slotDiff(); | 349 | void slotDiff(); | ||
349 | 350 | | |||
350 | private Q_SLOTS: | 351 | private Q_SLOTS: | ||
Show All 13 Lines |