#ifndef ALIMUONPAINTERDATASOURCEFRAME_H #define ALIMUONPAINTERDATASOURCEFRAME_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ // $Id$ /// \ingroup graphics /// \class AliMUONPainterDataSourceFrame /// \brief Frame to select input data source(s) to be displayed /// // Author Laurent Aphecetche, Subatech #ifndef ROOT_TGFrame # include #endif class TObjArray; class TGGroupFrame; class AliMUONVTrackerDataMaker; class TGTextEntry; class TGNumberEntry; class TGComboBox; class AliMUONPainterDataSourceFrame : public TGCompositeFrame { public: AliMUONPainterDataSourceFrame(const TGWindow* p, UInt_t w, UInt_t h); virtual ~AliMUONPainterDataSourceFrame(); void CreateOCDBDataSource(); void CreateRawDataSource(); void DataReaderWasRegistered(AliMUONVTrackerDataMaker* reader); void DataReaderWasUnregistered(AliMUONVTrackerDataMaker* reader); void OpenFileDialog(); void OpenRecentSource(); private: /// Not implemented AliMUONPainterDataSourceFrame(const AliMUONPainterDataSourceFrame& rhs); /// Not implemented AliMUONPainterDataSourceFrame& operator=(const AliMUONPainterDataSourceFrame& rhs); void AddRecentSource(const char* name); Bool_t CreateRawDataSource(const TString& uri); void CreateOCDBDataSource(const TString& uri); void CreateOCDBDataSource(const TString& cdbPath, Int_t runNumber, const TString& type); private: TGGroupFrame* fRecentSourceSelector; ///< to select recently used sources TGGroupFrame* fRawSelector; ///< to select a new raw data source TGGroupFrame* fOCDBSelector; ///< to select a new OCDB data source TGGroupFrame* fDataReaders; ///< to display currently active data sources TGTextEntry* fFilePath; ///< raw data file path text entry widget TGTextEntry* fRawOCDBPath; ///< OCDB path for raw data calibration TGTextEntry* fOCDBPath; ///< OCDB path text entry widget TGNumberEntry* fRunSelector; ///< OCDB run number entry widget TGComboBox* fOCDBTypes; ///< OCDB type combo box entry widget TGComboBox* fRecentSources; ///< recent sources combo box TObjArray* fItems; ///< list of data readers we handle static const char* fgkNumberOfDataSourcesKey; ///< key used to store the # of data sources in the resource file static const char* fgkDataSourceURIKey; ///< key usde to store the data source URIs in the resource file ClassDef(AliMUONPainterDataSourceFrame,1) // Data source selection frame }; #endif