diff options
Diffstat (limited to 'style/qtc_tdestyle.h')
-rw-r--r-- | style/qtc_tdestyle.h | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/style/qtc_tdestyle.h b/style/qtc_tdestyle.h index 9d01a15..a606f5c 100644 --- a/style/qtc_tdestyle.h +++ b/style/qtc_tdestyle.h @@ -1,12 +1,12 @@ /* * $Id$ - * + * * TDEStyle * Copyright (C) 2001-2002 Karol Szwed <gallium@kde.org> - * + * * TQWindowsStyle CC_ListView and style images were kindly donated by TrollTech, * Copyright (C) 1998-2000 TrollTech AS. - * + * * Many thanks to Bradley T. Hughes for the 3 button scrollbar code. * * This library is free software; you can redistribute it and/or @@ -35,9 +35,9 @@ #include <tqcommonstyle.h> struct TQtCTDEStylePrivate; -/** +/** * Simplifies and extends the TQStyle API to make style coding easier. - * + * * The TDEStyle class provides a simple internal menu transparency engine * which attempts to use XRender for accelerated blending where requested, * or falls back to fast internal software tinting/blending routines. @@ -53,24 +53,23 @@ struct TQtCTDEStylePrivate; class TQtCTDEStyle: public TQCommonStyle { Q_OBJECT - public: /** * TQtCTDEStyle Flags: - * + * * @li Default - Default style setting, where menu transparency * and the FilledFrameWorkaround are disabled. - * + * * @li AllowMenuTransparency - Enable this flag to use TQtCTDEStyle's * internal menu transparency engine. - * - * @li FilledFrameWorkaround - Enable this flag to facilitate - * proper repaints of TQMenuBars and TQToolBars when the style chooses - * to paint the interior of a TQFrame. The style primitives in question + * + * @li FilledFrameWorkaround - Enable this flag to facilitate + * proper repaints of TQMenuBars and TQToolBars when the style chooses + * to paint the interior of a TQFrame. The style primitives in question * are PE_PanelMenuBar and PE_PanelDockWindow. The HighColor style uses - * this workaround to enable painting of gradients in menubars and + * this workaround to enable painting of gradients in menubars and * toolbars. */ typedef uint TDEStyleFlags; @@ -90,12 +89,12 @@ class TQtCTDEStyle: public TQCommonStyle * @li WindowsStyleScrollBar - Two button scrollbar with the previous * button at the top/left, and the next button at the bottom/right. * - * @li PlatinumStyleScrollBar - Two button scrollbar with both the + * @li PlatinumStyleScrollBar - Two button scrollbar with both the * previous and next buttons at the bottom/right. * * @li ThreeButtonScrollBar - %KDE style three button scrollbar with * two previous buttons, and one next button. The next button is always - * at the bottom/right, whilst the two previous buttons are on either + * at the bottom/right, whilst the two previous buttons are on either * end of the scrollbar. * * @li NextStyleScrollBar - Similar to the PlatinumStyle scroll bar, but @@ -110,14 +109,14 @@ class TQtCTDEStyle: public TQCommonStyle NextStyleScrollBar = 0x00000004 //!< two button, NeXT style }; - /** + /** * Constructs a TDEStyle object. * * Select the appropriate TDEStyle flags and scrollbar type * for your style. The user's style preferences selected in KControl * are read by using TQSettings and are automatically applied to the style. * As a fallback, TDEStyle paints progressbars and tabbars. It inherits from - * TQCommonStyle for speed, so don't expect much to be implemented. + * TQCommonStyle for speed, so don't expect much to be implemented. * * It is advisable to use a currently implemented style such as the HighColor * style as a foundation for any new TDEStyle, so the limited number of @@ -132,7 +131,7 @@ class TQtCTDEStyle: public TQCommonStyle TQtCTDEStyle( TDEStyleFlags flags = TQtCTDEStyle::Default, TDEStyleScrollBarType sbtype = TQtCTDEStyle::WindowsStyleScrollBar ); - /** + /** * Destructs the TQtCTDEStyle object. */ ~TQtCTDEStyle(); @@ -144,7 +143,7 @@ class TQtCTDEStyle: public TQCommonStyle /** * Modifies the scrollbar type used by the style. - * + * * This function is only provided for convenience. It allows * you to make a late decision about what scrollbar type to use for the * style after performing some processing in your style's constructor. @@ -165,12 +164,12 @@ class TQtCTDEStyle: public TQCommonStyle /** * TDEStyle Primitive Elements: * - * The TDEStyle class extends the TQt's Style API by providing certain + * The TDEStyle class extends the TQt's Style API by providing certain * simplifications for parts of TQStyle. To do this, the TDEStylePrimitive * elements were defined, which are very similar to TQt's PrimitiveElement. - * - * The first three Handle primitives simplify and extend PE_DockWindowHandle, - * so do not reimplement PE_DockWindowHandle if you want the TDEStyle handle + * + * The first three Handle primitives simplify and extend PE_DockWindowHandle, + * so do not reimplement PE_DockWindowHandle if you want the TDEStyle handle * simplifications to be operable. Similarly do not reimplement CC_Slider, * SC_SliderGroove and SC_SliderHandle when using the TDEStyle slider * primitives. TDEStyle automatically double-buffers slider painting @@ -190,7 +189,7 @@ class TQtCTDEStyle: public TQCommonStyle * as the applet handles used in Kicker. The default implementation paints a filled * rect of arbitrary color. * - * @li KPE_SliderGroove - This primitive must be reimplemented. It is used to + * @li KPE_SliderGroove - This primitive must be reimplemented. It is used to * paint the slider groove. The default implementation paints a filled rect of * arbitrary color. * @@ -199,7 +198,7 @@ class TQtCTDEStyle: public TQCommonStyle * arbitrary color. * * @li KPE_ListViewExpander - This primitive is already implemented in TDEStyle. It - * is used to draw the Expand/Collapse element in TQListViews. To indicate the + * is used to draw the Expand/Collapse element in TQListViews. To indicate the * expanded state, the style flags are set to Style_Off, while Style_On implies collapsed. * * @li KPE_ListViewBranch - This primitive is already implemented in TDEStyle. It is @@ -218,8 +217,8 @@ class TQtCTDEStyle: public TQCommonStyle }; /** - * This function is identical to TQt's TQStyle::drawPrimitive(), except that - * it adds one further parameter, 'widget', that can be used to determine + * This function is identical to TQt's TQStyle::drawPrimitive(), except that + * it adds one further parameter, 'widget', that can be used to determine * the widget state of the TDEStylePrimitive in question. * * @see TDEStyle::TDEStylePrimitive @@ -302,10 +301,10 @@ class TQtCTDEStyle: public TQCommonStyle const TQStyleOption& = TQStyleOption::Default, const TQWidget* widget = 0 ) const; - int pixelMetric( PixelMetric m, TQStyleControlElementData ceData, ControlElementFlags elementFlags, + int pixelMetric( PixelMetric m, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQWidget* widget = 0 ) const; - TQRect subRect( SubRect r, const TQStyleControlElementData ceData, const ControlElementFlags elementFlags, + TQRect subRect( SubRect r, const TQStyleControlElementData ceData, const ControlElementFlags elementFlags, const TQWidget* widget = 0 ) const; TQPixmap stylePixmap( StylePixmap stylepixmap, @@ -314,7 +313,7 @@ class TQtCTDEStyle: public TQCommonStyle const TQStyleOption& = TQStyleOption::Default, const TQWidget* widget = 0 ) const; - int styleHint( StyleHint sh, TQStyleControlElementData ceData, ControlElementFlags elementFlags, + int styleHint( StyleHint sh, TQStyleControlElementData ceData, ControlElementFlags elementFlags, const TQStyleOption &opt = TQStyleOption::Default, TQStyleHintReturn* shr = 0, const TQWidget* w = 0 ) const; |