#include </home/clem/local/src/opie/noncore/styles/theme/othemebase.h>
Inheritance diagram for OThemeBase:


Note that this class *does not* actually implement any themes. It just provides the groundwork for doing so. The only reason to use this class directly is if you plan to reimplement all of the widgets. Otherwise, refer to OThemeStyle for a fully themed style you can derive from.
Definition at line 195 of file othemebase.h.
|
|
The default arrow types. Definition at line 212 of file othemebase.h. |
|
|
The gradient types. Horizontal is left to right, Vertical is top to bottom, and diagonal is upper-left to bottom-right.
Definition at line 227 of file othemebase.h. |
|
|
The default scrollbar button layout. BottomLeft is like what Next uses, BottomRight is like Platinum, and Opposite it like Windows and Motif. Definition at line 222 of file othemebase.h. |
|
|
Describes if a pixmap should be scaled fully, horizontally, vertically, or not at all and tiled. Definition at line 208 of file othemebase.h. |
|
|
The default frame shading styles. Definition at line 216 of file othemebase.h. |
|
|
This provides a list of widget types that OThemeBase recognizes.
Definition at line 244 of file othemebase.h. |
|
|
Constructs a new OThemeBase object. Definition at line 306 of file othemebase.cpp. References cache, cacheSize, configFileName, configFilePath, QPEApplication::qpeDir(), readConfig(), and Qt::WindowsStyle. |
|
|
Definition at line 347 of file othemebase.cpp. References cache, colors, duplicate, grHighColors, grLowColors, i, images, pbDuplicate, pbPixmaps, pixmaps, and WIDGETS. |
|
|
True if a line should be drawn on the bottom of active tabs. Definition at line 724 of file othemebase.h. References aTabLine. Referenced by OThemeStyle::drawTab(). |
|
|
This method reads a configuration file and applies it to the user's kstylerc file. It does not signal applications to reload via the KDEChangeGeneral atom, if you want to do this you must do so yourself. See kcmdisplay's general.cpp for an example.
Definition at line 316 of file othemebase.cpp. References Config::File, Config::hasKey(), Config::readEntry(), Config::write(), and Config::writeEntry(). |
|
|
Definition at line 796 of file othemebase.cpp. References arrowStyle, QString::ascii(), bgcolor, cacheSize, defaultFrame, fgcolor, QString::isEmpty(), KDE, LargeArrow, Motif, MotifArrow, Next, odebug, oendl, Config::readEntry(), Config::readNumEntry(), SBBottomLeft, SBBottomRight, sbExtent, SBOpposite, sbPlacement, selbgcolor, selfgcolor, shading, SmallArrow, strToColor(), winbgcolor, Windows, and winfgcolor. Referenced by readConfig(). |
|
||||||||||||||||||||||||
|
Definition at line 850 of file othemebase.cpp. References ActiveTab, QString::ascii(), aTabLine, bContrasts, blends, borders, btnXShift, btnYShift, colors, ComboBox, ComboBoxDown, duplicate, focus3D, focus3DOffset, FullScale, gradients, GrDiagonal, GrElliptic, grHighColors, GrHorizontal, grLowColors, GrNone, GrPyramid, GrRectangle, GrReverseBevel, GrVertical, Config::hasKey(), highlights, HorizontalScale, images, InactiveTab, QString::isEmpty(), iTabLine, makeColorGroup(), NULL, odebug, oendl, pbDuplicate, pbPixmaps, pbWidth, pixmaps, PushButton, PushButtonDown, qApp, Config::readBoolEntry(), Config::readEntry(), Config::readNumEntry(), roundedButton, roundedCombo, roundedSlider, scaleHints, SliderGroove, Splitter, splitterWidth, strToColor(), TileScale, VerticalScale, widgetEntries, and Qt::WindowsStyle. Referenced by readConfig(). |
|
|
The arrow type. Definition at line 671 of file othemebase.h. References arrowStyle. Referenced by OThemeStyle::drawArrow(). |
|
|
The contrast for some bevel effects such as reverse gradient. Definition at line 595 of file othemebase.h. References bContrasts. Referenced by gradient(). |
|
|
Definition at line 599 of file othemebase.cpp. References OGfxEffect::blend(), blends, OGfxEffect::DiagonalGradient, OGfxEffect::EllipticGradient, g, gradients, GrElliptic, GrHorizontal, grLowColors, GrPyramid, GrRectangle, GrVertical, OGfxEffect::HorizontalGradient, pixmaps, OGfxEffect::PyramidGradient, OGfxEffect::RectangleGradient, and OGfxEffect::VerticalGradient. Referenced by readConfig(), and scale(). |
|
|
Returns the border pixmap if enabled for the specified widget. This will contain the originial pixmap, plus the edges separated in OThemePixmap::border() if valid. If invalid it will return NULL. Definition at line 739 of file othemebase.h. References pbPixmaps. Referenced by OThemeStyle::drawBaseButton(), and scaleBorder(). |
|
|
The border width of the specified widget. Definition at line 631 of file othemebase.h. References borders, and pbWidth. Referenced by OThemeStyle::drawBaseButton(), OThemeStyle::drawPopupMenuItem(), OThemeStyle::drawScrollBarGroove(), and OThemeStyle::drawTab(). |
|
|
The button text X shift. Definition at line 686 of file othemebase.h. References btnXShift. Referenced by OThemeStyle::drawPushButtonLabel(), and OThemeStyle::getButtonShift(). |
|
|
The button text Y shift. Definition at line 696 of file othemebase.h. References btnYShift. Referenced by OThemeStyle::drawPushButtonLabel(), and OThemeStyle::getButtonShift(). |
|
||||||||||||
|
The color group specified for a given widget. If a color group is set in the theme configuration that is used, otherwise defaultColor is returned.
Definition at line 625 of file othemebase.h. References colors. Referenced by OThemeStyle::drawArrow(), OThemeStyle::drawBevelButton(), OThemeStyle::drawCheckMark(), OThemeStyle::drawComboButton(), OThemeStyle::drawExclusiveIndicator(), OThemeStyle::drawIndicator(), OThemeStyle::drawMenuBarItem(), OThemeStyle::drawPopupMenuItem(), OThemeStyle::drawProgressBar(), OThemeStyle::drawPushButton(), OThemeStyle::drawPushButtonLabel(), OThemeStyle::drawScrollBarControls(), OThemeStyle::drawScrollBarGroove(), OThemeStyle::drawSlider(), OThemeStyle::drawSliderGroove(), OThemeStyle::drawSplitter(), OThemeStyle::drawTab(), OThemeStyle::drawToolButton(), and OThemeStyle::polish(). |
|
||||||||||||||||||||
|
Definition at line 185 of file othemebase.cpp. References ActiveTab, aTabLine, bContrasts, blends, borders, colors, duplicate, gradients, grHighColors, grLowColors, highlights, images, InactiveTab, iTabLine, loadImage(), loadPixmap(), NULL, pbDuplicate, pbPixmaps, pbWidth, pixmaps, scaleHints, and TileScale. Referenced by readResourceGroup(). |
|
|
The border plus highlight width of the widget. Definition at line 646 of file othemebase.h. References borders, highlights, and pbWidth. Referenced by OThemeStyle::buttonRect(), OThemeStyle::drawBaseButton(), OThemeStyle::drawComboButton(), OThemeStyle::drawPopupMenuItem(), OThemeStyle::drawPushButtonLabel(), OThemeStyle::drawScrollBarControls(), gradient(), OThemeStyle::popupMenuItemHeight(), and OThemeStyle::scrollBarMetrics(). |
|
|
If the user specified a 3D focus rectangle, they may also specify an offset from the default rectangle to use when drawing it. This returns the specified offset. Definition at line 590 of file othemebase.h. References focus3DOffset. Referenced by OThemeStyle::drawFocusRect(). |
|
|
The frame width. Definition at line 681 of file othemebase.h. References defaultFrame. Referenced by OThemeStyle::defaultFrameWidth(). |
|
|
Definition at line 87 of file othemebase.cpp. References bitBlt(), OThemePixmap::Bottom, OThemePixmap::BottomLeft, OThemePixmap::BottomRight, Qt::CopyROP, height, OThemePixmap::Left, odebug, oendl, pbPixmaps, pbWidth, OThemePixmap::Right, OThemePixmap::setBorder(), OThemePixmap::Top, OThemePixmap::TopLeft, OThemePixmap::TopRight, and width. Referenced by readResourceGroup(). |
|
|
The extent (width for vertical, height for horizontal) requested for the scrollbars. Definition at line 734 of file othemebase.h. References sbExtent. Referenced by OThemeStyle::OThemeStyle(). |
|
||||||||||||||||
|
|
Returns the gradient high color if one is specified, NULL otherwise. Definition at line 651 of file othemebase.h. References grHighColors. |
|
|
The gradient type specified by the KConfig file.
Definition at line 605 of file othemebase.h. References gradients, GrNone, and WIDGETS. Referenced by OThemeStyle::drawBaseButton(). |
|
|
Returns the gradient low color if one is specified, NULL otherwise. Definition at line 656 of file othemebase.h. References grLowColors. |
|
|
The highlight width of the specified widget. Definition at line 641 of file othemebase.h. References highlights, and pbWidth. Referenced by OThemeStyle::drawBaseButton(), OThemeStyle::drawPopupMenuItem(), OThemeStyle::drawScrollBarGroove(), and OThemeStyle::drawTab(). |
|
|
Returns a QImage for the given widget if the widget is scaled, NULL otherwise. QImages of the original pixmap are stored for scaled widgets in order to facilitate fast and accurate smooth-scaling. This also saves us a conversion from a pixmap to an image then back again. Definition at line 661 of file othemebase.h. References images. Referenced by loadImage(). |
|
|
True if a line should be drawn on the bottom of inactive tabs. Definition at line 729 of file othemebase.h. References iTabLine. Referenced by OThemeStyle::drawTab(). |
|
|
True if the user specified a 3D focus rectangle Definition at line 585 of file othemebase.h. References focus3D. Referenced by OThemeStyle::drawFocusRect(). |
|
|
True if the widget has a color group specified. Definition at line 580 of file othemebase.h. Referenced by OThemeStyle::polish(). |
|
|
True if the widget has a pixmap or gradient specified. Definition at line 575 of file othemebase.h. References gradients, GrNone, NULL, and pixmaps. Referenced by OThemeStyle::drawArrow(), OThemeStyle::drawBaseButton(), OThemeStyle::drawCheckMark(), OThemeStyle::drawComboButton(), OThemeStyle::drawExclusiveIndicator(), OThemeStyle::drawExclusiveIndicatorMask(), OThemeStyle::drawIndicator(), OThemeStyle::drawIndicatorMask(), OThemeStyle::drawPopupMenuItem(), OThemeStyle::drawProgressBar(), OThemeStyle::drawScrollBarControls(), OThemeStyle::drawScrollBarGroove(), OThemeStyle::drawSlider(), OThemeStyle::drawSliderMask(), OThemeStyle::drawTab(), OThemeStyle::exclusiveIndicatorSize(), OThemeStyle::indicatorSize(), OThemeStyle::polish(), OThemeStyle::popupMenuItemHeight(), and sliderButtonLength(). |
|
|
Attempts to load a image from the default OThemeBase locations. Definition at line 369 of file othemebase.cpp. References configFilePath, image(), NULL, odebug, and oendl. Referenced by copyWidgetConfig(), and readResourceGroup(). |
|
|
Attempts to load a pixmap from the default OThemeBase locations. Definition at line 381 of file othemebase.cpp. References configFilePath, NULL, odebug, and oendl. Referenced by copyWidgetConfig(), and readResourceGroup(). |
|
||||||||||||||||
|
Makes a full color group based on the given foreground and background colors. This is the same code used by KDE (kapp.cpp) in previous versions. Definition at line 762 of file othemebase.cpp. References Motif, qApp, and shading. Referenced by applyResourceGroup(). |
|
|
Pixmap border width of the specified widget. Definition at line 636 of file othemebase.h. References pbWidth. |
|
||||||||||||||||||||||||
|
Definition at line 615 of file othemebase.h. References images, pixmaps, and scalePixmap(). |
|
|
Reads in all the configuration file entries supported.
Definition at line 245 of file othemebase.cpp. References applyMiscResourceGroup(), applyResourceGroup(), aTabLine, blend(), blends, btnXShift, btnYShift, CheckMark, ComboDeco, ComboDecoDown, configFileName, configFilePath, ExIndicatorOff, ExIndicatorOn, Config::File, focus3D, focus3DOffset, HScrollDeco, HScrollDecoDown, i, IndicatorOff, IndicatorOn, INHERIT_ITEMS, QString::isEmpty(), iTabLine, NULL, pixmaps, PREBLEND_ITEMS, readMiscResourceGroup(), readResourceGroup(), roundedButton, roundedCombo, roundedSlider, Slider, splitterWidth, VScrollDeco, VScrollDecoDown, widgetEntries, and WIDGETS. Referenced by OThemeBase(). |
|
|
Definition at line 847 of file othemebase.cpp. Referenced by readConfig(). |
|
||||||||||||||||||||||||
|
Definition at line 985 of file othemebase.cpp. References ArrowUp, blends, copyWidgetConfig(), DisArrowRight, DisArrowUp, duplicate, generateBorderPix(), images, QString::isEmpty(), loadImage(), loadPixmap(), NULL, odebug, oendl, pbDuplicate, pbPixmaps, pixmaps, scaleHints, TileScale, widgetEntries, and WIDGETS. Referenced by readConfig(). |
|
||||||||||||||||||||||||
|
|
|
|
True if rounded buttons are requested. Definition at line 709 of file othemebase.h. References roundedButton. Referenced by OThemeStyle::drawButton(), OThemeStyle::drawButtonMask(), and OThemeStyle::drawPushButton(). |
|
|
True if rounded comboboxes are requested. Definition at line 714 of file othemebase.h. References roundedCombo. Referenced by OThemeStyle::drawComboButton(), and OThemeStyle::drawComboButtonMask(). |
|
|
True if rounded slider grooves are requested. Definition at line 719 of file othemebase.h. References roundedSlider. Referenced by OThemeStyle::drawSliderGroove(). |
|
||||||||||||||||
|
Definition at line 393 of file othemebase.cpp. References blend(), blends, cache, OThemeCache::FullScale, FullScale, height, OThemeCache::horizontalPixmap(), OThemeCache::HorizontalScale, HorizontalScale, images, OThemeCache::insert(), odebug, oendl, p, OThemeCache::pixmap(), pixmaps, scaleHints, TileScale, OThemeCache::verticalPixmap(), OThemeCache::VerticalScale, VerticalScale, and width. Referenced by scalePixmap(). |
|
||||||||||||||||
|
Definition at line 488 of file othemebase.cpp. References bitBlt(), borderPixmap(), OThemePixmap::Bottom, OThemePixmap::BottomLeft, OThemePixmap::BottomRight, cache, Qt::CopyROP, OThemeCache::FullScale, OThemeCache::insert(), OThemePixmap::Left, NULL, odebug, oendl, p, pbPixmaps, pbWidth, OThemeCache::pixmap(), OThemePixmap::Right, OThemePixmap::Top, OThemePixmap::TopLeft, and OThemePixmap::TopRight. Referenced by OThemeStyle::drawBaseButton(). |
|
|
The scaling type specified by the Config file.
Definition at line 600 of file othemebase.h. References scaleHints, TileScale, and WIDGETS. |
|
||||||||||||||||
|
Returns the pixmap for the given widget at the specified width and height. This will return NULL if no pixmap or gradient is specified. It may also return a different sized pixmap if the scaling is set to Tiled. When using this method, you should call it using the needed width and height then use QPainter::drawTiledPixmap to paint it. Doing this, if the pixmap is scaled it will be the proper size, otherwise it will be tiled.
Definition at line 753 of file othemebase.cpp. References blends, gradient(), gradients, and scale(). Referenced by OThemeStyle::drawBaseButton(), OThemeStyle::drawPopupMenuItem(), OThemeStyle::drawScrollBarGroove(), OThemeStyle::drawTab(), and pixmapBrush(). |
|
|
The scrollbar button layout. Definition at line 666 of file othemebase.h. References sbPlacement. Referenced by OThemeStyle::drawScrollBarControls(), OThemeStyle::scrollBarMetrics(), and OThemeStyle::scrollBarPointOver(). |
|
|
The shading type. Definition at line 676 of file othemebase.h. References shading. Referenced by OThemeStyle::drawBaseButton(), OThemeStyle::drawPopupMenuItem(), and OThemeStyle::drawScrollBarGroove(). |
|
|
Returns either the slider length of the slider pixmap if available, otherwise the length specified in the config file. Definition at line 701 of file othemebase.h. References isPixmap(), Slider, sliderLen, uncached(), and width. Referenced by OThemeStyle::sliderLength(). |
|
|
The splitter width. Definition at line 691 of file othemebase.h. References splitterWidth. Referenced by OThemeStyle::splitterWidth(). |
|
|
Returns the current uncached pixmap for the given widget. This will usually be either the last scaled or gradient pixmap if those have been specified in the config file, the original pixmap if not, or NULL if no pixmap has been specified. Definition at line 610 of file othemebase.h. References pixmaps. Referenced by OThemeStyle::drawArrow(), OThemeStyle::drawCheckMark(), OThemeStyle::drawComboButton(), OThemeStyle::drawExclusiveIndicator(), OThemeStyle::drawExclusiveIndicatorMask(), OThemeStyle::drawIndicator(), OThemeStyle::drawIndicatorMask(), OThemeStyle::drawProgressBar(), OThemeStyle::drawScrollBarControls(), OThemeStyle::drawSlider(), OThemeStyle::exclusiveIndicatorSize(), OThemeStyle::indicatorSize(), OThemeStyle::polish(), OThemeStyle::popupMenuItemHeight(), and sliderButtonLength(). |
|
|
Definition at line 482 of file othemebase.h. Referenced by applyMiscResourceGroup(), and arrowType(). |
|
|
Definition at line 492 of file othemebase.h. Referenced by activeTabLine(), applyResourceGroup(), copyWidgetConfig(), and readConfig(). |
|
|
Bevel contrasts Definition at line 551 of file othemebase.h. Referenced by applyResourceGroup(), bevelContrast(), and copyWidgetConfig(). |
|
|
Definition at line 500 of file othemebase.h. Referenced by applyMiscResourceGroup(), and OThemeStyle::polish(). |
|
|
Blend intensity factors Definition at line 547 of file othemebase.h. Referenced by applyResourceGroup(), blend(), copyWidgetConfig(), readConfig(), readResourceGroup(), scale(), and scalePixmap(). |
|
|
The border widths Definition at line 519 of file othemebase.h. Referenced by applyResourceGroup(), borderWidth(), copyWidgetConfig(), and decoWidth(). |
|
|
Definition at line 485 of file othemebase.h. Referenced by applyResourceGroup(), buttonXShift(), and readConfig(). |
|
|
Definition at line 485 of file othemebase.h. Referenced by applyResourceGroup(), buttonYShift(), and readConfig(). |
|
|
Definition at line 494 of file othemebase.h. Referenced by gradient(), OThemeBase(), scale(), scaleBorder(), and ~OThemeBase(). |
|
|
Definition at line 495 of file othemebase.h. Referenced by applyMiscResourceGroup(), and OThemeBase(). |
|
|
All the color groups. Definition at line 531 of file othemebase.h. Referenced by applyResourceGroup(), colorGroup(), copyWidgetConfig(), isColor(), and ~OThemeBase(). |
|
|
Definition at line 496 of file othemebase.h. Referenced by OThemeBase(), and readConfig(). |
|
|
Definition at line 497 of file othemebase.h. Referenced by loadImage(), loadPixmap(), OThemeBase(), and readConfig(). |
|
|
Reimplemented in OThemeStyle. Definition at line 570 of file othemebase.h. |
|
|
Definition at line 484 of file othemebase.h. Referenced by applyMiscResourceGroup(), and frameWidth(). |
|
|
Duplicate pixmap entries (used during destruction). Definition at line 555 of file othemebase.h. Referenced by applyResourceGroup(), copyWidgetConfig(), readResourceGroup(), and ~OThemeBase(). |
|
|
Definition at line 500 of file othemebase.h. Referenced by applyMiscResourceGroup(), and OThemeStyle::polish(). |
|
|
Definition at line 493 of file othemebase.h. Referenced by applyResourceGroup(), is3DFocus(), and readConfig(). |
|
|
Definition at line 488 of file othemebase.h. Referenced by applyResourceGroup(), focusOffset(), and readConfig(). |
|
|
Gradient types. Definition at line 543 of file othemebase.h. Referenced by applyResourceGroup(), blend(), copyWidgetConfig(), gradient(), gradientHint(), isPixmap(), and scalePixmap(). |
|
|
Gradient high colors. Definition at line 539 of file othemebase.h. Referenced by applyResourceGroup(), copyWidgetConfig(), gradient(), gradientHigh(), and ~OThemeBase(). |
|
|
Gradient low colors (or blend background). Definition at line 535 of file othemebase.h. Referenced by applyResourceGroup(), blend(), copyWidgetConfig(), gradient(), gradientLow(), and ~OThemeBase(). |
|
|
The highlight widths Definition at line 523 of file othemebase.h. Referenced by applyResourceGroup(), copyWidgetConfig(), decoWidth(), and highlightWidth(). |
|
|
The theme images. These are for scaled images and are kept in order to maintain fast smoothscaling. Definition at line 515 of file othemebase.h. Referenced by applyResourceGroup(), copyWidgetConfig(), image(), pixmapBrush(), readResourceGroup(), scale(), and ~OThemeBase(). |
|
|
Definition at line 492 of file othemebase.h. Referenced by applyResourceGroup(), copyWidgetConfig(), inactiveTabLine(), and readConfig(). |
|
|
Duplicate border pixmapped border entries Definition at line 567 of file othemebase.h. Referenced by applyResourceGroup(), copyWidgetConfig(), readResourceGroup(), and ~OThemeBase(). |
|
|
Pixmapped borders Definition at line 563 of file othemebase.h. Referenced by applyResourceGroup(), borderPixmap(), copyWidgetConfig(), generateBorderPix(), readResourceGroup(), scaleBorder(), and ~OThemeBase(). |
|
|
Pixmapped border widths Definition at line 559 of file othemebase.h. Referenced by applyResourceGroup(), borderWidth(), copyWidgetConfig(), decoWidth(), generateBorderPix(), highlightWidth(), pixBorderWidth(), and scaleBorder(). |
|
|
The theme pixmaps. Many of these may be NULL if no pixmap is specified. There may also be duplicate pixmap pointers if more than one widget uses the same tiled pixmap. If a pixmap is tiled, it is kept here and this acts as a cache. Otherwise this will hold whatever the last scaled pixmap was. Definition at line 510 of file othemebase.h. Referenced by applyResourceGroup(), blend(), copyWidgetConfig(), gradient(), isPixmap(), pixmapBrush(), readConfig(), readResourceGroup(), scale(), uncached(), and ~OThemeBase(). |
|
|
Definition at line 491 of file othemebase.h. Referenced by applyResourceGroup(), readConfig(), and roundButton(). |
|
|
Definition at line 491 of file othemebase.h. Referenced by applyResourceGroup(), readConfig(), and roundComboBox(). |
|
|
Definition at line 491 of file othemebase.h. Referenced by applyResourceGroup(), readConfig(), and roundSlider(). |
|
|
Definition at line 489 of file othemebase.h. Referenced by applyMiscResourceGroup(), and getSBExtent(). |
|
|
Definition at line 481 of file othemebase.h. Referenced by applyMiscResourceGroup(), and scrollBarLayout(). |
|
|
The scale hints for pixmaps and gradients. Definition at line 527 of file othemebase.h. Referenced by applyResourceGroup(), copyWidgetConfig(), readResourceGroup(), scale(), and scaleHint(). |
|
|
Definition at line 500 of file othemebase.h. Referenced by applyMiscResourceGroup(), and OThemeStyle::polish(). |
|
|
Definition at line 500 of file othemebase.h. Referenced by applyMiscResourceGroup(), and OThemeStyle::polish(). |
|
|
Definition at line 483 of file othemebase.h. Referenced by applyMiscResourceGroup(), makeColorGroup(), and shade(). |
|
|
Definition at line 486 of file othemebase.h. Referenced by sliderButtonLength(). |
|
|
Definition at line 490 of file othemebase.h. |
|
|
Definition at line 487 of file othemebase.h. Referenced by applyResourceGroup(), readConfig(), and splitWidth(). |
|
|
Definition at line 500 of file othemebase.h. Referenced by applyMiscResourceGroup(), and OThemeStyle::polish(). |
|
|
Definition at line 500 of file othemebase.h. Referenced by applyMiscResourceGroup(), and OThemeStyle::polish(). |
1.4.2