diff --git a/src/filter/kmfilterlistbox.cpp b/src/filter/kmfilterlistbox.cpp index d519c29..2f3e6df 100644 --- a/src/filter/kmfilterlistbox.cpp +++ b/src/filter/kmfilterlistbox.cpp @@ -23,75 +23,6 @@ #include #include -// What's this help texts -const char _wt_filterlist[] = I18N_NOOP( - "

This is the list of defined filters. " - "They are processed top-to-bottom.

" - "

Click on any filter to edit it " - "using the controls in the right-hand half " - "of the dialog.

"); - -const char _wt_filterlist_new[] = I18N_NOOP( - "

Click this button to create a new filter.

" - "

The filter will be inserted just before the currently-" - "selected one, but you can always change that " - "later on.

" - "

If you have clicked this button accidentally, you can undo this " - "by clicking on the Delete button.

"); - -const char _wt_filterlist_copy[] = I18N_NOOP( - "

Click this button to copy a filter.

" - "

If you have clicked this button accidentally, you can undo this " - "by clicking on the Delete button.

"); - -const char _wt_filterlist_delete[] = I18N_NOOP( - "

Click this button to delete the currently-" - "selected filter from the list above.

" - "

There is no way to get the filter back once " - "it is deleted, but you can always leave the " - "dialog by clicking Cancel to discard the " - "changes made.

"); - -const char _wt_filterlist_up[] = I18N_NOOP( - "

Click this button to move the currently-" - "selected filter up one in the list above.

" - "

This is useful since the order of the filters in the list " - "determines the order in which they are tried on messages: " - "The topmost filter gets tried first.

" - "

If you have clicked this button accidentally, you can undo this " - "by clicking on the Down button.

"); - -const char _wt_filterlist_down[] = I18N_NOOP( - "

Click this button to move the currently-" - "selected filter down one in the list above.

" - "

This is useful since the order of the filters in the list " - "determines the order in which they are tried on messages: " - "The topmost filter gets tried first.

" - "

If you have clicked this button accidentally, you can undo this " - "by clicking on the Up button.

"); - -const char _wt_filterlist_top[] = I18N_NOOP( - "

Click this button to move the currently-" - "selected filter to top of list.

" - "

This is useful since the order of the filters in the list " - "determines the order in which they are tried on messages: " - "The topmost filter gets tried first.

"); - -const char _wt_filterlist_bottom[] = I18N_NOOP( - "

Click this button to move the currently-" - "selected filter to bottom of list.

" - "

This is useful since the order of the filters in the list " - "determines the order in which they are tried on messages: " - "The topmost filter gets tried first.

"); - -const char _wt_filterlist_rename[] = I18N_NOOP( - "

Click this button to rename the currently-selected filter.

" - "

Filters are named automatically, as long as they start with " - "\"<\".

" - "

If you have renamed a filter accidentally and want automatic " - "naming back, click this button and select Clear followed " - "by OK in the appearing dialog.

"); - //============================================================================= // // class KMFilterListBox (the filter list manipulator) @@ -106,7 +37,12 @@ KMFilterListBox::KMFilterListBox(const QString &title, QWidget *parent) //----------- the list box mListWidget = new QListWidget(this); mListWidget->setMinimumWidth(150); - mListWidget->setWhatsThis(i18n(_wt_filterlist)); + mListWidget->setWhatsThis( + i18n("

This is the list of defined filters. " + "They are processed top-to-bottom.

" + "

Click on any filter to edit it " + "using the controls in the right-hand half " + "of the dialog.

")); mListWidget->setDragDropMode(QAbstractItemView::InternalMove); mListWidget->setSelectionMode(QAbstractItemView::ExtendedSelection); connect(mListWidget->model(), &QAbstractItemModel::rowsMoved, this, &KMFilterListBox::slotRowsMoved); @@ -148,10 +84,34 @@ KMFilterListBox::KMFilterListBox(const QString &title, QWidget *parent) mBtnDown->setToolTip(i18nc("Move selected filter down.", "Down")); mBtnTop->setToolTip(i18nc("Move selected filter to the top.", "Top")); mBtnBottom->setToolTip(i18nc("Move selected filter to the bottom.", "Bottom")); - mBtnUp->setWhatsThis(i18n(_wt_filterlist_up)); - mBtnDown->setWhatsThis(i18n(_wt_filterlist_down)); - mBtnBottom->setWhatsThis(i18n(_wt_filterlist_bottom)); - mBtnTop->setWhatsThis(i18n(_wt_filterlist_top)); + mBtnUp->setWhatsThis( + i18n("

Click this button to move the currently-" + "selected filter up one in the list above.

" + "

This is useful since the order of the filters in the list " + "determines the order in which they are tried on messages: " + "The topmost filter gets tried first.

" + "

If you have clicked this button accidentally, you can undo this " + "by clicking on the Down button.

")); + mBtnDown->setWhatsThis( + i18n("

Click this button to move the currently-" + "selected filter down one in the list above.

" + "

This is useful since the order of the filters in the list " + "determines the order in which they are tried on messages: " + "The topmost filter gets tried first.

" + "

If you have clicked this button accidentally, you can undo this " + "by clicking on the Up button.

")); + mBtnBottom->setWhatsThis( + i18n("

Click this button to move the currently-" + "selected filter to bottom of list.

" + "

This is useful since the order of the filters in the list " + "determines the order in which they are tried on messages: " + "The topmost filter gets tried first.

")); + mBtnTop->setWhatsThis( + i18n("

Click this button to move the currently-" + "selected filter to top of list.

" + "

This is useful since the order of the filters in the list " + "determines the order in which they are tried on messages: " + "The topmost filter gets tried first.

")); layout->addWidget(hb); @@ -181,10 +141,31 @@ KMFilterListBox::KMFilterListBox(const QString &title, QWidget *parent) mBtnCopy->setToolTip(i18n("Copy")); mBtnDelete->setToolTip(i18n("Delete")); mBtnRename->setToolTip(i18n("Rename")); - mBtnNew->setWhatsThis(i18n(_wt_filterlist_new)); - mBtnCopy->setWhatsThis(i18n(_wt_filterlist_copy)); - mBtnDelete->setWhatsThis(i18n(_wt_filterlist_delete)); - mBtnRename->setWhatsThis(i18n(_wt_filterlist_rename)); + mBtnNew->setWhatsThis( + i18n("

Click this button to create a new filter.

" + "

The filter will be inserted just before the currently-" + "selected one, but you can always change that " + "later on.

" + "

If you have clicked this button accidentally, you can undo this " + "by clicking on the Delete button.

")); + mBtnCopy->setWhatsThis( + i18n("

Click this button to copy a filter.

" + "

If you have clicked this button accidentally, you can undo this " + "by clicking on the Delete button.

")); + mBtnDelete->setWhatsThis( + i18n("

Click this button to delete the currently-" + "selected filter from the list above.

" + "

There is no way to get the filter back once " + "it is deleted, but you can always leave the " + "dialog by clicking Cancel to discard the " + "changes made.

")); + mBtnRename->setWhatsThis( + i18n("

Click this button to rename the currently-selected filter.

" + "

Filters are named automatically, as long as they start with " + "\"<\".

" + "

If you have renamed a filter accidentally and want automatic " + "naming back, click this button and select Clear followed " + "by OK in the appearing dialog.

")); layout->addWidget(hb);