Changeset View
Changeset View
Standalone View
Standalone View
src/tm/tmview.cpp
Context not available. | |||||
36 | #include "diff.h" | 36 | #include "diff.h" | ||
---|---|---|---|---|---|
37 | #include "xlifftextedit.h" | 37 | #include "xlifftextedit.h" | ||
38 | 38 | | |||
39 | #include <KNotification> | ||||
39 | #include <klocalizedstring.h> | 40 | #include <klocalizedstring.h> | ||
40 | #include <kmessagebox.h> | 41 | #include <kmessagebox.h> | ||
41 | #include <kpassivepopup.h> | | |||
42 | 42 | | |||
43 | #include <QTime> | 43 | #include <QTime> | ||
44 | #include <QDragEnterEvent> | 44 | #include <QDragEnterEvent> | ||
Context not available. | |||||
301 | msg += ' '; | 301 | msg += ' '; | ||
302 | msg += i18nc("@info", "No suggestions with exact matches were found."); | 302 | msg += i18nc("@info", "No suggestions with exact matches were found."); | ||
303 | } | 303 | } | ||
304 | 304 | KNotification* notification = new KNotification("BatchTranslationCompleted", this); | |||
305 | KPassivePopup::message(KPassivePopup::Balloon, | 305 | notification->setTitle(i18nc("@title", "Batch translation")); | ||
306 | i18nc("@title", "Batch translation complete"), | 306 | notification->setText(msg); | ||
307 | msg, | 307 | notification->sendEvent(); | ||
308 | this); | | |||
309 | } | 308 | } | ||
310 | 309 | | |||
311 | void TMView::slotBatchTranslate() | 310 | void TMView::slotBatchTranslate() | ||
Context not available. | |||||
316 | slotFileLoaded(m_catalog->url()); | 315 | slotFileLoaded(m_catalog->url()); | ||
317 | else if (m_jobs.isEmpty()) | 316 | else if (m_jobs.isEmpty()) | ||
318 | return slotBatchSelectDone(); | 317 | return slotBatchSelectDone(); | ||
319 | KPassivePopup::message(KPassivePopup::Balloon, | 318 | KNotification* notification = new KNotification("BatchTranslation", this); | ||
320 | i18nc("@title", "Batch translation"), | 319 | notification->setTitle(i18nc("@title", "Batch translation")); | ||
321 | i18nc("@info", "Batch translation has been scheduled."), | 320 | notification->setText(i18nc("@info", "Batch translation has been scheduled.")); | ||
322 | this); | 321 | notification->sendEvent(); | ||
323 | | ||||
324 | } | 322 | } | ||
325 | 323 | | |||
326 | void TMView::slotBatchTranslateFuzzy() | 324 | void TMView::slotBatchTranslateFuzzy() | ||
Context not available. | |||||
331 | slotFileLoaded(m_catalog->url()); | 329 | slotFileLoaded(m_catalog->url()); | ||
332 | else if (m_jobs.isEmpty()) | 330 | else if (m_jobs.isEmpty()) | ||
333 | slotBatchSelectDone(); | 331 | slotBatchSelectDone(); | ||
334 | KPassivePopup::message(KPassivePopup::Balloon, | 332 | KNotification* notification = new KNotification("BatchTranslation", this); | ||
335 | i18nc("@title", "Batch translation"), | 333 | notification->setTitle(i18nc("@title", "Batch translation")); | ||
336 | i18nc("@info", "Batch translation has been scheduled."), | 334 | notification->setText(i18nc("@info", "Batch translation has been scheduled.")); | ||
337 | this); | 335 | notification->sendEvent(); | ||
338 | | ||||
339 | } | 336 | } | ||
340 | 337 | | |||
341 | void TMView::slotNewEntryDisplayed() | 338 | void TMView::slotNewEntryDisplayed() | ||
Context not available. |