Index of QT classes

ROOT Qt-layer classes

// @(#)root/gui:$Name:  $:$Id: TQtPatternSelect.h,v 1.7 2006/07/04 20:46:50 fine Exp $
// Author: Valeri Fine  21/05/2004

#ifndef ROOT_TQtPatternSelect
#define ROOT_TQtPatternSelect

** $Id: TQtPatternSelect.h,v 1.7 2006/07/04 20:46:50 fine Exp $
** Copyright (C) 2004 by Valeri Fine. Brookhaven National Laboratory.
**                                    All rights reserved.
** This file may be distributed under the terms of the Q Public License
** as defined by Trolltech AS of Norway and appearing in the file
** LICENSE.QPL included in the packaging of this file.

//                                                                      //
// The TQtPatternSelect widget is like a checkbutton but instead of the //
// check mark there is color area with a little down arrow. When        //
// clicked on the arrow the TQtPatternPopup pops up.                    //
//                                                                      //
// Selecting a color in this widget will generate the QEvent* e)">event:            //
// kC_COLORSEL, kCOL_SELCHANGED, widget id, pixel.                      //
// and the signal:                                                      //
// ColorSelected(Pixel_t pixel)                                         //
//                                                                      //

#include "GuiTypes.h"
#include "Gtypes.h"
#include "Riostream.h"
#ifndef ROOT_TQObject
#include "TQObject.h"

#ifndef __CINT__
#include <qobject.h>
#  if QT_VERSION >= 0x40000
//Added by qt3to4:
#    include <QEvent>
#  endif /* QT_VERSION */

class QWidget;
class TQtPatternSelectButton;
class QEvent;

class TEmitRootSignal {
   virtual ~TEmitRootSignal(){}
   virtual  void EmitRootSignal(ULong_t ) { }


class TQtPatternSelect : 
#ifndef __CINT__
   public QObject, 
   public TObject, public TQObject, public TEmitRootSignal {
#ifndef __CINT__
   TQtPatternSelectButton *fPatternSelector;
   TQtPatternSelect(const TQtPatternSelect&);
   TQtPatternSelect &operator=(const TQtPatternSelect&);
   friend class ev;
   virtual void QWidget* p=0,Style_t pixel=0,Int_t id=)">ConstructorThread(QWidget *p=0, Style_t pixel=0, Int_t id=-1);

   TQtPatternSelect(QWidget *p=0, Style_t pattern=0, Int_t id=-1);
   virtual ~TQtPatternSelect();
   virtual void EmitRootSignal(ULong_t style); //*SIGNAL*
   virtual void QWidget* p=0,Style_t pattern=0,Int_t id=)">Constructor(QWidget *p=0, Style_t pattern=0, Int_t id=-1);
   void         SetPattern(Style_t pattern);
   Style_t      GetPattern() const;
   virtual void SavePrimitive(ofstream &out, Option_t *);
   virtual void SavePrimitive(ostream &out, Option_t *);

   bool QEvent* e)">event(QEvent *e);
   void PatternSelected(Style_t);
#ifndef Q_MOC_RUN
   ClassDef(TQtPatternSelect,0)  // Color selection checkbutton


Qt/ROOT page - ROOT page - Class index - Class Hierarchy - Top of the page - Qt docs

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to QtROOT support, or contact the developers with any questions or problems regarding ROOT.