00001 // @(#)root/qt:$Id: TQtEmitter.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Valeri Fine 06/01/2006 00003 /**************************************************************************** 00004 ** 00005 ** Copyright (C) 2002 by Valeri Fine. All rights reserved. 00006 ** 00007 ** This file may be distributed under the terms of the Q Public License 00008 ** as defined by Trolltech AS of Norway and appearing in the file 00009 ** LICENSE.QPL included in the packaging of this file. 00010 *****************************************************************************/ 00011 00012 #ifndef ROOT_TQtEmitter 00013 #define ROOT_TQtEmitter 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TQtEmitter - is a proxy class tyo emti the Qt signals on behalf // 00019 // of TGQt non-Qt class // 00020 // // 00021 ////////////////////////////////////////////////////////////////////////// 00022 00023 #include "TQtRConfig.h" 00024 #ifndef __CINT__ 00025 #include <qobject.h> 00026 class QPixmap; 00027 00028 class TQtEmitter : public QObject { 00029 Q_OBJECT 00030 private: 00031 friend class TGQt; 00032 void EmitPadPainted(QPixmap *p) { emit padPainted(p);} 00033 protected: 00034 TQtEmitter& operator=(const TQtEmitter&); // AXEL: intentionally not implementedpublic: 00035 TQtEmitter(){}; 00036 signals: 00037 void padPainted(QPixmap *p); 00038 }; 00039 #endif 00040 #endif