CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/Fireworks/TableWidget/src/FWAdapterRowHeaderTableManager.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:     TableWidget
00004 // Class  :     FWAdapterRowHeaderTableManager
00005 // 
00006 // Implementation:
00007 //     <Notes on implementation>
00008 //
00009 // Original Author:  Chris Jones
00010 //         Created:  Mon Feb  2 16:45:01 EST 2009
00011 // $Id: FWAdapterRowHeaderTableManager.cc,v 1.1 2009/02/03 20:33:03 chrjones Exp $
00012 //
00013 
00014 // system include files
00015 
00016 // user include files
00017 #include "Fireworks/TableWidget/src/FWAdapterRowHeaderTableManager.h"
00018 
00019 
00020 //
00021 // constants, enums and typedefs
00022 //
00023 
00024 //
00025 // static data member definitions
00026 //
00027 
00028 //
00029 // constructors and destructor
00030 //
00031 FWAdapterRowHeaderTableManager::FWAdapterRowHeaderTableManager(FWTableManagerBase* iTable) :
00032 m_table(iTable)
00033  {
00034    iTable->Connect("dataChanged()","FWTableManagerBase",static_cast<FWTableManagerBase*>(this),"dataChanged()");
00035    iTable->Connect("visualPropertiesChanged()","FWTableManagerBase",static_cast<FWTableManagerBase*>(this),"visualPropertiesChanged()");
00036 }
00037 
00038 // FWAdapterRowHeaderTableManager::FWAdapterRowHeaderTableManager(const FWAdapterRowHeaderTableManager& rhs)
00039 // {
00040 //    // do actual copying here;
00041 // }
00042 
00043 FWAdapterRowHeaderTableManager::~FWAdapterRowHeaderTableManager()
00044 {
00045 }
00046 
00047 //
00048 // assignment operators
00049 //
00050 // const FWAdapterRowHeaderTableManager& FWAdapterRowHeaderTableManager::operator=(const FWAdapterRowHeaderTableManager& rhs)
00051 // {
00052 //   //An exception safe implementation is
00053 //   FWAdapterRowHeaderTableManager temp(rhs);
00054 //   swap(rhs);
00055 //
00056 //   return *this;
00057 // }
00058 
00059 //
00060 // member functions
00061 //
00062 void
00063 FWAdapterRowHeaderTableManager::implSort(int col, bool sortOrder) 
00064 { 
00065 }
00066 
00067 //
00068 // const member functions
00069 //
00070 int 
00071 FWAdapterRowHeaderTableManager::numberOfRows() const { return m_table->numberOfRows();}
00072 
00073 int 
00074 FWAdapterRowHeaderTableManager::numberOfColumns() const { return 1;}
00075 
00076 int 
00077 FWAdapterRowHeaderTableManager::unsortedRowNumber(int iRow) const
00078 {
00079    return m_table->unsortedRowNumber(iRow);
00080 }
00081 
00082 
00083 std::vector<std::string> 
00084 FWAdapterRowHeaderTableManager::getTitles() const {
00085    std::vector<std::string> names(1,std::string("labels"));
00086    return names;
00087 }
00088 
00089 FWTableCellRendererBase* 
00090 FWAdapterRowHeaderTableManager::cellRenderer(int iRow, int /*iCol*/) const
00091 {
00092    return m_table->rowHeader(iRow);
00093 }
00094 
00095 //
00096 // static member functions
00097 //