70 fAmplitudeEntry->GetNumberEntry()->SetToolTipText(
"Set amplitude in percent of the pad height.");
77 fWaveLengthEntry->GetNumberEntry()->SetToolTipText(
"Set wavelength in percent of the pad height.");
82 fIsWavy->SetToolTipText(
"Toggle between wavy line (Gluon) if selected; curly line (Gamma) otherwise.");
110 fStartXEntry->GetNumberEntry()->SetToolTipText(
"Set start point X ccordinate of curly line.");
117 fStartYEntry->GetNumberEntry()->SetToolTipText(
"Set start point Y coordinate of curly line.");
124 fEndXEntry->GetNumberEntry()->SetToolTipText(
"Set end point X coordinate of curly line.");
131 fEndYEntry->GetNumberEntry()->SetToolTipText(
"Set end point Y coordinate of curly line.");
148 fStartXEntry->Connect(
"ValueSet(Long_t)",
"TCurlyLineEditor",
this,
"DoStartXY()");
149 (
fStartXEntry->GetNumberEntry())->Connect(
"ReturnPressed()",
"TCurlyLineEditor",
this,
"DoStartXY()");
150 fStartYEntry->Connect(
"ValueSet(Long_t)",
"TCurlyLineEditor",
this,
"DoStartXY()");
151 (
fStartYEntry->GetNumberEntry())->Connect(
"ReturnPressed()",
"TCurlyLineEditor",
this,
"DoStartXY()");
152 fEndXEntry->Connect(
"ValueSet(Long_t)",
"TCurlyLineEditor",
this,
"DoEndXY()");
153 (
fEndXEntry->GetNumberEntry())->Connect(
"ReturnPressed()",
"TCurlyLineEditor",
this,
"DoEndXY()");
154 fEndYEntry->Connect(
"ValueSet(Long_t)",
"TCurlyLineEditor",
this,
"DoEndXY()");
155 (
fEndYEntry->GetNumberEntry())->Connect(
"ReturnPressed()",
"TCurlyLineEditor",
this,
"DoEndXY()");
156 fAmplitudeEntry->Connect(
"ValueSet(Long_t)",
"TCurlyLineEditor",
this,
"DoAmplitude()");
157 (
fAmplitudeEntry->GetNumberEntry())->Connect(
"ReturnPressed()",
"TCurlyLineEditor",
this,
"DoAmplitude()");
158 fWaveLengthEntry->Connect(
"ValueSet(Long_t)",
"TCurlyLineEditor",
this,
"DoWaveLength()");
159 (
fWaveLengthEntry->GetNumberEntry())->Connect(
"ReturnPressed()",
"TCurlyLineEditor",
this,
"DoWaveLength()");
160 fIsWavy->Connect(
"Clicked()",
"TCurlyLineEditor",
this,
"DoWavy()");
173 (
fStartXEntry->GetNumberEntry())->Disconnect(
"ReturnPressed()");
175 (
fStartYEntry->GetNumberEntry())->Disconnect(
"ReturnPressed()");
177 (
fEndXEntry->GetNumberEntry())->Disconnect(
"ReturnPressed()");
179 (
fEndYEntry->GetNumberEntry())->Disconnect(
"ReturnPressed()");
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
TClass instances represent classes, structs and namespaces in the ROOT type system.
TGCompositeFrame * fStartXFrame
TGNumberEntry * fAmplitudeEntry
ampl entry
void ActivateBaseClassEditors(TClass *cl) override
Exclude TAttFillEditor.
virtual void DoWavy()
Slot connected to the wavy / curly setting.
TGNumberEntry * fWaveLengthEntry
wavelength entry
TGNumberEntry * fStartXEntry
start x entry
virtual void DoAmplitude()
Slot connected to the amplitude setting.
virtual void DoWaveLength()
Slot connected to the wavelength setting.
TGNumberEntry * fEndYEntry
end y entry
TCurlyLineEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of CurlyLine GUI.
virtual void DoStartXY()
Slot connected to the CurlyLine StartPoint.
TGCheckButton * fIsWavy
toggle wavy / curly
TGNumberEntry * fEndXEntry
end x entry
virtual void ConnectSignals2Slots()
Connect signals to slots.
TCurlyLine * fCurlyLine
CurlyLineobject.
virtual void DoEndXY()
Slot connected to the CurlyLine End.
void SetModel(TObject *obj) override
Pick up the used curly line attributes.
TGNumberEntry * fStartYEntry
start y entry
~TCurlyLineEditor() override
Destructor of CurlyLine editor.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
TGCompositeFrame(const TGCompositeFrame &)=delete
virtual void HideFrame(TGFrame *f)
Hide sub frame.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
TGNumberEntry is a number entry input widget with up/down buttons.
ROOT GUI Window base class.
virtual void ActivateBaseClassEditors(TClass *cl)
Provide list of editors for base-classes.
TGedEditor * fGedEditor
manager of this frame
TGedFrame(const TGedFrame &)=delete
Bool_t fInit
init flag for setting signals/slots
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Option_t * GetDrawOption() const override
Get draw options of the selected object.
Bool_t fAvoidSignal
flag for executing slots
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".