File indexing completed on 2025-01-18 10:12:04
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TGraphEditor
0013 #define ROOT_TGraphEditor
0014
0015
0016 #include "TGedFrame.h"
0017
0018 class TGraph;
0019 class TGButtonGroup;
0020 class TGTextEntry;
0021 class TGCheckButton;
0022 class TGRadioButton;
0023 class TGLineWidthComboBox;
0024
0025 class TGraphEditor : public TGedFrame {
0026
0027 protected:
0028 char fDrawShape;
0029 TGTextEntry *fTitle;
0030 Int_t fTitlePrec;
0031 TGraph *fGraph;
0032 TGButtonGroup *fgr;
0033 TGRadioButton *fShape;
0034 TGRadioButton *fShape0;
0035 TGRadioButton *fShape1;
0036 TGRadioButton *fShape2;
0037 TGRadioButton *fShape3;
0038 TGLayoutHints *fShape1lh;
0039 TGCheckButton *fMarkerOnOff;
0040 TGLineWidthComboBox *fWidthCombo;
0041 TGCheckButton *fExSide;
0042
0043 virtual void ConnectSignals2Slots();
0044
0045 public:
0046 TGraphEditor(const TGWindow *p = nullptr,
0047 Int_t width = 140, Int_t height = 30,
0048 UInt_t options = kChildFrame,
0049 Pixel_t back = GetDefaultFrameBackground());
0050 ~TGraphEditor() override;
0051 void SetModel(TObject* obj) override;
0052
0053
0054 virtual void DoShape();
0055 virtual void DoMarkerOnOff(Bool_t on);
0056 virtual void DoTitle(const char *text);
0057 virtual void DoGraphLineWidth();
0058
0059 ClassDefOverride(TGraphEditor,0)
0060 };
0061 #endif
0062