summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-03 22:54:07 -0600
committerTimothy Pearson <[email protected]>2013-02-03 22:54:07 -0600
commitc185347c7257c41f376f2de07537ef9adcc1896c (patch)
treeed27b5e46922d05f614099376adc9b1352142c3c
parent4fd5598837ccb599bb7e517e5c4c73e81e5e8f8c (diff)
downloadtde-style-lipstik-c185347c7257c41f376f2de07537ef9adcc1896c.tar.gz
tde-style-lipstik-c185347c7257c41f376f2de07537ef9adcc1896c.zip
Rename KStyle to TDEStyle to avoid conflicts with KDE4
-rw-r--r--AUTHORS2
-rw-r--r--style/lipstik.cpp54
-rw-r--r--style/lipstik.h6
3 files changed, 31 insertions, 31 deletions
diff --git a/AUTHORS b/AUTHORS
index 3cab31c..a3d78f5 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -47,6 +47,6 @@ Some code adopted from the "Keramik" kde style. Thanks!
Copyright (C) 2000 Daniel M. Duley <[email protected]>
(C) 2000 Dirk Mueller <[email protected]>
(C) 2001 Martijn Klingens <[email protected]>
- Progressbar code based on KStyle,
+ Progressbar code based on TDEStyle,
Copyright (C) 2001-2002 Karol Szwed <[email protected]>
---------------------------------------------------------------------------
diff --git a/style/lipstik.cpp b/style/lipstik.cpp
index daaf524..67bdbf8 100644
--- a/style/lipstik.cpp
+++ b/style/lipstik.cpp
@@ -26,7 +26,7 @@
Copyright (C) 2000 Daniel M. Duley <[email protected]>
(C) 2000 Dirk Mueller <[email protected]>
(C) 2001 Martijn Klingens <[email protected]>
- Progressbar code based on KStyle,
+ Progressbar code based on TDEStyle,
Copyright (C) 2001-2002 Karol Szwed <[email protected]>
...also based on plastikq, krisp, comix, motifplus, polyester, qtcurve...
@@ -160,7 +160,7 @@ class LipstikStylePlugin : public TQStylePlugin
TQ_EXPORT_PLUGIN( LipstikStylePlugin )
// -- end --
-LipstikStyle::LipstikStyle() : KStyle( AllowMenuTransparency, ThreeButtonScrollBar),
+LipstikStyle::LipstikStyle() : TDEStyle( AllowMenuTransparency, ThreeButtonScrollBar),
kickerMode(false),
kornMode(false),
flatMode(false)
@@ -221,11 +221,11 @@ LipstikStyle::LipstikStyle() : KStyle( AllowMenuTransparency, ThreeButtonScrollB
settings.endGroup();
if( !strcmp(_scrollBarStyle,"WindowsStyleScrollBar" ) )
- this->setScrollBarType(KStyle::WindowsStyleScrollBar);
+ this->setScrollBarType(TDEStyle::WindowsStyleScrollBar);
else if( !strcmp(_scrollBarStyle,"PlatinumStyleScrollBar" ) )
- this->setScrollBarType(KStyle::PlatinumStyleScrollBar);
+ this->setScrollBarType(TDEStyle::PlatinumStyleScrollBar);
else if( !strcmp(_scrollBarStyle,"NextStyleScrollBar" ) )
- this->setScrollBarType(KStyle::NextStyleScrollBar);
+ this->setScrollBarType(TDEStyle::NextStyleScrollBar);
// setup pixmap cache...
pixmapCache = new TQIntCache<CacheEntry>(150000, 499);
@@ -340,7 +340,7 @@ void LipstikStyle::polish(const TQStyleControlElementData &ceData, ControlElemen
}
}
- KStyle::polish(ceData, elementFlags, ptr);
+ TDEStyle::polish(ceData, elementFlags, ptr);
}
void LipstikStyle::unPolish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *ptr)
@@ -380,7 +380,7 @@ void LipstikStyle::unPolish(const TQStyleControlElementData &ceData, ControlElem
}
}
- KStyle::unPolish(ceData, elementFlags, ptr);
+ TDEStyle::unPolish(ceData, elementFlags, ptr);
}
void LipstikStyle::tdehtmlWidgetDestroyed(TQObject* obj)
@@ -1291,7 +1291,7 @@ void LipstikStyle::renderTab(TQPainter *p,
}
}
-void LipstikStyle::drawKStylePrimitive(KStylePrimitive kpe,
+void LipstikStyle::drawTDEStylePrimitive(TDEStylePrimitive kpe,
TQPainter *p,
const TQStyleControlElementData &ceData,
ControlElementFlags elementFlags,
@@ -1573,7 +1573,7 @@ void LipstikStyle::drawKStylePrimitive(KStylePrimitive kpe,
break;
}
- // copied and slightly modified from KStyle.
+ // copied and slightly modified from TDEStyle.
case KPE_ListViewBranch: {
// Typical Windows style listview branch element (dotted line).
@@ -1646,7 +1646,7 @@ void LipstikStyle::drawKStylePrimitive(KStylePrimitive kpe,
}
default:
- KStyle::drawKStylePrimitive(kpe, p, ceData, elementFlags, r, cg, flags, opt, widget);
+ TDEStyle::drawTDEStylePrimitive(kpe, p, ceData, elementFlags, r, cg, flags, opt, widget);
}
}
@@ -2477,7 +2477,7 @@ void LipstikStyle::drawPrimitive(PrimitiveElement pe,
}
default: {
- return KStyle::drawPrimitive(pe, p, ceData, elementFlags, r, cg, flags, opt);
+ return TDEStyle::drawPrimitive(pe, p, ceData, elementFlags, r, cg, flags, opt);
}
}
}
@@ -2677,7 +2677,7 @@ void LipstikStyle::drawControl(ControlElement element,
renderTab(p, r, cg, mouseOver, selected, true, pos, false, cornerWidget);
break;
default:
- KStyle::drawControl(element, p, ceData, elementFlags, r, cg, flags, opt, widget);
+ TDEStyle::drawControl(element, p, ceData, elementFlags, r, cg, flags, opt, widget);
}
break;
@@ -3161,7 +3161,7 @@ void LipstikStyle::drawControl(ControlElement element,
break;
default:
- KStyle::drawControl(element, p, ceData, elementFlags, r, cg, flags, opt, widget);
+ TDEStyle::drawControl(element, p, ceData, elementFlags, r, cg, flags, opt, widget);
}
}
@@ -3182,7 +3182,7 @@ void LipstikStyle::drawControlMask(ControlElement element,
}
default: {
- KStyle::drawControlMask (element, p, ceData, elementFlags, r, opt, w);
+ TDEStyle::drawControlMask (element, p, ceData, elementFlags, r, opt, w);
}
}
}
@@ -3205,7 +3205,7 @@ void LipstikStyle::drawComplexControlMask(ComplexControl c,
break;
}
default: {
- KStyle::drawComplexControlMask (c, p, ceData, elementFlags, r, o, w);
+ TDEStyle::drawComplexControlMask (c, p, ceData, elementFlags, r, o, w);
}
}
}
@@ -3628,7 +3628,7 @@ void LipstikStyle::drawComplexControl(ComplexControl control,
}
default:
- KStyle::drawComplexControl(control, p, ceData, elementFlags,
+ TDEStyle::drawComplexControl(control, p, ceData, elementFlags,
r, cg, flags, controls,
active, opt, widget);
break;
@@ -3643,7 +3643,7 @@ TQRect LipstikStyle::subRect(SubRect r, const TQStyleControlElementData &ceData,
return querySubControlMetrics( CC_ComboBox, ceData, elementFlags, SC_ComboBoxEditField, TQStyleOption::Default, widget );
}
- // Don't use KStyles progressbar subrect
+ // Don't use TDEStyles progressbar subrect
// TODO:
case SR_ProgressBarGroove: {
return TQRect(ceData.rect);
@@ -3655,7 +3655,7 @@ TQRect LipstikStyle::subRect(SubRect r, const TQStyleControlElementData &ceData,
}
default: {
- return KStyle::subRect(r, ceData, elementFlags, widget);
+ return TDEStyle::subRect(r, ceData, elementFlags, widget);
}
}
}
@@ -3676,7 +3676,7 @@ TQRect LipstikStyle::querySubControlMetrics(ComplexControl control,
return TQRect(r.left()+2, r.top()+2, r.width()-4-15-1, r.height()-4);
}
default: {
- return KStyle::querySubControlMetrics(control, ceData, elementFlags, subcontrol, opt, widget);
+ return TDEStyle::querySubControlMetrics(control, ceData, elementFlags, subcontrol, opt, widget);
}
}
break;
@@ -3720,13 +3720,13 @@ TQRect LipstikStyle::querySubControlMetrics(ComplexControl control,
return TQRect(buttonsLeft, r.top()+1, bs.width(), r.height()-2);
}
default: {
- return KStyle::querySubControlMetrics(control, ceData, elementFlags, subcontrol, opt, widget);
+ return TDEStyle::querySubControlMetrics(control, ceData, elementFlags, subcontrol, opt, widget);
}
}
break;
}
default: {
- return KStyle::querySubControlMetrics(control, ceData, elementFlags, subcontrol, opt, widget);
+ return TDEStyle::querySubControlMetrics(control, ceData, elementFlags, subcontrol, opt, widget);
}
}
}
@@ -3848,7 +3848,7 @@ int LipstikStyle::pixelMetric(PixelMetric m, const TQStyleControlElementData &ce
return 2;
default:
- return KStyle::pixelMetric(m, ceData, elementFlags, widget);
+ return TDEStyle::pixelMetric(m, ceData, elementFlags, widget);
}
}
@@ -3928,14 +3928,14 @@ TQSize LipstikStyle::sizeFromContents(ContentsType t,
if (ceData.parentWidgetData.widgetObjectTypes.contains(TQTOOLBAR_OBJECT_NAME_STRING))
return TQSize( s.width()+2*4+_toolBarSpacing, s.height()+2*4 );
else
- return KStyle::sizeFromContents (t, ceData, elementFlags, s, opt, widget);
+ return TDEStyle::sizeFromContents (t, ceData, elementFlags, s, opt, widget);
}
default:
- return KStyle::sizeFromContents (t, ceData, elementFlags, s, opt, widget);
+ return TDEStyle::sizeFromContents (t, ceData, elementFlags, s, opt, widget);
}
- return KStyle::sizeFromContents (t, ceData, elementFlags, s, opt, widget);
+ return TDEStyle::sizeFromContents (t, ceData, elementFlags, s, opt, widget);
}
int LipstikStyle::styleHint( StyleHint stylehint,
@@ -3961,13 +3961,13 @@ int LipstikStyle::styleHint( StyleHint stylehint,
}
default:
- return KStyle::styleHint(stylehint, ceData, elementFlags, option, returnData, widget);
+ return TDEStyle::styleHint(stylehint, ceData, elementFlags, option, returnData, widget);
}
}
bool LipstikStyle::objectEventHandler( const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void* source, TQEvent *ev )
{
- if (KStyle::objectEventHandler(ceData, elementFlags, source, ev) )
+ if (TDEStyle::objectEventHandler(ceData, elementFlags, source, ev) )
return true;
if (ceData.widgetObjectTypes.contains(TQOBJECT_OBJECT_NAME_STRING)) {
diff --git a/style/lipstik.h b/style/lipstik.h
index f68d02f..06a677f 100644
--- a/style/lipstik.h
+++ b/style/lipstik.h
@@ -24,7 +24,7 @@
Copyright (C) 2000 Daniel M. Duley <[email protected]>
(C) 2000 Dirk Mueller <[email protected]>
(C) 2001 Martijn Klingens <[email protected]>
- Progressbar code based on KStyle,
+ Progressbar code based on TDEStyle,
Copyright (C) 2001-2002 Karol Szwed <[email protected]>
This library is free software; you can redistribute it and/or
@@ -60,7 +60,7 @@ class TQSettings;
class TQTab;
class TQTimer;
-class LipstikStyle : public KStyle
+class LipstikStyle : public TDEStyle
{
Q_OBJECT
@@ -73,7 +73,7 @@ public:
void polish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *);
void unPolish(const TQStyleControlElementData &ceData, ControlElementFlags elementFlags, void *);
- void drawKStylePrimitive(KStylePrimitive kpe,
+ void drawTDEStylePrimitive(TDEStylePrimitive kpe,
TQPainter* p,
const TQStyleControlElementData &ceData,
ControlElementFlags elementFlags,