CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/Fireworks/Core/src/FWBoxIconButton.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     Core
00004 // Class  :     FWBoxIconButton
00005 // 
00006 // Implementation:
00007 //     <Notes on implementation>
00008 //
00009 // Original Author:  Chris Jones
00010 //         Created:  Thu Feb 19 19:04:10 CST 2009
00011 // $Id: FWBoxIconButton.cc,v 1.3 2010/06/18 10:17:14 yana Exp $
00012 //
00013 
00014 // system include files
00015 
00016 // user include files
00017 #include "Fireworks/Core/src/FWBoxIconButton.h"
00018 #include "Fireworks/Core/src/FWBoxIconBase.h"
00019 
00020 //
00021 // constants, enums and typedefs
00022 //
00023 
00024 //
00025 // static data member definitions
00026 //
00027 
00028 //
00029 // constructors and destructor
00030 //
00031 FWBoxIconButton::FWBoxIconButton(const TGWindow* iParent,
00032                                  FWBoxIconBase* iBase,
00033                                  Int_t iID,
00034                                  GContext_t norm ,
00035                                  UInt_t option):
00036 TGButton(iParent,iID,norm,option),
00037 m_iconBase(iBase)
00038 {
00039    Resize(m_iconBase->edgeLength(),m_iconBase->edgeLength());
00040 }
00041 
00042 // FWBoxIconButton::FWBoxIconButton(const FWBoxIconButton& rhs)
00043 // {
00044 //    // do actual copying here;
00045 // }
00046 
00047 FWBoxIconButton::~FWBoxIconButton()
00048 {
00049    delete m_iconBase;
00050 }
00051 
00052 //
00053 // assignment operators
00054 //
00055 // const FWBoxIconButton& FWBoxIconButton::operator=(const FWBoxIconButton& rhs)
00056 // {
00057 //   //An exception safe implementation is
00058 //   FWBoxIconButton temp(rhs);
00059 //   swap(rhs);
00060 //
00061 //   return *this;
00062 // }
00063 
00064 //
00065 // member functions
00066 //
00067 void 
00068 FWBoxIconButton::DoRedraw()
00069 {
00070    m_iconBase->draw(fId,fNormGC,0,0);
00071 }
00072 
00073 void FWBoxIconButton::setNormCG(GContext_t iContext)
00074 {
00075    fNormGC = iContext;
00076 }
00077 
00078 //
00079 // const member functions
00080 //
00081 
00082 //
00083 // static member functions
00084 //