toggleSelectionModeAction->setWhatsThis(xi18nc("@info:whatsthis","<para>This application only knows which files or folders should be acted on if they are"
* Changes the background color of @p widget to a distinct color scheme matching color which makes it clear that the widget belongs to the selection mode.
* The background color of @p widget will from now on be updated automatically when the palette of the application changes.
*/
voidcontrolBackgroundColor(QWidget*widget);
private:
BackgroundColorHelper();
/**
* Called when the palette of the application changes.
* Triggers updateBackgroundColor() and the updates the background color of m_colorControlledWidgets.
* @see updateBackgroundColor
*/
voidslotPaletteChanged();
/** Calculates a new m_colorControlledWidgets based on the current colour scheme of the application. */
voidupdateBackgroundColor();
private:
/// The widgets who have given up control over the background color to BackgroundColorHelper.
// i18n: A more elaborate and clearly worded version of the Copy action
// %2 is a textual representation of the currently selected files or folders. This can be the name of
// the file/files like "file1" or "file1, file2 and file3" or an aggregate like "8 Selected Folders".
// If this sort of word puzzle can not be correctly translated in your language, translate it as "NULL" (without the quotes)
// and a fallback will be used.
buttonText=i18ncp("@action","Copy %2 to the Clipboard","Copy %2 to the Clipboard",selectedItems.count(),fileItemListToString(selectedItems,fontMetrics.averageCharWidth()*20,fontMetrics));
// All these long lines can not be broken up with line breaks becaue the i18n call should be completely
// in the line following the "i18n:" comment without any line breaks within the i18n call
// or the comment might not be correctly extracted. See: https://commits.kde.org/kxmlgui/a31135046e1b3335b5d7bbbe6aa9a883ce3284c1
break;
caseBottomBar::CopyLocationContents:
buttonText=i18ncp("@action A more elaborate and clearly worded version of the Copy Location action",
"Copy the Location of %2 to the Clipboard","Copy the Location of %2 to the Clipboard",selection.count(),
// i18n: A more elaborate and clearly worded version of the Copy Location action
// %2 is a textual representation of the currently selected files or folders. This can be the name of
// the file/files like "file1" or "file1, file2 and file3" or an aggregate like "8 Selected Folders".
// If this sort of word puzzle can not be correctly translated in your language, translate it as "NULL" (without the quotes)
// and a fallback will be used.
buttonText=i18ncp("@action","Copy the Location of %2 to the Clipboard","Copy the Location of %2 to the Clipboard",selectedItems.count(),fileItemListToString(selectedItems,fontMetrics.averageCharWidth()*20,fontMetrics));
break;
caseBottomBar::CutContents:
buttonText=i18ncp("@action A more elaborate and clearly worded version of the Cut action",
"Cut %2 to the Clipboard","Cut %2 to the Clipboard",selection.count(),
// i18n: A more elaborate and clearly worded version of the Cut action
// %2 is a textual representation of the currently selected files or folders. This can be the name of
// the file/files like "file1" or "file1, file2 and file3" or an aggregate like "8 Selected Folders".
// If this sort of word puzzle can not be correctly translated in your language, translate it as "NULL" (without the quotes)
// and a fallback will be used.
buttonText=i18ncp("@action","Cut %2 to the Clipboard","Cut %2 to the Clipboard",selectedItems.count(),fileItemListToString(selectedItems,fontMetrics.averageCharWidth()*20,fontMetrics));
break;
caseBottomBar::DeleteContents:
buttonText=i18ncp("@action A more elaborate and clearly worded version of the Delete action",
// i18n: A more elaborate and clearly worded version of the Trash action
// %2 is a textual representation of the currently selected files or folders. This can be the name of
// the file/files like "file1" or "file1, file2 and file3" or an aggregate like "8 Selected Folders".
// If this sort of word puzzle can not be correctly translated in your language, translate it as "NULL" (without the quotes)
// and a fallback will be used.
buttonText=i18ncp("@action","Move %2 to the Trash","Move %2 to the Trash",selectedItems.count(),fileItemListToString(selectedItems,fontMetrics.averageCharWidth()*20,fontMetrics));
break;
caseBottomBar::RenameContents:
buttonText=i18ncp("@action A more elaborate and clearly worded version of the Rename action",