ROOT
v6-34
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
16
#include "
TGFrame.h
"
17
18
class
TGLabel
;
19
class
TGComboBox
;
20
class
TGTextEntry
;
21
class
TGTextBuffer
;
22
class
TGTextView
;
23
class
TTimer
;
24
25
class
TGCommandPlugin
:
public
TGMainFrame
{
26
27
protected
:
28
Bool_t
fHistAdd
;
///< flag to add commands to history
29
Int_t
fPid
;
///< current process id
30
Int_t
fPos
;
///< current history position
31
TGHorizontalFrame
*
fHf
;
///< horizontal frame
32
TGLabel
*
fLabel
;
///< "command :" label
33
TGComboBox
*
fComboCmd
;
///< commands combobox
34
TGTextEntry
*
fCommand
;
///< command text entry widget
35
TGTextBuffer
*
fCommandBuf
;
///< command text buffer
36
TGTextView
*
fStatus
;
///< output capture view
37
TTimer
*
fTimer
;
///< for local/remote update
38
TString
fTempString
;
///< temporary command string
39
40
public
:
41
42
TGCommandPlugin
(
const
TGWindow
*
p
,
UInt_t
w
,
UInt_t
h
);
43
~TGCommandPlugin
()
override
;
44
45
void
CheckRemote
(
const
char
*
/*str*/
);
46
void
HandleArrows
(
Int_t
keysym);
47
void
HandleCommand
();
48
void
HandleTab
();
49
void
HandleTextChanged
(
const
char
*);
50
Bool_t
GetHistAdd
() {
return
fHistAdd
; }
51
void
SetHistAdd
(
Bool_t
add =
kTRUE
);
52
53
Bool_t
HandleTimer
(
TTimer
*t)
override
;
54
void
ToggleTimer
(
Bool_t
on
);
55
56
ClassDefOverride
(
TGCommandPlugin
, 0)
// Command (I/O redirection) plugin for the new ROOT Browser
57
};
58
59
#endif
h
#define h(i)
Definition
RSha256.hxx:106
Bool_t
bool Bool_t
Definition
RtypesCore.h:63
kTRUE
constexpr Bool_t kTRUE
Definition
RtypesCore.h:93
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:346
TGFrame.h
w
winID w
Definition
TGWin32VirtualGLProxy.cxx:39
p
winID h TVirtualViewer3D TVirtualGLPainter p
Definition
TGWin32VirtualGLProxy.cxx:51
on
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Definition
TGWin32VirtualXProxy.cxx:106
TGComboBox
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Definition
TGComboBox.h:47
TGCommandPlugin
Class used to redirect the command line input/output.
Definition
TGCommandPlugin.h:25
TGCommandPlugin::fHf
TGHorizontalFrame * fHf
horizontal frame
Definition
TGCommandPlugin.h:31
TGCommandPlugin::SetHistAdd
void SetHistAdd(Bool_t add=kTRUE)
The function SetHistAdd() is needed for a standalone TApplication to log the TGCommandPlugin commands...
Definition
TGCommandPlugin.cxx:302
TGCommandPlugin::fHistAdd
Bool_t fHistAdd
flag to add commands to history
Definition
TGCommandPlugin.h:28
TGCommandPlugin::fCommandBuf
TGTextBuffer * fCommandBuf
command text buffer
Definition
TGCommandPlugin.h:35
TGCommandPlugin::fPid
Int_t fPid
current process id
Definition
TGCommandPlugin.h:29
TGCommandPlugin::fTimer
TTimer * fTimer
for local/remote update
Definition
TGCommandPlugin.h:37
TGCommandPlugin::HandleCommand
void HandleCommand()
Handle command line from the "command" combo box.
Definition
TGCommandPlugin.cxx:193
TGCommandPlugin::fCommand
TGTextEntry * fCommand
command text entry widget
Definition
TGCommandPlugin.h:34
TGCommandPlugin::HandleTextChanged
void HandleTextChanged(const char *)
Handle the text changed events.
Definition
TGCommandPlugin.cxx:264
TGCommandPlugin::fTempString
TString fTempString
temporary command string
Definition
TGCommandPlugin.h:38
TGCommandPlugin::GetHistAdd
Bool_t GetHistAdd()
Definition
TGCommandPlugin.h:50
TGCommandPlugin::ToggleTimer
void ToggleTimer(Bool_t on)
Let user stop the internal timer when there is no need to check for remote.
Definition
TGCommandPlugin.cxx:283
TGCommandPlugin::HandleTab
void HandleTab()
Handle the 'TAB' key events.
Definition
TGCommandPlugin.cxx:229
TGCommandPlugin::HandleTimer
Bool_t HandleTimer(TTimer *t) override
Handle timer event.
Definition
TGCommandPlugin.cxx:272
TGCommandPlugin::fComboCmd
TGComboBox * fComboCmd
commands combobox
Definition
TGCommandPlugin.h:33
TGCommandPlugin::CheckRemote
void CheckRemote(const char *)
Check if actual ROOT session is a remote one or a local one.
Definition
TGCommandPlugin.cxx:137
TGCommandPlugin::fStatus
TGTextView * fStatus
output capture view
Definition
TGCommandPlugin.h:36
TGCommandPlugin::fLabel
TGLabel * fLabel
"command :" label
Definition
TGCommandPlugin.h:32
TGCommandPlugin::~TGCommandPlugin
~TGCommandPlugin() override
Destructor.
Definition
TGCommandPlugin.cxx:119
TGCommandPlugin::fPos
Int_t fPos
current history position
Definition
TGCommandPlugin.h:30
TGCommandPlugin::HandleArrows
void HandleArrows(Int_t keysym)
Handle the 'up' and 'down' arrow key events.
Definition
TGCommandPlugin.cxx:164
TGHorizontalFrame
A composite frame that layout their children in horizontal way.
Definition
TGFrame.h:385
TGLabel
This class handles GUI labels.
Definition
TGLabel.h:24
TGMainFrame
Defines top level windows that interact with the system Window Manager.
Definition
TGFrame.h:397
TGTextBuffer
A text buffer is used in several widgets, like TGTextEntry, TGFileDialog, etc.
Definition
TGTextBuffer.h:17
TGTextEntry
A TGTextEntry is a one line text input widget.
Definition
TGTextEntry.h:24
TGTextView
A TGTextView is a text viewer widget.
Definition
TGTextView.h:22
TGWindow
ROOT GUI Window base class.
Definition
TGWindow.h:23
TString
Basic string class.
Definition
TString.h:139
TTimer
Handles synchronous and a-synchronous timer events.
Definition
TTimer.h:51
bool
int
unsigned int
gui
gui
inc
TGCommandPlugin.h
ROOT v6-34 - Reference Guide Generated on Sun Dec 15 2024 03:23:44 (GVA Time) using Doxygen 1.9.8