~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to khotkeys/kcm_hotkeys/hotkeys_export_widget.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef HOTKEYS_EXPORT_WIDGET_H
 
2
#define HOTKEYS_EXPORT_WIDGET_H
 
3
/**
 
4
 * Copyright (C) 2009 Michael Jansen <kde@michael-jansen.biz>
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Library General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
14
 * Library General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Library General Public License
 
17
 * along with this library; see the file COPYING.LIB. If not, write to
 
18
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
19
 * Boston, MA 02110-1301, USA.
 
20
 */
 
21
 
 
22
#include "ui_hotkeys_export_widget.h"
 
23
 
 
24
#include "kdialog.h"
 
25
#include "kurl.h"
 
26
 
 
27
#include <QtGui/QWidget>
 
28
 
 
29
 
 
30
/**
 
31
 * @author Michael Jansen <kde@michael-jansen.biz>
 
32
 */
 
33
class KHotkeysExportWidget : public QWidget
 
34
    {
 
35
    Q_OBJECT
 
36
 
 
37
public:
 
38
 
 
39
    KHotkeysExportWidget(QWidget *parent);
 
40
    virtual ~KHotkeysExportWidget();
 
41
 
 
42
    // The layout
 
43
    Ui::KHotkeysExportWidget ui;
 
44
 
 
45
    }; // KHotkeysExportWidget
 
46
 
 
47
/**
 
48
 * @author Michael Jansen <kde@michael-jansen.biz>
 
49
 */
 
50
class KHotkeysExportDialog : public KDialog
 
51
    {
 
52
public:
 
53
    KHotkeysExportDialog(QWidget*);
 
54
    virtual ~KHotkeysExportDialog();
 
55
 
 
56
    QString importId() const;
 
57
 
 
58
    bool allowMerging() const;
 
59
    void setAllowMerging(bool);
 
60
    void setImportId(const QString &id);
 
61
    int state() const;
 
62
    KUrl url() const;
 
63
 
 
64
private:
 
65
 
 
66
    KHotkeysExportWidget *w;
 
67
    }; // KHotkeysExportDialog
 
68
 
 
69
 
 
70
#endif /* HOTKEYS_EXPORT_WIDGET_H */