~smartboyhw/ubuntu/raring/calligra/2.6.0-0ubuntu1

« back to all changes in this revision

Viewing changes to krita/ui/kis_doc2.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-10-23 21:09:16 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20121023210916-m82w6zxnxhaxz7va
Tags: 1:2.5.90-0ubuntu1
* New upstream alpha release (LP: #1070436)
  - Add libkactivities-dev and libopenimageio-dev to build-depends
  - Add kubuntu_build_calligraactive.diff to build calligraactive by default
  - Add package for calligraauthor and move files that are shared between
    calligrawords and calligraauthor to calligrawords-common
* Document the patches
* Remove numbers from patches so they follow the same naming scheme as
  the rest of our patches.
* calligra-data breaks replaces krita-data (<< 1:2.5.3) (LP: #1071686)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <KoDocument.h>
28
28
 
29
29
#include "kis_types.h"
30
 
 
 
30
#include "kis_part2.h"
31
31
#include <krita_export.h>
32
32
#include <kis_painting_assistant.h>
33
33
 
34
34
class QString;
35
35
 
 
36
class KoColor;
36
37
class KoColorSpace;
37
 
class KoColor;
 
38
class KoPart2;
 
39
class KoShapeBasedDocumentBase;
38
40
class KoShapeLayer;
39
41
 
40
 
class KoShapeBasedDocumentBase;
41
 
class KisView2;
42
42
class KisChildDoc;
43
43
class KisUndoStore;
44
44
class KisPaintingAssistant;
 
45
class KisView2;
45
46
 
46
47
/**
47
48
 * The class that represents a Krita document containing content and
63
64
    Q_OBJECT
64
65
 
65
66
public:
66
 
    KisDoc2(QObject* parent = 0);
 
67
    KisDoc2(KoPart* parent);
67
68
    virtual ~KisDoc2();
68
69
 
69
70
public:
79
80
    virtual bool loadXML(const KoXmlDocument& doc, KoStore* store);
80
81
 
81
82
    virtual QByteArray mimeType() const;
82
 
    virtual QList<KoDocument::CustomDocumentWidgetItem> createCustomDocumentWidgets(QWidget *parent);
83
83
 
84
84
    /**
85
85
     * Draw the image embedded in another Calligra document
86
86
     */
87
87
    virtual void paintContent(QPainter& painter, const QRect& rect);
88
88
 
89
 
    void showStartUpWidget(KoMainWindow* parent, bool alwaysShow);
90
 
 
91
89
    /// Generate a scaled-down pixmap of the image projection that fits in size
92
90
    virtual QPixmap generatePreview(const QSize& size);
93
91
 
99
97
     */
100
98
    virtual void initEmpty();
101
99
 
102
 
    void showErrorAndDie();
 
100
    void setImageModified();
103
101
 
104
102
public:
105
103
 
166
164
 
167
165
    void sigLoadingFinished();
168
166
 
169
 
public:
170
 
 
171
 
    // Overide KoDocument
172
 
    virtual KoView* createViewInstance(QWidget *parent);
173
167
 
174
168
protected slots:
175
169
 
176
170
    void slotLoadingFinished();
177
171
 
178
 
    // Overide KoDocument
179
 
    virtual void openExistingFile(const KUrl& url);
180
 
    virtual void openTemplate(const KUrl& url);
181
 
 
182
172
private slots:
183
173
 
184
174
    void undoIndexChanged(int idx);