]> cloud.milkyroute.net Git - dolphin.git/blob - src/dolphinnewfilemenu.h
Add missing KF6::ColorScheme link
[dolphin.git] / src / dolphinnewfilemenu.h
1 /*
2 * SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 #ifndef DOLPHINNEWFILEMENU_H
7 #define DOLPHINNEWFILEMENU_H
8
9 #include "dolphin_export.h"
10
11 #include <KNewFileMenu>
12
13 class KJob;
14
15 /**
16 * @brief Represents the 'Create New...' sub menu for the File menu
17 * and the context menu.
18 *
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.
22 */
23 class DOLPHIN_EXPORT DolphinNewFileMenu : public KNewFileMenu
24 {
25 Q_OBJECT
26
27 public:
28 DolphinNewFileMenu(QAction *createDirAction, QAction *createFileAction, QObject *parent);
29 ~DolphinNewFileMenu() override;
30
31 Q_SIGNALS:
32 void errorMessage(const QString &error);
33
34 protected Q_SLOTS:
35 /** @see KNewFileMenu::slotResult() */
36 void slotResult(KJob *job) override;
37 };
38
39 #endif