Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

webstyle.cpp File Reference

#include <qmenudata.h>
#include <qpalette.h>
#include <qbitmap.h>
#include <qtabbar.h>
#include <qpointarray.h>
#include <qscrollbar.h>
#include <qframe.h>
#include <qpushbutton.h>
#include <qdrawutil.h>
#include <qpainter.h>
#include "webstyle.h"

Include dependency graph for webstyle.cpp:

Go to the source code of this file.

Functions

static QColor contrastingForeground (const QColor &fg, const QColor &bg)
static void scrollBarControlsMetrics (const QScrollBar *sb, int sliderStart, int, int sliderMax, int sliderLength, int buttonDim, QRect &rSub, QRect &rAdd, QRect &rSubPage, QRect &rAddPage, QRect &rSlider)
static void drawFunkyRect (QPainter *p, int x, int y, int w, int h, bool small)

Variables

static const int _indicatorSize = 9
static QButton * _highlightedButton = 0
static const int _scrollBarExtent = 12
static QFrame * _currentFrame = 0
static int _savedFrameLineWidth
static int _savedFrameMidLineWidth
static ulong _savedFrameStyle
static const int ITEMFRAME = 1
static const int ITEMHMARGIN = 3
static const int ITEMVMARGIN = 0
static const int ARROWMARGIN = 6
static const int RIGHTBORDER = 10
static const int MINICONSIZE = 12


Function Documentation

static QColor contrastingForeground const QColor &  fg,
const QColor &  bg
[static]
 

Definition at line 55 of file webstyle.cpp.

References Qt::black, diff(), s, and Qt::white.

Referenced by WebStyle::drawButton(), WebStyle::drawComboButton(), WebStyle::drawExclusiveIndicator(), WebStyle::drawIndicator(), and WebStyle::drawPushButton().

static void drawFunkyRect QPainter *  p,
int  x,
int  y,
int  w,
int  h,
bool  small
[static]
 

Definition at line 167 of file webstyle.cpp.

References p, Opie::MM::x, and Opie::MM::y.

Referenced by WebStyle::drawButton(), WebStyle::drawComboButton(), and WebStyle::drawPushButton().

static void scrollBarControlsMetrics const QScrollBar *  sb,
int  sliderStart,
int  ,
int  sliderMax,
int  sliderLength,
int  buttonDim,
QRect &  rSub,
QRect &  rAdd,
QRect &  rSubPage,
QRect &  rAddPage,
QRect &  rSlider
[static]
 

Definition at line 78 of file webstyle.cpp.

References g, and len.

Referenced by WebStyle::drawScrollBarControls().


Variable Documentation

QFrame* _currentFrame = 0 [static]
 

Definition at line 41 of file webstyle.cpp.

Referenced by WebStyle::polish(), and WebStyle::unPolish().

QButton* _highlightedButton = 0 [static]
 

Definition at line 38 of file webstyle.cpp.

Referenced by WebStyle::drawPushButton(), and WebStyle::eventFilter().

const int _indicatorSize = 9 [static]
 

Definition at line 37 of file webstyle.cpp.

Referenced by WebStyle::exclusiveIndicatorSize(), and WebStyle::indicatorSize().

int _savedFrameLineWidth [static]
 

Definition at line 42 of file webstyle.cpp.

Referenced by WebStyle::polish(), and WebStyle::unPolish().

int _savedFrameMidLineWidth [static]
 

Definition at line 43 of file webstyle.cpp.

Referenced by WebStyle::polish(), and WebStyle::unPolish().

ulong _savedFrameStyle [static]
 

Definition at line 44 of file webstyle.cpp.

Referenced by WebStyle::polish(), and WebStyle::unPolish().

const int _scrollBarExtent = 12 [static]
 

Definition at line 39 of file webstyle.cpp.

Referenced by WebStyle::drawScrollBarControls(), WebStyle::scrollBarMetrics(), and WebStyle::WebStyle().

const int ARROWMARGIN = 6 [static]
 

Definition at line 50 of file webstyle.cpp.

const int ITEMFRAME = 1 [static]
 

Definition at line 46 of file webstyle.cpp.

const int ITEMHMARGIN = 3 [static]
 

Definition at line 47 of file webstyle.cpp.

const int ITEMVMARGIN = 0 [static]
 

Definition at line 48 of file webstyle.cpp.

const int MINICONSIZE = 12 [static]
 

Definition at line 52 of file webstyle.cpp.

const int RIGHTBORDER = 10 [static]
 

Definition at line 51 of file webstyle.cpp.


Generated on Sat Nov 5 17:13:32 2005 for OPIE by  doxygen 1.4.2