File indexing completed on 2025-01-18 10:12:06
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TGuiBldEditor
0013 #define ROOT_TGuiBldEditor
0014
0015
0016 #include "TGFrame.h"
0017
0018 #include "TGNumberEntry.h"
0019
0020 class TGuiBldHintsEditor;
0021 class TGuiBldNameFrame;
0022 class TGuiBldBorderFrame;
0023 class TGuiBldGeometryFrame;
0024 class TGuiBldDragManager;
0025 class TGTab;
0026 class TGButton;
0027 class TGLabel;
0028 class TGGroupFrame;
0029 class TGCompositeFrame;
0030
0031
0032 class TGuiBldEditor : public TGVerticalFrame {
0033
0034 friend class TGuiBldDragManager;
0035
0036 private:
0037 TGFrame *fSelected;
0038 TGuiBldNameFrame *fNameFrame;
0039 TGuiBldHintsEditor *fHintsFrame;
0040 TGuiBldBorderFrame *fBorderFrame;
0041 TGuiBldGeometryFrame *fGeomFrame;
0042 TGGroupFrame *fPositionFrame;
0043 TGuiBldDragManager *fManager;
0044 Bool_t fEmbedded;
0045 TGTab *fTab;
0046 TGCompositeFrame *fTablay;
0047 Int_t fLayoutId;
0048 TGTextButton *fLayoutButton;
0049 TGLabel *fLayoutLabel;
0050 TGNumberEntry *fXpos;
0051 TGNumberEntry *fYpos;
0052
0053 public:
0054 TGuiBldEditor(const TGWindow *p = nullptr);
0055 ~TGuiBldEditor() override;
0056
0057 Int_t GetXPos() const { return fXpos->GetIntNumber(); }
0058 Int_t GetYPos() const { return fYpos->GetIntNumber(); }
0059 void SetXPos(Int_t pos) { fXpos->SetIntNumber(pos); }
0060 void SetYPos(Int_t pos) { fYpos->SetIntNumber(pos); }
0061
0062 TGFrame *GetSelected() const { return fSelected; }
0063 Bool_t IsEmbedded() const { return fEmbedded; }
0064 void SetEmbedded(Bool_t e = kTRUE) { fEmbedded = e; }
0065 void Hide();
0066 void UpdateBorder(Int_t);
0067 void UpdateBackground(Pixel_t col);
0068 void UpdateForeground(Pixel_t col);
0069 void Reset();
0070 TGuiBldHintsEditor *GetHintsEditor() const { return fHintsFrame; }
0071
0072 void RemoveFrame(TGFrame *) override;
0073 void TabSelected(Int_t id);
0074 void UpdateSelected(TGFrame* = nullptr);
0075 void ChangeSelected(TGFrame*);
0076 void SwitchLayout();
0077
0078 ClassDefOverride(TGuiBldEditor,0)
0079 };
0080
0081 #endif