2 * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at>
4 * SPDX-License-Identifier: GPL-2.0-or-later
6 #ifndef DOLPHINNEWFILEMENU_H
7 #define DOLPHINNEWFILEMENU_H
9 #include "dolphin_export.h"
11 #include <KNewFileMenu>
16 * @brief Represents the 'Create New...' sub menu for the File menu
17 * and the context menu.
19 * The only difference to KNewFileMenu is the custom error handling.
20 * All errors are shown in the status bar of Dolphin
21 * instead as modal error dialog with an OK button.
23 class DOLPHIN_EXPORT DolphinNewFileMenu
: public KNewFileMenu
28 DolphinNewFileMenu(QAction
*createDirAction
, QAction
*createFileAction
, QObject
*parent
);
29 ~DolphinNewFileMenu() override
;
32 void errorMessage(const QString
&error
);
35 /** @see KNewFileMenu::slotResult() */
36 void slotResult(KJob
*job
) override
;