File indexing completed on 2025-01-18 10:12:12
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TLineEditor
0013 #define ROOT_TLineEditor
0014
0015
0016 #include "TGedFrame.h"
0017
0018 class TGNumberEntry;
0019 class TGCheckButton;
0020 class TLine;
0021
0022 class TLineEditor : public TGedFrame {
0023
0024 protected:
0025 TLine *fLine;
0026 TGNumberEntry *fStartPointX;
0027 TGNumberEntry *fStartPointY;
0028 TGNumberEntry *fEndPointX;
0029 TGNumberEntry *fEndPointY;
0030 TGCheckButton *fVertical;
0031 TGCheckButton *fHorizontal;
0032
0033 virtual void ConnectSignals2Slots();
0034
0035 public:
0036 TLineEditor(const TGWindow *p = nullptr,
0037 Int_t width = 140, Int_t height = 30,
0038 UInt_t options = kChildFrame,
0039 Pixel_t back = GetDefaultFrameBackground());
0040 ~TLineEditor() override;
0041
0042 void SetModel(TObject* obj) override;
0043 virtual void DoStartPoint();
0044 virtual void DoEndPoint();
0045 virtual void DoLineVertical();
0046 virtual void DoLineHorizontal();
0047
0048 ClassDefOverride(TLineEditor,0)
0049 };
0050
0051 #endif