16 #include "Riostream.h"
21 #include "TAttMarker.h"
26 #include <QColorDialog>
123 if (panel==0)
return;
132 TAttLine* att =
dynamic_cast<TAttLine*
> (obj);
134 icol = att->GetLineColor();
138 TAttFill* att =
dynamic_cast<TAttFill*
> (obj);
140 icol = att->GetFillColor();
144 TAttMarker* att =
dynamic_cast<TAttMarker*
> (obj);
146 icol = att->GetMarkerColor();
151 TColor* rcol = gROOT->GetColor(icol);
156 qcol.setRgb(rcol->GetRed(), rcol->GetGreen(), rcol->GetBlue());
158 QColor c = QColorDialog::getColor(qcol);
159 if (!c.isValid())
return;
161 icol = TColor::GetColor(c.red(), c.green(), c.blue());
165 TAttLine* att =
dynamic_cast<TAttLine*
> (obj);
166 if (att!=0) att->SetLineColor(icol);
170 TAttFill* att =
dynamic_cast<TAttFill*
> (obj);
171 if (att!=0) att->SetFillColor(icol);
175 TAttMarker* att =
dynamic_cast<TAttMarker*
> (obj);
176 if (att!=0) att->SetMarkerColor(icol);
virtual void ShootRepaintTimer()
virtual void ActivateInGedEditor(TObject *obj)
virtual void SlotD2lego()
static TGo4MdiArea * Instance()
virtual void SlotMarkerColor()
virtual void SlotLineColor()
virtual void SlotD2contfill()
virtual void MarkPadModified(TPad *pad)
TGo4ViewPanel * GetActivePanel()
void SetDrawOpt(int kind, int value, char *dropt)
void ChangeColor(int kind)
TGo4HisDrawOptionsShort(QWidget *parent=0, const char *name=0)
virtual void SlotD2contline()
virtual void SlotD2scatter()
virtual void SlotD1line()
virtual void SlotFillColor()
virtual void ChangeDrawOption(int kind, int value, const char *drawopt)
virtual TPad * GetActivePad()
virtual TObject * GetSelectedObject(TPad *pad, const char **drawopt)
virtual void SlotD2surfcol()
virtual void SlotD2pixel()