00001
00002
00003
00004
00005
00006
00007
00008 #ifndef PIPELINE_EDIT_H
00009 #define PIPELINE_EDIT_H
00010
00011
00012
00013 #include <QtGui>
00014
00015
00016
00017 class Pipeline;
00018
00019 class PipelineEdit : public QWidget
00020 {
00021 Q_OBJECT
00022
00023 public:
00024 PipelineEdit(QWidget *parent = 0);
00025 void Initialize( Pipeline *pipeline, QLayout *layout, bool truePipeline );
00026
00027 protected:
00028 void dragEnterEvent(QDragEnterEvent *event);
00029 void dragMoveEvent(QDragMoveEvent *event);
00030 void dropEvent(QDropEvent *event);
00031 void mousePressEvent(QMouseEvent *event);
00032
00033 private:
00034 Pipeline *pipeline;
00035 QLayout *layout;
00036 bool truePipeline;
00037 };
00038
00039 #endif