106 fAlpha->Connect(
"Released()",
"TAttTextEditor",
this,
"DoAlpha()");
107 fAlpha->Connect(
"PositionChanged(Int_t)",
"TAttTextEditor",
this,
"DoLiveAlpha(Int_t)");
108 fAlphaField->Connect(
"ReturnPressed()",
"TAttTextEditor",
this,
"DoAlphaField()");
109 fAlpha->Connect(
"Pressed()",
"TAttTextEditor",
this,
"GetCurAlpha()");
110 fColorSelect->Connect(
"ColorSelected(Pixel_t)",
"TAttTextEditor",
this,
"DoTextColor(Pixel_t)");
111 fColorSelect->Connect(
"AlphaColorSelected(ULong_t)",
"TAttTextEditor",
this,
"DoTextAlphaColor(ULong_t)");
121 if (!atttext)
return;
153 fAlpha->SetPosition((
Int_t)color->GetAlpha()*1000);
167 fAlpha->SetPosition((
Int_t)(tcolor->GetAlpha()*1000));
182 fAttText->SetTextColor(color->GetNumber());
183 fAlpha->SetPosition((
Int_t)(color->GetAlpha()*1000));
222 fAttText->SetTextFont(parm2 * 10 + fontPrec);
243 c->AddEntry(
"Default", 0);
244 for (
int i = 1; i <= 50; i++) {
259 c->AddEntry(
"11 Bottom, Left", 11);
260 c->AddEntry(
"21 Bottom, Middle", 21);
261 c->AddEntry(
"31 Bottom, Right", 31);
262 c->AddEntry(
"12 Middle, Left", 12);
263 c->AddEntry(
"22 Middle, Middle", 22);
264 c->AddEntry(
"32 Middle, Right", 32);
265 c->AddEntry(
"13 Top, Left", 13);
266 c->AddEntry(
"23 Top, Middle", 23);
267 c->AddEntry(
"33 Top, Right", 33);
310 if (color->GetAlpha() == 1.) {
327 fAlpha->SetPosition((
Int_t)(color->GetAlpha()*1000));
ULong_t Pixel_t
Pixel value.
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
int Int_t
Signed integer 4 bytes (int).
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
unsigned long ULongptr_t
Unsigned integer large enough to hold a pointer (platform-dependent).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
short Color_t
Color number (short).
float Float_t
Float 4 bytes (float).
TGHSlider * fAlpha
fill opacity
TAttTextEditor(const TGWindow *p=nullptr, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of text attributes GUI.
TGComboBox * fSizeCombo
font size combo box
static TGComboBox * BuildFontSizeComboBox(TGFrame *parent, Int_t id)
Create text size combo box.
void SetModel(TObject *obj) override
Pick up the values of used text attributes.
TGComboBox * fAlignCombo
font aligh combo box
virtual void GetCurAlpha()
Slot to update alpha value on click on Slider.
TAttText * fAttText
text attribute object
virtual void DoAlpha()
Slot to set the alpha value.
TGFontTypeComboBox * fTypeCombo
font style combo box
virtual void DoLiveAlpha(Int_t a)
Slot to set alpha value online.
virtual void DoAlphaField()
Slot to set the alpha value from the entry field.
virtual void DoTextAlphaColor(ULongptr_t p)
Slot connected to the color with alpha.
static TGComboBox * BuildTextAlignComboBox(TGFrame *parent, Int_t id)
Create text align combo box.
virtual void DoTextColor(Pixel_t color)
Slot connected to the marker color.
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process message.
TGNumberEntryField * fAlphaField
TGColorSelect * fColorSelect
color selection widget
~TAttTextEditor() override
Destructor of text editor.
void ConnectSignals2Slots()
Connect signals to slots.
static Bool_t SupportAlpha()
Static function returning "true" if transparency is supported.
static Int_t GetColorTransparent(Int_t color, Float_t a)
static Int_t GetColor(const char *hexcolor)
static ULong_t Number2Pixel(Int_t ci)
Like a checkbutton but instead of the check mark there is color area with a little down arrow.
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
The TGFontTypeComboBox is user callable and it creates a combobox for selecting the font.
TGFrame(const TGFrame &)=delete
Concrete class for horizontal slider.
A composite frame that layout their children in horizontal way.
This class handles GUI labels.
virtual void Disable(Bool_t on=kTRUE)
This class describes layout hints used by the layout classes.
ROOT GUI Window base class.
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.
Int_t fPriority
location in GedEditor
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".
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual Double_t GetY1() const =0
virtual Double_t GetY2() const =0
virtual Double_t AbsPixeltoY(Double_t py)=0