00001 // @(#)root/gui:$Id: TGCommandPlugin.h 23115 2008-04-10 13:35:37Z rdm $ 00002 // Author: Bertrand Bellenot 26/09/2007 00003 00004 #ifndef ROOT_TGCommandPlugin 00005 #define ROOT_TGCommandPlugin 00006 00007 #ifndef ROOT_TGFrame 00008 #include "TGFrame.h" 00009 #endif 00010 00011 class TGLabel; 00012 class TGComboBox; 00013 class TGTextEntry; 00014 class TGTextBuffer; 00015 class TGTextView; 00016 class TTimer; 00017 00018 class TGCommandPlugin : public TGMainFrame { 00019 00020 protected: 00021 Int_t fPid; // current process id 00022 TGHorizontalFrame *fHf; // horizontal frame 00023 TGLabel *fLabel; // "command :" label 00024 TGComboBox *fComboCmd; // commands combobox 00025 TGTextEntry *fCommand; // command text entry widget 00026 TGTextBuffer *fCommandBuf; // command text buffer 00027 TGTextView *fStatus; // output capture view 00028 TTimer *fTimer; // for local/remote update 00029 00030 public: 00031 00032 TGCommandPlugin(const TGWindow *p, UInt_t w, UInt_t h); 00033 virtual ~TGCommandPlugin(); 00034 00035 void CheckRemote(const char * /*str*/); 00036 void HandleCommand(); 00037 00038 virtual Bool_t HandleTimer(TTimer *t); 00039 00040 ClassDef(TGCommandPlugin, 0) // Command (I/O redirection) plugin for the new ROOT Browser 00041 }; 00042 00043 #endif