File indexing completed on 2024-04-06 12:11:36
0001 #ifndef Fireworks_Core_FWCollectionSummaryModelCellRenderer_h
0002 #define Fireworks_Core_FWCollectionSummaryModelCellRenderer_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "Fireworks/TableWidget/interface/FWTextTableCellRenderer.h"
0025
0026
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
0038 UInt_t width() const override;
0039
0040
0041
0042
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;
0050
0051 const FWCollectionSummaryModelCellRenderer& operator=(const FWCollectionSummaryModelCellRenderer&) =
0052 delete;
0053
0054 private:
0055
0056 FWColorBoxIcon* m_colorBox;
0057 FWCheckBoxIcon* m_checkBox;
0058 TGGC* m_colorContext;
0059 };
0060
0061 #endif