2007-01-26 00:55:49 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* 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 *
|
|
|
|
***************************************************************************/
|
|
|
|
|
2010-08-27 05:26:27 +00:00
|
|
|
#ifndef DOLPHINNEWFILEMENU_H
|
|
|
|
#define DOLPHINNEWFILEMENU_H
|
2007-01-26 00:55:49 +00:00
|
|
|
|
2011-02-10 09:59:35 +00:00
|
|
|
#include <KNewFileMenu>
|
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
|
|
|
|
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);
|
2010-08-27 05:26:27 +00:00
|
|
|
virtual ~DolphinNewFileMenu();
|
2007-01-26 00:55:49 +00:00
|
|
|
|
2013-08-16 18:22:33 +00:00
|
|
|
signals:
|
|
|
|
void errorMessage(const QString& error);
|
|
|
|
|
2007-01-26 00:55:49 +00:00
|
|
|
protected slots:
|
2010-01-26 12:04:56 +00:00
|
|
|
/** @see KNewFileMenu::slotResult() */
|
2014-11-03 22:52:18 +00:00
|
|
|
virtual void slotResult(KJob* job) Q_DECL_OVERRIDE;
|
2007-01-26 00:55:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|