summaryrefslogtreecommitdiffstats
path: root/styles/phase/phasestyle.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-05 01:04:09 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-08-05 01:04:09 -0500
commit7e44aacf1792efdc4e725f1bbaf3de4cda75d9b1 (patch)
treee148e5cfc3c48fbed20645d81d281b04372f50e5 /styles/phase/phasestyle.h
parentfd38e21445e6d62f1503fe3900f1bd1d1651cef5 (diff)
downloadtdeartwork-7e44aacf1792efdc4e725f1bbaf3de4cda75d9b1.tar.gz
tdeartwork-7e44aacf1792efdc4e725f1bbaf3de4cda75d9b1.zip
Update to new style API
Diffstat (limited to 'styles/phase/phasestyle.h')
-rw-r--r--styles/phase/phasestyle.h52
1 files changed, 34 insertions, 18 deletions
diff --git a/styles/phase/phasestyle.h b/styles/phase/phasestyle.h
index 631653af..b2263822 100644
--- a/styles/phase/phasestyle.h
+++ b/styles/phase/phasestyle.h
@@ -67,8 +67,10 @@ public:
void polish(TQPalette &pal);
void unPolish(TQWidget *widget);
- void tqdrawPrimitive(TQ_PrimitiveElement element,
+ void drawPrimitive(TQ_PrimitiveElement element,
TQPainter *painter,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &rect,
const TQColorGroup &group,
SFlags flags = Style_Default,
@@ -76,56 +78,70 @@ public:
void drawKStylePrimitive(KStylePrimitive element,
TQPainter *painter,
- const TQWidget *widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &rect,
const TQColorGroup &group,
SFlags flags = Style_Default,
- const TQStyleOption &option = TQStyleOption::Default) const;
+ const TQStyleOption &option = TQStyleOption::Default,
+ const TQWidget *widget = 0) const;
void drawControl(TQ_ControlElement element,
TQPainter *painter,
- const TQWidget *widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &rect,
const TQColorGroup &group,
SFlags flags = Style_Default,
- const TQStyleOption &option = TQStyleOption::Default) const;
+ const TQStyleOption &option = TQStyleOption::Default,
+ const TQWidget *widget = 0) const;
void drawControlMask(TQ_ControlElement element,
TQPainter *painter,
- const TQWidget *widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &rect,
- const TQStyleOption &option = TQStyleOption::Default) const;
+ const TQStyleOption &option = TQStyleOption::Default,
+ const TQWidget *widget = 0) const;
void drawComplexControl(TQ_ComplexControl control,
TQPainter *painter,
- const TQWidget *widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQRect &rect,
const TQColorGroup &group,
SFlags flags = Style_Default,
SCFlags controls = SC_All,
SCFlags active = SC_None,
- const TQStyleOption &option = TQStyleOption::Default) const;
+ const TQStyleOption &option = TQStyleOption::Default,
+ const TQWidget *widget = 0) const;
void drawComplexControlMask(TQ_ComplexControl control,
TQPainter *painter,
- const TQWidget *widget,
+ const TQStyleControlElementData ceData,
+ const ControlElementFlags elementFlags,
const TQRect &rect,
- const TQStyleOption &option = TQStyleOption::Default) const;
+ const TQStyleOption &option = TQStyleOption::Default,
+ const TQWidget *widget = 0) const;
- int pixelMetric(PixelMetric metric,
+ int pixelMetric(PixelMetric metric, TQStyleControlElementData ceData, ControlElementFlags elementFlags,
const TQWidget *widget = 0) const;
- TQRect subRect(SubRect rect, const TQWidget *widget) const;
+ TQRect subRect(SubRect rect, const TQStyleControlElementData ceData, const ControlElementFlags elementFlags, const TQWidget *widget = 0) const;
TQRect querySubControlMetrics(TQ_ComplexControl control,
- const TQWidget *widget,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
SubControl subcontrol,
- const TQStyleOption &option = TQStyleOption::Default) const;
+ const TQStyleOption &option = TQStyleOption::Default,
+ const TQWidget *widget = 0) const;
- TQSize tqsizeFromContents(ContentsType contents,
- const TQWidget *widget,
+ TQSize sizeFromContents(ContentsType contents,
+ TQStyleControlElementData ceData,
+ ControlElementFlags elementFlags,
const TQSize &contentsize,
- const TQStyleOption& option = TQStyleOption::Default) const;
+ const TQStyleOption& option = TQStyleOption::Default,
+ const TQWidget *widget = 0) const;
private:
PhaseStyle(const PhaseStyle &);