2020-08-25 17:07:38 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2006 Peter Penz <peter.penz@gmx.at>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2010-08-27 05:26:27 +00:00
|
|
|
#ifndef DOLPHINNEWFILEMENU_H
|
|
|
|
#define DOLPHINNEWFILEMENU_H
|
2007-01-26 00:55:49 +00:00
|
|
|
|
2015-02-25 11:12:55 +00:00
|
|
|
#include "dolphin_export.h"
|
2013-08-28 16:46:45 +00:00
|
|
|
|
2018-03-04 13:38:16 +00:00
|
|
|
#include <KNewFileMenu>
|
|
|
|
|
2007-01-26 00:55:49 +00:00
|
|
|
class KJob;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Represents the 'Create New...' sub menu for the File menu
|
|
|
|
* and the context menu.
|
|
|
|
*
|
2010-01-26 12:04:56 +00:00
|
|
|
* The only difference to KNewFileMenu is the custom error handling.
|
2007-01-26 00:55:49 +00:00
|
|
|
* All errors are shown in the status bar of Dolphin
|
|
|
|
* instead as modal error dialog with an OK button.
|
|
|
|
*/
|
2015-02-25 11:12:55 +00:00
|
|
|
class DOLPHIN_EXPORT DolphinNewFileMenu : public KNewFileMenu
|
2007-01-26 00:55:49 +00:00
|
|
|
{
|
2007-04-09 19:12:54 +00:00
|
|
|
Q_OBJECT
|
2007-01-26 00:55:49 +00:00
|
|
|
|
|
|
|
public:
|
2013-08-16 18:22:33 +00:00
|
|
|
DolphinNewFileMenu(KActionCollection *collection, QObject *parent);
|
2017-11-20 22:25:06 +00:00
|
|
|
~DolphinNewFileMenu() override;
|
2007-01-26 00:55:49 +00:00
|
|
|
|
2021-02-08 22:09:59 +00:00
|
|
|
Q_SIGNALS:
|
2013-08-16 18:22:33 +00:00
|
|
|
void errorMessage(const QString &error);
|
|
|
|
|
2021-02-08 22:09:59 +00:00
|
|
|
protected Q_SLOTS:
|
2010-01-26 12:04:56 +00:00
|
|
|
/** @see KNewFileMenu::slotResult() */
|
2017-11-20 22:25:06 +00:00
|
|
|
void slotResult(KJob *job) override;
|
2007-01-26 00:55:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|