summaryrefslogtreecommitdiffstats
path: root/python/pykde/sip/kdeui/kthemebase.sip
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit90825e2392b2d70e43c7a25b8a3752299a933894 (patch)
treee33aa27f02b74604afbfd0ea4f1cfca8833d882a /python/pykde/sip/kdeui/kthemebase.sip
downloadtdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz
tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'python/pykde/sip/kdeui/kthemebase.sip')
-rw-r--r--python/pykde/sip/kdeui/kthemebase.sip258
1 files changed, 258 insertions, 0 deletions
diff --git a/python/pykde/sip/kdeui/kthemebase.sip b/python/pykde/sip/kdeui/kthemebase.sip
new file mode 100644
index 00000000..df501576
--- /dev/null
+++ b/python/pykde/sip/kdeui/kthemebase.sip
@@ -0,0 +1,258 @@
+//
+// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kdeui version KDE_3_1_1
+
+
+// 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 KThemePixmap : KPixmap
+{
+%TypeHeaderCode
+#include <kthemebase.h>
+%End
+
+
+public:
+
+ enum BorderType
+ {
+ Top = 0,
+ Bottom,
+ Left,
+ Right,
+ TopLeft,
+ TopRight,
+ BottomLeft,
+ BottomRight
+ };
+
+ KThemePixmap (bool = 1);
+ KThemePixmap (const KThemePixmap&);
+ QPixmap* border (KThemePixmap::BorderType);
+ void setBorder (KThemePixmap::BorderType, const QPixmap&);
+ void updateAccessed ();
+ bool isOld ();
+
+protected:
+
+}; // class KThemePixmap
+
+
+class KThemeCache : QObject
+{
+%TypeHeaderCode
+#include <kthemebase.h>
+%End
+
+
+public:
+
+ enum ScaleHint
+ {
+ FullScale,
+ HorizontalScale,
+ VerticalScale
+ };
+
+ KThemeCache (int, QObject*/TransferThis/ = 0, const char* = 0);
+ bool insert (KThemePixmap*, KThemeCache::ScaleHint, int, bool = 0, bool = 0);
+ KThemePixmap* pixmap (int, int, int, bool = 0, bool = 0);
+ KThemePixmap* horizontalPixmap (int, int);
+ KThemePixmap* verticalPixmap (int, int);
+
+protected slots:
+ void flushTimeout ();
+
+protected:
+
+}; // class KThemeCache
+
+
+class KThemeBase : KStyle
+{
+%TypeHeaderCode
+#include <kthemebase.h>
+%End
+
+
+public:
+ KThemeBase (const QString&);
+
+ enum ScaleHint
+ {
+ FullScale,
+ HorizontalScale,
+ VerticalScale,
+ TileScale
+ };
+
+
+ enum ArrowStyle
+ {
+ MotifArrow,
+ LargeArrow,
+ SmallArrow
+ };
+
+
+ enum ShadeStyle
+ {
+ Motif,
+ Windows,
+ Next,
+ KDE
+ };
+
+
+ enum SButton
+ {
+ SBBottomLeft,
+ SBBottomRight,
+ SBOpposite
+ };
+
+
+ enum Gradient
+ {
+ GrNone,
+ GrHorizontal,
+ GrVertical,
+ GrDiagonal,
+ GrPyramid,
+ GrRectangle,
+ GrElliptic,
+ GrReverseBevel
+ };
+
+
+ enum WidgetType
+ {
+ PushButton = 0,
+ ComboBox,
+ HScrollBarSlider,
+ VScrollBarSlider,
+ Bevel,
+ ToolButton,
+ ScrollButton,
+ HScrollDeco,
+ VScrollDeco,
+ ComboDeco,
+ MenuItem,
+ InactiveTab,
+ ArrowUp,
+ ArrowDown,
+ ArrowLeft,
+ ArrowRight,
+ PushButtonDown,
+ ComboBoxDown,
+ HScrollBarSliderDown,
+ VScrollBarSliderDown,
+ BevelDown,
+ ToolButtonDown,
+ ScrollButtonDown,
+ HScrollDecoDown,
+ VScrollDecoDown,
+ ComboDecoDown,
+ MenuItemDown,
+ ActiveTab,
+ SunkenArrowUp,
+ SunkenArrowDown,
+ SunkenArrowLeft,
+ SunkenArrowRight,
+ HScrollGroove,
+ VScrollGroove,
+ Slider,
+ SliderGroove,
+ IndicatorOn,
+ IndicatorOff,
+ ExIndicatorOn,
+ ExIndicatorOff,
+ HBarHandle,
+ VBarHandle,
+ ToolBar,
+ Splitter,
+ CheckMark,
+ MenuBar,
+ DisArrowUp,
+ DisArrowDown,
+ DisArrowLeft,
+ DisArrowRight,
+ ProgressBar,
+ ProgressBg,
+ MenuBarItem,
+ Background
+ };
+
+ ScaleHint scaleHint (KThemeBase::WidgetType) const;
+ Gradient gradientHint (KThemeBase::WidgetType) const;
+ const QColorGroup* colorGroup (const QColorGroup&, KThemeBase::WidgetType) const;
+ QBrush pixmapBrush (const QColorGroup&, QColorGroup::ColorRole, int, int, KThemeBase::WidgetType);
+ bool isPixmap (KThemeBase::WidgetType) const;
+ bool isColor (KThemeBase::WidgetType) const;
+ bool is3DFocus () const;
+ int focusOffset () const;
+ int borderWidth (KThemeBase::WidgetType) const;
+ int pixBorderWidth (KThemeBase::WidgetType) const;
+ KThemePixmap* borderPixmap (KThemeBase::WidgetType);
+ int highlightWidth (KThemeBase::WidgetType) const;
+ int decoWidth (KThemeBase::WidgetType) const;
+ int getSBExtent () const;
+ SButton scrollBarLayout () const;
+ ArrowStyle arrowType () const;
+ ShadeStyle shade () const;
+ int frameWidth () const;
+ int splitWidth () const;
+ int bevelContrast (KThemeBase::WidgetType) const;
+ int buttonXShift () const;
+ int buttonYShift () const;
+ int sliderButtonLength () const;
+ bool roundButton () const;
+ bool roundComboBox () const;
+ bool roundSlider () const;
+ bool activeTabLine () const;
+ bool inactiveTabLine () const;
+ KThemePixmap* uncached (KThemeBase::WidgetType) const;
+ virtual KThemePixmap* scalePixmap (int, int, KThemeBase::WidgetType);
+ static void applyConfigFile (const QString&);
+
+protected:
+ QImage* image (KThemeBase::WidgetType) const;
+ QColor* gradientHigh (KThemeBase::WidgetType) const;
+ QColor* gradientLow (KThemeBase::WidgetType) const;
+ void readConfig (Qt::GUIStyle = Qt::WindowsStyle);
+//ig void readWidgetConfig (int, KConfig*, QString*, QString*, bool*);
+ void copyWidgetConfig (int, int, QString*, QString*);
+ QColorGroup* makeColorGroup (QColor&, QColor&, Qt::GUIStyle = Qt::WindowsStyle);
+ KThemePixmap* scale (int, int, KThemeBase::WidgetType);
+ KThemePixmap* scaleBorder (int, int, KThemeBase::WidgetType);
+ KThemePixmap* gradient (int, int, KThemeBase::WidgetType);
+ KThemePixmap* blend (KThemeBase::WidgetType);
+ void generateBorderPix (int);
+ void applyResourceGroup (KConfig*, int);
+ void applyMiscResourceGroup (KConfig*);
+ void readResourceGroup (int, QString*, QString*, bool*);
+ void readMiscResourceGroup ();
+ KThemePixmap* loadPixmap (QString&);
+ QImage* loadImage (QString&);
+
+}; // class KThemeBase
+