Logo ROOT   6.14/05
Reference Guide
TGCommandPlugin.h
Go to the documentation of this file.
1 // @(#)root/gui:$Id$
2 // Author: Bertrand Bellenot 26/09/2007
3 
4 #ifndef ROOT_TGCommandPlugin
5 #define ROOT_TGCommandPlugin
6 
7 #include "TGFrame.h"
8 
9 class TGLabel;
10 class TGComboBox;
11 class TGTextEntry;
12 class TGTextBuffer;
13 class TGTextView;
14 class TTimer;
15 
16 class TGCommandPlugin : public TGMainFrame {
17 
18 protected:
19  Int_t fPid; // current process id
20  TGHorizontalFrame *fHf; // horizontal frame
21  TGLabel *fLabel; // "command :" label
22  TGComboBox *fComboCmd; // commands combobox
23  TGTextEntry *fCommand; // command text entry widget
24  TGTextBuffer *fCommandBuf; // command text buffer
25  TGTextView *fStatus; // output capture view
26  TTimer *fTimer; // for local/remote update
27 
28 public:
29 
30  TGCommandPlugin(const TGWindow *p, UInt_t w, UInt_t h);
31  virtual ~TGCommandPlugin();
32 
33  void CheckRemote(const char * /*str*/);
34  void HandleCommand();
35 
36  virtual Bool_t HandleTimer(TTimer *t);
37 
38  ClassDef(TGCommandPlugin, 0) // Command (I/O redirection) plugin for the new ROOT Browser
39 };
40 
41 #endif
TGComboBox * fComboCmd
TGTextBuffer * fCommandBuf
virtual ~TGCommandPlugin()
Destructor.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TGCommandPlugin(const TGWindow *p, UInt_t w, UInt_t h)
TGCommandPlugin Constructor.
#define ClassDef(name, id)
Definition: Rtypes.h:320
void HandleCommand()
Handle command line from the "command" combo box.
virtual Bool_t HandleTimer(TTimer *t)
Handle timer event.
unsigned int UInt_t
Definition: RtypesCore.h:42
Handles synchronous and a-synchronous timer events.
Definition: TTimer.h:51
TGTextEntry * fCommand
#define h(i)
Definition: RSha256.hxx:106
TGTextView * fStatus
TGHorizontalFrame * fHf
void CheckRemote(const char *)
Check if actual ROOT session is a remote one or a local one.