ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
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)
#define ClassDef(name, id)
Definition: Rtypes.h:254
void HandleCommand()
Handle command line from the "command" combo box.
TThread * t[5]
Definition: threadsh1.C:13
virtual Bool_t HandleTimer(TTimer *t)
Handle timer event.
unsigned int UInt_t
Definition: RtypesCore.h:42
tuple w
Definition: qtexample.py:51
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.