CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/Fireworks/TableWidget/interface/FWColumnLabelCellRenderer.h

Go to the documentation of this file.
00001 #ifndef Fireworks_TableWidget_FWColumnLabelCellRenderer_h
00002 #define Fireworks_TableWidget_FWColumnLabelCellRenderer_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     TableWidget
00006 // Class  :     FWColumnLabelCellRenderer
00007 // 
00017 //
00018 // Original Author:  Chris Jones
00019 //         Created:  Mon Feb  2 16:44:11 EST 2009
00020 // $Id: FWColumnLabelCellRenderer.h,v 1.3 2012/02/22 00:15:44 amraktad Exp $
00021 //
00022 
00023 // system include files
00024 
00025 // user include files
00026 #include "Fireworks/TableWidget/interface/SortOrder.h"
00027 #include "Fireworks/TableWidget/interface/FWTextTableCellRenderer.h"
00028 
00029 // forward declarations
00030 
00031 class FWColumnLabelCellRenderer : public FWTextTableCellRenderer
00032 {
00033 
00034    public:
00035       FWColumnLabelCellRenderer(const TGGC* iContext=&(getDefaultGC()), bool isSortable = true);
00036       virtual ~FWColumnLabelCellRenderer();
00037 
00038       // ---------- const member functions ---------------------
00039       fireworks::table::SortOrder sortOrder() const;
00040 
00041       virtual UInt_t width() const;
00042 
00043       // ---------- static member functions --------------------
00044 
00045       // ---------- member functions ---------------------------
00046       void setSortOrder(fireworks::table::SortOrder);
00047 
00048       virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight);
00049 
00050    private:
00051       //FWColumnLabelCellRenderer(const FWColumnLabelCellRenderer&); // stop default
00052 
00053       //const FWColumnLabelCellRenderer& operator=(const FWColumnLabelCellRenderer&); // stop default
00054 
00055       // ---------- member data --------------------------------
00056       static const UInt_t kGap = 2;
00057       fireworks::table::SortOrder m_sortOrder;
00058       int m_sizeOfOrderIcon;
00059       int m_sizeOfOrderIconStartX;
00060   
00061       bool m_isSortable;
00062 
00063 };
00064 
00065 
00066 #endif