Logo ROOT   6.08/07
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 #ifndef ROOT_TGFrame
8 #include "TGFrame.h"
9 #endif
10 
11 class TGLabel;
12 class TGComboBox;
13 class TGTextEntry;
14 class TGTextBuffer;
15 class TGTextView;
16 class TTimer;
17 
18 class TGCommandPlugin : public TGMainFrame {
19 
20 protected:
21  Int_t fPid; // current process id
22  TGHorizontalFrame *fHf; // horizontal frame
23  TGLabel *fLabel; // "command :" label
24  TGComboBox *fComboCmd; // commands combobox
25  TGTextEntry *fCommand; // command text entry widget
26  TGTextBuffer *fCommandBuf; // command text buffer
27  TGTextView *fStatus; // output capture view
28  TTimer *fTimer; // for local/remote update
29 
30 public:
31 
32  TGCommandPlugin(const TGWindow *p, UInt_t w, UInt_t h);
33  virtual ~TGCommandPlugin();
34 
35  void CheckRemote(const char * /*str*/);
36  void HandleCommand();
37 
38  virtual Bool_t HandleTimer(TTimer *t);
39 
40  ClassDef(TGCommandPlugin, 0) // Command (I/O redirection) plugin for the new ROOT Browser
41 };
42 
43 #endif
TGComboBox * fComboCmd
TGTextBuffer * fCommandBuf
TH1 * h
Definition: legend2.C:5
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:254
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:57
TGTextEntry * fCommand
TGTextView * fStatus
TGHorizontalFrame * fHf
void CheckRemote(const char *)
Check if actual ROOT session is a remote one or a local one.