From d448f4f35d286cae45a62f5a9c1a3be81202f92b Mon Sep 17 00:00:00 2001 From: Ahmet Hakan Çelik Date: Thu, 23 May 2024 13:25:03 +0000 Subject: Add "Move to New Folder…" action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit introduces an action which creates a new folder with a name specified by the user and moves all the currently selected items there in one go. This action is implemented as a KFileItemActionPlugin which means users can disable it on Dolphin's context menu settings page. BUG: 484555 --- src/itemactions/movetonewfolderitemaction.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/itemactions/movetonewfolderitemaction.h (limited to 'src/itemactions/movetonewfolderitemaction.h') diff --git a/src/itemactions/movetonewfolderitemaction.h b/src/itemactions/movetonewfolderitemaction.h new file mode 100644 index 000000000..e690a35e1 --- /dev/null +++ b/src/itemactions/movetonewfolderitemaction.h @@ -0,0 +1,28 @@ +/* + * SPDX-FileCopyrightText: 2024 Ahmet Hakan Çelik + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef MOVETONEWFOLDERITEMACTION_H +#define MOVETONEWFOLDERITEMACTION_H + +#include +#include + +class QAction; +class QWidget; + +class KNewFileMenu; + +class MoveToNewFolderItemAction : public KAbstractFileItemActionPlugin +{ + Q_OBJECT + +public: + MoveToNewFolderItemAction(QObject *parent); + + QList actions(const KFileItemListProperties &fileItemInfos, QWidget *parentWidget) override; +}; + +#endif // MOVETONEWFOLDERITEMACTION_H -- cgit v1.3.1