Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:52

0001 #ifndef Fireworks_TableWidget_FWAdapterRowHeaderTableManager_h
0002 #define Fireworks_TableWidget_FWAdapterRowHeaderTableManager_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     TableWidget
0006 // Class  :     FWAdapterRowHeaderTableManager
0007 //
0008 /**\class FWAdapterRowHeaderTableManager FWAdapterRowHeaderTableManager.h Fireworks/TableWidget/interface/FWAdapterRowHeaderTableManager.h
0009 
0010  Description: a TableManager used to pass the row header info of another table as the body of this table
0011 
0012  Usage:
0013    This class is an implementation detail of how the FWTableWidget handles the row headers.  The drawing
0014    of the row headers is done by the same widget as handles the drawing of the body. The
0015    FWAdapterRowHeaderTableManager is used to make the row header information appear to be just another table so
0016    that it works with the above mentioned widget.
0017 
0018 */
0019 //
0020 // Original Author:  Chris Jones
0021 //         Created:  Mon Feb  2 16:44:59 EST 2009
0022 //
0023 
0024 // system include files
0025 
0026 // user include files
0027 #include "Fireworks/TableWidget/interface/FWTableManagerBase.h"
0028 
0029 // forward declarations
0030 
0031 class FWAdapterRowHeaderTableManager : public FWTableManagerBase {
0032 public:
0033   FWAdapterRowHeaderTableManager(FWTableManagerBase*);
0034   ~FWAdapterRowHeaderTableManager() override;
0035 
0036   // ---------- const member functions ---------------------
0037   int numberOfRows() const override;
0038   int numberOfColumns() const override;
0039   std::vector<std::string> getTitles() const override;
0040   FWTableCellRendererBase* cellRenderer(int iRow, int iCol) const override;
0041   int unsortedRowNumber(int) const override;
0042 
0043   // ---------- static member functions --------------------
0044 
0045   // ---------- member functions ---------------------------
0046   void implSort(int col, bool sortOrder) override;
0047 
0048   FWAdapterRowHeaderTableManager(const FWAdapterRowHeaderTableManager&) = delete;  // stop default
0049 
0050   const FWAdapterRowHeaderTableManager& operator=(const FWAdapterRowHeaderTableManager&) = delete;  // stop default
0051 
0052 private:
0053   // ---------- member data --------------------------------
0054   const FWTableManagerBase* m_table;
0055 };
0056 
0057 #endif