| 1 |
#ifndef DECODER_CONFIG_H |
| 2 |
#define DECODER_CONFIG_H |
| 3 |
|
| 4 |
#include <qdialog.h> |
| 5 |
|
| 6 |
#include <infotypes.h> |
| 7 |
#include <videodecoder.h> |
| 8 |
|
| 9 |
class QSlider; |
| 10 |
|
| 11 |
class QConfDialog: public QDialog |
| 12 |
{ |
| 13 |
Q_OBJECT; |
| 14 |
|
| 15 |
public: |
| 16 |
QConfDialog(const avm::vector<avm::AttributeInfo>&); |
| 17 |
public slots: |
| 18 |
virtual void reset(); |
| 19 |
virtual void reject(); |
| 20 |
virtual void valueChanged(int) = 0; |
| 21 |
protected: |
| 22 |
const avm::vector<avm::AttributeInfo>& attrs; |
| 23 |
avm::vector<QSlider*> sliders; |
| 24 |
avm::vector<int> original; |
| 25 |
}; |
| 26 |
|
| 27 |
class QCodecConf: public QConfDialog |
| 28 |
{ |
| 29 |
Q_OBJECT; |
| 30 |
|
| 31 |
public: |
| 32 |
QCodecConf(const avm::CodecInfo&, avm::IRtConfig* _rt=0); |
| 33 |
public slots: |
| 34 |
virtual void valueChanged(int); |
| 35 |
protected: |
| 36 |
const avm::CodecInfo& info; |
| 37 |
avm::IRtConfig* rt; |
| 38 |
}; |
| 39 |
|
| 40 |
class QRendererConf: public QConfDialog |
| 41 |
{ |
| 42 |
Q_OBJECT; |
| 43 |
|
| 44 |
public: |
| 45 |
QRendererConf(const avm::vector<avm::AttributeInfo>&, avm::IRtConfig* _rt=0); |
| 46 |
public slots: |
| 47 |
virtual void valueChanged(int); |
| 48 |
protected: |
| 49 |
avm::IRtConfig* rt; |
| 50 |
}; |
| 51 |
|
| 52 |
#endif |