Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGCommandPlugin.h
Go to the documentation of this file.
1// @(#)root/gui:$Id$
2// Author: Bertrand Bellenot 26/09/2007
3
4/*************************************************************************
5 * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TGCommandPlugin
13#define ROOT_TGCommandPlugin
14
15/** \class TGCommandPlugin
16Class used to redirect the command line input/output.
17**/
18
19#include "TGFrame.h"
20
21class TGLabel;
22class TGComboBox;
23class TGTextEntry;
24class TGTextBuffer;
25class TGTextView;
26class TTimer;
27
29
30protected:
31 Bool_t fHistAdd; // flag to add commands to history
32 Int_t fPid; // current process id
33 Int_t fPos; // current history position
34 TGHorizontalFrame *fHf; // horizontal frame
35 TGLabel *fLabel; // "command :" label
36 TGComboBox *fComboCmd; // commands combobox
37 TGTextEntry *fCommand; // command text entry widget
38 TGTextBuffer *fCommandBuf; // command text buffer
39 TGTextView *fStatus; // output capture view
40 TTimer *fTimer; // for local/remote update
41 TString fTempString; // temporary command string
42
43public:
44
46 virtual ~TGCommandPlugin();
47
48 void CheckRemote(const char * /*str*/);
49 void HandleArrows(Int_t keysym);
50 void HandleCommand();
51 void HandleTab();
52 void HandleTextChanged(const char *);
54 void SetHistAdd(Bool_t add = kTRUE);
55
56 virtual Bool_t HandleTimer(TTimer *t);
57
58 ClassDef(TGCommandPlugin, 0) // Command (I/O redirection) plugin for the new ROOT Browser
59};
60
61#endif
#define h(i)
Definition RSha256.hxx:106
bool Bool_t
Definition RtypesCore.h:63
const Bool_t kTRUE
Definition RtypesCore.h:91
#define ClassDef(name, id)
Definition Rtypes.h:325
Class used to redirect the command line input/output.
TGHorizontalFrame * fHf
void SetHistAdd(Bool_t add=kTRUE)
The function SetHistAdd() is needed for a standalone TApplication to log the TGCommandPlugin commands...
TGTextBuffer * fCommandBuf
void HandleCommand()
Handle command line from the "command" combo box.
TGTextEntry * fCommand
void HandleTextChanged(const char *)
Handle the text changed events.
void HandleTab()
Handle the 'TAB' key events.
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
void HandleArrows(Int_t keysym)
Handle the 'up' and 'down' arrow key events.
Basic string class.
Definition TString.h:136
Handles synchronous and a-synchronous timer events.
Definition TTimer.h:51