00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00024
00025 #ifndef QVPARAMWIDGET_H
00026 #define QVPARAMWIDGET_H
00027
00028 #include <QWidget>
00029 #include <QToolButton>
00030 #include <QComboBox>
00031 #include <QLineEdit>
00032
00033 #include <QVProcessingBlock>
00034 #include <QVIndexedStringList>
00035
00036 class QLineEdit;
00037 class QSlider;
00038 class QwtSlider;
00039 class QCheckBox;
00040 class QLabel;
00041
00042 #ifndef DOXYGEN_IGNORE_THIS
00043
00051 class QVSIntParamWidget: public QWidget
00052 {
00053 Q_OBJECT
00054 public:
00065 QVSIntParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00066
00067 signals:
00070 void valueChanged(int);
00071
00072 private slots:
00073 void setValue();
00074
00075 private:
00076 int value,min,max;
00077 QVPropertyContainer *orig_holder,*gui_holder;
00078 QString property, info;
00079 QLineEdit *lineedit;
00080 QSlider *slider;
00081 };
00082
00090 class QVUIntParamWidget: public QWidget
00091 {
00092 Q_OBJECT
00093 public:
00104 QVUIntParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00105
00106 signals:
00109 void valueChanged(unsigned int);
00110
00111 private slots:
00112 void setValue();
00113
00114 private:
00115 int value,min,max;
00116 QVPropertyContainer *orig_holder,*gui_holder;
00117 QString property, info;
00118 QLineEdit *lineedit;
00119 QSlider *slider;
00120 };
00121
00129 class QVSCharParamWidget: public QWidget
00130 {
00131 Q_OBJECT
00132 public:
00143 QVSCharParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00144
00145 signals:
00148 void valueChanged(char);
00149
00150 private slots:
00151 void setValue();
00152
00153 private:
00154 int value,min,max;
00155 QVPropertyContainer *orig_holder,*gui_holder;
00156 QString property, info;
00157 QLineEdit *lineedit;
00158 QSlider *slider;
00159 };
00160
00168 class QVUCharParamWidget: public QWidget
00169 {
00170 Q_OBJECT
00171 public:
00182 QVUCharParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00183
00184 signals:
00187 void valueChanged(unsigned char);
00188
00189 private slots:
00190 void setValue();
00191
00192 private:
00193 int value,min,max;
00194 QVPropertyContainer *orig_holder,*gui_holder;
00195 QString property, info;
00196 QLineEdit *lineedit;
00197 QSlider *slider;
00198 };
00206 class QVDoubleParamWidget: public QWidget
00207 {
00208 Q_OBJECT
00209 public:
00220 QVDoubleParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00221
00222 signals:
00225 void valueChanged(double);
00226
00227 private slots:
00228 void setValue();
00229
00230 private:
00231 double value,min,max;
00232 QVPropertyContainer *orig_holder,*gui_holder;
00233 QString property, info;
00234 QLineEdit *lineedit;
00235 QwtSlider *qwtslider;
00236 };
00237
00245 class QVFloatParamWidget: public QWidget
00246 {
00247 Q_OBJECT
00248 public:
00259 QVFloatParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00260
00261 signals:
00264 void valueChanged(float);
00265
00266 private slots:
00267 void setValue();
00268
00269 private:
00270 double value,min,max;
00271 QVPropertyContainer *orig_holder,*gui_holder;
00272 QString property, info;
00273 QLineEdit *lineedit;
00274 QwtSlider *qwtslider;
00275 };
00276
00277
00285 class QVBoolParamWidget: public QWidget
00286 {
00287 Q_OBJECT
00288 public:
00299 QVBoolParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00300
00301 signals:
00304 void valueChanged(bool);
00305
00306 private slots:
00307 void setValue();
00308
00309 private:
00310 bool value;
00311 QVPropertyContainer *orig_holder,*gui_holder;
00312 QString property, info;
00313 QCheckBox *checkbox;
00314 };
00315
00323 class QVStringParamWidget: public QWidget
00324 {
00325 Q_OBJECT
00326 public:
00337 QVStringParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00338
00339 signals:
00342 void valueChanged(QString);
00343
00344 private slots:
00345 void setValue();
00346
00347 private:
00348 QString value;
00349 QVPropertyContainer *orig_holder,*gui_holder;
00350 QString property, info;
00351 QLineEdit *lineedit;
00352 };
00353
00361 class QVStringListParamWidget: public QWidget
00362 {
00363 Q_OBJECT
00364 public:
00375 QVStringListParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00376
00377 signals:
00380 void valueChanged(QVIndexedStringList);
00381
00382 private slots:
00383 void setValue();
00384
00385 private:
00386 QVIndexedStringList value;
00387 QVPropertyContainer *orig_holder,*gui_holder;
00388 QString property, info;
00389 QComboBox *combobox;
00390 };
00391
00392
00400 class QVProcessingBlockTriggerWidget: public QWidget
00401 {
00402 Q_OBJECT
00403
00404 public:
00409 QVProcessingBlockTriggerWidget(QVProcessingBlock *block, const QString triggername, QWidget *parent = 0);
00410
00411 signals:
00414 void valueChanged(QString);
00415
00416 private slots:
00417 void setValue();
00418
00419 private:
00420 QVProcessingBlock *block;
00421 QString triggername;
00422 QToolButton *toolbutton;
00423 };
00424
00425 #include <QColor>
00426 class QVColorParamWidget: public QWidget
00427 {
00428 Q_OBJECT
00429 public:
00440 QVColorParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00441
00442 signals:
00445 void valueChanged(QColor);
00446
00447 private slots:
00448 void setValue();
00449
00450 private:
00451 QColor value;
00452 QVPropertyContainer *orig_holder,*gui_holder;
00453 QString property, info;
00454 QLineEdit *lineeditR, *lineeditG, *lineeditB;
00455 QSlider *sliderR, *sliderG, *sliderB;
00456 };
00457
00458 #include <QSize>
00459 class QVSizeParamWidget: public QWidget
00460 {
00461 Q_OBJECT
00462 public:
00463 QVSizeParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00464
00465 signals:
00466 void valueChanged(QSize);
00467
00468 private slots:
00469 void setValue();
00470
00471 private:
00472 QSize value;
00473 QVPropertyContainer *orig_holder,*gui_holder;
00474 QString property;
00475 QLineEdit *lineWidth, *lineHeight;
00476 };
00477
00478 #include <QPoint>
00479 class QVPointParamWidget: public QWidget
00480 {
00481 Q_OBJECT
00482 public:
00483 QVPointParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00484
00485 signals:
00486 void valueChanged(QPoint);
00487
00488 private slots:
00489 void setValue();
00490
00491 private:
00492 QPoint value;
00493 QVPropertyContainer *orig_holder,*gui_holder;
00494 QString property;
00495 QLineEdit *lineX, *lineY;
00496 };
00497
00498 #include <ipp.h>
00499 class QVIppiMaskSizeParamWidget: public QWidget
00500 {
00501 Q_OBJECT
00502 public:
00503 QVIppiMaskSizeParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00504
00505 signals:
00506 void valueChanged(IppiMaskSize);
00507
00508 private slots:
00509 void setValue();
00510
00511 private:
00512 IppiMaskSize value;
00513 QVPropertyContainer *orig_holder,*gui_holder;
00514 QString property;
00515 QComboBox *combobox;
00516 };
00517
00518 class QVIppCmpOpParamWidget: public QWidget
00519 {
00520 Q_OBJECT
00521 public:
00522
00523 QVIppCmpOpParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00524
00525 signals:
00526 void valueChanged(IppCmpOp);
00527
00528 private slots:
00529 void setValue();
00530
00531 private:
00532 IppCmpOp value;
00533 QVPropertyContainer *orig_holder,*gui_holder;
00534 QString property;
00535 QComboBox *combobox;
00536 };
00537
00538
00539 class QVIppRoundModeParamWidget: public QWidget
00540 {
00541 Q_OBJECT
00542 public:
00543 QVIppRoundModeParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00544 signals:
00545 void valueChanged(IppRoundMode);
00546
00547 private slots:
00548 void setValue();
00549
00550 private:
00551 IppRoundMode value;
00552 QVPropertyContainer *orig_holder,*gui_holder;
00553 QString property;
00554 QComboBox *combobox;
00555 };
00556
00558
00566 class QVOutputIntParamWidget: public QWidget
00567 {
00568 Q_OBJECT
00569 public:
00580 QVOutputIntParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00581
00582 private slots:
00583 void update();
00584
00585 private:
00586 int value;
00587 QVPropertyContainer *orig_holder,*gui_holder;
00588 QString property, info;
00589 QLabel *label;
00590 };
00591
00599 class QVOutputDoubleParamWidget: public QWidget
00600 {
00601 Q_OBJECT
00602 public:
00613 QVOutputDoubleParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00614
00615 private slots:
00616 void update();
00617
00618 private:
00619 double value;
00620 QVPropertyContainer *orig_holder,*gui_holder;
00621 QString property, info;
00622 QLabel *label;
00623 };
00624
00632 class QVOutputBoolParamWidget: public QWidget
00633 {
00634 Q_OBJECT
00635 public:
00646 QVOutputBoolParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00647
00648 private slots:
00649 void update();
00650
00651 private:
00652 bool value;
00653 QVPropertyContainer *orig_holder,*gui_holder;
00654 QString property, info;
00655 QLabel *label;
00656 };
00657
00665 class QVOutputStringParamWidget: public QWidget
00666 {
00667 Q_OBJECT
00668 public:
00679 QVOutputStringParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00680
00681 private slots:
00682 void update();
00683
00684 private:
00685 QString value;
00686 QVPropertyContainer *orig_holder,*gui_holder;
00687 QString property, info;
00688 QLabel *label;
00689 };
00690
00698 class QVOutputStringListParamWidget: public QWidget
00699 {
00700 Q_OBJECT
00701 public:
00712 QVOutputStringListParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00713
00714 private slots:
00715 void update();
00716
00717 private:
00718 QVIndexedStringList value;
00719 QVPropertyContainer *orig_holder,*gui_holder;
00720 QString property, info;
00721 QLabel *label;
00722 };
00723
00731 class QVOutputColorParamWidget: public QWidget
00732 {
00733 Q_OBJECT
00734 public:
00745 QVOutputColorParamWidget(QVPropertyContainer *orig_holder, QVPropertyContainer *gui_holder, const QString property, QWidget *parent = 0);
00746
00747 private slots:
00748 void update();
00749
00750 private:
00751 QColor value;
00752 QVPropertyContainer *orig_holder,*gui_holder;
00753 QString property, info;
00754 QLabel *label;
00755 };
00756
00757 #endif
00758 #endif
00759