8 #include "KVInputDialog.h"
11 #include "KVTextEntry.h"
35 fMain->Connect(
"CloseWindow()",
"KVInputDialog",
this,
"DoClose()");
36 fMain->DontCallClose();
46 fTextEntry =
new KVTextEntry(fMain, answer->Data());
47 if (strcmp(tooltip,
""))
48 fTextEntry->SetToolTipText(tooltip);
50 fTextEntry->Resize(
l->GetDefaultWidth(), fTextEntry->GetDefaultHeight());
54 fMain->AddFrame(fTextEntry,
58 fMain->SetWindowName(
"KVInputDialog");
59 fMain->SetIconName(
"KVInputDialog");
72 height = fOKBut->GetDefaultHeight();
75 fOKBut->Connect(
"Clicked()",
"KVInputDialog",
this,
"ReadAnswer()");
76 fOKBut->Connect(
"Clicked()",
"KVInputDialog",
this,
"DoClose()");
80 height = fCancelBut->GetDefaultHeight();
83 fCancelBut->Connect(
"Clicked()",
"KVInputDialog",
this,
"DoClose()");
88 fMain->AddFrame(hf, l1);
94 fMain->MapSubwindows();
96 width = fMain->GetDefaultWidth();
97 height = fMain->GetDefaultHeight();
102 fMain->CenterOnParent();
113 fMain->CenterOnParent();
124 KVInputDialog::~KVInputDialog()
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
TGTextEntry without any limit on the length of the text.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
virtual void Resize(TGDimension size)
const char * GetText() const
static void SingleShot(Int_t milliSec, const char *receiver_class, void *receiver, const char *method)
int main(int argc, char **argv)
Double_t Max(Double_t a, Double_t b)