153 enum EStyleManagerWid {
174 kToolbarImportCanvas,
197 kGeneralHatchesLineWidth,
198 kGeneralHatchesSpacing,
201 kGeneralTextSizeInPixels,
208 kGeneralLineStyleEdit,
212 kGeneralScreenFactor,
219 kCanvasBorderModeSunken,
220 kCanvasBorderModeNone,
221 kCanvasBorderModeRaised,
224 kCanvasAttDateTextColor,
225 kCanvasAttDateTextSize,
226 kCanvasAttDateTextSizeInPixels,
227 kCanvasOptDateFormat,
228 kCanvasAttDateTextFont,
229 kCanvasAttDateTextAngle,
230 kCanvasAttDateTextAlign,
238 kPadBorderModeSunken,
240 kPadBorderModeRaised,
259 kHistPaintTextFormat,
269 kFrameBorderModeSunken,
270 kFrameBorderModeNone,
271 kFrameBorderModeRaised,
287 kAxisXTitleSizeInPixels,
292 kAxisXLabelSizeInPixels,
302 kAxisXNdivisionsOptimize,
305 kAxisYTitleSizeInPixels,
310 kAxisYLabelSizeInPixels,
320 kAxisYNdivisionsOptimize,
323 kAxisZTitleSizeInPixels,
328 kAxisZLabelSizeInPixels,
338 kAxisZNdivisionsOptimize,
345 kTitleFontSizeInPixels,
353 kTitleLegendBorderSize,
359 kStatFontSizeInPixels,
368 kStatOptStatOverflow,
370 kStatOptStatUnderflow,
372 kStatOptStatSkewness,
373 kStatOptStatIntegral,
374 kStatOptStatKurtosis,
379 kStatOptFitProbability,
386 kPSPDFColorModelPSRGB,
387 kPSPDFColorModelPSCMYK,
389 kPSPDFPaperSizePredef,
443 Int_t parts[] = { 20, 30, 50 };
771 if ((
gROOT->GetSelectedPad()) && (
gROOT->GetSelectedPad()->GetCanvas())) {
884 printf(
"Can not delete gStyle.\n");
919 const char* tmpBaseName;
927 else tmpBaseName = 0;
928 }
while (tmpBaseName && (strstr(tmpBaseName,
"Style_") != tmpBaseName)
929 && (strstr(tmpBaseName,
" ") != 0));
931 if (tmpBaseName != 0) {
1169 gClient->GetColorByName(
"#FF0000", red);
1247 if (tmpStyle == style) styleID = i;
1249 tmpStyle = (
TStyle *) (
gROOT->GetListOfStyles()->After(tmpStyle));
1253 if (styleID == 0) styleID = i - 1;
1291 Int_t oneYearInSecs;
1292 Int_t oneMonthInSecs;
1439 if (year % 4) oneYearInSecs = 3600 * 24 * 365;
1440 else oneYearInSecs = 3600 * 24 * 366;
1441 delta += oneYearInSecs;
1443 oneYearInSecs = 3600 * 24 * 365;
1444 while (delta >= oneYearInSecs) {
1445 if (year % 4) oneYearInSecs = 3600 * 24 * 365;
1446 else oneYearInSecs = 3600 * 24 * 366;
1447 delta -= oneYearInSecs;
1450 oneMonthInSecs = 3600 * 24 * 31;
1451 while (delta >= oneMonthInSecs) {
1453 delta -= oneMonthInSecs;
1456 if (year % 4) oneMonthInSecs = 3600 * 24 * 28;
1457 else oneMonthInSecs = 3600 * 24 * 29;
1459 case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
1460 oneMonthInSecs = 3600 * 24 * 31;
1463 oneMonthInSecs = 3600 * 24 * 30;
1466 day = (
Int_t) delta / (3600 * 24) + 1;
1467 delta = ((
Int_t) delta) % (3600 * 24);
1687 if ((((tmp/100) % 10) == 2) || (((tmp/1000) % 10) == 2) ||
1688 (((tmp/10000000) % 10) == 2) || (((tmp/100000000) % 10) == 2))
1698 if ((tmp2/10) % 10) {
1721 if ((papSizeX == 20) && (papSizeY == 26)) {
1726 }
else if ((papSizeX == 20) && (papSizeY == 24)) {
1746 Connect(
"CloseWindow()",
"TStyleManager",
this,
"CloseWindow()");
1747 fMenuStyle->
Connect(
"Activated(Int_t)",
"TStyleManager",
this,
"DoMenu(Int_t)");
1748 fMenuHelp->
Connect(
"Activated(Int_t)",
"TStyleManager",
this,
"DoMenu(Int_t)");
1766 fEditionTab->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"DoChangeTab(Int_t)");
1767 fAxisTab->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"DoChangeAxisTab(Int_t)");
1770 TQObject::Connect(
"TCanvas",
"Selected(TVirtualPad *, TObject *, Int_t)",
"TStyleManager",
1771 this,
"DoSelectCanvas(TVirtualPad *, TObject *, Int_t)");
1772 TQObject::Connect(
"TCanvas",
"Closed()",
"TStyleManager",
this,
"DoSelectNoCanvas()");
1815 fFillColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModFillColor()");
1816 fFillStyle->
Connect(
"PatternSelected(Style_t)",
"TStyleManager",
this,
"ModFillStyle()");
1819 fMarkerColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModMarkerColor()");
1820 fMarkerStyle->
Connect(
"MarkerSelected(Style_t)",
"TStyleManager",
this,
"ModMarkerStyle()");
1823 fLineColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModLineColor()");
1824 fLineWidth->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"ModLineWidth()");
1825 fLineStyle->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"ModLineStyle()");
1827 fTextColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModTextColor()");
1828 fTextSize->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModTextSize()");
1830 fTextFont->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"ModTextFont()");
1831 fTextAlign->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"ModTextAlign()");
1832 fTextAngle->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModTextAngle()");
1835 fCanvasColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModCanvasColor()");
1850 fDateX->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModDateX()");
1851 fDateY->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModDateY()");
1860 fPadColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModPadColor()");
1861 fPadTickX->
Connect(
"Toggled(Bool_t)",
"TStyleManager",
this,
"ModPadTickX()");
1862 fPadTickY->
Connect(
"Toggled(Bool_t)",
"TStyleManager",
this,
"ModPadTickY()");
1863 fPadGridX->
Connect(
"Toggled(Bool_t)",
"TStyleManager",
this,
"ModPadGridX()");
1864 fPadGridY->
Connect(
"Toggled(Bool_t)",
"TStyleManager",
this,
"ModPadGridY()");
1865 fGridColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModGridColor()");
1866 fGridWidth->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"ModGridWidth()");
1867 fGridStyle->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"ModGridStyle()");
1875 fBarWidth->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModBarWidth()");
1876 fBarOffset->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModBarOffset()");
1889 fFuncColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModFuncColor()");
1890 fFuncWidth->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"ModFuncWidth()");
1891 fFuncStyle->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"ModFuncStyle()");
1894 fErrorX->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModErrorX()");
1903 fXTitleColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModXTitleColor()");
1908 fXLabelColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModXLabelColor()");
1911 fXAxisColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModXAxisColor()");
1913 fOptLogx->
Connect(
"Toggled(Bool_t)",
"TStyleManager",
this,
"ModOptLogx()");
1914 fXNdivMain->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModXNdivisions()");
1915 fXNdivSub->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModXNdivisions()");
1920 fYTitleColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModYTitleColor()");
1925 fYLabelColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModYLabelColor()");
1928 fYAxisColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModYAxisColor()");
1930 fOptLogy->
Connect(
"Toggled(Bool_t)",
"TStyleManager",
this,
"ModOptLogy()");
1931 fYNdivMain->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModYNdivisions()");
1932 fYNdivSub->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModYNdivisions()");
1937 fZTitleColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModZTitleColor()");
1942 fZLabelColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModZLabelColor()");
1945 fZAxisColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModZAxisColor()");
1947 fOptLogz->
Connect(
"Toggled(Bool_t)",
"TStyleManager",
this,
"ModOptLogz()");
1948 fZNdivMain->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModZNdivisions()");
1949 fZNdivSub->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModZNdivisions()");
1954 fOptTitle->
Connect(
"Toggled(Bool_t)",
"TStyleManager",
this,
"ModOptTitle()");
1955 fTitleColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModTitleFillColor()");
1956 fTitleStyle->
Connect(
"PatternSelected(Style_t)",
"TStyleManager",
this,
"ModTitleStyle()");
1960 fTitleFont->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"ModTitleFont()");
1963 fTitleX->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModTitleX()");
1964 fTitleY->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModTitleY()");
1965 fTitleW->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModTitleW()");
1966 fTitleH->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModTitleH()");
1970 fStatColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModStatColor(Pixel_t)");
1971 fStatStyle->
Connect(
"PatternSelected(Style_t)",
"TStyleManager",
this,
"ModStatStyle(Style_t)");
1972 fStatTextColor->
Connect(
"ColorSelected(Pixel_t)",
"TStyleManager",
this,
"ModStatTextColor(Pixel_t)");
1975 fStatFont->
Connect(
"Selected(Int_t)",
"TStyleManager",
this,
"ModStatFont()");
1976 fStatX->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModStatX()");
1977 fStatY->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModStatY()");
1978 fStatW->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModStatW()");
1979 fStatH->
Connect(
"ValueSet(Long_t)",
"TStyleManager",
this,
"ModStatH()");
1991 fStatFormat->
Connect(
"TextChanged(const char *)",
"TStyleManager",
this,
"ModStatFormat(const char *)");
1996 fFitFormat->
Connect(
"TextChanged(const char *)",
"TStyleManager",
this,
"ModFitFormat(const char *)");
1999 fHeaderPS->
Connect(
"TextChanged(const char *)",
"TStyleManager",
this,
"ModHeaderPS()");
2000 fTitlePS->
Connect(
"TextChanged(const char *)",
"TStyleManager",
this,
"ModTitlePS()");
3815 kStatOptFitProbability);
3895 kPSPDFColorModelPSRGB);
3898 kPSPDFColorModelPSCMYK);
4024 for (
Int_t i = 1; i <= 15; i++) {
4025 snprintf(a, 10,
"%.1f", 0.2 * i);
4051 nfS, nfA, nfL, min, max);
4053 if ((e1 == 0) && (e2 == 0) && (e3 == 0)) {
4112 const char *s,
Int_t id)
4143 cb->
AddEntry(
"11 Bottom, Left", 11);
4144 cb->
AddEntry(
"21 Bottom, Middle", 21);
4145 cb->
AddEntry(
"31 Bottom, Right", 31);
4146 cb->
AddEntry(
"12 Middle, Left", 12);
4147 cb->
AddEntry(
"22 Middle, Middle", 22);
4148 cb->
AddEntry(
"32 Middle, Right", 32);
4150 cb->
AddEntry(
"23 Top, Middle", 23);
4185 cb->
AddEntry(
"Wed Sep 25 17:10:35 2002", 1);
4187 cb->
AddEntry(
"2002-09-25 17:10:35", 3);
4216 const char *s,
Int_t id)
4250 cb->
AddEntry(
"Custom size (cm)", 1);
4251 cb->
AddEntry(
"Custom size (inch)", 2);
4253 cb->
AddEntry(
"US Letter (inch)", 4);
4267 case kMenuNew:
DoNew();
break;
4268 case kMenuDelete:
DoDelete();
break;
4269 case kMenuRename:
DoRename();
break;
4272 case kMenuExport:
DoExport();
break;
4273 case kMenuExit:
DoExit();
break;
4274 case kMenuHelp:
DoHelp(42);
break;
4276 case kMenuHelpGeneral:
DoHelp(0);
break;
4277 case kMenuHelpCanvas:
DoHelp(1);
break;
4278 case kMenuHelpPad:
DoHelp(2);
break;
4279 case kMenuHelpHistos:
DoHelp(3);
break;
4280 case kMenuHelpAxis:
DoHelp(4);
break;
4281 case kMenuHelpTitle:
DoHelp(5);
break;
4282 case kMenuHelpStats:
DoHelp(6);
break;
4283 case kMenuHelpPSPDF:
DoHelp(7);
break;
4303 delete gROOT->GetStyle(
"Default");
4304 new TStyle(
"Default",
"Default Style");
4310 delete gROOT->GetStyle(
"Plain");
4311 new TStyle(
"Plain",
"Plain Style (no colors/fill areas)");
4317 delete gROOT->GetStyle(
"Bold");
4318 new TStyle(
"Bold",
"Bold Style");
4324 delete gROOT->GetStyle(
"Video");
4325 new TStyle(
"Video",
"Style for video presentation histograms");
4331 delete gROOT->GetStyle(
"Pub");
4332 new TStyle(
"Pub",
"Style for Publications");
4360 GetSelectedEntry())->GetText()->GetString());
4381 newTip +=
" become current style";
4420 TQObject::Connect(
"TCanvas",
"Closed()",
"TStyleManager",
this,
"DoSelectNoCanvas()");
4485 tmpCanvas = (
TCanvas *) (
gROOT->GetListOfCanvases()->After(tmpCanvas));
4498 tmpCanvas = (
TCanvas *) (
gROOT->GetListOfCanvases()->After(tmpCanvas));
4548 TQObject::Connect(
"TCanvas",
"Closed()",
"TStyleManager",
this,
"DoSelectNoCanvas()");
4626 sPad.
Append(
"[no name]");
4631 sPad.
Append(
"[no title]");
4639 sObj.
Append(
"[no name]");
4896 Int_t i = kCanvasBorderModeSunken;
5074 Int_t i = kPadBorderModeSunken;
5321 Int_t i = kFrameBorderModeSunken;
5404 offset += 3600 * 24;
5407 Int_t oneMonthInSecs;
5412 if (year % 4) oneMonthInSecs = 3600 * 24 * 28;
5413 else oneMonthInSecs = 3600 * 24 * 29;
5415 case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
5416 oneMonthInSecs = 3600 * 24 * 31;
5419 oneMonthInSecs = 3600 * 24 * 30;
5421 offset += oneMonthInSecs;
5424 Int_t oneYearInSecs;
5425 while (year < 1995) {
5426 if (year % 4) oneYearInSecs = 3600 * 24 * 365;
5427 else oneYearInSecs = 3600 * 24 * 366;
5428 offset -= oneYearInSecs;
5431 while (year > 1995) {
5433 if (year % 4) oneYearInSecs = 3600 * 24 * 365;
5434 else oneYearInSecs = 3600 * 24 * 366;
5435 offset += oneYearInSecs;
6306 if (stat == 1) stat = 1000000001;
6330 if (fit == 1) fit = 10001;
6367 Int_t i = kPSPDFColorModelPSRGB;
const char * kFiletypes[]
void DoApplyOnSelect(Int_t i)
Slot called to choose on which object(s) the 'Apply' button will have an effect.
TGLabel * fStatFormatLabel
void CreateTabPsPdf(TGCompositeFrame *tab)
Add the tab 'PS / PDF' to the editor.
void ModZTitleColor()
Slot called whenever the Z axis title color is modified by the user.
void AddHistosHistosContours(TGCompositeFrame *f)
Add the 'Contours' group frame to the 'Histos - Histos' tab.
virtual void HideFrame(TGFrame *f)
Hide sub frame.
void AddStatsStats(TGCompositeFrame *f)
Add the 'Stat Options' group frame to the 'Stats' tab.
TGButtonGroup * fFrameBorderMode
void ModZTitleSize()
Slot called whenever the Z axis title size is modified by the user.
virtual const char * BaseName(const char *pathname)
Base name of a file name. Base name of /user/root is root.
void ModXLabelOffset()
Slot called whenever the X axis label offset is modified by the user.
TGVerticalFrame * fEditionFrame
virtual const char * GetTitle() const
Returns title of object.
TGCheckButton * fOptStatUnderflow
void AddHistosHistosAxis(TGCompositeFrame *f)
Add the 'Axis' group frame to the 'Histos - Histos' tab.
void DoChangeAxisTab(Int_t i)
Slot called when the user changes the current axis tab.
void ModHistFillColor()
Slot called whenever the histos fill color is modified by the user.
virtual Style_t GetLineStyle() const
virtual Style_t GetFillStyle() const
void ModPadBorderSize()
Slot called whenever the pad border size is modified by the user.
virtual void SetLineWidth(Width_t lwidth)
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
Float_t GetEndErrorSize() const
void ModOptLogx()
Slot called whenever the X axis log scale boolean is modified by the user.
void AddPsPdfColorModel(TGCompositeFrame *f)
Add the 'Color Model' group frame to the 'PS / PDF' tab.
TGTextEntry * AddTextEntry(TGCompositeFrame *f, const char *s, Int_t id)
Add a text entry to the frame f. A caption can be added.
const char * GetHeaderPS() const
Width_t GetGridWidth() const
TGLineWidthComboBox * fFuncWidth
Float_t GetLabelSize(Option_t *axis="X") const
Return label size.
void SetBarWidth(Float_t barwidth=0.5)
TGHorizontalFrame * fEditionButtonFrame
virtual void Resize(UInt_t w, UInt_t h)
Resize the listbox widget.
TGColorSelect * fZAxisColor
void SetEndErrorSize(Float_t np=2)
Set the size (in pixels) of the small lines drawn at the end of the error bars (TH1 or TGraphErrors)...
R__EXTERN const char gHelpSMPad[]
void DisconnectAll()
Disconnect every entry in the top level interface of the slot.
TGColorSelect * fYLabelColor
void SetPadGridX(Bool_t gridx)
void ModXTitleOffset()
Slot called whenever the X axis title offset is modified by the user.
virtual Float_t GetTextAngle() const
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
Float_t GetTitleW() const
void ModXTickLength()
Slot called whenever the X axis tick length is modified by the user.
TGLineWidthComboBox * fHistLineWidth
Bool_t GetPadGridX() const
void SetPadLeftMargin(Float_t margin=0.1)
TGLineWidthComboBox * fHatchesLineWidth
void AddHistosFramesBorder(TGCompositeFrame *f)
Add the 'Border' group frame to the 'Histos - Frames' tab.
Width_t GetFrameBorderSize() const
TGNumberEntry * AddNumberEntry(TGCompositeFrame *f, Int_t e1, Int_t e2, Int_t e3, Int_t id, const char *s, Double_t init, Int_t digits, TGNumberFormat::EStyle nfS, TGNumberFormat::EAttribute nfA, TGNumberFormat::ELimit nfL, Double_t min, Double_t max)
Add a number entry to the frame f. A caption can be added.
void SetTitleY(Float_t y=0.985)
Int_t GetCanvasBorderMode() const
void ModFuncWidth()
Slot called whenever the function line width is modified by the user.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
void ModPaintTextFormat()
Slot called whenever the paint text format is modified by the user.
virtual Font_t GetTextFont() const
TGCheckButton * fStripDecimals
void ModHistLineWidth()
Slot called whenever the histos line width is modified by the user.
void SetStatColor(Color_t color=19)
void ModStatTextColor(Pixel_t color)
Slot called whenever the stats text color is modified by the user.
void SetFrameBorderMode(Int_t mode=1)
void ModPadLeftMargin()
Slot called whenever the pad left margin is modified by the user.
TGComboBox * AddPaperSizeEntry(TGCompositeFrame *f, Int_t id)
Add a prefered paper size combo box to the frame f.
const TGWindow * GetParent() const
void ModStatFormat(const char *sformat)
Slot called whenever the stats paint format is modified by the user.
Int_t GetDrawBorder() const
TGComboBox * fListComboBox
void ModPadTickY()
Slot called whenever the pad tick Y boolean is modified by the user.
void SetStatH(Float_t h=0.1)
void ConnectEditor(Int_t tabNum)
Connect every widget entry of the editor to its specific slot.
void AddAxisZTitle(TGCompositeFrame *f)
Add the 'Title' group frame to the 'Axis - Z Axis' tab.
void ModBarOffset()
Slot called whenever the histos bar offset is modified by the user.
Double_t GetTimeOffset() const
void SetLabelFont(Style_t font=62, Option_t *axis="X")
Set font number used to draw axis labels.
void DoApplyOn()
Slot called when the user clicks on the 'Apply' button.
TGColorSelect * fZLabelColor
Style_t GetHistLineStyle() const
void DoHelp(Int_t i)
Open an help window. Called via the menu bar or the tool bar.
TGColorSelect * AddColorEntry(TGCompositeFrame *f, Int_t id)
Add a color entry to the frame f.
Int_t GetFrameBorderMode() const
void AddGeneralFill(TGCompositeFrame *f)
Add the 'Fill' group frame to the 'General' tab.
void CreateTabGeneral(TGCompositeFrame *tab)
Add the tab 'General' to the editor.
void AddCanvasGeometry(TGCompositeFrame *f)
Add the 'Geometry' group frame to the 'Canvas' tab.
TGColorSelect * fLineColor
void SetStatStyle(Style_t style=1001)
void SetDateY(Float_t y=0.01)
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
R__EXTERN const char gHelpSMAxis[]
TGNumberEntry * fYTitleOffset
void ModCanvasDefX()
Slot called whenever the canvas default abscissa is modified by the user.
void ModPadBottomMargin()
Slot called whenever the pad bottom margin is modified by the user.
Color_t GetFrameFillColor() const
void SetAxisColor(Color_t color=1, Option_t *axis="X")
Set color to draw the axis line and tick marks.
Int_t GetPadTickX() const
Color_t GetGridColor() const
void ModStripDecimals()
Slot called whenever the strip decimal boolean is modified by the user.
void SetTitleW(Float_t w=0)
virtual void SetToolTipText(const char *text, Long_t delayms=500)
Set tool tip text associated with this text entry.
R__EXTERN TStyle * gStyle
void SetHistLineWidth(Width_t width=1)
TGComboBox * AddTextAlignEntry(TGCompositeFrame *f, Int_t id)
Add a text align combo box to the frame f.
virtual ~TStyleManager()
Destructor.
void ModPaperSizeXY()
Slot called whenever the PS paper size is modified by the user.
TGPopupMenu * fImportCascade
Float_t GetTickLength(Option_t *axis="X") const
Return tick length.
Color_t GetTitleFillColor() const
void ModYLabelSize()
Slot called whenever the Y axis label size is modified by the user.
void ModPadTickX()
Slot called whenever the pad tick X boolean is modified by the user.
Width_t GetPadBorderSize() const
TGNumberEntry * fBarWidth
void Draw3DCorner(Bool_t corner)
void UpdateStatusBar()
Update the content of the status bar: show the name of the current selected style, its title and the macro from which it has been imported.
void SetGridStyle(Style_t style=3)
void ModTitleAlign()
Slot called whenever the title text align is modified by the user.
void SetColor(Pixel_t color, Bool_t emit=kTRUE)
Set color.
void SaveSource(const char *filename, Option_t *option=0)
Save the current style in a C++ macro file.
TGedPatternSelect * AddFillStyleEntry(TGCompositeFrame *f, Int_t id)
Add a fill style entry to the frame f.
TGCheckButton * fAttDateTextSizeInPixels
virtual TGDimension GetDefaultSize() const
Return default size of listbox widget.
void ModZLabelSizeInPixels(Bool_t b)
Slot called whenever the Z axis Label size mode is modified by the user.
virtual void SetTextColor(Pixel_t color, Bool_t local=kTRUE)
Changes text color.
void ModOptLogy()
Slot called whenever the Y axis log scale boolean is modified by the user.
void ModXLabelFont()
Slot called whenever the X axis label font is modified by the user.
Float_t GetTitleSize(Option_t *axis="X") const
Return title size.
virtual void SetNumber(Double_t val)
TGNumberEntry * fTimeOffsetDate
void SetFrameLineWidth(Width_t width=1)
virtual void AddFirst(TObject *obj)
Add object at the beginning of the list.
void ModXLabelSizeInPixels(Bool_t b)
Slot called whenever the X axis label size mode is modified by the user.
TGColorSelect * fHistLineColor
void UpdateEditor(Int_t tabNum)
Update the values of every widget entry in the editor.
TGTextButton * fEditionHelp
virtual Float_t GetTextSize() const
void SetMarkerStyle(Style_t pattern)
Set marker.
void AddAxisXLabels(TGCompositeFrame *f)
Add the 'Labels' group frame to the 'Axis - X Axis' tab.
Int_t GetNumberContours() const
TGCheckButton * fYLabelSizeInPixels
TGPictureButton * fToolBarNew
void ModZTitleOffset()
Slot called whenever the Z axis title offset is modified by the user.
void ModOptFit()
Slot called whenever one of the fit options is modified by the user.
void AddStatsGeometry(TGCompositeFrame *f)
Add the 'Geometry' group frame to the 'Stats' tab.
ClassImp(TStyleManager) enum EStyleManagerWid
TGNumberEntry * fCanvasDefY
TGLineWidthComboBox * fTitleBorderSize
TGFontTypeComboBox * fXLabelFont
TGFontTypeComboBox * fTextFont
void ModFillStyle()
Slot called whenever the fill style is modified by the user.
TGedMarkerSelect * AddMarkerStyleEntry(TGCompositeFrame *f, Int_t id)
Add a marker style entry to the frame f.
TGComboBox * AddMarkerSizeEntry(TGCompositeFrame *f, Int_t id)
Add a marker size entry to the frame f.
void ModFrameBorderMode()
Slot called whenever the frame border mode is modified by the user.
void SetStatX(Float_t x=0)
void CreateMacro()
Create a TGFileInfo concerning a macro, if it doesn't exist already.
void SetStatBorderSize(Width_t size=2)
void DoImportMacro(Bool_t create)
Slot called to import a style from a C++ macro file.
void SetTitleFont(Style_t font=62, Option_t *axis="X")
Float_t GetTitleX() const
void DoDelete()
Delete the current selected style from the ROOT session.
void ModApplyOnXYZ()
Slot called whenever the apply on XYZ button is clicked.
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
void Hide()
Called to hide the style manager.
void GetPaperSize(Float_t &xsize, Float_t &ysize) const
Set paper size for PostScript output.
Float_t GetLineScalePS() const
void MapTheWindow()
Initialize the layout algorithm.
void DoMakeDefault()
Slot called to make the current selected style (in the ComboBox) become gStyle.
TGLayoutHints * fLayoutExpandXMargin
void AddAxisZLabels(TGCompositeFrame *f)
Add the 'Labels' group frame to the 'Axis - Z Axis' tab.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
Float_t GetTitleFontSize() const
Short_t Min(Short_t a, Short_t b)
void ModLineWidth()
Slot called whenever the line width is modified by the user.
void ModTitleFillColor()
Slot called whenever the title fill color is modified by the user.
void SetBarOffset(Float_t baroff=0.5)
Style_t GetFrameLineStyle() const
void ModTitleW()
Slot called whenever the title width is modified by the user.
virtual Int_t GetNumberOfEntries() const
virtual void SetState(Bool_t enable=kTRUE)
Set the active state.
virtual void SetLimits(ELimit limits=TGNumberFormat::kNELNoLimits, Double_t min=0, Double_t max=1)
virtual void SetFillStyle(Style_t fstyle)
void ModLineStyle()
Slot called whenever the line style is modified by the user.
TGNumberEntry * fYTitleSize
TGColorSelect * fFrameLineColor
TGCheckButton * fOptFitValues
void DoMoreLess()
Slot called when the user try to show or hide the editor part of the style manager.
TGCheckButton * fPadTickY
virtual void UseCurrentStyle()
Set current style settings in this object This function is called when either TCanvas::UseCurrentStyl...
TGNumberEntry * fZTitleSize
void DoRename()
Rename the current selected style. Called via the menu bar.
TGColorSelect * fXTitleColor
void SetStatY(Float_t y=0)
void ModYTitleOffset()
Slot called whenever the Y axis title offset is modified by the user.
Width_t GetFuncWidth() const
void DoExit()
Close the style manager. Called via the menu bar.
void SetFrameLineStyle(Style_t styl=0)
void SetTimeOffset(Double_t toffset)
Change the time offset for time plotting.
void BuildList(TStyle *style=0)
Build the list of styles which will appear in the available styles combo box.
void CloseWindow()
Slot called to close the style manager via the window manager.
void ModAttDateTextSize()
Slot called whenever the date text size is modified by the user.
void AddStatsFill(TGCompositeFrame *f)
Add the 'Fill' group frame to the 'Stats' tab.
Int_t GetHatchesLineWidth() const
Style_t GetHistFillStyle() const
void AddAxisXLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'Axis - X Axis' tab.
void Disable()
Set state of widget as disabled.
TGComboBox * fOptDateFormat
void AddCanvasFill(TGCompositeFrame *f)
Add the 'Fill' group frame to the 'Canvas' tab.
void DoSelectNoCanvas()
Slot called when the user close a TCanvas.
void CreateTabTitle(TGCompositeFrame *tab)
Add the tab 'Title' to the editor.
void AddTitle(TGCompositeFrame *f, const char *s)
Add a title to the frame f.
void SetPadBottomMargin(Float_t margin=0.1)
void AddHistosHistosFill(TGCompositeFrame *f)
Add the 'Fill' group frame to the 'Histos - Histos' tab.
TGNumberEntry * fTextSize
TGComboBox * AddDateFormatEntry(TGCompositeFrame *f, Int_t id)
Add a date format combo box to the frame f.
Bool_t GetHistMinimumZero() const
void ModZTitleFont()
Slot called whenever the Z axis title font is modified by the user.
void SetCanvasDefH(Int_t h=500)
TGNumberEntry * fXLabelSize
void SetTitlePS(const char *pstitle)
Define a string to be used in the %Title of the Postscript files.
TGCheckButton * fOptStatOverflow
TGFontTypeComboBox * fStatFont
TGCheckButton * fOptStatMean
void SetPadBorderSize(Width_t size=1)
void ModColorModelPS()
Slot called whenever the PS color model is modified by the user.
void ModZLabelOffset()
Slot called whenever the Z axis label offset is modified by the user.
Width_t GetTitleBorderSize() const
TGCheckButton * fOptStatSkewness
void ModFuncStyle()
Slot called whenever the function line style is modified by the user.
TGNumberEntry * fPaperSizeY
virtual const char * UnixPathName(const char *unixpathname)
Convert from a Unix pathname to a local pathname.
void SetCanvasColor(Color_t color=19)
Style_t GetStatFont() const
void SetNdivisions(Int_t n=510, Option_t *axis="X")
Set the number of divisions to draw an axis.
Float_t GetLegoInnerR() const
void AddPadBorder(TGCompositeFrame *f)
Add the 'Border' group frame to the 'Pad' tab.
void Update(TStyle *style, TVirtualPad *pad)
Update the preview with possibly another style and another object than previously.
TGLabel * fTitleBorderSizeLabel
void SetOptLogz(Int_t logz=1)
TGFontTypeComboBox * fZTitleFont
void SetTitleSize(Float_t size=0.02, Option_t *axis="X")
void ModGridStyle()
Slot called whenever the grid line style is modified by the user.
void AddStatsText(TGCompositeFrame *f)
Add the 'Text' group frame to the 'Stats' tab.
const char * Data() const
TGLineStyleComboBox * fFuncStyle
void SetTitleAlign(Int_t a=13)
TGNumberEntry * fXNdivMain
void ModStatFont()
Slot called whenever the stats text font is modified by the user.
virtual void SetTextFont(Font_t tfont=62)
void AddPsPdfPaperSize(TGCompositeFrame *f)
Add the 'Paper Size' group frame to the 'PS / PDF' tab.
void SetNumberContours(Int_t number=20)
Set the default number of contour levels when drawing 2-d plots.
void SetTitleBorderSize(Width_t size=2)
void SetText(const char *helpText)
Set help text from helpText buffer in TGTextView.
TGNumberEntry * fZLabelOffset
void SetLegendBorderSize(Width_t size=4)
TGCheckButton * fOptStatName
TGHButtonGroup * fApplyOnGroup
void ModYTitleColor()
Slot called whenever the Y axis title color is modified by the user.
void ModFrameFillStyle()
Slot called whenever the frame fill style is modified by the user.
TGPictureButton * fToolBarExport
void AddAxisZLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'Axis - Z Axis' tab.
TGColorSelect * fXAxisColor
virtual Short_t GetTextAlign() const
TGTextButton * AddTextButton(TGCompositeFrame *f, const char *s, Int_t id)
Add a text button to the frame f.
TGTextEntry * fStatFormat
TGNumberEntryField * GetNumberEntry() const
void SetFrameFillColor(Color_t color=1)
TGPictureButton * fToolBarImportCanvas
void SetLabelColor(Color_t color=1, Option_t *axis="X")
Set axis labels color.
TGNumberEntry * fXNdivSubSub
virtual TObject * After(const TObject *obj) const
Returns the object after object obj.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
Float_t GetBarOffset() const
void SetHistFillColor(Color_t color=1)
void ModYTickLength()
Slot called whenever the Y axis tick length is modified by the user.
virtual const char * GetName() const =0
Returns name of object.
R__EXTERN const char gHelpSMCanvas[]
TGRadioButton * fColorModelPSCMYK
Float_t GetPadBottomMargin() const
Color_t GetTitleTextColor() const
void SetTitleX(Float_t x=0)
Width_t GetStatBorderSize() const
void SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
TGFontTypeComboBox * fYLabelFont
void ModAttDateTextAngle()
Slot called whenever the date text angle is modified by the user.
void ModXTitleSize()
Slot called whenever the X axis title size is modified by the user.
void DoSelectCanvas(TVirtualPad *pad, TObject *obj, Int_t mouseButton)
Slot called when the user clicks on a TCanvas or on any object inside a TCanvas.
void ModLegoInnerR()
Slot called whenever the lego inner radius is modified by the user.
TGColorSelect * fTitleColor
const char * GetText() const
void ModYNdivisions()
Slot called whenever the Y axis Number of divisions is modified by the user.
virtual Color_t GetTextColor() const
void CreateTabStats(TGCompositeFrame *tab)
Add the tab 'Stats' to the editor.
void ModDrawBorder()
Slot called whenever the draw border boolean is modified by the user.
Style_t GetFrameFillStyle() const
Color_t GetFuncColor() const
TGLayoutHints * fLayoutExpandXCenterYMargin
TGPictureButton * fToolBarImportMacro
void SetCanvasBorderSize(Width_t size=1)
TGCheckButton * AddCheckButton(TGCompositeFrame *f, const char *s, Int_t id, Int_t e1=0, Int_t e2=2)
Add a check button to the frame f.
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
void AddTopLevelInterface(TGCompositeFrame *cf)
Add the top level interface to the frame 'cf'.
void SetPadTickX(Int_t tickx)
TGColorSelect * fFuncColor
virtual void SetMarkerColor(Color_t mcolor=1)
TGColorSelect * fStatTextColor
void ModHatchesSpacing()
Slot called whenever the hatches spacing is modified by the user.
Color_t GetStatColor() const
TString & Append(const char *cs)
void AddHistosHistosLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'Histos - Histos' tab.
TGNumberEntry * fXTitleOffset
TGCheckButton * fOptFitErrors
Double_t GetHatchesSpacing() const
void AddMenus(TGCompositeFrame *p)
Add the menu bar to the frame 'p'.
R__EXTERN const char gHelpSMTitle[]
void SetTitleTextColor(Color_t color=1)
void ModTextSizeInPixels(Bool_t b)
Slot called whenever the text size mode is modified by the user.
TGNumberEntry * fYLabelOffset
TGNumberEntry * fTimeOffsetTime
TGNumberEntry * fYNdivSubSub
TGCheckButton * fOptDateBool
static void Show()
Called to show the style manager. Static method.
void AddTitleGeometry(TGCompositeFrame *f)
Add the 'Geometry' group frame to the 'Title' tab.
void ModStatBorderSize()
Slot called whenever the stats border size is modified by the user.
Float_t GetBarWidth() const
TGTextButton * fLineStyleEdit
void SetHeaderPS(const char *header)
Define a string to be inserted in the Postscript header The string in header will be added to the Pos...
TGNumberEntry * fPadTopMargin
TGCheckButton * fOptStatKurtosis
TGPictureButton * fToolBarDelete
virtual void SetText(TGString *text, Int_t partidx=0)
Set text in partition partidx in status bar.
void ModEndErrorSize()
Slot called whenever the end error size is modified by the user.
TGCheckButton * fOptFitProbability
void AddPsPdfLineScale(TGCompositeFrame *f)
Add the 'Line scale' number entry to the 'PS / PDF' tab.
void ModOptLogz()
Slot called whenever the Z axis log scale boolean is modified by the user.
TGNumberEntry * fZTickLength
TGCheckButton * fOptFitChi
TGLineStyleComboBox * fHistLineStyle
void ModStatFontSizeInPixels(Bool_t b)
Slot called whenever the text size mode is modified by the user.
TGNumberEntry * fCanvasDefX
TVirtualPad is an abstract base class for the Pad and Canvas classes.
void ModOptDateFormat()
Slot called whenever the date text format is modified by the user.
void ModCanvasBorderMode()
Slot called whenever the canvas border mode is modified by the user.
TGCheckButton * fOptTitle
void AddCanvasDate(TGCompositeFrame *f)
Add the 'Date' group frame to the 'Canvas' tab.
void AddHistosFramesFill(TGCompositeFrame *f)
Add the 'Fill' group frame to the 'Histos - Frames' tab.
Style_t GetLabelFont(Option_t *axis="X") const
Return label font.
void ModYLabelOffset()
Slot called whenever the Y axis label offset is modified by the user.
TGColorSelect * fTitleTextColor
void DoNew()
Create a new style. Called via the menu bar or the tool bar.
void ModHeaderPS()
Slot called whenever the PS header is modified by the user.
virtual const char * GetTitle() const =0
Returns title of object.
TGCheckButton * fOptStatIntegral
TGNumberEntry * fStatFontSize
void CreateTabAxisX(TGCompositeFrame *tab)
Add the sub-tab 'X Axis' to the tab 'Axis'.
void SetCanvasDefY(Int_t topy=10)
TGTextButton * fPaletteEdit
static void Terminate()
Called to delete the style manager.
void ModYLabelFont()
Slot called whenever the Y axis label font is modified by the user.
virtual void SetTextAlign(Short_t align=11)
void ModPadColor()
Slot called whenever the pad color is modified by the user.
Int_t GetColorModelPS() const
void SetTitleColor(Color_t color=1, Option_t *axis="X")
virtual void Disable()
Clear widget state flag.
void ModScreenFactor()
Slot called whenever the screen factor is modified by the user.
void SetFuncStyle(Style_t style=1)
TGCheckButton * fOptStatEntries
void ModTitleH()
Slot called whenever the title height is modified by the user.
virtual Int_t GetSelected() const
void ModFrameLineStyle()
Slot called whenever the frame line style is modified by the user.
TGNumberEntry * fPadLeftMargin
void CreateTabHistosFrames(TGCompositeFrame *tab)
Add the sub-tab 'Frames' to the tab 'Histos'.
void SetStatFont(Style_t font=62)
void SetOptLogx(Int_t logx=1)
void ModLineStyleEdit()
Slot called whenever the line style editor is opened by the user.
void SetGridColor(Color_t color=0)
TCanvas * GetMainCanvas()
Return pointer to the selected canvas.
void ModStatY()
Slot called whenever the stats ordinate is modified by the user.
Int_t GetPadTickY() const
Int_t GetOptTitle() const
TStyle objects may be created to define special styles.
TGTextButton * fApplyOnXYZ
TGColorSelect * fHistFillColor
Float_t GetPadRightMargin() const
Color_t GetAxisColor(Option_t *axis="X") const
Return the axis color number in the axis.
TGTextEntry * fPaintTextFormat
virtual void SetLineColor(Color_t lcolor)
void SetGridWidth(Width_t width=1)
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot...
virtual void Associate(const TGWindow *w)
Make w the window that will receive the generated messages.
TGColorSelect * fAttDateTextColor
void ModTitleFontSize()
Slot called whenever the text size is modified by the user.
void AddAxisZDivisions(TGCompositeFrame *f)
Add the 'Divisions' group frame to the 'Axis - Z Axis' tab.
void AddToolbar(TGCompositeFrame *p)
Add the tool bar to the frame 'p'.
void ModYTitleFont()
Slot called whenever the Y axis title font is modified by the user.
TGNumberEntry * fEndErrorSize
virtual Size_t GetMarkerSize() const
TGCheckButton * fTitleFontSizeInPixels
virtual TObject * FindObject(const char *name) const
Search if object named name is inside this pad or in pads inside this pad.
TGedPatternSelect * fHistFillStyle
Style_t GetMarkerStyle() const
Color_t GetHistFillColor() const
TGNumberEntry * fLegoInnerR
void AddAxisXDivisions(TGCompositeFrame *f)
Add the 'Divisions' group frame to the 'Axis - X Axis' tab.
TGNumberEntry * fZNdivMain
Width_t GetHistLineWidth() const
void SetPadBorderMode(Int_t mode=1)
void SetCanvasBorderMode(Int_t mode=1)
void AddAxisYDivisions(TGCompositeFrame *f)
Add the 'Divisions' group frame to the 'Axis - Y Axis' tab.
TGNumberEntry * fYNdivMain
TGLineStyleComboBox * fGridStyle
const TGPicture * fToolBarExportPic
void DisconnectEditor(Int_t tabNum)
Disconnect every widget entry of the editor from its slot.
void SetHistFillStyle(Style_t styl=0)
void ModHistLineColor()
Slot called whenever the histos line color is modified by the user.
R__EXTERN TSystem * gSystem
TGLabel * fStatBorderSizeLabel
void Popup()
Show help dialog.
TGTextButton * fEditionReset
void ModXTitleColor()
Slot called whenever the X axis title color is modified by the user.
void SetPadColor(Color_t color=19)
Int_t GetStripDecimals() const
TGedPatternSelect * fFrameFillStyle
void ModHistLineStyle()
Slot called whenever the histos line style is modified by the user.
virtual void SetFillColor(Color_t fcolor)
void SetFrameLineColor(Color_t color=1)
TGFontTypeComboBox * fZLabelFont
void AddTitleFill(TGCompositeFrame *f)
Add the 'Fill' group frame to the 'Title' tab.
TGColorSelect * fFillColor
TGButtonGroup * fColorModelPS
TGRadioButton * fApplyOnSel
Float_t GetTitleOffset(Option_t *axis="X") const
Return title offset.
void ModYAxisColor()
Slot called whenever the Y axis color is modified by the user.
void AddPadTicks(TGCompositeFrame *f)
Add the 'Ticks' group frame to the 'Pad' tab.
void SetOptDate(Int_t datefl=1)
If optdate is non null, the current date/time will be printed in the canvas.
TGNumberEntry * fXNdivSub
void SetTitleStyle(Style_t style=1001)
virtual const char * ClassName() const
Returns name of class to which the object belongs.
TGFontTypeComboBox * AddFontTypeEntry(TGCompositeFrame *f, Int_t id)
Add a font type combo box to the frame f.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
void SetScreenFactor(Float_t factor=1)
TGLabel * fFitFormatLabel
void CreateTabAxisY(TGCompositeFrame *tab)
Add the sub-tab 'Y Axis' to the tab 'Axis'.
virtual TGCompositeFrame * AddTab(TGString *text)
Add a tab to the tab widget.
virtual void SetTextAngle(Float_t tangle=0)
TStylePreview * fPreviewWindow
virtual Color_t GetFillColor() const
TGLayoutHints * fLayoutExpandXYMargin
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...
TGNumberEntry * fAttDateTextSize
TGButtonGroup * fPadBorderMode
void SetStatTextColor(Color_t color=1)
void ModAttDateTextFont()
Slot called whenever the date text font is modified by the user.
void ModYTitleSize()
Slot called whenever the Y axis title size is modified by the user.
TGColorSelect * fStatColor
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
TGNumberEntry * fHatchesSpacing
void AddPadFill(TGCompositeFrame *f)
Add the 'Fill' group frame to the 'Pad' tab.
TGComboBox * fAttDateTextAlign
TGColorSelect * fCanvasColor
const char * GetPaintTextFormat() const
char * Form(const char *fmt,...)
virtual TGListBox * GetListBox() const
void ModPadTopMargin()
Slot called whenever the pad top margin is modified by the user.
void SetTickLength(Float_t length=0.03, Option_t *axis="X")
Set the tick marks length for an axis.
void AddAxisYLabels(TGCompositeFrame *f)
Add the 'Labels' group frame to the 'Axis - Y Axis' tab.
TGCheckButton * fPadTickX
void ModZLabelSize()
Slot called whenever the Z axis label size is modified by the user.
TGNumberEntry * fNumberContours
void ModYLabelColor()
Slot called whenever the Y axis label color is modified by the user.
const TGPicture * fToolBarImportCanvasPic
virtual void ChangeOptions(UInt_t options)
Change composite frame options. Options is an OR of the EFrameTypes.
void ModFillColor()
Slot called whenever the fill color is modified by the user.
void ModTitleFontSizeInPixels(Bool_t b)
Slot called whenever the text size mode is modified by the user.
TGLayoutHints * fLayoutExpandX
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb"...
TGButtonGroup * AddBorderModeEntry(TGCompositeFrame *f, Int_t id1, Int_t id2, Int_t id3)
Add a border mode button group to the frame f.
void DoPreviewClosed()
Slot called to close the preview, via the preview check button, or when the preview window is closed ...
Style_t GetPattern() const
void AddGeneralLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'General' tab.
virtual const char * GetName() const
Returns name of object.
void ModTitleStyle()
Slot called whenever the title fill style is modified by the user.
void SetStatW(Float_t w=0.19)
TGedPatternSelect * fTitleStyle
void SetPattern(Style_t pattern, Bool_t emit=kTRUE)
Set pattern.
void SetFuncWidth(Width_t width=4)
virtual void SetMarkerStyle(Style_t mstyle=1)
void ModHistFillStyle()
Slot called whenever the histos fill style is modified by the user.
void SetColorModelPS(Int_t c=0)
Define the color model used by TPostScript and TPDF (RGB or CMYK).
R__EXTERN const char gHelpSMGeneral[]
TGNumberEntry * fZNdivSubSub
Style_t GetTitleStyle() const
TGComboBox * fPaperSizePredef
virtual void SetIntNumber(Long_t val)
virtual Color_t GetLineColor() const
const TGPicture * fToolBarNewPic
void ModStatColor(Pixel_t color)
Slot called whenever the stats fill color is modified by the user.
void SetHistMinimumZero(Bool_t zero=kTRUE)
If the argument zero=kTRUE the minimum value for the Y axis of 1-d histograms is set to 0 if the mini...
void SetTitleH(Float_t h=0)
void ModPaperSizePredef()
Slot called whenever the PS paper size is modified by the user.
TGLineWidthComboBox * fStatBorderSize
void ModXLabelSize()
Slot called whenever the X axis label size is modified by the user.
virtual void SetMarkerSize(Size_t msize=1)
Float_t GetErrorX() const
TGNumberEntry * fZTitleOffset
void DoChangeTab(Int_t i)
Slot called when the user changes the current tab.
Int_t GetCanvasDefW() const
void ModTextAngle()
Slot called whenever the text angle is modified by the user.
void SetDateX(Float_t x=0.01)
void SetFrameFillStyle(Style_t styl=0)
void SetTitleFontSize(Float_t size=0)
TGColorSelect * fFrameFillColor
void Init()
Set up the interface. Called by the ctor or by the 'Show' method.
TGedPatternSelect * fFillStyle
void ModOptStat()
Slot called whenever one of the stats options is modified by the user.
char * StrDup(const char *str)
Duplicate the string str.
TGCheckButton * fXTitleSizeInPixels
void ModTextSize()
Slot called whenever the text size is modified by the user.
void AddTitleBorderSize(TGCompositeFrame *f)
Add the 'Shadow' group frame to the 'Title' tab.
virtual void Enable()
Set widget state flag (kTRUE=enabled, kFALSE=disabled).
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual void SetText(TGHotString *new_label)
Set new button text.
Float_t GetPadLeftMargin() const
TGLineWidthComboBox * fLegendBorderSize
void ModOptDateBool()
Slot called whenever the OptDate boolean is modified by the user.
void ModHatchesLineWidth()
Slot called whenever the hatches line width is modified by the user.
void CreateTabPad(TGCompositeFrame *tab)
Add the tab 'Pad' to the editor.
TGTextEntry * fCurObjTextEntry
void SetLabelOffset(Float_t offset=0.005, Option_t *axis="X")
Set offset between axis and axis labels.
static ULong_t Number2Pixel(Int_t ci)
Static method that given a color index number, returns the corresponding pixel value.
TGLineStyleComboBox * fFrameLineStyle
TGLineStyleComboBox * AddLineStyleEntry(TGCompositeFrame *f, Int_t id)
Add a line style entry to the frame f.
virtual void SetFormat(EStyle style, EAttribute attr=TGNumberFormat::kNEAAnyNumber)
void ModCanvasDefW()
Slot called whenever the canvas default width is modified by the user.
TGLayoutHints * fLayoutExpandXY
void ConnectAll()
Connect every entry in the top level interface to the slot.
void AddPsPdfTitle(TGCompositeFrame *f)
Add the 'Title' group frame to the 'PS / PDF' tab.
void ModLineColor()
Slot called whenever the line color is modified by the user.
void AddHistosHistosLegoInnerR(TGCompositeFrame *f)
Add the '3D Cylindrical' group frame to the 'Histos - Histos' tab.
Int_t GetCanvasDefX() const
TGColorSelect * fMarkerColor
void ModZNdivisions()
Slot called whenever the Z axis Number of divisions is modified by the user.
void SetEnabled(Bool_t flag=kTRUE)
TGCheckButton * fOptStatErrors
void AddPadMargin(TGCompositeFrame *f)
Add the 'Margin' group frame to the 'Pad' tab.
Int_t GetCanvasDefY() const
void ModTitleFont()
Slot called whenever the title text font is modified by the user.
Color_t GetLabelColor(Option_t *axis="X") const
Return the label color number in the axis.
TGNumberEntry * fCanvasDefH
Int_t GetNdivisions(Option_t *axis="X") const
Return number of divisions.
TGNumberEntry * fXTitleSize
void SetHatchesLineWidth(Int_t l)
void ModCanvasDefY()
Slot called whenever the canvas default ordinate is modified by the user.
TGCheckButton * fYNdivisionsOptimize
virtual const char * GetName() const
Returns name of object.
void SetDrawBorder(Int_t drawborder=1)
static TStyleManager *& GetSM()
static: return style manager
TGCheckButton * fXNdivisionsOptimize
void ModStatStyle(Style_t pattern)
Slot called whenever the stats fill style is modified by the user.
void AddEdition(TGCompositeFrame *p)
Add the editor to the frame 'p'.
void SetTitleOffset(Float_t offset=1, Option_t *axis="X")
Specify a parameter offset to control the distance between the axis and the axis title.
Float_t GetStatFontSize() const
void AddCanvasBorder(TGCompositeFrame *f)
Add the 'Border' group frame to the 'Canvas' tab.
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
virtual void AddEntry(TGString *s, Int_t id)
void ModTitleY()
Slot called whenever the title ordinate is modified by the user.
void SetHistLineStyle(Style_t styl=0)
void AddTitleText(TGCompositeFrame *f)
Add the 'Text' group frame to the 'Title' tab.
void ModStatW()
Slot called whenever the stats width is modified by the user.
void ModBarWidth()
Slot called whenever the histos bar width is modified by the user.
TGNumberEntry * fTextAngle
TGLineWidthComboBox * fGridWidth
TGCheckButton * fStatFontSizeInPixels
TGLineWidthComboBox * fLineWidth
void ModOptTitle()
Slot called whenever the OptTitle boolean is modified by the user.
TGedPatternSelect * fStatStyle
Color_t GetTitleColor(Option_t *axis="X") const
Return title color.
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
TGNumberEntry * fXTickLength
Color_t GetPadColor() const
void ModXTitleFont()
Slot called whenever the X axis title font is modified by the user.
void ModAttDateTextColor()
Slot called whenever the date text color is modified by the user.
void DoExport()
Save the current selected style in a C++ macro file.
void AddHistosGraphsErrors(TGCompositeFrame *f)
Add the 'Errors' group frame to the 'Histos - Graphs' tab.
void CreateTabCanvas(TGCompositeFrame *tab)
Add the tab 'Canvas' to the editor.
void ModPadGridX()
Slot called whenever the pad grid X boolean is modified by the user.
void ModAttDateTextAlign()
Slot called whenever the date text align is modified by the user.
void DoEditionUpdatePreview()
Slot called when the user clicks on the 'Update preview' button.
void ModXAxisColor()
Slot called whenever the X axis color is modified by the user.
Width_t GetFrameLineWidth() const
void ModErrorX()
Slot called whenever the error along X is modified by the user.
virtual Bool_t IsMapped()
Returns kTRUE if window is mapped on screen, kFALSE otherwise.
const TGPicture * fMakeDefaultPic
void ModFrameLineWidth()
Slot called whenever the frame line width is modified by the user.
virtual void Reset(Option_t *option="")
Reset.
void AddHistosGraphsLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'Histos - Graphs' tab.
void SetLineScalePS(Float_t scale=3)
TGCheckButton * fHistMinimumZero
void AddAxisYLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'Axis - Y Axis' tab.
Style_t GetStatStyle() const
void ModMarkerSize()
Slot called whenever the marker size is modified by the user.
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
void CreateTabAxisZ(TGCompositeFrame *tab)
Add the sub-tab 'Z Axis' to the tab 'Axis'.
TGLineWidthComboBox * fPadBorderSize
void AddGeneralText(TGCompositeFrame *f)
Add the 'Text' group frame to the 'General' tab.
void ModStatX()
Slot called whenever the stats abscissa is modified by the user.
TGCheckButton * fTextSizeInPixels
TGCheckButton * fPadGridX
void ModHistMinimumZero()
Slot called whenever the histos minimum zero boolean is modified by the user.
void DoPreview(Bool_t b)
Slot called when the user click on the preview check button.
Color_t GetHistLineColor() const
TGLineWidthComboBox * fFrameLineWidth
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
void DoEditor()
Called each time something is changed in the style editor.
Style_t GetFuncStyle() const
void AddPadGrid(TGCompositeFrame *f)
Add the 'Grid' group frame to the 'Pad' tab.
void CreateTabAxis(TGCompositeFrame *tab)
Add the tab 'Axis' to the editor.
void ModTextColor()
Slot called whenever the text color is modified by the user.
virtual void SetLineStyle(Style_t lstyle)
void SetLegoInnerR(Float_t rad=0.5)
void DoRealTime(Bool_t b)
Slot called when the user click on the run time update check button.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
void SetPadTopMargin(Float_t margin=0.1)
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
TGHorizontal3DLine * fHorizontal3DLine
Width_t GetLegendBorderSize() const
void CreateTabHistosGraphs(TGCompositeFrame *tab)
Add the sub-tab 'Graphs' to the tab 'Histos'.
void AddAxisXTitle(TGCompositeFrame *f)
Add the 'Title' group frame to the 'Axis - X Axis' tab.
TGNumberEntry * fYNdivSub
static TStyleManager * fgStyleManager
void ModXTitleSizeInPixels(Bool_t b)
Slot called whenever the X axis title size mode is modified by the user.
TGColorSelect * fZTitleColor
void SetPaperSize(EPaperSize size)
Set paper size for PostScript output.
void ModPadRightMargin()
Slot called whenever the pad right margin is modified by the user.
TGLineWidthComboBox * AddLineWidthEntry(TGCompositeFrame *f, Int_t id)
Add a line width entry to the frame f.
Mother of all ROOT objects.
void UseCurrentStyle()
Force a copy of current style for all objects in canvas.
TStyleManager(const TGWindow *)
Constructor. Create the main window of the style manager.
TGLabel * fLegendBorderSizeLabel
void ModZTickLength()
Slot called whenever the Z axis tick length is modified by the user.
virtual TObject * First() const
Return the first object in the list. Returns 0 when list is empty.
void ModTitleBorderSize()
Slot called whenever the title border size is modified by the user.
void SetLabelSize(Float_t size=0.04, Option_t *axis="X")
Set size of axis labels.
TGNumberEntry * fYTickLength
void AddGeneralMarker(TGCompositeFrame *f)
Add the 'Marker' group frame to the 'General' tab.
TGNumberEntry * fZNdivSub
TGColorSelect * fPadColor
TGCheckButton * fDrawBorder
void SetStatFontSize(Float_t size=0)
virtual void UnmapWindow()
void ModStatFontSize()
Slot called whenever the text size is modified by the user.
void ModPadBorderMode()
Slot called whenever the pad border mode is modified by the user.
void ModFrameBorderSize()
Slot called whenever the frame border size is modified by the user.
void AddHistosFramesLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'Histos - Frames' tab.
virtual Color_t GetMarkerColor() const
void ModXNdivisions()
Slot called whenever the X axis Number of divisions is modified by the user.
void DoMenu(Int_t menuID)
Slot called when an item of the menu is selected.
Color_t GetFrameLineColor() const
void ModTitleX()
Slot called whenever the title abscissa is modified by the user.
const char * GetFitFormat() const
TGFontTypeComboBox * fYTitleFont
Style_t GetGridStyle() const
virtual void Add(TObject *obj)
TGColorSelect * fXLabelColor
void SetHatchesSpacing(Double_t h)
void SetTitleFillColor(Color_t color=1)
void ModPadGridY()
Slot called whenever the pad grid Y boolean is modified by the user.
void ModPaletteEdit()
Slot called whenever the palette editor is opened by the user.
Float_t GetTitleY() const
Short_t Max(Short_t a, Short_t b)
void DoImportCanvas()
Create a new style (a copy of gStyle) and import the properties of the current canvas inside...
void ModNumberContours()
Slot called whenever the number of contours is modified by the user.
TGPictureButton * fToolBarHelp
TGedMarkerSelect * fMarkerStyle
Float_t GetLabelOffset(Option_t *axis="X") const
Return label offset.
Int_t GetPadBorderMode() const
void AddAxisYTitle(TGCompositeFrame *f)
Add the 'Title' group frame to the 'Axis - Y Axis' tab.
void ModLegendBorderSize()
Slot called whenever the legend border size is modified by the user.
void ModTextFont()
Slot called whenever the text font is modified by the user.
void SetOptLogy(Int_t logy=1)
void ModCanvasColor()
Slot called whenever the canvas color is modified by the user.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
void SetOptTitle(Int_t tit=1)
void AddPsPdfHeader(TGCompositeFrame *f)
Add the 'Header' group frame to the 'PS / PDF' tab.
const TGPicture * fToolBarHelpPic
TGFontTypeComboBox * fAttDateTextFont
const TGPicture * fToolBarDeletePic
TGNumberEntry * fCanvasDefW
void AddHistosGraphsBorder(TGCompositeFrame *f)
Add the 'Draw Border' check button to the 'Histos - Graphs' tab.
TGFontTypeComboBox * fXTitleFont
void ModMarkerStyle()
Slot called whenever the marker style is modified by the user.
virtual void SetTextColor(Color_t tcolor=1)
Width_t GetCanvasBorderSize() const
void ModTitleTextColor()
Slot called whenever the title text color is modified by the user.
virtual void SetParts(Int_t npart)
Divide the status bar in npart equal sized parts.
TGLineWidthComboBox * fFrameBorderSize
TGFontTypeComboBox * fTitleFont
TGNumberEntry * fZLabelSize
void ModZTitleSizeInPixels(Bool_t b)
Slot called whenever the Z axis title size mode is modified by the user.
TGLineStyleComboBox * fLineStyle
void ModGridWidth()
Slot called whenever the grid line width is modified by the user.
virtual Long_t GetIntNumber() const
void DoListSelect()
Slot called when the user select an item in the available styles' list.
TGTextButton * fApplyOnButton
void ModZLabelFont()
Slot called whenever the Z axis label font is modified by the user.
void ModCanvasDefH()
Slot called whenever the canvas default height is modified by the user.
Bool_t GetPadGridY() const
virtual Double_t GetNumber() const
void SetPadTickY(Int_t ticky)
void AddHistosHistosBar(TGCompositeFrame *f)
Add the 'Bar' group frame to the 'Histos - Histos' tab.
R__EXTERN const char gHelpSMHistos[]
Style_t GetTitleFont(Option_t *axis="X") const
Return title font.
void SetStatFormat(const char *format="6.4g")
void ModYTitleSizeInPixels(Bool_t b)
Slot called whenever the Y axis title size mode is modified by the user.
TGCheckButton * fYTitleSizeInPixels
void Enable(Bool_t on=kTRUE)
Set state of widget as enabled.
TGNumberEntry * fBarOffset
TGNumberEntry * fPadBottomMargin
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
R__EXTERN const char gHelpSMTopLevel[]
void SetPaintTextFormat(const char *format="g")
Color_t GetStatTextColor() const
R__EXTERN const char gHelpSMStats[]
TGNumberEntry * fScreenFactor
virtual void SetTextSize(Float_t tsize=1)
void SetFitFormat(const char *format="5.4g")
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line...
TGColorSelect * fGridColor
void ModFrameLineColor()
Slot called whenever the frame line color is modified by the user.
void ModTextAlign()
Slot called whenever the text align is modified by the user.
void CreateTabHistosHistos(TGCompositeFrame *tab)
Add the sub-tab 'Histos' to the tab 'Histos'.
virtual void Update()
Update canvas pad buffers.
virtual void Layout()
layout combobox
Float_t GetPadTopMargin() const
TGRadioButton * fApplyOnAll
void ModZLabelColor()
Slot called whenever the Z axis label color is modified by the user.
void SetPadRightMargin(Float_t margin=0.1)
void ModCanvasBorderSize()
Slot called whenever the canvas border size is modified by the user.
virtual Style_t GetMarkerStyle() const
TGPictureButton * fMakeDefault
void SetErrorX(Float_t errorx=0.5)
TGNumberEntry * fPadRightMargin
TGButtonGroup * fCanvasBorderMode
void ModTimeOffset()
Slot called whenever the time offset is modified by the user.
TGCheckButton * fXLabelSizeInPixels
virtual Width_t GetLineWidth() const
void ModDateX()
Slot called whenever the date abscissa is modified by the user.
void SetPadGridY(Bool_t gridy)
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
TGTextButton * fEditionUpdatePreview
Float_t GetScreenFactor() const
void SetHistLineColor(Color_t color=1)
void ModTitlePS()
Slot called whenever the PS title is modified by the user.
void ModDateY()
Slot called whenever the date ordinate is modified by the user.
Int_t GetCanvasDefH() const
TGNumberEntry * fTitleFontSize
void ModFuncColor()
Slot called whenever the function line color is modified by the user.
TGCheckButton * fPreviewButton
const char * GetTitlePS() const
TGCheckButton * fZTitleSizeInPixels
void AddStatsFit(TGCompositeFrame *f)
Add the 'Fit Options' group frame to the 'Stats' tab.
TGCheckButton * fPadGridY
TGTextEntry * fCurPadTextEntry
TGCheckButton * fPreviewRealTime
Color_t GetCanvasColor() const
TGNumberEntry * fLineScalePS
TGCheckButton * fOptStatRMS
void ModXLabelColor()
Slot called whenever the X axis label color is modified by the user.
void Modified(Bool_t flag=1)
void SetFuncColor(Color_t color=1)
void ModFitFormat(const char *fitformat)
Slot called whenever the fit paint format is modified by the user.
void ModMarkerColor()
Slot called whenever the marker color is modified by the user.
TGNumberEntry * fYLabelSize
TGRadioButton * fColorModelPSRGB
void ModFrameFillColor()
Slot called whenever the frame fill color is modified by the user.
TGCheckButton * fZLabelSizeInPixels
R__EXTERN const char gHelpSMPSPDF[]
void SetCanvasDefW(Int_t w=700)
void SetStripDecimals(Bool_t strip=kTRUE)
Set option to strip decimals when drawing axis labels.
TGNumberEntry * fXLabelOffset
Float_t GetTitleH() const
TGNumberEntry * fPaperSizeX
void SetCanvasDefX(Int_t topx=10)
const char * GetStatFormat() const
void SetFrameBorderSize(Width_t size=1)
const TGPicture * fToolBarImportMacroPic
TGColorSelect * fYAxisColor
void ModGridColor()
Slot called whenever the grid line color is modified by the user.
TGLineWidthComboBox * fCanvasBorderSize
void ModZAxisColor()
Slot called whenever the Z axis color is modified by the user.
void ModLineScalePS()
Slot called whenever the PS line scale is modified by the user.
virtual TCanvas * GetCanvas() const =0
TGNumberEntry * fAttDateTextAngle
TGColorSelect * fTextColor
TGColorSelect * fYTitleColor
TGCheckButton * fZNdivisionsOptimize
void ModStatH()
Slot called whenever the stats height is modified by the user.
void CreateTabHistos(TGCompositeFrame *tab)
Add the tab 'Histos' to the editor.
void ModAttDateTextSizeInPixels(Bool_t b)
Slot called whenever the date text size mode is modified by the user.
void ModYLabelSizeInPixels(Bool_t b)
Slot called whenever the Y axis label size mode is modified by the user.