lib

KoDecorationTab.h
1/* This file is part of the KDE project
2 Copyright (C) 2001,2002,2003 Montel Laurent <lmontel@mandrakesoft.com>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __kohigdecorationtab_h__
21#define __kohigdecorationtab_h__
22
23#include <kodecorationtabbase.h>
24
25#include <tqcolor.h>
26
27class KoDecorationTab : public KoDecorationTabBase
28{
29 TQ_OBJECT
30
31
32public:
33 KoDecorationTab( TQWidget* parent=0, const char* name=0, WFlags fl=0 );
34 ~KoDecorationTab();
35
36 TQColor getTextColor() const;
37 TQColor getBackgroundColor() const;
38 double getShadowDistanceX() const;
39 double getShadowDistanceY() const;
40 TQColor getShadowColor() const;
41
42 void setTextColor( const TQColor &color );
43 void setBackgroundColor( const TQColor &color );
44 void setShadow( double shadowDistanceX, double shadowDistanceY, const TQColor& shadowColor );
45
46signals:
47 void fontColorChanged( const TQColor& );
48 void backgroundColorChanged( const TQColor& );
49 void shadowColorChanged( const TQColor& );
50 void shadowDistanceChanged( double );
51 void shadowDirectionChanged( int );
52 void shadowChanged();
53
54protected:
55 enum {
56 SD_LEFT_UP = 1,
57 SD_UP = 2,
58 SD_RIGHT_UP = 3,
59 SD_RIGHT = 4,
60 SD_RIGHT_BOTTOM = 5,
61 SD_BOTTOM = 6,
62 SD_LEFT_BOTTOM = 7,
63 SD_LEFT = 8
64 } ShadowDirection;
65
66 double shadowDistanceX( short int sd, double dist ) const;
67 double shadowDistanceY( short int sd, double dist ) const;
68
69};
70
71#endif