ROOT  6.06/09
Reference Guide
TStyleManager.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Denis Favre-Miville 08/09/05
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TStyleManager
13 #define ROOT_TStyleManager
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TStyleManager //
18 // //
19 // This class provides a Graphical User Interface to manage styles //
20 // in ROOT. It allows the user to edit styles, import / export //
21 // them to macros, apply a style on the selected object or on //
22 // all canvases, change gStyle. //
23 // //
24 //////////////////////////////////////////////////////////////////////////
25 
26 #ifndef ROOT_TGFrame
27 #include "TGFrame.h"
28 #endif
29 #ifndef ROOT_TGNumberEntry
30 #include "TGNumberEntry.h"
31 #endif
32 
33 class TGButtonGroup;
34 class TGCheckButton;
35 class TGColorSelect;
36 class TGComboBox;
37 class TGCompositeFrame;
38 class TGedMarkerSelect;
39 class TGedPatternSelect;
40 class TGFileInfo;
41 class TGFontTypeComboBox;
42 class TGHButtonGroup;
43 class TGHorizontal3DLine;
44 class TGHorizontalFrame;
45 class TGLabel;
46 class TGLayoutHints;
49 class TGMainFrame;
50 class TGMatrixLayout;
51 class TGMenuBar;
52 class TGPicture;
53 class TGPictureButton;
54 class TGPopupMenu;
55 class TGRadioButton;
56 class TGStatusBar;
57 class TGTab;
58 class TGTextButton;
59 class TGTextEntry;
60 class TGToolBar;
61 class TGVerticalFrame;
62 class TList;
63 class TObject;
64 class TStyle;
65 class TStylePreview;
66 class TVirtualPad;
67 
68 class TStyleManager : public TGMainFrame {
69 
70 private:
71  static TStyleManager *fgStyleManager; // singleton style manager
72 
73  TStyle *fCurSelStyle; // current selected style
74  Bool_t fLastChoice; //=kTRUE if the user choose OK in the last TStyleDialog
75  Bool_t fRealTimePreview; //=kTRUE if auto refreshed preview
76  Int_t fCurTabNum; // current opened tab number
77  Int_t fCurTabAxisNum; // current opened axis tab number
78  UInt_t fSMWidth; // style manager's width
79  UInt_t fSMHeight; // style manager's height
80  Bool_t fStyleChanged; //=kTRUE if the style has been modified
81 
82  Bool_t fMoreAndNotLess; //=kTRUE when editor is open
83  Bool_t fSigSlotConnected; //=kTRUE when signal/slots connected
84  Bool_t fAllAndNotCurrent; //=kTRUE when apply on 'All canvases'
85  TList *fTrashListFrame; // to avoid memory leak
86  TList *fTrashListLayout; // to avoid memory leak
87 
88  TGMenuBar *fMenuBar; // the main window menu bar
89  TGPopupMenu *fMenuStyle; // the 'Style' popup menu
90  TGPopupMenu *fImportCascade; // Cascaded menu 'Import'
91  TGPopupMenu *fMenuHelp; // the 'Help' popup menu
92 
93  TGToolBar *fToolBar; // the tool bar
94  TGPictureButton *fToolBarNew; // tool bar 'New' button
95  TGPictureButton *fToolBarDelete; // tool bar 'Delete' button
96  TGPictureButton *fToolBarImportCanvas;// tool bar 'Import from canvas' button
97  TGPictureButton *fToolBarImportMacro; // tool bar 'Import from macro' button
98  TGPictureButton *fToolBarExport; // tool bar 'Export' button
99  TGPictureButton *fToolBarHelp; // tool bar 'Help' button
100  const TGPicture *fToolBarNewPic; // tool bar 'New' picture
101  const TGPicture *fToolBarDeletePic; // tool bar 'Delete' picture
102  const TGPicture *fToolBarImportCanvasPic;// tool bar 'Import from canvas' picture
103  const TGPicture *fToolBarImportMacroPic; // tool bar 'Import from macro' picture
104  const TGPicture *fToolBarExportPic; // tool bar 'Export' picture
105  const TGPicture *fToolBarHelpPic; // tool bar 'Help' picture
106  TGHorizontal3DLine *fHorizontal3DLine; // a line under the tool bar
107 
108  TGLabel *fListLabel; // label 'Available Styles:'
109  TGComboBox *fListComboBox; // list of available styles
110  TGFileInfo *fCurMacro; // current macro
111  TGLabel *fCurStylabel; // label 'gStyle is set to:'
112  TGTextEntry *fCurStyle; // label showing gStyle's name
113  TGLabel *fCurPadLabel; // label 'Canvas:'
114  TGTextEntry *fCurPadTextEntry; // label showing current pad's name
115  TVirtualPad *fCurPad; // current pad
116  TGLabel *fCurObjLabel; // label 'Object:'
117  TGTextEntry *fCurObjTextEntry; // label showing current object's name
118  TObject *fCurObj; // current object
119  TGCheckButton *fPreviewButton; // if checked, preview is visible
120  TGCheckButton *fPreviewRealTime; // if checked, real time preview
122  TGPictureButton *fMakeDefault; // selected style becom gStyle
123  const TGPicture *fMakeDefaultPic; // button picture
124 
125  TGHButtonGroup *fApplyOnGroup; // 'Apply on' button group
126  TGRadioButton *fApplyOnAll; // 'Apply on' button group
127  TGRadioButton *fApplyOnSel; // 'Apply on' button group
128  TGTextButton *fApplyOnButton; // apply style on object(s)
129 
130  TGTextButton *fMoreLess; // open/close the editor
131  TGStatusBar *fStatusBar; // status bar
132 
134  TGTab *fEditionTab; // editor's tabs
135  TGTab *fHistosTab; // histos' tabs
136  TGTab *fAxisTab; // axis' tabs
138 
139  TGTextButton *fEditionHelp; // help button
140  TGTextButton *fEditionUpdatePreview; // update preview button
141  TGTextButton *fEditionReset; // reset button
142 
143  TGColorSelect *fFillColor; // general fill color selection widget
144  TGedPatternSelect *fFillStyle; // general fill pattern selection widget
145  TGLineWidthComboBox *fHatchesLineWidth; // general hatches width combo box
146  TGNumberEntry *fHatchesSpacing; // general hatches spacing number entry
147  TGColorSelect *fTextColor; // general text color selection widget
148  TGNumberEntry *fTextSize; // general text size number entry
149  TGCheckButton *fTextSizeInPixels; // general text size check box
150  TGFontTypeComboBox *fTextFont; // general text font combo box
151  TGComboBox *fTextAlign; // general text align combo box
152  TGNumberEntry *fTextAngle; // general text angle number entry
153  TGColorSelect *fLineColor; // general line color selection widget
154  TGLineWidthComboBox *fLineWidth; // general line width combo box
155  TGLineStyleComboBox *fLineStyle; // general line style combo box
156  TGTextButton *fLineStyleEdit; // general line style editor open button
157  TGColorSelect *fMarkerColor; // general marker color selection widget
158  TGedMarkerSelect *fMarkerStyle; // general marker style entry
159  TGComboBox *fMarkerSize; // general marker size combo box
160  TGNumberEntry *fScreenFactor; // general screen factor number entry
161  TGColorSelect *fCanvasColor; // canvas fill color selection widget
162  TGNumberEntry *fCanvasDefX; // canvas abscissa number entry
163  TGNumberEntry *fCanvasDefY; // canvas ordinate number entry
164  TGNumberEntry *fCanvasDefW; // canvas width number entry
165  TGNumberEntry *fCanvasDefH; // canvas height number entry
166  TGButtonGroup *fCanvasBorderMode; // canvas border mode button group
167  TGLineWidthComboBox *fCanvasBorderSize; // canvas border size combo box
168  TGCheckButton *fOptDateBool; // canvas date show/hide check box
169  TGColorSelect *fAttDateTextColor; // canvas date color selection widget
170  TGNumberEntry *fAttDateTextSize; // canvas date size number entry
171  TGCheckButton *fAttDateTextSizeInPixels; // canvas date size check box
172  TGComboBox *fOptDateFormat; // canvas date format text entry
173  TGFontTypeComboBox *fAttDateTextFont; // canvas date font combo box
174  TGNumberEntry *fAttDateTextAngle; // canvas date angle number entry
175  TGComboBox *fAttDateTextAlign; // canvas date align combo box
176  TGNumberEntry *fDateX; // canvas date abscissa number entry
177  TGNumberEntry *fDateY; // canvas date ordinate number entry
178  TGNumberEntry *fPadLeftMargin; // pad left margin number entry
179  TGNumberEntry *fPadRightMargin; // pad right margin number entry
180  TGNumberEntry *fPadTopMargin; // pad top margin number entry
181  TGNumberEntry *fPadBottomMargin; // pad bottom margin number entry
182  TGButtonGroup *fPadBorderMode; // pad border mode button group
183  TGLineWidthComboBox *fPadBorderSize; // pad border size combo box
184  TGColorSelect *fPadColor; // pad fill color selection widget
185  TGCheckButton *fPadTickX; // pad ticks along X show/hide check box
186  TGCheckButton *fPadTickY; // pad ticks along Y show/hide check box
187  TGCheckButton *fPadGridX; // pad grid along X show/hide check box
188  TGCheckButton *fPadGridY; // pad grid along Y show/hide check box
189  TGColorSelect *fGridColor; // pad grid line color selection widget
190  TGLineWidthComboBox *fGridWidth; // pad grid line width combo box
191  TGLineStyleComboBox *fGridStyle; // pad grid line style combo box
192  TGColorSelect *fHistFillColor; // histograms fill color selection widget
193  TGedPatternSelect *fHistFillStyle; // histograms fill pattern selection widget
194  TGColorSelect *fHistLineColor; // histograms fill color selection widget
195  TGLineWidthComboBox *fHistLineWidth; // histograms line width combo box
196  TGLineStyleComboBox *fHistLineStyle; // histograms line style combo box
197  TGNumberEntry *fBarWidth; // histograms bar width number entry
198  TGNumberEntry *fBarOffset; // histograms bar offset number entry
199  TGCheckButton *fHistMinimumZero; // histograms minimum zero check box
200  TGTextEntry *fPaintTextFormat; // histograms format text entry
201  TGNumberEntry *fNumberContours; // histograms number of contours number entry
202  TGNumberEntry *fLegoInnerR; // histograms lego inner radius number entry
203  TGColorSelect *fFrameFillColor; // frame fill color selection widget
204  TGedPatternSelect *fFrameFillStyle; // frame fill pattern selection widget
205  TGColorSelect *fFrameLineColor; // frame line color selection widget
206  TGLineWidthComboBox *fFrameLineWidth; // frame line width combo box
207  TGLineStyleComboBox *fFrameLineStyle; // frame line style combo box
208  TGTextButton *fPaletteEdit; // palette editor open button
209  TGButtonGroup *fFrameBorderMode; // frame border mode button group
210  TGLineWidthComboBox *fFrameBorderSize; // frame border size combo box
211  TGColorSelect *fFuncColor; // function color selection widget
212  TGLineWidthComboBox *fFuncWidth; // function width number entry
213  TGLineStyleComboBox *fFuncStyle; // function line style combo box
214  TGCheckButton *fDrawBorder; // function border show/hide check box
215  TGNumberEntry *fEndErrorSize; // end error size number entry
216  TGNumberEntry *fErrorX; // error along abscissa number entry
217  TGNumberEntry *fTimeOffsetDate; // axis time offset (mm/dd/yyyy) number entry
218  TGNumberEntry *fTimeOffsetTime; // axis time offset (hh:mm:ss) number entry
219  TGCheckButton *fStripDecimals; // axis label's decimal part show/hide check box
220  TGTextButton *fApplyOnXYZ; // axis apply on XYZ text button
221  TGNumberEntry *fXTitleSize; // X axis title size number entry
222  TGCheckButton *fXTitleSizeInPixels; // X axis title size check box
223  TGColorSelect *fXTitleColor; // X axis title color selection widget
224  TGNumberEntry *fXTitleOffset; // X axis title offset number entry
225  TGFontTypeComboBox *fXTitleFont; // X axis title font combo box
226  TGNumberEntry *fXLabelSize; // X axis label size number entry
227  TGCheckButton *fXLabelSizeInPixels; // X axis label size check box
228  TGColorSelect *fXLabelColor; // X axis label color selection widget
229  TGNumberEntry *fXLabelOffset; // X axis label offset number entry
230  TGFontTypeComboBox *fXLabelFont; // X axis label font combo box
231  TGColorSelect *fXAxisColor; // X axis color selection widget
232  TGNumberEntry *fXTickLength; // X axis tick length number entry
233  TGCheckButton *fOptLogx; // X axis logarithmic scale check box
234  TGNumberEntry *fXNdivMain; // X axis primary division number entry
235  TGNumberEntry *fXNdivSub; // X axis secondary division number entry
236  TGNumberEntry *fXNdivSubSub; // X axis tertiary division number entry
237  TGCheckButton *fXNdivisionsOptimize;// X axis division optimization check box
238  TGNumberEntry *fYTitleSize; // Y axis title size number entry
239  TGCheckButton *fYTitleSizeInPixels; // Y axis title size check box
240  TGColorSelect *fYTitleColor; // Y axis title color selection widget
241  TGNumberEntry *fYTitleOffset; // Y axis title offset number entry
242  TGFontTypeComboBox *fYTitleFont; // Y axis title font combo box
243  TGNumberEntry *fYLabelSize; // Y axis label size number entry
244  TGCheckButton *fYLabelSizeInPixels; // Y axis label size check box
245  TGColorSelect *fYLabelColor; // Y axis label color selection widget
246  TGNumberEntry *fYLabelOffset; // Y axis label offset number entry
247  TGFontTypeComboBox *fYLabelFont; // Y axis label font combo box
248  TGColorSelect *fYAxisColor; // Y axis color selection widget
249  TGNumberEntry *fYTickLength; // Y axis tick length number entry
250  TGCheckButton *fOptLogy; // Y axis logarithmic scale check box
251  TGNumberEntry *fYNdivMain; // Y axis primary division number entry
252  TGNumberEntry *fYNdivSub; // Y axis secondary division number entry
253  TGNumberEntry *fYNdivSubSub; // Y axis tertiary division number entry
254  TGCheckButton *fYNdivisionsOptimize;// Y axis division optimization check box
255  TGNumberEntry *fZTitleSize; // Z axis title size number entry
256  TGCheckButton *fZTitleSizeInPixels; // Z axis title size check box
257  TGColorSelect *fZTitleColor; // Z axis title color selection widget
258  TGNumberEntry *fZTitleOffset; // Z axis title offset number entry
259  TGFontTypeComboBox *fZTitleFont; // Z axis title font combo box
260  TGNumberEntry *fZLabelSize; // Z axis label size number entry
261  TGCheckButton *fZLabelSizeInPixels; // Z axis label size check box
262  TGColorSelect *fZLabelColor; // Z axis label color selection widget
263  TGNumberEntry *fZLabelOffset; // Z axis label offset number entry
264  TGFontTypeComboBox *fZLabelFont; // Z axis label font combo box
265  TGColorSelect *fZAxisColor; // Z axis color selection widget
266  TGNumberEntry *fZTickLength; // Z axis tick length number entry
267  TGCheckButton *fOptLogz; // Z axis logarithmic scale check box
268  TGNumberEntry *fZNdivMain; // Z axis primary division number entry
269  TGNumberEntry *fZNdivSub; // Z axis secondary division number entry
270  TGNumberEntry *fZNdivSubSub; // Z axis tertiary division number entry
271  TGCheckButton *fZNdivisionsOptimize;// Z axis division optimization check box
272  TGCheckButton *fOptTitle; // title show/hide check box
273  TGColorSelect *fTitleColor; // title fill color selection widget
274  TGedPatternSelect *fTitleStyle; // title fill pattern selection widget
275  TGColorSelect *fTitleTextColor; // title text color selection widget
276  TGNumberEntry *fTitleFontSize; // title font size number entry
277  TGCheckButton *fTitleFontSizeInPixels; // title font size check box
278  TGFontTypeComboBox *fTitleFont; // title font combo box
279  TGComboBox *fTitleAlign; // title align combo box
280  TGLabel *fTitleBorderSizeLabel; // label 'Title's'
281  TGLineWidthComboBox *fTitleBorderSize; // title border size combo box
282  TGNumberEntry *fTitleX; // title abscissa number entry
283  TGNumberEntry *fTitleY; // title ordinate number entry
284  TGNumberEntry *fTitleW; // title width number entry
285  TGNumberEntry *fTitleH; // title height number entry
286  TGLabel *fLegendBorderSizeLabel; // label 'Legend's'
287  TGLineWidthComboBox *fLegendBorderSize; // legend border size combo box
288  TGColorSelect *fStatColor; // stats fill color selection widget
289  TGedPatternSelect *fStatStyle; // stats fill pattern selection widget
290  TGColorSelect *fStatTextColor; // stats text color selection widget
291  TGNumberEntry *fStatFontSize; // stats font size number entry
292  TGCheckButton *fStatFontSizeInPixels; // stats font size check box
293  TGFontTypeComboBox *fStatFont; // stats font type combo box
294  TGNumberEntry *fStatX; // stats abscissa number entry
295  TGNumberEntry *fStatY; // stats ordinate number entry
296  TGNumberEntry *fStatW; // stats width number entry
297  TGNumberEntry *fStatH; // stats height number entry
298  TGLabel *fStatBorderSizeLabel; // label 'stats' shadow
299  TGLineWidthComboBox *fStatBorderSize; // stats border size combo box
300  TGCheckButton *fOptStatName; // stats name show/hide check box
301  TGCheckButton *fOptStatEntries; // stats entries show/hide check box
302  TGCheckButton *fOptStatOverflow; // stats overflow show/hide check box
303  TGCheckButton *fOptStatMean; // stats mean show/hide check box
304  TGCheckButton *fOptStatUnderflow; // stats underflow show/hide check box
305  TGCheckButton *fOptStatRMS; // stats RMS show/hide check box
306  TGCheckButton *fOptStatSkewness; // stats Skewness show/hide check box
307  TGCheckButton *fOptStatIntegral; // stats integral show/hide check box
308  TGCheckButton *fOptStatKurtosis; // stats kurtosis show/hide check box
309  TGCheckButton *fOptStatErrors; // stats errors check box
310  TGLabel *fStatFormatLabel; // label 'stats format'
311  TGTextEntry *fStatFormat; // stats format text entry
312  TGCheckButton *fOptFitValues; // fit values show/hide check box
313  TGCheckButton *fOptFitErrors; // fit errors check box
314  TGCheckButton *fOptFitProbability; // fit probability show/hide check box
315  TGCheckButton *fOptFitChi; // fit Chi show/hide check box
316  TGLabel *fFitFormatLabel; // label 'fit format'
317  TGTextEntry *fFitFormat; // fit format text entry
318  TGTextEntry *fHeaderPS; // ps/pdf header text entry
319  TGTextEntry *fTitlePS; // ps/pdf title text entry
320  TGButtonGroup *fColorModelPS; // ps/pdf color model button group
321  TGRadioButton *fColorModelPSRGB; // RGB radio button
322  TGRadioButton *fColorModelPSCMYK; // CMYB radio button
323  TGNumberEntry *fLineScalePS; // ps/pdf line scale number entry
324  TGComboBox *fPaperSizePredef; // ps/pdf paper size combo box
325  Bool_t fPaperSizeEnCm; //=kTRUE if the paper size is in cm
326  TGNumberEntry *fPaperSizeX; // ps/pdf paper size width number entry
327  TGNumberEntry *fPaperSizeY; // ps/pdf paper size height number entry
328 
329  TGLayoutHints *fLayoutExpandX; // often used layout
330  TGLayoutHints *fLayoutExpandXMargin; // often used layout
331  TGLayoutHints *fLayoutExpandXY; // often used layout
332  TGLayoutHints *fLayoutExpandXYMargin; // often used layout
334 
335  void AddMenus(TGCompositeFrame *p);
336  void DoNew();
337  void DoDelete();
338  void DoRename();
339  void DoExport();
340  void DoExit();
341  void DoHelp(Int_t i);
342  void DoImportCanvas();
343  void CreateMacro();
344 
345  void AddToolbar(TGCompositeFrame *p);
346 
348  void UpdateStatusBar();
349  void UpdateEditor(Int_t tabNum);
350  void ConnectAll();
351  void DisconnectAll();
352  void ConnectEditor(Int_t tabNum);
353  void DisconnectEditor(Int_t tabNum);
354  void DoEditor();
355 
356  void AddEdition(TGCompositeFrame *p);
357 
363 
369 
370  void CreateTabPad(TGCompositeFrame *tab);
376 
385 
390 
395 
396  void CreateTabAxis(TGCompositeFrame *tab);
397  void CreateTabAxisX(TGCompositeFrame *tab);
402 
403  void CreateTabAxisY(TGCompositeFrame *tab);
408 
409  void CreateTabAxisZ(TGCompositeFrame *tab);
414 
415  void CreateTabTitle(TGCompositeFrame *tab);
420 
421  void CreateTabStats(TGCompositeFrame *tab);
427 
428  void CreateTabPsPdf(TGCompositeFrame *tab);
434 
435  void AddTitle(TGCompositeFrame *f, const char *s);
441  Int_t e3, Int_t id, const char *s, Double_t init, Int_t digits,
446  TGTextButton *AddTextButton(TGCompositeFrame *f, const char *s, Int_t id);
451  TGCheckButton *AddCheckButton(TGCompositeFrame *f, const char *s, Int_t id, Int_t e1 = 0, Int_t e2 = 2);
452  TGTextEntry *AddTextEntry(TGCompositeFrame *f, const char *s, Int_t id);
454 
455 public:
456  TStyleManager(const TGWindow *);
457  virtual ~TStyleManager();
458 
459  static void Show();
460  static void Terminate();
461  static TStyleManager *&GetSM();
462 
463  void Init();
464  void Hide();
465 
466  void SetCurSelStyle(TStyle *style) { fCurSelStyle = style; }
467  void SetLastChoice(Bool_t choice) { fLastChoice = choice; }
468 
469  void DoMenu(Int_t menuID); // SLOT
470  void DoImportMacro(Bool_t create); // SLOT
471  void DoListSelect(); // SLOT
472  void DoRealTime(Bool_t b); // SLOT
473  void DoPreview(Bool_t b); // SLOT
474  void DoPreviewClosed(); // SLOT
475  void DoMakeDefault(); // SLOT
476  void DoApplyOnSelect(Int_t i); // SLOT
477  void DoApplyOn(); // SLOT
478  void DoMoreLess(); // SLOT
479  void DoEditionUpdatePreview(); // SLOT
480  void DoChangeTab(Int_t i); // SLOT
481  void DoChangeAxisTab(Int_t i); // SLOT
482  void BuildList(TStyle *style = 0);
483  void DoSelectNoCanvas(); // SLOT
484  void DoSelectCanvas(TVirtualPad *pad,
485  TObject *obj, Int_t mouseButton); // SLOT
486  void CloseWindow(); // SLOT
487 
488 // GENERAL
489  void ModFillColor(); // SLOT
490  void ModFillStyle(); // SLOT
491  void ModHatchesLineWidth(); // SLOT
492  void ModHatchesSpacing(); // SLOT
493  void ModMarkerColor(); // SLOT
494  void ModMarkerStyle(); // SLOT
495  void ModMarkerSize(); // SLOT
496  void ModScreenFactor(); // SLOT
497  void ModLineColor(); // SLOT
498  void ModLineWidth(); // SLOT
499  void ModLineStyle(); // SLOT
500  void ModLineStyleEdit(); // SLOT
501  void ModTextColor(); // SLOT
502  void ModTextSize(); // SLOT
503  void ModTextSizeInPixels(Bool_t b); // SLOT
504  void ModTextFont(); // SLOT
505  void ModTextAlign(); // SLOT
506  void ModTextAngle(); // SLOT
507 
508 // CANVAS
509  void ModCanvasColor(); // SLOT
510  void ModCanvasDefX(); // SLOT
511  void ModCanvasDefY(); // SLOT
512  void ModCanvasDefW(); // SLOT
513  void ModCanvasDefH(); // SLOT
514  void ModCanvasBorderMode(); // SLOT
515  void ModCanvasBorderSize(); // SLOT
516  void ModOptDateBool(); // SLOT
517  void ModAttDateTextColor(); // SLOT
518  void ModAttDateTextSize(); // SLOT
519  void ModAttDateTextSizeInPixels(Bool_t b);// SLOT
520  void ModOptDateFormat(); // SLOT
521  void ModAttDateTextFont(); // SLOT
522  void ModAttDateTextAngle(); // SLOT
523  void ModAttDateTextAlign(); // SLOT
524  void ModDateX(); // SLOT
525  void ModDateY(); // SLOT
526 
527 // PAD
528  void ModPadTopMargin(); // SLOT
529  void ModPadBottomMargin(); // SLOT
530  void ModPadLeftMargin(); // SLOT
531  void ModPadRightMargin(); // SLOT
532  void ModPadBorderMode(); // SLOT
533  void ModPadBorderSize(); // SLOT
534  void ModPadColor(); // SLOT
535  void ModPadTickX(); // SLOT
536  void ModPadTickY(); // SLOT
537  void ModPadGridX(); // SLOT
538  void ModPadGridY(); // SLOT
539  void ModGridColor(); // SLOT
540  void ModGridWidth(); // SLOT
541  void ModGridStyle(); // SLOT
542 
543  // HISTOS HISTOS
544  void ModHistFillColor(); // SLOT
545  void ModHistFillStyle(); // SLOT
546  void ModHistLineColor(); // SLOT
547  void ModHistLineWidth(); // SLOT
548  void ModHistLineStyle(); // SLOT
549  void ModBarWidth(); // SLOT
550  void ModBarOffset(); // SLOT
551  void ModHistMinimumZero(); // SLOT
552  void ModPaintTextFormat(); // SLOT
553  void ModNumberContours(); // SLOT
554  void ModLegoInnerR(); // SLOT
555 
556 // HISTOS FRAMES
557  void ModFrameFillColor(); // SLOT
558  void ModFrameFillStyle(); // SLOT
559  void ModFrameLineColor(); // SLOT
560  void ModFrameLineWidth(); // SLOT
561  void ModFrameLineStyle(); // SLOT
562  void ModPaletteEdit(); // SLOT
563  void ModFrameBorderMode(); // SLOT
564  void ModFrameBorderSize(); // SLOT
565 
566 // HISTOS GRAPHS
567  void ModFuncColor(); // SLOT
568  void ModFuncWidth(); // SLOT
569  void ModFuncStyle(); // SLOT
570  void ModDrawBorder(); // SLOT
571  void ModEndErrorSize(); // SLOT
572  void ModErrorX(); // SLOT
573 
574 // AXIS
575  void ModTimeOffset(); // SLOT
576  void ModStripDecimals(); // SLOT
577  void ModApplyOnXYZ(); // SLOT
578 
579 // AXIS X AXIS
580  void ModXTitleSize(); // SLOT
581  void ModXTitleSizeInPixels(Bool_t b); // SLOT
582  void ModXTitleColor(); // SLOT
583  void ModXTitleOffset(); // SLOT
584  void ModXTitleFont(); // SLOT
585  void ModXLabelSize(); // SLOT
586  void ModXLabelSizeInPixels(Bool_t b); // SLOT
587  void ModXLabelColor(); // SLOT
588  void ModXLabelOffset(); // SLOT
589  void ModXLabelFont(); // SLOT
590  void ModXAxisColor(); // SLOT
591  void ModXTickLength(); // SLOT
592  void ModOptLogx(); // SLOT
593  void ModXNdivisions(); // SLOT
594 
595 // AXIS Y AXIS
596  void ModYTitleSize(); // SLOT
597  void ModYTitleSizeInPixels(Bool_t b); // SLOT
598  void ModYTitleColor(); // SLOT
599  void ModYTitleOffset(); // SLOT
600  void ModYTitleFont(); // SLOT
601  void ModYLabelSize(); // SLOT
602  void ModYLabelSizeInPixels(Bool_t b); // SLOT
603  void ModYLabelColor(); // SLOT
604  void ModYLabelOffset(); // SLOT
605  void ModYLabelFont(); // SLOT
606  void ModYAxisColor(); // SLOT
607  void ModYTickLength(); // SLOT
608  void ModOptLogy(); // SLOT
609  void ModYNdivisions(); // SLOT
610 
611 // AXIS Z AXIS
612  void ModZTitleSize(); // SLOT
613  void ModZTitleSizeInPixels(Bool_t b); // SLOT
614  void ModZTitleColor(); // SLOT
615  void ModZTitleOffset(); // SLOT
616  void ModZTitleFont(); // SLOT
617  void ModZLabelSize(); // SLOT
618  void ModZLabelSizeInPixels(Bool_t b); // SLOT
619  void ModZLabelColor(); // SLOT
620  void ModZLabelOffset(); // SLOT
621  void ModZLabelFont(); // SLOT
622  void ModZAxisColor(); // SLOT
623  void ModZTickLength(); // SLOT
624  void ModOptLogz(); // SLOT
625  void ModZNdivisions(); // SLOT
626 
627 // TITLES
628  void ModOptTitle(); // SLOT
629  void ModTitleFillColor(); // SLOT
630  void ModTitleStyle(); // SLOT
631  void ModTitleTextColor(); // SLOT
632  void ModTitleFontSize(); // SLOT
633  void ModTitleFontSizeInPixels(Bool_t b); // SLOT
634  void ModTitleFont(); // SLOT
635  void ModTitleAlign(); // SLOT
636  void ModTitleBorderSize(); // SLOT
637  void ModTitleX(); // SLOT
638  void ModTitleY(); // SLOT
639  void ModTitleW(); // SLOT
640  void ModTitleH(); // SLOT
641  void ModLegendBorderSize(); // SLOT
642 
643 // STATS
644  void ModStatColor(Pixel_t color); // SLOT
645  void ModStatStyle(Style_t pattern); // SLOT
646  void ModStatTextColor(Pixel_t color); // SLOT
647  void ModStatFontSize(); // SLOT
648  void ModStatFontSizeInPixels(Bool_t b); // SLOT
649  void ModStatFont(); // SLOT
650  void ModStatX(); // SLOT
651  void ModStatY(); // SLOT
652  void ModStatW(); // SLOT
653  void ModStatH(); // SLOT
654  void ModStatBorderSize(); // SLOT
655  void ModOptStat(); // SLOT
656  void ModStatFormat(const char *sformat); // SLOT
657  void ModOptFit(); // SLOT
658  void ModFitFormat(const char *fitformat); // SLOT
659 
660 // PS / PDF
661  void ModHeaderPS(); // SLOT
662  void ModTitlePS(); // SLOT
663  void ModColorModelPS(); // SLOT
664  void ModLineScalePS(); // SLOT
665  void ModPaperSizePredef(); // SLOT
666  void ModPaperSizeXY(); // SLOT
667 
668  ClassDef(TStyleManager, 0) // Graphical User Interface for managing styles
669 };
670 
671 #endif
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.
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.
void ModXLabelOffset()
Slot called whenever the X axis label offset is modified by the user.
TGVerticalFrame * fEditionFrame
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.
void ModPadBorderSize()
Slot called whenever the pad border size is modified by the user.
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.
TGLineWidthComboBox * fFuncWidth
TGHorizontalFrame * fEditionButtonFrame
Bool_t fSigSlotConnected
Definition: TStyleManager.h:83
TGColorSelect * fZAxisColor
void DisconnectAll()
Disconnect every entry in the top level interface of the slot.
TGColorSelect * fYLabelColor
void ModXTitleOffset()
Slot called whenever the X axis title offset is modified by the user.
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
Definition: vector.h:433
void ModXTickLength()
Slot called whenever the X axis tick length is modified by the user.
TGComboBox * fTextAlign
TGLineWidthComboBox * fHistLineWidth
TGLineWidthComboBox * fHatchesLineWidth
void AddHistosFramesBorder(TGCompositeFrame *f)
Add the 'Border' group frame to the 'Histos - Frames' tab.
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 ModFuncWidth()
Slot called whenever the function line width is modified by the user.
void ModPaintTextFormat()
Slot called whenever the paint text format is modified by the user.
TGCheckButton * fStripDecimals
short Style_t
Definition: RtypesCore.h:76
TGStatusBar * fStatusBar
void ModHistLineWidth()
Slot called whenever the histos line width is modified by the user.
void ModStatTextColor(Pixel_t color)
Slot called whenever the stats text color is modified by the user.
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.
Definition: TGTab.h:66
TObject * fCurObj
void ModStatFormat(const char *sformat)
Slot called whenever the stats paint format is modified by the user.
TGComboBox * fListComboBox
void ModPadTickY()
Slot called whenever the pad tick Y boolean is modified by the user.
void ConnectEditor(Int_t tabNum)
Connect every widget entry of the editor to its specific slot.
TGPopupMenu * fMenuStyle
Definition: TStyleManager.h:89
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.
void DoApplyOn()
Slot called when the user clicks on the 'Apply' button.
TGColorSelect * fZLabelColor
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.
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
TGCheckButton * fOptLogx
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.
TStyle * fCurSelStyle
Definition: TStyleManager.h:73
void ModStripDecimals()
Slot called whenever the strip decimal boolean is modified by the user.
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
Definition: TStyleManager.h:90
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.
TGNumberEntry * fBarWidth
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 ModTitleAlign()
Slot called whenever the title text align is modified by the user.
TGedPatternSelect * AddFillStyleEntry(TGCompositeFrame *f, Int_t id)
Add a fill style entry to the frame f.
TGCheckButton * fAttDateTextSizeInPixels
void ModZLabelSizeInPixels(Bool_t b)
Slot called whenever the Z axis Label size mode is modified by the user.
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.
TGPopupMenu * fMenuHelp
Definition: TStyleManager.h:91
TGNumberEntry * fTimeOffsetDate
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
void AddAxisXLabels(TGCompositeFrame *f)
Add the 'Labels' group frame to the 'Axis - X Axis' tab.
TGCheckButton * fYLabelSizeInPixels
TGPictureButton * fToolBarNew
Definition: TStyleManager.h:94
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.
TGNumberEntry * fCanvasDefY
TGLineWidthComboBox * fTitleBorderSize
TGLabel * fCurPadLabel
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.
TGTextEntry * fTitlePS
void CreateMacro()
Create a TGFileInfo concerning a macro, if it doesn't exist already.
void DoImportMacro(Bool_t create)
Slot called to import a style from a C++ macro file.
void DoDelete()
Delete the current selected style from the ROOT session.
void ModApplyOnXYZ()
Slot called whenever the apply on XYZ button is clicked.
void Hide()
Called to hide the style manager.
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.
TGCheckButton * fOptLogy
void ModLineWidth()
Slot called whenever the line width is modified by the user.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
void ModTitleFillColor()
Slot called whenever the title fill color is modified by the user.
void ModTitleW()
Slot called whenever the title width is modified by the user.
TList * fTrashListFrame
Definition: TStyleManager.h:85
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
TGNumberEntry * fTitleW
TGNumberEntry * fZTitleSize
void DoRename()
Rename the current selected style. Called via the menu bar.
TGColorSelect * fXTitleColor
void ModYTitleOffset()
Slot called whenever the Y axis title offset is modified by the user.
void DoExit()
Close the style manager. Called via the menu bar.
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.
TGTextButton * fMoreLess
void AddAxisXLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'Axis - X Axis' tab.
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.
Bool_t fLastChoice
Definition: TStyleManager.h:74
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.
void ModZTitleFont()
Slot called whenever the Z axis title font is modified by the user.
TGNumberEntry * fXLabelSize
TGCheckButton * fOptStatOverflow
TGFontTypeComboBox * fStatFont
TGCheckButton * fOptStatMean
TGNumberEntry * fErrorX
void ModColorModelPS()
Slot called whenever the PS color model is modified by the user.
TVirtualPad * fCurPad
void ModZLabelOffset()
Slot called whenever the Z axis label offset is modified by the user.
TGCheckButton * fOptStatSkewness
void ModFuncStyle()
Slot called whenever the function line style is modified by the user.
TGNumberEntry * fPaperSizeY
void AddPadBorder(TGCompositeFrame *f)
Add the 'Border' group frame to the 'Pad' tab.
TGLabel * fTitleBorderSizeLabel
TGFontTypeComboBox * fZTitleFont
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.
TGLineStyleComboBox * fFuncStyle
TGNumberEntry * fXNdivMain
void ModStatFont()
Slot called whenever the stats text font is modified by the user.
void AddPsPdfPaperSize(TGCompositeFrame *f)
Add the 'Paper Size' group frame to the 'PS / PDF' tab.
TGNumberEntry * fZLabelOffset
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
Definition: TStyleManager.h:98
void AddAxisZLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'Axis - Z Axis' tab.
TGColorSelect * fXAxisColor
TGTextButton * AddTextButton(TGCompositeFrame *f, const char *s, Int_t id)
Add a text button to the frame f.
TGTextEntry * fStatFormat
TGPictureButton * fToolBarImportCanvas
Definition: TStyleManager.h:96
TGNumberEntry * fXNdivSubSub
#define ClassDef(name, id)
Definition: Rtypes.h:254
ULong_t Pixel_t
Definition: GuiTypes.h:41
void ModYTickLength()
Slot called whenever the Y axis tick length is modified by the user.
TGRadioButton * fColorModelPSCMYK
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
void ModYNdivisions()
Slot called whenever the Y axis Number of divisions is modified by the user.
void CreateTabStats(TGCompositeFrame *tab)
Add the tab 'Stats' to the editor.
TGComboBox * fTitleAlign
void ModDrawBorder()
Slot called whenever the draw border boolean is modified by the user.
TGLayoutHints * fLayoutExpandXCenterYMargin
TGPictureButton * fToolBarImportMacro
Definition: TStyleManager.h:97
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.
void AddTopLevelInterface(TGCompositeFrame *cf)
Add the top level interface to the frame 'cf'.
TGColorSelect * fFuncColor
TGLabel * fCurObjLabel
TGColorSelect * fStatTextColor
void ModHatchesSpacing()
Slot called whenever the hatches spacing is modified by the user.
static const std::string pattern("pattern")
void AddHistosHistosLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'Histos - Histos' tab.
TGNumberEntry * fXTitleOffset
TGCheckButton * fOptFitErrors
void AddMenus(TGCompositeFrame *p)
Add the menu bar to the frame 'p'.
TGTextEntry * fFitFormat
TGTab * fHistosTab
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.
TGMenuBar * fMenuBar
Definition: TStyleManager.h:88
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.
TGTextButton * fLineStyleEdit
TGNumberEntry * fPadTopMargin
TGCheckButton * fOptStatKurtosis
TGPictureButton * fToolBarDelete
Definition: TStyleManager.h:95
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.
Definition: TVirtualPad.h:59
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.
void ModYLabelOffset()
Slot called whenever the Y axis label offset is modified by the user.
TGTextEntry * fCurStyle
TGColorSelect * fTitleTextColor
Int_t fCurTabAxisNum
Definition: TStyleManager.h:77
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.
TGCheckButton * fOptStatIntegral
TGNumberEntry * fStatFontSize
void CreateTabAxisX(TGCompositeFrame *tab)
Add the sub-tab 'X Axis' to the tab 'Axis'.
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.
void ModPadColor()
Slot called whenever the pad color is modified by the user.
Bool_t fAllAndNotCurrent
Definition: TStyleManager.h:84
void ModScreenFactor()
Slot called whenever the screen factor is modified by the user.
A doubly linked list.
Definition: TList.h:47
TGCheckButton * fOptStatEntries
void ModTitleH()
Slot called whenever the title height is modified by the user.
void ModFrameLineStyle()
Slot called whenever the frame line style is modified by the user.
TGNumberEntry * fPadLeftMargin
TGLabel * fListLabel
void CreateTabHistosFrames(TGCompositeFrame *tab)
Add the sub-tab 'Frames' to the tab 'Histos'.
void ModLineStyleEdit()
Slot called whenever the line style editor is opened by the user.
void ModStatY()
Slot called whenever the stats ordinate is modified by the user.
TStyle objects may be created to define special styles.
Definition: TStyle.h:52
TGTextButton * fApplyOnXYZ
TGColorSelect * fHistFillColor
TGTextEntry * fPaintTextFormat
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'.
TGNumberEntry * fStatH
void ModYTitleFont()
Slot called whenever the Y axis title font is modified by the user.
TGNumberEntry * fEndErrorSize
TGCheckButton * fTitleFontSizeInPixels
TGedPatternSelect * fHistFillStyle
TGTab * fEditionTab
TGNumberEntry * fLegoInnerR
void AddAxisXDivisions(TGCompositeFrame *f)
Add the 'Divisions' group frame to the 'Axis - X Axis' tab.
TGNumberEntry * fZNdivMain
TGToolBar * fToolBar
Definition: TStyleManager.h:93
void SetLastChoice(Bool_t choice)
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.
TGNumberEntry * fTitleX
void ModHistLineColor()
Slot called whenever the histos line color is modified by the user.
TGLabel * fStatBorderSizeLabel
TGTextButton * fEditionReset
void ModXTitleColor()
Slot called whenever the X axis title color is modified by the user.
TGedPatternSelect * fFrameFillStyle
void ModHistLineStyle()
Slot called whenever the histos line style is modified by the user.
TGFontTypeComboBox * fZLabelFont
void AddTitleFill(TGCompositeFrame *f)
Add the 'Fill' group frame to the 'Title' tab.
TGColorSelect * fFillColor
TGButtonGroup * fColorModelPS
TGRadioButton * fApplyOnSel
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.
TGNumberEntry * fXNdivSub
TGFontTypeComboBox * AddFontTypeEntry(TGCompositeFrame *f, Int_t id)
Add a font type combo box to the frame f.
TGTab * fAxisTab
TGLabel * fFitFormatLabel
void CreateTabAxisY(TGCompositeFrame *tab)
Add the sub-tab 'Y Axis' to the tab 'Axis'.
TStylePreview * fPreviewWindow
TGLayoutHints * fLayoutExpandXYMargin
TGNumberEntry * fStatX
TGNumberEntry * fAttDateTextSize
TGButtonGroup * fPadBorderMode
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
TGNumberEntry * fHatchesSpacing
unsigned int UInt_t
Definition: RtypesCore.h:42
void AddPadFill(TGCompositeFrame *f)
Add the 'Fill' group frame to the 'Pad' tab.
TGComboBox * fAttDateTextAlign
TGColorSelect * fCanvasColor
void ModPadTopMargin()
Slot called whenever the pad top margin is modified by the user.
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
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
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 ...
void AddGeneralLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'General' tab.
void ModTitleStyle()
Slot called whenever the title fill style is modified by the user.
TGedPatternSelect * fTitleStyle
void ModHistFillStyle()
Slot called whenever the histos fill style is modified by the user.
Bool_t fRealTimePreview
Definition: TStyleManager.h:75
TGNumberEntry * fZNdivSubSub
TList * fTrashListLayout
Definition: TStyleManager.h:86
TGComboBox * fPaperSizePredef
const TGPicture * fToolBarNewPic
void ModStatColor(Pixel_t color)
Slot called whenever the stats fill color is modified by the user.
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.
TGNumberEntry * fZTitleOffset
void DoChangeTab(Int_t i)
Slot called when the user changes the current tab.
void ModTextAngle()
Slot called whenever the text angle is modified by the user.
void Init()
Set up the interface. Called by the ctor or by the 'Show' method.
TGColorSelect * fFrameFillColor
TGLabel * fCurStylabel
TGedPatternSelect * fFillStyle
void ModOptStat()
Slot called whenever one of the stats options is modified by the user.
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.
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.
TGNumberEntry * fDateX
void CreateTabPad(TGCompositeFrame *tab)
Add the tab 'Pad' to the editor.
TGTextEntry * fCurObjTextEntry
TGLineStyleComboBox * fFrameLineStyle
TGLineStyleComboBox * AddLineStyleEntry(TGCompositeFrame *f, Int_t id)
Add a line style entry to the frame f.
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.
TGColorSelect * fMarkerColor
void ModZNdivisions()
Slot called whenever the Z axis Number of divisions is modified by the user.
TGCheckButton * fOptStatErrors
void AddPadMargin(TGCompositeFrame *f)
Add the 'Margin' group frame to the 'Pad' tab.
void ModTitleFont()
Slot called whenever the title text font is modified by the user.
TGNumberEntry * fCanvasDefH
double f(double x)
TGNumberEntry * fXTitleSize
Bool_t fMoreAndNotLess
Definition: TStyleManager.h:82
TGNumberEntry * fStatW
void ModCanvasDefY()
Slot called whenever the canvas default ordinate is modified by the user.
static Int_t init()
TGCheckButton * fYNdivisionsOptimize
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'.
double Double_t
Definition: RtypesCore.h:55
void AddCanvasBorder(TGCompositeFrame *f)
Add the 'Border' group frame to the 'Canvas' tab.
void ModTitleY()
Slot called whenever the title ordinate is modified by the user.
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
TGNumberEntry * fXTickLength
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.
TCanvas * style()
Definition: style.C:1
void ModXAxisColor()
Slot called whenever the X axis color is modified by the user.
void ModErrorX()
Slot called whenever the error along X is modified by the user.
const TGPicture * fMakeDefaultPic
void ModFrameLineWidth()
Slot called whenever the frame line width is modified by the user.
void AddHistosGraphsLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'Histos - Graphs' tab.
TGCheckButton * fHistMinimumZero
void AddAxisYLine(TGCompositeFrame *f)
Add the 'Line' group frame to the 'Axis - Y Axis' tab.
void ModMarkerSize()
Slot called whenever the marker size is modified by the user.
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.
TGLineWidthComboBox * fFrameLineWidth
void DoEditor()
Called each time something is changed in the style editor.
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.
void DoRealTime(Bool_t b)
Slot called when the user click on the run time update check button.
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
Definition: vector.h:440
TGHorizontal3DLine * fHorizontal3DLine
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
Definition: TStyleManager.h:71
void ModXTitleSizeInPixels(Bool_t b)
Slot called whenever the X axis title size mode is modified by the user.
TGColorSelect * fZTitleColor
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.
Definition: TObject.h:58
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.
void ModTitleBorderSize()
Slot called whenever the title border size is modified by the user.
TGNumberEntry * fYTickLength
void AddGeneralMarker(TGCompositeFrame *f)
Add the 'Marker' group frame to the 'General' tab.
TGNumberEntry * fZNdivSub
TGColorSelect * fPadColor
TGCheckButton * fDrawBorder
void SetCurSelStyle(TStyle *style)
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.
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.
void ModTitleX()
Slot called whenever the title abscissa is modified by the user.
TGFontTypeComboBox * fYTitleFont
TGColorSelect * fXLabelColor
Bool_t fPaperSizeEnCm
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.
TGNumberEntry * fStatY
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
Definition: TStyleManager.h:99
TGedMarkerSelect * fMarkerStyle
TGCheckButton * fOptLogz
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 ModCanvasColor()
Slot called whenever the canvas color is modified by the user.
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
TGNumberEntry * fDateY
void ModMarkerStyle()
Slot called whenever the marker style is modified by the user.
Bool_t fStyleChanged
Definition: TStyleManager.h:80
void ModTitleTextColor()
Slot called whenever the title text color is modified by the user.
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.
TGNumberEntry * fTitleY
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.
void AddHistosHistosBar(TGCompositeFrame *f)
Add the 'Bar' group frame to the 'Histos - Histos' tab.
TGComboBox * fMarkerSize
void ModYTitleSizeInPixels(Bool_t b)
Slot called whenever the Y axis title size mode is modified by the user.
TGCheckButton * fYTitleSizeInPixels
TGNumberEntry * fBarOffset
TGNumberEntry * fPadBottomMargin
TGNumberEntry * fScreenFactor
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'.
TGNumberEntry * fTitleH
TGRadioButton * fApplyOnAll
void ModZLabelColor()
Slot called whenever the Z axis label color is modified by the user.
void ModCanvasBorderSize()
Slot called whenever the canvas border size is modified by the user.
TGPictureButton * fMakeDefault
TGNumberEntry * fPadRightMargin
TGFileInfo * fCurMacro
TGButtonGroup * fCanvasBorderMode
void ModTimeOffset()
Slot called whenever the time offset is modified by the user.
TGCheckButton * fXLabelSizeInPixels
void ModDateX()
Slot called whenever the date abscissa is modified by the user.
TGTextButton * fEditionUpdatePreview
TObject * obj
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.
TGNumberEntry * fTitleFontSize
void ModFuncColor()
Slot called whenever the function line color is modified by the user.
TGCheckButton * fPreviewButton
TGCheckButton * fZTitleSizeInPixels
void AddStatsFit(TGCompositeFrame *f)
Add the 'Fit Options' group frame to the 'Stats' tab.
TGCheckButton * fPadGridY
TGTextEntry * fCurPadTextEntry
TGCheckButton * fPreviewRealTime
TGNumberEntry * fLineScalePS
UInt_t fSMHeight
Definition: TStyleManager.h:79
TGCheckButton * fOptStatRMS
TGTextEntry * fHeaderPS
void ModXLabelColor()
Slot called whenever the X axis label color is modified by the user.
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
TGNumberEntry * fXLabelOffset
TGNumberEntry * fPaperSizeX
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.
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.