38#include <QtCore/QSignalMapper>
49#include <QColorDialog>
50#include <QDoubleSpinBox>
64 gROOT->GetListOfCleanups()->Add(
this);
72 gROOT->GetListOfCleanups()->Remove(
this);
101 QObject::connect(&map, &QSignalMapper::mappedInt,
157 if (
auto m =
method->FindDataMember()) {
163 if (
m->GetterMethod()) {
168 const char *
name = it->fOptName;
177 act->setCheckable(
true);
179 act->setChecked(
true);
199 act->setCheckable(
true);
201 act->setChecked(
true);
224 act->setCheckable(
true);
226 act->setChecked(
true);
290 if ((
text.compare(
"DrawClone") == 0) || (
text.compare(
"DrawClass") == 0) || (
text.compare(
"Inspect") == 0) ||
291 (
text.compare(
"SetShowProjectionX") == 0) || (
text.compare(
"SetShowProjectionY") == 0) ||
292 (
text.compare(
"DrawPanel") == 0) || (
text.compare(
"FitPanel") == 0))
293 act->setEnabled(
false);
295 QObject::connect(
act, &QAction::triggered, [
id, map]() {
300 map->setMapping(
act,
id);
333 QObject::connect(
fColorButton, &QPushButton::clicked, [&,
this]() {
359 QString
qss = QString(
"background-color: rgba(%1, %2, %3, %4); border: 1px solid gray;")
377 dialog.setWindowTitle(
"Edit Line Attributes");
395 styleCombo->addItem(
"Dash-Dot-Dot-Dot (6)", 6);
399 styleCombo->addItem(
"Dash-Dot long (10)", 10);
428 QObject::connect(
okButton, &QPushButton::clicked, &
dialog, &QDialog::accept);
432 if (
dialog.exec() == QDialog::Accepted) {
460 dialog.setWindowTitle(
"Edit Fill Attributes");
474 for (
int s = 3001; s <= 3025; ++s)
475 styleCombo->addItem(QString(
"Style %1").arg(s), s);
476 for (
int s = 3144; s <= 3944; s += 100)
477 styleCombo->addItem(QString(
"Style %1").arg(s), s);
478 for (
int s = 3305; s <= 3395; s += 10)
479 styleCombo->addItem(QString(
"Style %1").arg(s), s);
480 for (
int s = 3350; s <= 3359; s += 1)
481 styleCombo->addItem(QString(
"Style %1").arg(s), s);
482 for (
int s = 3409; s <= 3490; s += 9)
483 styleCombo->addItem(QString(
"Style %1").arg(s), s);
484 for (
int s = 3609; s <= 3690; s += 9)
485 styleCombo->addItem(QString(
"Style %1").arg(s), s);
508 QObject::connect(
okButton, &QPushButton::clicked, &
dialog, &QDialog::accept);
512 if (
dialog.exec() == QDialog::Accepted) {
530 if (
value == 0)
return "Default";
531 return QDoubleSpinBox::textFromValue(
value);
535 if (
text ==
"Default")
return 0.;
536 return QDoubleSpinBox::valueFromText(
text);
543 if (
value == 0)
return "Default";
544 return QSpinBox::textFromValue(
value);
548 if (
text ==
"Default")
return 0;
549 return QSpinBox::valueFromText(
text);
564 dialog.setWindowTitle(
"Edit Text Attributes");
574 fontCombo->addItem(
"1. Times italic", 1);
576 fontCombo->addItem(
"3. Times bold italic", 3);
578 fontCombo->addItem(
"5. Helvetica italic", 5);
579 fontCombo->addItem(
"6. Helvetica bold", 6);
580 fontCombo->addItem(
"7. Helvetica bold italic", 7);
582 fontCombo->addItem(
"9. Courier italic", 9);
583 fontCombo->addItem(
"10. Courier bold", 10);
584 fontCombo->addItem(
"11. Courier bold italic", 11);
588 fontCombo->addItem(
"15. Symbol italic", 15);
648 QObject::connect(
okButton, &QPushButton::clicked, &
dialog, &QDialog::accept);
652 if (
dialog.exec() == QDialog::Accepted) {
683 dialog.setWindowTitle(
"Edit Marker Attributes");
694 for (
int s = 1; s <= 49; ++s)
695 styleCombo->addItem(QString(
"Style %1").arg(s), s);
728 QObject::connect(
okButton, &QPushButton::clicked, &
dialog, &QDialog::accept);
732 if (
dialog.exec() == QDialog::Accepted) {
771 function =
gROOT->GetGlobalFunctionWithPrototype(
mi->GetFunctionName());
short Style_t
Style number (short)
short Color_t
Color number (short)
long Long_t
Signed long integer 4 bytes (long). Size depends on architecture.
short Width_t
Line width (short)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char text
QString textFromValue(double value) const override
double valueFromText(const QString &text) const override
QString textFromValue(int value) const override
int valueFromText(const QString &text) const override
Specialized dialog to enter arguments for method exection.
Fill Area Attributes class.
TClass instances represent classes, structs and namespaces in the ROOT type system.
void GetMenuItems(TList *listitems)
Returns list of methods accessible by context menu.
The color creation and management class.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
Global functions class (global functions are obtained from CINT).
void Add(TObject *obj) override
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
TClass * IsA() const override
Method or function calling interface.
Each ROOT class (see TClass) has a linked list of methods.
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
This class defines toggling facility for both - object's method or variables.
virtual void SetOnValue(Long_t lon)
TMethodCall * GetSetter() const
virtual void SetToggledObject(TObject *obj, TMethod *anymethod)
Initializes it to toggle an object's datamember using this object's method.
virtual void SetState(Bool_t state)
Sets the value of toggle to fOnValue or fOffValue according to passed argument.
virtual Bool_t GetState()
Returns the state of Toggle according to its current value and fOnValue, returns true if they match.