54 fText->Connect(
"TextChanged(const char *)",
"TEveTextEditor",
this,
"DoText(const char *)");
60 for(
Int_t i= 0; i< nums; i++)
62 fSize->AddEntry(
Form(
"%-2d", fsp[i]), fsp[i]);
64 fSize->Connect(
"Selected(Int_t)",
"TEveTextEditor",
this,
"DoFontSize()");
77 fFile->Connect(
"Selected(Int_t)",
"TEveTextEditor",
this,
"DoFontFile()");
87 fMode->Connect(
"Selected(Int_t)",
"TEveTextEditor",
this,
"DoFontMode()");
95 fExtrude->SetToolTip(
"Extrusion depth.");
96 fExtrude->Connect(
"ValueSet(Double_t)",
"TEveTextEditor",
this,
"DoExtrude()");
108 fAutoLighting->Connect(
"Toggled(Bool_t)",
"TEveTextEditor",
this,
"DoAutoLighting()");
111 fLighting->Connect(
"Toggled(Bool_t)",
"TEveTextEditor",
this,
"DoLighting()");
144 if (strcmp(
fM->GetText(),
fText->GetText()))
155 if (
fM->GetAutoLighting()) {
197 fM->SetFontFile(
fFile->GetSelected());
205 fM->SetFontMode(
fMode->GetSelected());
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
Composite GUI element for single value selection (supports label, number-entry and slider).
void DoFontMode()
Slot for setting FTGL attributes.
TGCheckButton * fLighting
void DoText(const char *)
Slot for setting text.
void DoFontFile()
Slot for setting FTGL attributes.
TGCheckButton * fAutoLighting
void DoLighting()
Slot for enabling/disabling GL lighting.
void DoAutoLighting()
Slot for enabling/disabling defaults.
void SetModel(TObject *obj) override
Set model object.
void DoFontSize()
Slot for setting FTGL attributes.
void DoExtrude()
Slot for setting an extrude depth.
TEveTextEditor(const TEveTextEditor &)
TGComboBox * MakeLabeledCombo(const char *name)
Helper function. Creates TGComboBox with fixed size TGLabel.
TEveElement class used for displaying FreeType GL fonts.
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
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 ShowFrame(TGFrame *f)
Show sub frame.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
A horizontal 3D line is a line that typically separates a toolbar from the menubar.
A composite frame that layout their children in horizontal way.
static FontSizeVec_t * GetFontSizeArray()
Get valid font size vector.
static TObjArray * GetFontFileArray()
Get id to file name map.
This class handles GUI labels.
This class describes layout hints used by the layout classes.
A TGTextEntry is a one line text input widget.
ROOT GUI Window base class.
TGedFrame(const TGedFrame &)=delete
virtual void MakeTitle(const char *title)
Create attribute frame title.
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Collectable string class.
const TString & GetString() const
Mother of all ROOT objects.
const char * Data() const