~ubuntu-branches/ubuntu/natty/kdebase/natty-proposed

« back to all changes in this revision

Viewing changes to apps/dolphin/src/dolphinnewfilemenu.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-11-25 16:00:47 UTC
  • mfrom: (1.1.53 upstream)
  • Revision ID: james.westby@ubuntu.com-20101125160047-bsycodsp50o8su5s
Tags: 4:4.5.80-0ubuntu1
* New upstream beta release
* Drop kubuntu_06_simple_aboutpage.diff, didn't apply and no point
  keeping a distro patch to an app we don't ship by default
* Drop kubuntu_23_konqueror_spinner_in_toolbar.diff now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2006 by Peter Penz                                      *
 
3
 *   peter.penz@gmx.at                                                     *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 *                                                                         *
 
10
 *   This program is distributed in the hope that it will be useful,       *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
13
 *   GNU General Public License for more details.                          *
 
14
 *                                                                         *
 
15
 *   You should have received a copy of the GNU General Public License     *
 
16
 *   along with this program; if not, write to the                         *
 
17
 *   Free Software Foundation, Inc.,                                       *
 
18
 *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
 
19
 ***************************************************************************/
 
20
 
 
21
#ifndef DOLPHINNEWFILEMENU_H
 
22
#define DOLPHINNEWFILEMENU_H
 
23
 
 
24
#include <knewfilemenu.h>
 
25
 
 
26
class DolphinMainWindow;
 
27
class KJob;
 
28
 
 
29
/**
 
30
 * @brief Represents the 'Create New...' sub menu for the File menu
 
31
 *        and the context menu.
 
32
 *
 
33
 * The only difference to KNewFileMenu is the custom error handling.
 
34
 * All errors are shown in the status bar of Dolphin
 
35
 * instead as modal error dialog with an OK button.
 
36
 */
 
37
class DolphinNewFileMenu : public KNewFileMenu
 
38
{
 
39
    Q_OBJECT
 
40
 
 
41
public:
 
42
    DolphinNewFileMenu(QWidget* parent, DolphinMainWindow* mainWin);
 
43
    virtual ~DolphinNewFileMenu();
 
44
 
 
45
protected slots:
 
46
    /** @see KNewFileMenu::slotResult() */
 
47
    virtual void slotResult(KJob* job);
 
48
 
 
49
private:
 
50
    DolphinMainWindow* m_mainWin;
 
51
};
 
52
 
 
53
#endif