00001 // @(#)root/gui:$Id: TTreeInput.h 26245 2008-11-17 16:32:49Z moneta $ 00002 // Author: David Gonzalez Maline 21/10/2008 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TTreeInput 00013 #define ROOT_TTreeInput 00014 00015 /////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // Tree Input Dialog Widget // 00018 // // 00019 // An input dialog box to select the variables and the cuts from // 00020 // a TTree // 00021 // // 00022 /////////////////////////////////////////////////////////////////////////// 00023 00024 #ifndef ROOT_TGFrame 00025 #include "TGFrame.h" 00026 #endif 00027 00028 class TGLabel; 00029 class TGTextEntry; 00030 class TGTextButton; 00031 00032 class TTreeInput : public TGTransientFrame { 00033 00034 private: 00035 TGTextEntry *fTEVars; // text entry widget for variables 00036 TGTextEntry *fTECuts; // text entry widget for cuts 00037 TGTextButton *fOk; // ok button 00038 TGTextButton *fCancel; // cancel button 00039 char *fStrvars; // address to store variables string 00040 char *fStrcuts; // address to store cuts string 00041 00042 TTreeInput(const TTreeInput&); // Not implemented 00043 TTreeInput &operator= (const TTreeInput&); // Not implemented 00044 00045 public: 00046 TTreeInput(const TGWindow *p, const TGWindow *main, 00047 char *strvars, char* strcuts); 00048 ~TTreeInput(); 00049 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t); 00050 00051 ClassDef(TTreeInput, 0) // Simple input dialog 00052 00053 }; 00054 00055 #endif