summaryrefslogtreecommitdiffstats
path: root/python/pykde/sip/kdefx
diff options
context:
space:
mode:
Diffstat (limited to 'python/pykde/sip/kdefx')
-rw-r--r--python/pykde/sip/kdefx/kcpuinfo.sip52
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde320.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde321.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde322.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde323.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde330.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde331.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde332.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde340.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde341.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde342.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde343.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde350.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde351.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde352.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefx-kde353.diff1
-rw-r--r--python/pykde/sip/kdefx/kdefxmod.sip41
-rw-r--r--python/pykde/sip/kdefx/kdefxmod.sip.in41
-rw-r--r--python/pykde/sip/kdefx/kdrawutil.sip41
-rw-r--r--python/pykde/sip/kdefx/kimageeffect.sip205
-rw-r--r--python/pykde/sip/kdefx/kpixmap.sip65
-rw-r--r--python/pykde/sip/kdefx/kpixmapeffect.sip85
-rw-r--r--python/pykde/sip/kdefx/kpixmapsplitter.sip46
-rw-r--r--python/pykde/sip/kdefx/kstyle.sip126
24 files changed, 717 insertions, 0 deletions
diff --git a/python/pykde/sip/kdefx/kcpuinfo.sip b/python/pykde/sip/kdefx/kcpuinfo.sip
new file mode 100644
index 00000000..29976f52
--- /dev/null
+++ b/python/pykde/sip/kdefx/kcpuinfo.sip
@@ -0,0 +1,52 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kdefx version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_2_0 - )
+
+class KCPUInfo
+{
+%TypeHeaderCode
+#include <kcpuinfo.h>
+%End
+
+
+public:
+
+ enum Extensions
+ {
+ IntelMMX,
+ IntelSSE,
+ IntelSSE2,
+ AMD3DNOW,
+ AltiVec
+ };
+
+ static bool haveExtension (uint);
+
+}; // class KCPUInfo
+
+%End
+
diff --git a/python/pykde/sip/kdefx/kdefx-kde320.diff b/python/pykde/sip/kdefx/kdefx-kde320.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde320.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde321.diff b/python/pykde/sip/kdefx/kdefx-kde321.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde321.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde322.diff b/python/pykde/sip/kdefx/kdefx-kde322.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde322.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde323.diff b/python/pykde/sip/kdefx/kdefx-kde323.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde323.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde330.diff b/python/pykde/sip/kdefx/kdefx-kde330.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde330.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde331.diff b/python/pykde/sip/kdefx/kdefx-kde331.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde331.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde332.diff b/python/pykde/sip/kdefx/kdefx-kde332.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde332.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde340.diff b/python/pykde/sip/kdefx/kdefx-kde340.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde340.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde341.diff b/python/pykde/sip/kdefx/kdefx-kde341.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde341.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde342.diff b/python/pykde/sip/kdefx/kdefx-kde342.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde342.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde343.diff b/python/pykde/sip/kdefx/kdefx-kde343.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde343.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde350.diff b/python/pykde/sip/kdefx/kdefx-kde350.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde350.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde351.diff b/python/pykde/sip/kdefx/kdefx-kde351.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde351.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde352.diff b/python/pykde/sip/kdefx/kdefx-kde352.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde352.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefx-kde353.diff b/python/pykde/sip/kdefx/kdefx-kde353.diff
new file mode 100644
index 00000000..147a7f5a
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefx-kde353.diff
@@ -0,0 +1 @@
++ %Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefxmod.sip b/python/pykde/sip/kdefx/kdefxmod.sip
new file mode 100644
index 00000000..888976c1
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefxmod.sip
@@ -0,0 +1,41 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kdefx version KDE_3_5_2
+
+%Copying
+
+ This software is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this library; see the file COPYING.
+ If not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+%End
+
+%Module kdefx
+
+%Import qt/qtmod.sip
+%Import dcopmod.sip
+%Import kdecoremod.sip
+
+%Include kdrawutil.sip
+%Include kimageeffect.sip
+%Include kpixmap.sip
+%Include kpixmapeffect.sip
+%Include kpixmapsplitter.sip
+%Include kstyle.sip
+%Include kcpuinfo.sip
diff --git a/python/pykde/sip/kdefx/kdefxmod.sip.in b/python/pykde/sip/kdefx/kdefxmod.sip.in
new file mode 100644
index 00000000..e9b85db1
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdefxmod.sip.in
@@ -0,0 +1,41 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kdefx version KDE_3_5_2
+
+%Copying
+
+ This software is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of
+ the License, or (at your option) any later version.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this library; see the file COPYING.
+ If not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+%End
+
+%Module kdefx
+
+%Import qt/qtmod.sip
+%Import dcopmod.sip
+%Import kdecoremod.sip
+
+%Include kdrawutil.sip
+%Include kimageeffect.sip
+%Include kpixmap.sip
+%Include kpixmapeffect.sip
+%Include kpixmapsplitter.sip
+%Include kstyle.sip
+@mark@
diff --git a/python/pykde/sip/kdefx/kdrawutil.sip b/python/pykde/sip/kdefx/kdrawutil.sip
new file mode 100644
index 00000000..2f7f917e
--- /dev/null
+++ b/python/pykde/sip/kdefx/kdrawutil.sip
@@ -0,0 +1,41 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kdefx version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+%ModuleHeaderCode
+#include <kdrawutil.h>
+#include <sipqtQRegion.h>
+#include <sipqtQBrush.h>
+%End
+
+void kDrawNextButton (QPainter*, const QRect&, const QColorGroup&, bool = 0, const QBrush* = 0);
+void kDrawNextButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0);
+void kDrawBeButton (QPainter*, QRect&, const QColorGroup&, bool = 0, const QBrush* = 0);
+void kDrawBeButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0);
+void kDrawRoundButton (QPainter*, const QRect&, const QColorGroup&, bool = 0);
+void kDrawRoundButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0);
+void kRoundMaskRegion (QRegion&, int, int, int, int);
+void kDrawRoundMask (QPainter*, int, int, int, int, bool = 0);
+void kColorBitmaps (QPainter*, const QColorGroup&, int, int, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0, QBitmap* = 0);
+void kColorBitmaps (QPainter*, const QColorGroup&, int, int, int, int, bool = 1, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0, const uchar* = 0);
diff --git a/python/pykde/sip/kdefx/kimageeffect.sip b/python/pykde/sip/kdefx/kimageeffect.sip
new file mode 100644
index 00000000..4079f86f
--- /dev/null
+++ b/python/pykde/sip/kdefx/kimageeffect.sip
@@ -0,0 +1,205 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kdefx version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+class KImageEffect
+{
+%TypeHeaderCode
+#include <kimageeffect.h>
+%End
+
+
+public:
+
+ enum GradientType
+ {
+ VerticalGradient,
+ HorizontalGradient,
+ DiagonalGradient,
+ CrossDiagonalGradient,
+ PyramidGradient,
+ RectangleGradient,
+ PipeCrossGradient,
+ EllipticGradient
+ };
+
+
+ enum RGBComponent
+ {
+ Red,
+ Green,
+ Blue,
+ Gray,
+ All
+ };
+
+
+ enum Lighting
+ {
+ NorthLite,
+ NWLite,
+ WestLite,
+ SWLite,
+ SouthLite,
+ SELite,
+ EastLite,
+ NELite
+ };
+
+
+ enum ModulationType
+ {
+ Intensity,
+ Saturation,
+ HueShift,
+ Contrast
+ };
+
+
+ enum NoiseType
+ {
+ UniformNoise,
+ GaussianNoise,
+ MultiplicativeGaussianNoise,
+ ImpulseNoise,
+ LaplacianNoise,
+ PoissonNoise
+ };
+
+
+ enum RotateDirection
+ {
+ Rotate90,
+ Rotate180,
+ Rotate270
+ };
+
+
+%If ( KDE_3_3_0 - )
+
+ enum BumpmapType
+ {
+ Linear,
+ Spherical,
+ Sinuosidal
+ };
+
+%End
+
+ static QImage gradient (const QSize&, const QColor&, const QColor&, KImageEffect::GradientType, int = 3);
+ static QImage unbalancedGradient (const QSize&, const QColor&, const QColor&, KImageEffect::GradientType, int = 100, int = 100, int = 3);
+ static QImage& blend (const QColor&, QImage&, float);
+ static QImage& blend (QImage&, QImage&, float);
+ static QImage& blend (QImage&, float, const QColor&, KImageEffect::GradientType, bool = 0);
+ static QImage& blend (QImage&, QImage&, KImageEffect::GradientType, int = 100, int = 100);
+ static QImage& blend (QImage&, QImage&, QImage&, KImageEffect::RGBComponent);
+ static bool blend (const QImage&, const QImage&, QImage&);
+ static bool blend (int& /In, Out/, int& /In, Out/, const QImage&, const QImage&, QImage&);
+ static bool blendOnLower (int, int, const QImage&, const QImage&);
+
+%If ( KDE_3_2_0 - )
+ static void blendOnLower (const QImage&, const QPoint&, QImage&, const QRect&);
+ static void blendOnLower (const QImage&, const QPoint&, QImage&, const QRect&, float);
+
+ enum Disposition
+ {
+ NoImage,
+ Centered,
+ Tiled,
+ CenterTiled,
+ CenteredMaxpect,
+ TiledMaxpect,
+ Scaled,
+ CenteredAutoFit
+ };
+
+ static QRect computeDestinationRect (const QSize&, KImageEffect::Disposition, QImage&);
+ static void blendOnLower (QImage&, QImage&, KImageEffect::Disposition, float);
+%End
+
+ static QImage& channelIntensity (QImage&, float, KImageEffect::RGBComponent);
+ static QImage& fade (QImage&, float, const QColor&);
+ static QImage& flatten (QImage&, const QColor&, const QColor&, int = 0);
+ static QImage& hash (QImage&, KImageEffect::Lighting = NorthLite , uint = 0);
+ static QImage& intensity (QImage&, float);
+ static QImage& modulate (QImage&, QImage&, bool, KImageEffect::ModulationType, int, KImageEffect::RGBComponent);
+ static QImage& toGray (QImage&, bool = 0);
+ static QImage& desaturate (QImage&, float = 0.3);
+ static QImage& contrast (QImage&, int);
+//ig static QImage& dither (QImage&, const QColor*, int);
+ static QImage& selectedImage (QImage&, const QColor&);
+ static void contrastHSV (QImage&, bool = 1);
+ static void normalize (QImage&);
+ static void equalize (QImage&);
+ static void threshold (QImage&, uint = 128);
+ static void solarize (QImage&, double = 50.0);
+
+%If ( KDE_3_2_0 - )
+ static QImage emboss (QImage&, double, double);
+%End
+
+ static QImage emboss (QImage&);
+ static QImage despeckle (QImage&);
+
+%If ( KDE_3_2_0 - )
+ static QImage charcoal (QImage&, double, double);
+%End
+
+ static QImage charcoal (QImage&, double = 50.0);
+ static QImage rotate (QImage&, KImageEffect::RotateDirection);
+ static QImage sample (QImage&, int, int);
+ static QImage addNoise (QImage&, KImageEffect::NoiseType = GaussianNoise );
+
+%If ( KDE_3_2_0 - )
+ static QImage blur (QImage&, double, double);
+%End
+
+ static QImage blur (QImage&, double = 50.0);
+ static QImage edge (QImage&, double = 50.0);
+ static QImage implode (QImage&, double = 30.0, uint = -1);
+
+%If ( KDE_3_2_0 - )
+ static QImage oilPaintConvolve (QImage&, double);
+%End
+
+ static QImage oilPaint (QImage&, int = 3);
+
+%If ( KDE_3_2_0 - )
+ static QImage sharpen (QImage&, double, double);
+%End
+
+ static QImage sharpen (QImage&, double = 30.0);
+ static QImage spread (QImage&, uint = 3);
+ static QImage shade (QImage&, bool = 1, double = 30.0, double = 30.0);
+ static QImage swirl (QImage&, double = 50.0, uint = -1);
+ static QImage wave (QImage&, double = 25.0, double = 150.0, uint = -1);
+
+%If ( KDE_3_3_0 - )
+ static QImage bumpmap (QImage&, QImage&, double, double, int, int, int, int, int, bool, bool, KImageEffect::BumpmapType, bool);
+%End
+
+
+}; // class KImageEffect
+
diff --git a/python/pykde/sip/kdefx/kpixmap.sip b/python/pykde/sip/kdefx/kpixmap.sip
new file mode 100644
index 00000000..02bd9520
--- /dev/null
+++ b/python/pykde/sip/kdefx/kpixmap.sip
@@ -0,0 +1,65 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kdefx version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+class KPixmap : QPixmap
+{
+%TypeHeaderCode
+#include <qpaintdevice.h>
+#include <qpixmap.h>
+#include <kpixmap.h>
+%End
+
+
+public:
+
+ enum ColorMode
+ {
+ Auto,
+ Color,
+ Mono,
+ LowColor,
+ WebColor
+ };
+
+
+ enum GradientMode
+ {
+ Horizontal,
+ Vertical,
+ Diagonal,
+ CrossDiagonal
+ };
+
+ KPixmap ();
+ KPixmap (const QPixmap&);
+ bool convertFromImage (const QImage&, int);
+ bool convertFromImage (const QImage&, ColorMode = WebColor );
+ bool load (const QString&, const char*, int);
+ bool load (const QString&, const char* = 0, ColorMode = WebColor );
+ bool checkColorTable (const QImage&);
+
+}; // class KPixmap
+
diff --git a/python/pykde/sip/kdefx/kpixmapeffect.sip b/python/pykde/sip/kdefx/kpixmapeffect.sip
new file mode 100644
index 00000000..78e64489
--- /dev/null
+++ b/python/pykde/sip/kdefx/kpixmapeffect.sip
@@ -0,0 +1,85 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kdefx version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+class KPixmapEffect
+{
+%TypeHeaderCode
+#include <kpixmapeffect.h>
+%End
+
+
+public:
+
+ enum GradientType
+ {
+ VerticalGradient,
+ HorizontalGradient,
+ DiagonalGradient,
+ CrossDiagonalGradient,
+ PyramidGradient,
+ RectangleGradient,
+ PipeCrossGradient,
+ EllipticGradient
+ };
+
+
+ enum RGBComponent
+ {
+ Red,
+ Green,
+ Blue
+ };
+
+
+ enum Lighting
+ {
+ NorthLite,
+ NWLite,
+ WestLite,
+ SWLite,
+ SouthLite,
+ SELite,
+ EastLite,
+ NELite
+ };
+
+ static KPixmap& gradient (KPixmap&, const QColor&, const QColor&, KPixmapEffect::GradientType, int = 3);
+ static KPixmap& unbalancedGradient (KPixmap&, const QColor&, const QColor&, KPixmapEffect::GradientType, int = 100, int = 100, int = 3);
+ static KPixmap createTiled (const KPixmap&, QSize);
+ static KPixmap& intensity (KPixmap&, float);
+ static KPixmap& channelIntensity (KPixmap&, float, KPixmapEffect::RGBComponent);
+ static KPixmap& blend (KPixmap&, float, const QColor&, KPixmapEffect::GradientType, bool = 0, int = 3);
+ static KPixmap& hash (KPixmap&, KPixmapEffect::Lighting = NorthLite , uint = 0, int = 3);
+ static KPixmap pattern (const KPixmap&, QSize, const QColor&, const QColor&, int = 8);
+ static KPixmap& fade (KPixmap&, double, const QColor&);
+ static KPixmap& toGray (KPixmap&, bool = 0);
+ static KPixmap& desaturate (KPixmap&, float = 0.3);
+ static KPixmap& contrast (KPixmap&, int);
+ static KPixmap& dither (KPixmap&, const QColor*, int);
+ static KPixmap selectedPixmap (const KPixmap&, const QColor&);
+
+}; // class KPixmapEffect
+
diff --git a/python/pykde/sip/kdefx/kpixmapsplitter.sip b/python/pykde/sip/kdefx/kpixmapsplitter.sip
new file mode 100644
index 00000000..3f8d3883
--- /dev/null
+++ b/python/pykde/sip/kdefx/kpixmapsplitter.sip
@@ -0,0 +1,46 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kdefx version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+class KPixmapSplitter
+{
+%TypeHeaderCode
+#include <kpixmapsplitter.h>
+%End
+
+
+public:
+ KPixmapSplitter ();
+ void setPixmap (const QPixmap&);
+ const QPixmap& pixmap () const;
+ void setItemSize (const QSize&);
+ QSize itemSize () const;
+ void setVSpacing (int);
+ void setHSpacing (int);
+ QRect coordinates (int);
+ QRect coordinates (const QChar&);
+
+}; // class KPixmapSplitter
+
diff --git a/python/pykde/sip/kdefx/kstyle.sip b/python/pykde/sip/kdefx/kstyle.sip
new file mode 100644
index 00000000..c850d0bd
--- /dev/null
+++ b/python/pykde/sip/kdefx/kstyle.sip
@@ -0,0 +1,126 @@
+//
+// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kdefx version KDE 3.5.3
+
+
+// This software is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of
+// the License, or (at your option) any later version.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+class KStyle : QCommonStyle
+{
+%TypeHeaderCode
+#include <kstyle.h>
+%End
+
+
+public:
+ typedef uint KStyleFlags;
+
+ enum KStyleOption
+ {
+ Default,
+ AllowMenuTransparency,
+ FilledFrameWorkaround
+ };
+
+
+ enum KStyleScrollBarType
+ {
+ WindowsStyleScrollBar,
+ PlatinumStyleScrollBar,
+ ThreeButtonScrollBar,
+ NextStyleScrollBar
+ };
+
+ KStyle (KStyle::KStyleFlags = KStyle ::Default , KStyle::KStyleScrollBarType = KStyle ::WindowsStyleScrollBar );
+
+%If ( KDE_3_1_0 - )
+ static QString defaultStyle ();
+%End
+
+ void setScrollBarType (KStyle::KStyleScrollBarType);
+ KStyle::KStyleFlags styleFlags () const;
+ virtual void renderMenuBlendPixmap (KPixmap&, const QColorGroup&, const QPopupMenu*) const;
+
+ enum KStylePrimitive
+ {
+ KPE_DockWindowHandle,
+ KPE_ToolBarHandle,
+ KPE_GeneralHandle,
+ KPE_SliderGroove,
+ KPE_SliderHandle,
+ KPE_ListViewExpander,
+ KPE_ListViewBranch
+ };
+
+ virtual void drawKStylePrimitive (KStyle::KStylePrimitive, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const;
+
+ enum KStylePixelMetric
+ {
+ KPM_MenuItemSeparatorHeight,
+ KPM_MenuItemHMargin,
+ KPM_MenuItemVMargin,
+ KPM_MenuItemHFrame,
+ KPM_MenuItemVFrame,
+ KPM_MenuItemCheckMarkHMargin,
+ KPM_MenuItemArrowHMargin,
+ KPM_MenuItemTabSpacing,
+ KPM_ListViewBranchThickness
+ };
+
+ int kPixelMetric (KStyle::KStylePixelMetric, const QWidget* = 0) const;
+ void polish (QWidget*);
+ void unPolish (QWidget*);
+ void polishPopupMenu (QPopupMenu*);
+ void drawPrimitive (PrimitiveElement, QPainter*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const;
+ void drawControl (ControlElement, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const;
+ void drawComplexControl (ComplexControl, QPainter*, const QWidget*, const QRect&, const QColorGroup&, SFlags = Style_Default , SCFlags = SC_All , SCFlags = SC_None , const QStyleOption& = QStyleOption (QStyleOption ::Default )) const;
+ SubControl querySubControl (ComplexControl, const QWidget*, const QPoint&, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const;
+ QRect querySubControlMetrics (ComplexControl, const QWidget*, SubControl, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const;
+ int pixelMetric (PixelMetric, const QWidget* = 0) const;
+ QRect subRect (SubRect, const QWidget*) const;
+ QPixmap stylePixmap (StylePixmap, const QWidget* = 0, const QStyleOption& = QStyleOption (QStyleOption ::Default )) const;
+ int styleHint (StyleHint, const QWidget* = 0, const QStyleOption& = QStyleOption (QStyleOption ::Default ), QStyleHintReturn* = 0) const;
+
+protected:
+ bool eventFilter (QObject*, QEvent*);
+
+private:
+ KStyle (const KStyle&);
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+//force
+%ConvertToSubClassCode
+ // The table of Python class objects indexed by their names. The table
+ // must be sorted by name.
+
+ static sipStringTypeClassMap map[] = {
+ {sipName_KStyle, &sipClass_KStyle},
+ };
+
+ sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0]));
+%End
+//end
+
+}; // class KStyle
+