swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Raw File
Tip revision: 34947f135c08395b15220f10571f0f656f2c9a20 authored by Unknown Author on 12 February 2007, 17:49:48 UTC
This commit was manufactured by cvs2svn to create tag 'v5-14-00c'.
Tip revision: 34947f1
TFrameEditor.h
// @(#)root/ged:$Name:  TFrameEditor.h
// Author: Ilka  Antcheva 08/03/05

/*************************************************************************
 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TFrameEditor
#define ROOT_TFrameEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TFrameEditor                                                        //
//                                                                      //
//  Editor of frame objects.                                            //
//                                                                      //
//  Frame border can be set to sunken, raised or no border.             //
//  Border size can be set for sunken or rized frames (1-15 pixels).    //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGButton
#include "TGWidget.h"
#endif
#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif

class TGRadioButton;
class TGLineWidthComboBox;
class TFrame;


class TFrameEditor : public TGedFrame {

protected:
   TFrame              *fFrame;            // TFrame object
   TGRadioButton       *fBmode;            // set sinken frame border mode
   TGRadioButton       *fBmode0;           // set no border
   TGRadioButton       *fBmode1;           // set raised frame border mode
   TGLayoutHints       *fBmodelh;          // layout hints for border mode buttons
   TGLineWidthComboBox *fBsize;            // set frame border size
   TGCompositeFrame    *f3;                // container frame;  
   
   virtual void ConnectSignals2Slots();
 
public:
   TFrameEditor(const TGWindow *p =0,
                Int_t width = 140, Int_t height = 30,
                UInt_t options = kChildFrame,
                Pixel_t back = GetDefaultFrameBackground());
   virtual ~TFrameEditor(); 

   virtual void   SetModel(TObject* obj);
   virtual void   DoBorderMode();
   virtual void   DoBorderSize(Int_t size);
           
   ClassDef(TFrameEditor,0)  //editor of TFrame objects
};

#endif
back to top