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

« back to all changes in this revision

Viewing changes to krita/plugins/paintops/hairy/kis_hairy_ink_option.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   This library is free software; you can redistribute it and/or
 
3
   modify it under the terms of the GNU Library General Public
 
4
   License version 2 as published by the Free Software Foundation.
 
5
 
 
6
   This library is distributed in the hope that it will be useful,
 
7
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
8
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9
   Library General Public License for more details.
 
10
 
 
11
   You should have received a copy of the GNU Library General Public License
 
12
   along with this library; see the file COPYING.LIB.  If not, write to
 
13
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
14
   Boston, MA 02110-1301, USA.
 
15
*/
 
16
 
 
17
#ifndef KIS_HAIRY_INK_OPTION_H
 
18
#define KIS_HAIRY_INK_OPTION_H
 
19
 
 
20
#include <kis_paintop_option.h>
 
21
#include <krita_export.h>
 
22
 
 
23
const QString HAIRY_INK_AMOUNT = "HairyInk/inkAmount";
 
24
const QString HAIRY_INK_USE_SATURATION = "HairyInk/useSaturation";
 
25
const QString HAIRY_INK_USE_OPACITY = "HairyInk/useOpacity";
 
26
const QString HAIRY_INK_USE_WEIGHTS = "HairyInk/useWeights";
 
27
const QString HAIRY_INK_PRESSURE_WEIGHT = "HairyInk/pressureWeights";
 
28
const QString HAIRY_INK_BRISTLE_LENGTH_WEIGHT = "HairyInk/bristleLengthWeights";
 
29
const QString HAIRY_INK_BRISTLE_INK_AMOUNT_WEIGHT = "HairyInk/bristleInkAmountWeight";
 
30
const QString HAIRY_INK_DEPLETION_WEIGHT = "HairyInk/inkDepletionWeight";
 
31
const QString HAIRY_INK_DEPLETION_CURVE = "HairyInk/inkDepletionCurve";
 
32
const QString HAIRY_INK_SOAK = "HairyInk/soak";
 
33
 
 
34
class KisInkOptionsWidget;
 
35
 
 
36
class KisHairyInkOption : public KisPaintOpOption
 
37
{
 
38
public:
 
39
    KisHairyInkOption();
 
40
    ~KisHairyInkOption();
 
41
 
 
42
    int inkAmount() const;
 
43
    QList<float> curve() const;
 
44
 
 
45
    bool useSaturation() const;
 
46
    bool useOpacity() const;
 
47
    bool useWeights() const;
 
48
 
 
49
    int pressureWeight() const;
 
50
    int bristleLengthWeight() const;
 
51
    int bristleInkAmountWeight() const;
 
52
    int inkDepletionWeight() const;
 
53
 
 
54
    int m_curveSamples;
 
55
 
 
56
    void writeOptionSetting(KisPropertiesConfiguration* config) const;
 
57
    void readOptionSetting(const KisPropertiesConfiguration* config);
 
58
private:
 
59
    KisInkOptionsWidget * m_options;
 
60
};
 
61
 
 
62
#endif // KIS_HAIRY_SHAPE_OPTION_H
 
63