~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to krita/image/brushengine/kis_paintop_factory.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  Copyright (c) 2008 Boudewijn Rempt <boud@valdyas.org>
3
 
 *
 
3
 *  Copyright (c) 2010 Lukáš Tvrdý <lukast.dev@gmail.com>
4
4
 *  This program is free software; you can redistribute it and/or modify
5
5
 *  it under the terms of the GNU General Public License as published by
6
6
 *  the Free Software Foundation; either version 2 of the License, or
23
23
#include "krita_export.h"
24
24
#include <QObject>
25
25
#include <QString>
 
26
#include <QStringList>
26
27
 
27
28
class KoColorSpace;
28
29
class KisPainter;
42
43
 
43
44
public:
44
45
 
45
 
    KisPaintOpFactory();
 
46
    KisPaintOpFactory(const QStringList & whiteListedCompositeOps = QStringList());
46
47
    virtual ~KisPaintOpFactory() {}
47
48
 
 
49
    static QString categoryStable();
 
50
    static QString categoryExperimental();
 
51
 
48
52
    /**
49
53
     * Create a KisPaintOp with the given settings and painter.
50
54
     * @param settings the settings associated with the input device
53
57
    virtual KisPaintOp * createOp(const KisPaintOpSettingsSP settings, KisPainter * painter, KisImageWSP image) = 0;
54
58
    virtual QString id() const = 0;
55
59
    virtual QString name() const = 0;
 
60
    virtual QString category() const = 0;
 
61
 
 
62
    /**
 
63
     * List of usually hidden compositeops that are useful for this paintop.
 
64
     */
 
65
    QStringList whiteListedCompositeOps() const;
 
66
 
56
67
 
57
68
    /**
58
69
     * The filename of the pixmap we can use to represent this paintop in the ui.
76
87
     */
77
88
    virtual KisPaintOpSettingsWidget* createSettingsWidget(QWidget* parent) = 0;
78
89
 
 
90
    /**
 
91
     * Set the priority of this paintop, as it is shown in the UI; lower number means
 
92
     * it will be show more to the front of the list.
 
93
     * @param newPriority the priority
 
94
     */
 
95
    void setPriority(int newPriority);
 
96
    
 
97
    int priority() const;
 
98
    
 
99
private:
 
100
    QStringList m_whiteListedCompositeOps;
 
101
    int m_priority;
79
102
};
80
103
 
81
104
#endif