35 ~TextViewMainFrame()
override {}
58 fCommand =
new TGTextEntry(fCommandFrame, (
const char *)
"", 20);
59 fCommand->Connect(
"ReturnPressed()",
"TextViewMainFrame",
this,
"HandleReturn()");
60 fCommandFrame->AddFrame(
new TGLabel(fCommandFrame,
"Command: "),
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);
74 fExit->Connect(
"Pressed()",
"TApplication",
gApplication,
"Terminate()");
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();
106void textviewostream()
110 new TextViewMainFrame();
#define ClassDefOverride(name, id)
R__EXTERN TApplication * gApplication
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
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.
const char * Data() const
virtual TString GetFromPipe(const char *command)
Execute command and return output in TString.