Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:01:44

0001 // -*- C++ -*-
0002 //
0003 // Package:     TableWidget
0004 // Class  :     FWAdapterRowHeaderTableManager
0005 //
0006 // Implementation:
0007 //     <Notes on implementation>
0008 //
0009 // Original Author:  Chris Jones
0010 //         Created:  Mon Feb  2 16:45:01 EST 2009
0011 //
0012 
0013 // system include files
0014 
0015 // user include files
0016 #include "Fireworks/TableWidget/src/FWAdapterRowHeaderTableManager.h"
0017 
0018 //
0019 // constants, enums and typedefs
0020 //
0021 
0022 //
0023 // static data member definitions
0024 //
0025 
0026 //
0027 // constructors and destructor
0028 //
0029 FWAdapterRowHeaderTableManager::FWAdapterRowHeaderTableManager(FWTableManagerBase* iTable) : m_table(iTable) {
0030   iTable->Connect("dataChanged()", "FWTableManagerBase", static_cast<FWTableManagerBase*>(this), "dataChanged()");
0031   iTable->Connect("visualPropertiesChanged()",
0032                   "FWTableManagerBase",
0033                   static_cast<FWTableManagerBase*>(this),
0034                   "visualPropertiesChanged()");
0035 }
0036 
0037 // FWAdapterRowHeaderTableManager::FWAdapterRowHeaderTableManager(const FWAdapterRowHeaderTableManager& rhs)
0038 // {
0039 //    // do actual copying here;
0040 // }
0041 
0042 FWAdapterRowHeaderTableManager::~FWAdapterRowHeaderTableManager() {}
0043 
0044 //
0045 // assignment operators
0046 //
0047 // const FWAdapterRowHeaderTableManager& FWAdapterRowHeaderTableManager::operator=(const FWAdapterRowHeaderTableManager& rhs)
0048 // {
0049 //   //An exception safe implementation is
0050 //   FWAdapterRowHeaderTableManager temp(rhs);
0051 //   swap(rhs);
0052 //
0053 //   return *this;
0054 // }
0055 
0056 //
0057 // member functions
0058 //
0059 void FWAdapterRowHeaderTableManager::implSort(int col, bool sortOrder) {}
0060 
0061 //
0062 // const member functions
0063 //
0064 int FWAdapterRowHeaderTableManager::numberOfRows() const { return m_table->numberOfRows(); }
0065 
0066 int FWAdapterRowHeaderTableManager::numberOfColumns() const { return 1; }
0067 
0068 int FWAdapterRowHeaderTableManager::unsortedRowNumber(int iRow) const { return m_table->unsortedRowNumber(iRow); }
0069 
0070 std::vector<std::string> FWAdapterRowHeaderTableManager::getTitles() const {
0071   std::vector<std::string> names(1, std::string("labels"));
0072   return names;
0073 }
0074 
0075 FWTableCellRendererBase* FWAdapterRowHeaderTableManager::cellRenderer(int iRow, int /*iCol*/) const {
0076   return m_table->rowHeader(iRow);
0077 }
0078 
0079 //
0080 // static member functions
0081 //