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

« back to all changes in this revision

Viewing changes to libs/flake/KoFlake.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
1
/* This file is part of the KDE project
2
2
 * Copyright (C) 2006 Thomas Zander <zander@kde.org>
 
3
 * Copyright (C) 2008 Jan Hambrecht <jaham@gmx.net>
 
4
 * Copyright (C) 2010 Thorsten Zachmann <zachmann@kde.org>
3
5
 *
4
6
 * This library is free software; you can redistribute it and/or
5
7
 * modify it under the terms of the GNU Library General Public
19
21
#ifndef KOFLAKE_H
20
22
#define KOFLAKE_H
21
23
 
 
24
#include "flake_export.h"
 
25
 
 
26
#include <QtGui/QBrush>
 
27
 
 
28
class KoShape;
 
29
class QGradient;
 
30
class KoShapeBackground;
 
31
 
22
32
/**
23
33
 * Flake reference
24
34
 */
63
73
        CenteredPosition ///< the centred corner
64
74
    };
65
75
 
66
 
    /// Maximal possible shape z-index
67
 
    int maxZIndex();
 
76
    /**
 
77
     * Used to see which style type is active
 
78
     */
 
79
    enum StyleType {
 
80
        Background, ///< the background / fill style is active
 
81
        Foreground  ///< the foreground / border style is active
 
82
    };
 
83
 
 
84
    /// clones the given gradient
 
85
    FLAKE_EXPORT QGradient *cloneGradient(const QGradient *gradient);
 
86
 
 
87
    /**
 
88
     * Convert absolute to relative position
 
89
     *
 
90
     * @param absolute absolute position
 
91
     * @param size for which the relative position needs to be calculated
 
92
     *
 
93
     * @return relative position
 
94
     */
 
95
    FLAKE_EXPORT QPointF toRelative(const QPointF &absolute, const QSizeF &size);
 
96
 
 
97
    /**
 
98
     * Convert relative size to absolute size
 
99
     *
 
100
     * @param relative relative position
 
101
     * @param size for which the absolute position needs to be calculated
 
102
     *
 
103
     * @return absolute position
 
104
     */
 
105
    FLAKE_EXPORT QPointF toAbsolute(const QPointF &relative, const QSizeF &size);
68
106
}
69
107
 
70
108
#endif