X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/ceba0f6f6a07babac230d1f136d16d34629b4cf3..41c7a9267f32424eda40c73ff691688173a47dbe:/src/dolphinnewfilemenu.h diff --git a/src/dolphinnewfilemenu.h b/src/dolphinnewfilemenu.h index 186c95c5a..d5235db9b 100644 --- a/src/dolphinnewfilemenu.h +++ b/src/dolphinnewfilemenu.h @@ -1,29 +1,15 @@ -/*************************************************************************** - * Copyright (C) 2006 by Peter Penz * - * peter.penz@gmx.at * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * - ***************************************************************************/ - +/* + * SPDX-FileCopyrightText: 2006 Peter Penz + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ #ifndef DOLPHINNEWFILEMENU_H #define DOLPHINNEWFILEMENU_H +#include "dolphin_export.h" + #include -class DolphinMainWindow; class KJob; /** @@ -34,20 +20,20 @@ class KJob; * All errors are shown in the status bar of Dolphin * instead as modal error dialog with an OK button. */ -class DolphinNewFileMenu : public KNewFileMenu +class DOLPHIN_EXPORT DolphinNewFileMenu : public KNewFileMenu { Q_OBJECT public: - DolphinNewFileMenu(QWidget* parent, DolphinMainWindow* mainWin); - virtual ~DolphinNewFileMenu(); + DolphinNewFileMenu(QAction *createDirAction, QAction *createFileAction, QObject *parent); + ~DolphinNewFileMenu() override; -protected slots: - /** @see KNewFileMenu::slotResult() */ - virtual void slotResult(KJob* job); +Q_SIGNALS: + void errorMessage(const QString &error); -private: - DolphinMainWindow* m_mainWin; +protected Q_SLOTS: + /** @see KNewFileMenu::slotResult() */ + void slotResult(KJob *job) override; }; #endif