library: libTreeViewer #include "TTVLVContainer.h"

# TGSelectBox

class description - source file - inheritance tree (.pdf)

## class TGSelectBox : public TGTransientFrame

| Inheritance Chart:
`TObject`
| <- | `TGObject`
| <- | `TGWindow`
`TQObject`
| <- | `TGFrame`
| <- | `TGCompositeFrame`
| <- | `TGMainFrame`
| <- | `TGTransientFrame`
| <- | `TGSelectBox` |

        public:

                              TGSelectBox(const TGWindow* p, const TGWindow* main, UInt_t w = 10, UInt_t h = 10)
                              TGSelectBox(const TGSelectBox&)
                      virtual ~TGSelectBox()
               static TClass* Class()
                 virtual void CloseWindow()
                  TTVLVEntry* EditedEntry()
          static TGSelectBox* GetInstance()
                         void GrabPointer()
                         void InsertText(const char* text)
              virtual TClass* IsA() const
               virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
                         void SaveText()
                         void SetEntry(TTVLVEntry* entry)
                         void SetLabel(const char* title)
                 virtual void ShowMembers(TMemberInspector& insp, char* parent)
                 virtual void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)
                       Bool_t ValidateAlias()

### Data Members

        private:

                TTreeViewer* fViewer      pointer to tree viewer
                    TGLabel* fLabel       label
                 TTVLVEntry* fEntry       edited expression entry
                TGTextEntry* fTe          text entry box
                    TGLabel* fLabelAlias  alias label
                TGTextEntry* fTeAlias     alias text entry
                     TString fOldAlias    old alias for edited entry
              TGLayoutHints* fLayout      layout hints for widgets inside
              TGLayoutHints* fBLayout     layout for cancel button
              TGLayoutHints* fBLayout1    layout for close button
          TGHorizontalFrame* fBf          buttons frame
               TGTextButton* fDONE        close button
               TGTextButton* fCANCEL      cancel button

        protected:

          static TGSelectBox* fInstance  pointer to this select box

## Class Description

     TGItemContext  -  empty object used as context menu support for
     TGLVTreeEntries

TGSelectBox(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h) :TGTransientFrame(p, main, w, h)

     TGSelectBox constructor

~TGSelectBox()

     TGSelectBox destructor

void CloseWindow()

     close the select box

TGSelectBox* GetInstance()

     return the pointer to the instantiated singleton

void GrabPointer()

     just focus the cursor inside

void SetLabel(const char* title)

void SaveText()

     save the edited entry true name and alias

void SetEntry(TTVLVEntry *entry)

     connect one entry

void InsertText(const char* text)

Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)

     Message interpreter

Bool_t ValidateAlias()

     return true if edited alias is not a leading string of other expression aliases

### Inline Functions

            TTVLVEntry* EditedEntry()
                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void Streamer(TBuffer& b)
                   void StreamerNVirtual(TBuffer& b)
            TGSelectBox TGSelectBox(const TGSelectBox&)

Last update: root/treeviewer:$Name: $:$Id: TTVLVContainer.cxx,v 1.10 2003/07/15 14:25:22 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *