00001 // @(#)root/peac:$Id: TProofStartupDialog.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Maarten Ballintijn 21/10/2004 00003 // Author: Kris Gulbrandsen 21/10/2004 00004 00005 /************************************************************************* 00006 * Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. * 00007 * All rights reserved. * 00008 * * 00009 * For the licensing terms see $ROOTSYS/LICENSE. * 00010 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00011 *************************************************************************/ 00012 00013 #ifndef ROOT_TProofStartupDialog 00014 #define ROOT_TProofStartupDialog 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TProofStartupDialog // 00019 // // 00020 // This class provides a query progress bar for data being staged. // 00021 // // 00022 ////////////////////////////////////////////////////////////////////////// 00023 00024 #ifndef ROOT_TTime 00025 #include "TTime.h" 00026 #endif 00027 00028 00029 class TGTransientFrame; 00030 class TGProgressBar; 00031 class TGTextButton; 00032 class TGCheckButton; 00033 class TGLabel; 00034 class TProof; 00035 00036 00037 class TProofStartupDialog { 00038 00039 private: 00040 TProof *fProof; 00041 TGTransientFrame *fDialog; // transient frame, main dialog window 00042 TGProgressBar *fBar; // progress bar 00043 TGLabel *fFilesBytes; 00044 TGLabel *fStaged; 00045 TGLabel *fTotal; 00046 TGLabel *fRate; 00047 TTime fStartTime; 00048 TTime fEndTime; 00049 Long64_t fPrevStaged; 00050 Int_t fFiles; 00051 Long64_t fTotalBytes; 00052 00053 00054 public: 00055 TProofStartupDialog(TProof *proof, const Char_t *dataset, 00056 Int_t nfiles, Long64_t totalbytes); 00057 virtual ~TProofStartupDialog(); 00058 void Progress(Long64_t totalbytes, Long64_t bytesready); 00059 00060 void CloseWindow(); 00061 void DoClose(); 00062 00063 ClassDef(TProofStartupDialog,0) // PROOF startup and data staging dialog 00064 }; 00065 00066 #endif