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.
50 lines
873 B
50 lines
873 B
15 years ago
|
//
|
||
|
// Simple little hack to show off new diagonal gradients.
|
||
|
//
|
||
|
// (C) KDE Artistic Daniel M. Duley <mosfet@kde.org>
|
||
|
//
|
||
|
|
||
|
#ifndef __KGRADIENT_TEST_H
|
||
|
#define __KGRADIENT_TEST_H
|
||
|
|
||
15 years ago
|
#include <tqwidget.h>
|
||
15 years ago
|
#include <kpixmap.h>
|
||
15 years ago
|
#include <tqslider.h>
|
||
|
#include <tqlabel.h>
|
||
|
#include <tqdatetime.h>
|
||
15 years ago
|
|
||
14 years ago
|
class KGradientWidget : public TQWidget
|
||
15 years ago
|
{
|
||
|
public:
|
||
15 years ago
|
KGradientWidget(TQWidget *parent=0, const char *name=0);
|
||
15 years ago
|
|
||
|
void setBalance(int a, int b) { xbalance = a; ybalance = b; }
|
||
|
protected:
|
||
15 years ago
|
void paintEvent(TQPaintEvent *ev);
|
||
15 years ago
|
private:
|
||
|
KPixmap pix;
|
||
|
int xbalance, ybalance;
|
||
15 years ago
|
TQTime time;
|
||
15 years ago
|
|
||
|
};
|
||
|
|
||
14 years ago
|
class myTopWidget: public TQWidget
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
15 years ago
|
myTopWidget(TQWidget *parent=0, const char *name=0);
|
||
15 years ago
|
|
||
|
private:
|
||
15 years ago
|
TQLabel *bLabel;
|
||
|
TQSlider *xSlider, *ySlider;
|
||
15 years ago
|
KGradientWidget *grds;
|
||
|
|
||
15 years ago
|
TQTime time;
|
||
15 years ago
|
|
||
|
int itime, otime;
|
||
|
|
||
|
private slots:
|
||
|
void rebalance();
|
||
|
};
|
||
|
#endif
|