~ubuntu-branches/ubuntu/raring/calligra/raring-proposed

« back to all changes in this revision

Viewing changes to plugins/vectorshape/VectorShapeConfigWidget.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-08-08 11:05:31 UTC
  • mto: (39.1.1 raring-proposed)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20120808110531-pwqn96dxajv0lhq1
Tags: upstream-2.5.0
ImportĀ upstreamĀ versionĀ 2.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of the KDE project
 
2
 * Copyright (C) 2008 Jan Hambrecht <jaham@gmx.net>
 
3
 * Copyright 2012 Friedrich W. H. Kossebau <kossebau@kde.org>
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Library General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library 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 GNU
 
13
 * Library General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Library General Public License
 
16
 * along with this library; see the file COPYING.LIB.  If not, write to
 
17
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
18
 * Boston, MA 02110-1301, USA.
 
19
 */
 
20
 
 
21
#ifndef VECTORSHAPECONFIGWIDGET_H
 
22
#define VECTORSHAPECONFIGWIDGET_H
 
23
 
 
24
#include <KoShapeConfigWidgetBase.h>
 
25
#include <kurl.h>
 
26
#include <QWidget>
 
27
 
 
28
class VectorShape;
 
29
class KFileWidget;
 
30
class KJob;
 
31
 
 
32
class VectorShapeConfigWidget : public KoShapeConfigWidgetBase
 
33
{
 
34
    Q_OBJECT
 
35
public:
 
36
    VectorShapeConfigWidget();
 
37
    ~VectorShapeConfigWidget();
 
38
 
 
39
    /// reimplemented from KoShapeConfigWidgetBase
 
40
    virtual void open(KoShape *shape);
 
41
    /// reimplemented from KoShapeConfigWidgetBase
 
42
    virtual void save();
 
43
    /// reimplemented from KoShapeConfigWidgetBase
 
44
    virtual bool showOnShapeCreate();
 
45
    /// reimplemented from KoShapeConfigWidgetBase
 
46
    virtual bool showOnShapeSelect();
 
47
 
 
48
private:
 
49
    VectorShape *m_shape;
 
50
    KFileWidget *m_fileWidget;
 
51
};
 
52
 
 
53
class LoadWaiter : public QObject
 
54
{
 
55
    Q_OBJECT
 
56
public:
 
57
    LoadWaiter(VectorShape *shape) : m_vectorShape(shape) { }
 
58
 
 
59
public slots:
 
60
    void setImageData(KJob *job);
 
61
 
 
62
private:
 
63
    VectorShape *m_vectorShape;
 
64
};
 
65
 
 
66
#endif //VECTORSHAPECONFIGWIDGET_H