You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
415 lines
7.6 KiB
415 lines
7.6 KiB
15 years ago
|
/*
|
||
|
* Copyright (C) 2001 Rik Hemsley (rikkus) <rik@kde.org>
|
||
|
*
|
||
|
* This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU Library General Public
|
||
|
* License as published by the Free Software Foundation; either
|
||
|
* version 2 of the License, or (at your option) any later version.
|
||
|
*
|
||
|
* This library is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
|
* Library General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Library General Public License
|
||
|
* along with this library; see the file COPYING.LIB. If not, write to
|
||
|
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||
|
* Boston, MA 02110-1301, USA.
|
||
|
*/
|
||
|
|
||
|
#ifndef WEB_STYLE_H
|
||
|
#define WEB_STYLE_H
|
||
|
|
||
12 years ago
|
#include <tdestyle.h>
|
||
13 years ago
|
#include <tqpalette.h>
|
||
15 years ago
|
|
||
14 years ago
|
class TQPainter;
|
||
|
class TQScrollBar;
|
||
|
class TQPushButton;
|
||
|
class TQWidget;
|
||
15 years ago
|
|
||
12 years ago
|
class WebStyle : public TDEStyle
|
||
15 years ago
|
{
|
||
|
public:
|
||
|
|
||
|
WebStyle();
|
||
|
|
||
|
~WebStyle();
|
||
|
|
||
14 years ago
|
void polish(TQApplication *);
|
||
15 years ago
|
|
||
14 years ago
|
void unPolish(TQWidget *);
|
||
15 years ago
|
|
||
14 years ago
|
void polish(TQWidget *);
|
||
15 years ago
|
|
||
14 years ago
|
void polish(TQPalette &);
|
||
15 years ago
|
|
||
14 years ago
|
void unPolish(TQApplication *);
|
||
15 years ago
|
|
||
|
void drawButton
|
||
|
(
|
||
14 years ago
|
TQPainter * p,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup & g,
|
||
15 years ago
|
bool sunken = false,
|
||
14 years ago
|
const TQBrush * fill = 0
|
||
15 years ago
|
);
|
||
|
|
||
14 years ago
|
TQRect buttonRect(int x, int y, int w, int h);
|
||
15 years ago
|
|
||
|
void drawBevelButton
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
bool sunken = false,
|
||
14 years ago
|
const TQBrush * fill = 0
|
||
15 years ago
|
);
|
||
|
|
||
14 years ago
|
void drawPushButton(TQPushButton *, TQPainter *);
|
||
15 years ago
|
|
||
14 years ago
|
virtual void drawPushButtonLabel(TQPushButton *, TQPainter *);
|
||
15 years ago
|
|
||
|
void drawScrollBarControls
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
|
const TQScrollBar *,
|
||
15 years ago
|
int sliderStart,
|
||
|
uint controls,
|
||
|
uint activeControl
|
||
|
);
|
||
|
|
||
14 years ago
|
TQStyle::ScrollControl scrollBarPointOver
|
||
15 years ago
|
(
|
||
14 years ago
|
const TQScrollBar *,
|
||
15 years ago
|
int sliderStart,
|
||
14 years ago
|
const TQPoint &
|
||
15 years ago
|
);
|
||
|
|
||
|
void scrollBarMetrics
|
||
|
(
|
||
14 years ago
|
const TQScrollBar *,
|
||
15 years ago
|
int & sliderMin,
|
||
|
int & sliderMax,
|
||
|
int & sliderLength,
|
||
|
int & buttonDim
|
||
|
);
|
||
|
|
||
14 years ago
|
TQSize indicatorSize() const;
|
||
15 years ago
|
|
||
|
void drawIndicator
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
int state,
|
||
|
bool down = false,
|
||
|
bool enabled = true
|
||
|
);
|
||
|
|
||
14 years ago
|
TQSize exclusiveIndicatorSize() const;
|
||
15 years ago
|
|
||
|
void drawExclusiveIndicator
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
bool on,
|
||
|
bool down = false,
|
||
|
bool enabled = true
|
||
|
);
|
||
|
|
||
|
void drawIndicatorMask
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
|
int state
|
||
|
);
|
||
|
|
||
|
void drawExclusiveIndicatorMask
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
|
bool on
|
||
|
);
|
||
|
|
||
|
void drawComboButton
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
bool sunken = false,
|
||
|
bool editable = false,
|
||
|
bool enabled = true,
|
||
14 years ago
|
const TQBrush * fill = 0
|
||
15 years ago
|
);
|
||
|
|
||
14 years ago
|
TQRect comboButtonRect(int x, int y, int w, int h);
|
||
15 years ago
|
|
||
14 years ago
|
TQRect comboButtonFocusRect(int x, int y, int w, int h);
|
||
15 years ago
|
|
||
|
int sliderLength() const;
|
||
|
|
||
|
void drawSliderGroove
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
QCOORD,
|
||
|
Orientation
|
||
|
);
|
||
|
|
||
|
void drawArrow
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
Qt::ArrowType,
|
||
|
bool down,
|
||
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
bool enabled = true,
|
||
14 years ago
|
const TQBrush * fill = 0
|
||
15 years ago
|
);
|
||
|
|
||
|
void drawSlider
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
Orientation,
|
||
|
bool tickAbove,
|
||
|
bool tickBelow
|
||
|
);
|
||
|
|
||
12 years ago
|
void drawTDEToolBar
|
||
15 years ago
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
12 years ago
|
TDEToolBarPos,
|
||
14 years ago
|
TQBrush * fill = 0
|
||
15 years ago
|
);
|
||
|
|
||
|
void drawKBarHandle
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
12 years ago
|
TDEToolBarPos,
|
||
14 years ago
|
TQBrush * fill = 0
|
||
15 years ago
|
);
|
||
|
|
||
|
void drawKMenuBar
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
bool macMode,
|
||
14 years ago
|
TQBrush * fill = 0
|
||
15 years ago
|
);
|
||
|
|
||
12 years ago
|
void drawTDEToolBarButton
|
||
15 years ago
|
(
|
||
14 years ago
|
TQPainter * p,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup & g,
|
||
15 years ago
|
bool sunken = false,
|
||
|
bool raised = true,
|
||
|
bool enabled = true,
|
||
|
bool popup = false,
|
||
12 years ago
|
TDEToolButtonType = Icon,
|
||
14 years ago
|
const TQString & btext = TQString::null,
|
||
|
const TQPixmap * = 0,
|
||
|
TQFont * = 0,
|
||
|
TQWidget * button = 0
|
||
15 years ago
|
);
|
||
|
|
||
|
void drawKMenuItem
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
bool active,
|
||
14 years ago
|
TQMenuItem *,
|
||
|
TQBrush * fill = 0
|
||
15 years ago
|
);
|
||
|
|
||
|
void drawPopupMenuItem
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
bool checkable,
|
||
|
int maxpmw,
|
||
|
int tab,
|
||
14 years ago
|
TQMenuItem *,
|
||
|
const TQPalette &,
|
||
15 years ago
|
bool act,
|
||
|
bool enabled,
|
||
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h
|
||
|
);
|
||
|
|
||
|
void drawKProgressBlock
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
|
TQBrush * fill
|
||
15 years ago
|
);
|
||
|
|
||
|
void drawFocusRect
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
|
const TQRect &,
|
||
|
const TQColorGroup &,
|
||
|
const TQColor * pen,
|
||
15 years ago
|
bool atBorder
|
||
|
);
|
||
|
|
||
|
void drawPanel
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
bool sunken,
|
||
|
int lineWidth = 1,
|
||
14 years ago
|
const TQBrush * = 0
|
||
15 years ago
|
);
|
||
|
|
||
|
void drawPopupPanel
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
int lineWidth = 2,
|
||
14 years ago
|
const TQBrush * = 0
|
||
15 years ago
|
);
|
||
|
|
||
|
void drawSeparator
|
||
|
(
|
||
14 years ago
|
TQPainter *,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup &,
|
||
15 years ago
|
bool sunken = true,
|
||
|
int lineWidth = 1,
|
||
|
int midLineWidth = 0
|
||
|
);
|
||
|
|
||
|
void drawTab
|
||
|
(
|
||
14 years ago
|
TQPainter * p,
|
||
|
const TQTabBar * tabBar,
|
||
|
TQTab * tab,
|
||
15 years ago
|
bool selected
|
||
|
);
|
||
|
|
||
|
void drawTabMask
|
||
|
(
|
||
14 years ago
|
TQPainter * p,
|
||
|
const TQTabBar *,
|
||
|
TQTab * tab,
|
||
15 years ago
|
bool
|
||
|
);
|
||
|
|
||
|
void drawKickerHandle
|
||
|
(
|
||
14 years ago
|
TQPainter * p,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup & g,
|
||
|
TQBrush *
|
||
15 years ago
|
);
|
||
|
|
||
|
void drawKickerAppletHandle
|
||
|
(
|
||
14 years ago
|
TQPainter * p,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup & g,
|
||
|
TQBrush *
|
||
15 years ago
|
);
|
||
|
|
||
|
void drawKickerTaskButton
|
||
|
(
|
||
14 years ago
|
TQPainter * p,
|
||
15 years ago
|
int x,
|
||
|
int y,
|
||
|
int w,
|
||
|
int h,
|
||
14 years ago
|
const TQColorGroup & g,
|
||
|
const TQString & title,
|
||
15 years ago
|
bool active,
|
||
14 years ago
|
TQPixmap * icon,
|
||
|
TQBrush *
|
||
15 years ago
|
);
|
||
|
|
||
14 years ago
|
int popupMenuItemHeight(bool, TQMenuItem *, const TQFontMetrics &);
|
||
15 years ago
|
|
||
|
GUIStyle guiStyle() const { return Qt::MotifStyle; }
|
||
|
|
||
14 years ago
|
bool eventFilter(TQObject *, TQEvent *);
|
||
15 years ago
|
};
|
||
|
|
||
|
#endif
|