Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
// -*- C++ -*-
//
// Package:     TableWidget
// Class  :     FWAdapterRowHeaderTableManager
//
// Implementation:
//     <Notes on implementation>
//
// Original Author:  Chris Jones
//         Created:  Mon Feb  2 16:45:01 EST 2009
//

// system include files

// user include files
#include "Fireworks/TableWidget/src/FWAdapterRowHeaderTableManager.h"

//
// constants, enums and typedefs
//

//
// static data member definitions
//

//
// constructors and destructor
//
FWAdapterRowHeaderTableManager::FWAdapterRowHeaderTableManager(FWTableManagerBase* iTable) : m_table(iTable) {
  iTable->Connect("dataChanged()", "FWTableManagerBase", static_cast<FWTableManagerBase*>(this), "dataChanged()");
  iTable->Connect("visualPropertiesChanged()",
                  "FWTableManagerBase",
                  static_cast<FWTableManagerBase*>(this),
                  "visualPropertiesChanged()");
}

// FWAdapterRowHeaderTableManager::FWAdapterRowHeaderTableManager(const FWAdapterRowHeaderTableManager& rhs)
// {
//    // do actual copying here;
// }

FWAdapterRowHeaderTableManager::~FWAdapterRowHeaderTableManager() {}

//
// assignment operators
//
// const FWAdapterRowHeaderTableManager& FWAdapterRowHeaderTableManager::operator=(const FWAdapterRowHeaderTableManager& rhs)
// {
//   //An exception safe implementation is
//   FWAdapterRowHeaderTableManager temp(rhs);
//   swap(rhs);
//
//   return *this;
// }

//
// member functions
//
void FWAdapterRowHeaderTableManager::implSort(int col, bool sortOrder) {}

//
// const member functions
//
int FWAdapterRowHeaderTableManager::numberOfRows() const { return m_table->numberOfRows(); }

int FWAdapterRowHeaderTableManager::numberOfColumns() const { return 1; }

int FWAdapterRowHeaderTableManager::unsortedRowNumber(int iRow) const { return m_table->unsortedRowNumber(iRow); }

std::vector<std::string> FWAdapterRowHeaderTableManager::getTitles() const {
  std::vector<std::string> names(1, std::string("labels"));
  return names;
}

FWTableCellRendererBase* FWAdapterRowHeaderTableManager::cellRenderer(int iRow, int /*iCol*/) const {
  return m_table->rowHeader(iRow);
}

//
// static member functions
//