CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/Fireworks/Core/src/FWCollectionSummaryModelCellRenderer.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_FWCollectionSummaryModelCellRenderer_h
00002 #define Fireworks_Core_FWCollectionSummaryModelCellRenderer_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Core
00006 // Class  :     FWCollectionSummaryModelCellRenderer
00007 // 
00016 //
00017 // Original Author:  Chris Jones
00018 //         Created:  Wed Feb 25 10:03:21 CST 2009
00019 // $Id: FWCollectionSummaryModelCellRenderer.h,v 1.1 2009/03/04 16:40:51 chrjones Exp $
00020 //
00021 
00022 // system include files
00023 
00024 // user include files
00025 #include "Fireworks/TableWidget/interface/FWTextTableCellRenderer.h"
00026 
00027 // forward declarations
00028 class FWColorBoxIcon;
00029 class FWCheckBoxIcon;
00030 class FWEventItem;
00031 
00032 class FWCollectionSummaryModelCellRenderer : public FWTextTableCellRenderer
00033 {
00034 public:
00035    FWCollectionSummaryModelCellRenderer(const TGGC* iContext, const TGGC* iSelectContext);
00036    virtual ~FWCollectionSummaryModelCellRenderer();
00037    
00038    enum ClickHit {
00039       kMiss,
00040       kHitCheck,
00041       kHitColor
00042    };
00043    // ---------- const member functions ---------------------
00044    virtual UInt_t width() const;
00045    
00046    // ---------- static member functions --------------------
00047    
00048    // ---------- member functions ---------------------------
00049    virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight);
00050    
00051    void setData(const FWEventItem* iItem, int iIndex);
00052    
00053    ClickHit clickHit(int iX, int iY) const;
00054    
00055 private:
00056    FWCollectionSummaryModelCellRenderer(const FWCollectionSummaryModelCellRenderer&); // stop default
00057    
00058    const FWCollectionSummaryModelCellRenderer& operator=(const FWCollectionSummaryModelCellRenderer&); // stop default
00059    
00060    // ---------- member data --------------------------------
00061    FWColorBoxIcon* m_colorBox;
00062    FWCheckBoxIcon* m_checkBox;
00063    TGGC* m_colorContext;
00064 };
00065 
00066 
00067 #endif