~ubuntu-branches/ubuntu/feisty/gwenview/feisty

« back to all changes in this revision

Viewing changes to src/gvcore/deletedialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Richard A. Johnson
  • Date: 2006-09-17 23:01:00 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20060917230100-hgrx2j9or8vvt9h1
Tags: 1.4.0-0ubuntu1
New Upstream Release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
    begin                : Tue Aug 31 21:54:20 EST 2004
 
3
    copyright            : (C) 2004 by Michael Pyne <michael.pyne@kdemail.net>
 
4
                           (C) 2006 by Ian Monroe <ian@monroe.nu>
 
5
                           (C) 2006 by Aurelien Gateau <aurelien.gateau@free.fr>
 
6
***************************************************************************/
 
7
 
 
8
/***************************************************************************
 
9
 *                                                                         *
 
10
 *   This program is free software; you can redistribute it and/or modify  *
 
11
 *   it under the terms of the GNU General Public License as published by  *
 
12
 *   the Free Software Foundation; either version 2 of the License, or     *
 
13
 *   (at your option) any later version.                                   *
 
14
 *                                                                         *
 
15
 ***************************************************************************/
 
16
 
 
17
#ifndef _DELETEDIALOG_H
 
18
#define _DELETEDIALOG_H
 
19
 
 
20
 
 
21
#include <kdialogbase.h>
 
22
 
 
23
class DeleteDialogBase;
 
24
class KGuiItem;
 
25
 
 
26
namespace Gwenview {
 
27
 
 
28
class DeleteDialog : public KDialogBase
 
29
{
 
30
    Q_OBJECT
 
31
 
 
32
public:
 
33
    DeleteDialog(QWidget *parent, const char *name = "delete_dialog");
 
34
 
 
35
    void setURLList(const KURL::List &files);
 
36
    bool shouldDelete() const;
 
37
 
 
38
    QSize sizeHint() const;
 
39
 
 
40
protected slots:
 
41
    virtual void accept();
 
42
 
 
43
private slots:
 
44
    void updateUI();
 
45
 
 
46
private:
 
47
    DeleteDialogBase *m_widget;
 
48
    KGuiItem m_trashGuiItem;
 
49
};
 
50
 
 
51
} // namespace
 
52
 
 
53
#endif
 
54
 
 
55
// vim: set et ts=4 sw=4: