59 fCommand->Connect(
"ReturnPressed()",
"TextViewMainFrame",
this,
"HandleReturn()");
67 fReset->SetToolTipText(
"Press to clear the command entry\nand the TGTextView", 200);
68 fReset->Connect(
"Clicked()",
"TextViewMainFrame",
this,
"Reset()");
72 fExit->SetToolTipText(
"Terminate the application", 200);
77 Connect(
"CloseWindow()",
"TApplication",
gApplication,
"Terminate()");
82 Resize(GetDefaultSize());
84 SetWindowName(
"TGTextView Demo");
89void TextViewMainFrame::Reset()
96void TextViewMainFrame::HandleReturn()
99 std::string
command = fCommand->GetText();
101 fTextView->ShowBottom();
#define ClassDefOverride(name, id)
R__EXTERN TApplication * gApplication
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
static void Reset(const char *url, Bool_t hard=kFALSE)
R__EXTERN TSystem * gSystem
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
Yield an action as soon as it is clicked.
A TGTextEntry is a one line text input widget.
A composite frame that layout their children in vertical way.
virtual TString GetFromPipe(const char *command, Int_t *ret=nullptr, Bool_t redirectStderr=kFALSE)
Execute command and return output in TString.