Logo ROOT  
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
9class TGLabel;
10class TGComboBox;
11class TGTextEntry;
12class TGTextBuffer;
13class TGTextView;
14class TTimer;
15
17
18protected:
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
28public:
29
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
#define h(i)
Definition: RSha256.hxx:106
#define ClassDef(name, id)
Definition: Rtypes.h:322
TGHorizontalFrame * fHf
TGTextBuffer * fCommandBuf
void HandleCommand()
Handle command line from the "command" combo box.
TGTextEntry * fCommand
TGCommandPlugin(const TGWindow *p, UInt_t w, UInt_t h)
TGCommandPlugin Constructor.
virtual Bool_t HandleTimer(TTimer *t)
Handle timer event.
TGComboBox * fComboCmd
virtual ~TGCommandPlugin()
Destructor.
void CheckRemote(const char *)
Check if actual ROOT session is a remote one or a local one.
TGTextView * fStatus
Handles synchronous and a-synchronous timer events.
Definition: TTimer.h:51