Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

EDButtonFrame.h

Go to the documentation of this file.
00001 
00002 /*************************************************************************
00003 
00004  EDButtonFrame class.
00005 
00006  Class derived from ROOT class TGCompositeFrame.  Consists of a picture
00007  button followed by some text and possibly another GUI object like a text
00008  entry widget.
00009 
00010 *************************************************************************/
00011 
00012 
00013 
00014 #ifndef EDBUTT_H
00015 
00016 #define EDBUTT_H
00017 
00018 
00019 #include <stdlib.h>
00020 #include <iostream.h>
00021 
00022 #include "TGFrame.h"
00023 #include "TGButton.h"
00024 #include "TGLabel.h"
00025 #include "TGComboBox.h"
00026 #include "TGTextEntry.h"
00027 
00028 class EDButtonFrame: public TGCompositeFrame {
00029 
00030  private:
00031 
00032   TGPictureButton      *m_button;
00033   TGLabel              *m_label;
00034   TGWindow             *m_main;
00035   TGWindow             *m_parent;
00036   TGPicture            *m_buttonPic;
00037   Int_t                m_buttonId;
00038   Char_t               m_Text[ 20 ];
00039 
00040  public:
00041 
00042   EDButtonFrame( TGWindow* main, TGWindow* p, TGPicture* buttonPic, Int_t buttonId, Char_t* Text );
00043   EDButtonFrame( TGWindow* main, TGWindow* p, TGPicture* buttonPic, Int_t buttonId, Char_t* Text, TGComboBox* &combo );
00044   EDButtonFrame( TGWindow* main, TGWindow* p, TGPicture* buttonPic, Int_t buttonId, Char_t* Text, TGTextEntry* &txtEntry );
00045 
00046   void AddFrames();
00047   void SetText( Char_t *txt );
00048 
00049   ~EDButtonFrame();
00050 
00051 };
00052 
00053 
00054 #endif

Generated at Wed Nov 14 20:41:42 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000