Last change
on this file since 558 was 77, checked in by rissim, 15 years ago |
trigger: gui added, interface modified
|
File size:
548 bytes
|
Line | |
---|
1 | #ifndef TPIXEL_H
|
---|
2 | #define TPIXEL_H
|
---|
3 |
|
---|
4 |
|
---|
5 | #include <QWidget>
|
---|
6 | #include <QVBoxLayout>
|
---|
7 |
|
---|
8 | class Tpixel : public QWidget
|
---|
9 | {
|
---|
10 | int MaxVal;
|
---|
11 | Q_OBJECT
|
---|
12 | public:
|
---|
13 | Tpixel( QWidget *parent=0 );
|
---|
14 | int value();
|
---|
15 | void setMaxVal(int val){MaxVal=val;};
|
---|
16 | int getMaxVal(){return MaxVal;};
|
---|
17 | private:
|
---|
18 | int val;
|
---|
19 | QVBoxLayout* ColorWidg;
|
---|
20 | public slots:
|
---|
21 | void setValue( int );
|
---|
22 |
|
---|
23 |
|
---|
24 |
|
---|
25 | signals:
|
---|
26 | void valueChanged( int );
|
---|
27 | protected:
|
---|
28 | void paintEvent( QPaintEvent * );
|
---|
29 | private:
|
---|
30 | QColor *bgColor;
|
---|
31 | //QSlider *slider;
|
---|
32 | };
|
---|
33 |
|
---|
34 |
|
---|
35 | #endif // TPIXEL_H
|
---|
36 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.