Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TTextEditor.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Author: Olivier Couet 22/12/2013
0002 
0003 /*************************************************************************
0004  * Copyright (C) 1995-2021, Rene Brun and Fons Rademakers.               *
0005  * All rights reserved.                                                  *
0006  *                                                                       *
0007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0009  *************************************************************************/
0010 
0011 
0012 #ifndef ROOT_TTextEditor
0013 #define ROOT_TTextEditor
0014 
0015 #include "TGedFrame.h"
0016 
0017 class TText;
0018 class TGTextEntry;
0019 class TGNumberEntry;
0020 
0021 class TTextEditor : public TGedFrame {
0022 
0023 private:
0024    TText *fEditedText;
0025 
0026 protected:
0027    TGTextEntry   *fText;  ///< Text
0028    TGNumberEntry *fAngle; ///< Text's angle
0029    TGNumberEntry *fSize;  ///< Text's angle
0030    TGNumberEntry *fXpos;  ///< Text's X position
0031    TGNumberEntry *fYpos;  ///< Text's Y position
0032 
0033    void ConnectSignals2Slots();
0034 
0035 public:
0036    TTextEditor(const TGWindow *p = nullptr,
0037                   Int_t width = 140, Int_t height = 30,
0038                   UInt_t options = kChildFrame,
0039                   Pixel_t back = GetDefaultFrameBackground());
0040    ~TTextEditor() override;
0041 
0042    void SetModel(TObject *) override;
0043 
0044    void DoAngle();
0045    void DoSize();
0046    void DoText(const char*);
0047    void DoXpos();
0048    void DoYpos();
0049 
0050    ClassDefOverride(TTextEditor,0)        // text editor
0051 };
0052 
0053 #endif // ROOT_TTextEditor
0054