Mixxx

/home/maxime/Projets/Mixxx/1.10/mixxx/src/controlobjectthreadwidget.h

Go to the documentation of this file.
00001 //
00002 // C++ Interface: controlobjecthreadwidget.h
00003 //
00004 // Description:
00005 //
00006 //
00007 // Author: Tue Haste Andersen <haste@diku.dk>, (C) 2004
00008 //
00009 // Copyright: See COPYING file that comes with this distribution
00010 //
00011 //
00012 #ifndef CONTROLOBJECTTHREADWIDGET_H
00013 #define CONTROLOBJECTTHREADWIDGET_H
00014 
00015 #include <QWidget>
00016 
00017 #include "controlobjectthreadmain.h"
00018 
00019 class ControlObject;
00020 
00025 class ControlObjectThreadWidget : public ControlObjectThreadMain
00026 {
00027     Q_OBJECT
00028 public:
00029 
00030     enum EmitOption {
00031         EMIT_NEVER                = 0x00,
00032         EMIT_ON_PRESS             = 0x01,
00033         EMIT_ON_RELEASE           = 0x02,
00034         EMIT_ON_PRESS_AND_RELEASE = 0x03
00035     };
00036 
00037     ControlObjectThreadWidget(ControlObject *pControlObject, QObject* pParent=NULL);
00038     virtual ~ControlObjectThreadWidget();
00040     void setWidget(QWidget *widget,
00041                    bool connectValueFromWidget=true, bool connectValueToWidget = true,
00042                    EmitOption emitOption=EMIT_ON_PRESS, Qt::MouseButton state=Qt::NoButton);
00044     void setWidgetOnOff(QWidget *widget);
00045     bool setExtern(double v);
00046 
00047 private:
00048     void updateControlObject();
00049 };
00050 
00051 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines