// @(#)root/proofplayer:$Id$
// Author: Maarten Ballintijn   28/10/2003

 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *

#ifndef ROOT_TDrawFeedback
#define ROOT_TDrawFeedback

//                                                                      //
// TDrawFeedback                                                        //
//                                                                      //
// Utility class to draw objects in the feedback list during queries.   //
// Draws histograms in separated canvases and user-defined objects via  //
// Draw(). Users requiring advanced treatment should implement their    //
// own version following this example. See also TStatsFeedback.         //
//                                                                      //

#ifndef ROOT_TQObject
#include "TQObject.h"
#ifndef ROOT_TObject
#include "TObject.h"

class TProof;
class TProof;
class THashList;
class TSeqCollection;

class TDrawFeedback : public TObject, public TQObject {
   TString        fName;   // Identfier for this object
   Bool_t         fAll;    //draw all or selected objects
   THashList     *fNames;  //selected objects

   Option_t      *fOption; //draw option
   TProof        *fProof;  //handle to PROOF session

   TDrawFeedback(TProof *proof = 0, TSeqCollection *names = 0);

   void Feedback(TList *objs);
   const char *GetName() const { return fName.Data(); }
   ULong_t  Hash() const { return fName.Hash(); }
   void SetOption(Option_t *option) { fOption = option; }

   ClassDef(TDrawFeedback,0)  // Present PROOF query feedback