1 /***************************************************************************
2 klineal.h - description
4 begin : Fri Oct 13 2000
5 copyright : (C) 2000 by Till Krech
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
23 #include <kcolordialog.h>
28 class KLineal
: public QWidget
{
31 enum { North
=0, West
=1, South
=2, East
=3 };
33 KLineal(QWidget
*parent
=0);
36 void move(int x
, int y
);
37 void move(const QPoint
&p
);
42 void keyPressEvent(QKeyEvent
*e
);
43 void mousePressEvent(QMouseEvent
*e
);
44 void mouseReleaseEvent(QMouseEvent
*e
);
45 void mouseMoveEvent(QMouseEvent
*e
);
46 void paintEvent(QPaintEvent
*e
);
47 void enterEvent(QEvent
*e
);
48 void leaveEvent(QEvent
*e
);
52 void drawScale(QPainter
&painter
);
53 void drawBackground(QPainter
&painter
);
54 void reLength(int percentOfScreen
);
65 QAction
*mFullScreenAction
;
68 QCursor mCurrentCursor
;
74 KColorDialog mColorSelector
;
78 void setOrientation(int);
89 void setShortLength();
90 void setMediumLength();
94 void setFont(QFont
&);
95 void setColor(const QColor
&color
);