Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-03 04:10:00

0001 #ifndef Fireworks_Core_FWCollectionSummaryModelCellRenderer_h
0002 #define Fireworks_Core_FWCollectionSummaryModelCellRenderer_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWCollectionSummaryModelCellRenderer
0007 //
0008 /**\class FWCollectionSummaryModelCellRenderer FWCollectionSummaryModelCellRenderer.h Fireworks/Core/interface/FWCollectionSummaryModelCellRenderer.h
0009 
0010  Description: <one line class summary>
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Chris Jones
0018 //         Created:  Wed Feb 25 10:03:21 CST 2009
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #include "Fireworks/TableWidget/interface/FWTextTableCellRenderer.h"
0025 
0026 // forward declarations
0027 class FWColorBoxIcon;
0028 class FWCheckBoxIcon;
0029 class FWEventItem;
0030 
0031 class FWCollectionSummaryModelCellRenderer : public FWTextTableCellRenderer {
0032 public:
0033   FWCollectionSummaryModelCellRenderer(const TGGC* iContext, const TGGC* iSelectContext);
0034   ~FWCollectionSummaryModelCellRenderer() override;
0035 
0036   enum ClickHit { kMiss, kHitCheck, kHitColor };
0037   // ---------- const member functions ---------------------
0038   UInt_t width() const override;
0039 
0040   // ---------- static member functions --------------------
0041 
0042   // ---------- member functions ---------------------------
0043   void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight) override;
0044 
0045   void setData(const FWEventItem* iItem, int iIndex);
0046 
0047   ClickHit clickHit(int iX, int iY) const;
0048 
0049   FWCollectionSummaryModelCellRenderer(const FWCollectionSummaryModelCellRenderer&) = delete;  // stop default
0050 
0051   const FWCollectionSummaryModelCellRenderer& operator=(const FWCollectionSummaryModelCellRenderer&) =
0052       delete;  // stop default
0053 
0054 private:
0055   // ---------- member data --------------------------------
0056   FWColorBoxIcon* m_colorBox;
0057   FWCheckBoxIcon* m_checkBox;
0058   TGGC* m_colorContext;
0059 };
0060 
0061 #endif