File indexing completed on 2024-04-06 12:11:52
0001 #ifndef Fireworks_TableWidget_FWAdapterHeaderTableManager_h
0002 #define Fireworks_TableWidget_FWAdapterHeaderTableManager_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027 #include "Fireworks/TableWidget/interface/FWTableManagerBase.h"
0028
0029
0030 class FWColumnLabelCellRenderer;
0031
0032 class FWAdapterHeaderTableManager : public FWTableManagerBase {
0033 public:
0034 FWAdapterHeaderTableManager(const FWTableManagerBase*);
0035 ~FWAdapterHeaderTableManager() override;
0036
0037
0038 int numberOfRows() const override;
0039 int numberOfColumns() const override;
0040 std::vector<std::string> getTitles() const override;
0041 FWTableCellRendererBase* cellRenderer(int iRow, int iCol) const override;
0042 int unsortedRowNumber(int) const override;
0043
0044
0045
0046
0047 void implSort(int col, bool sortOrder) override;
0048
0049 FWAdapterHeaderTableManager(const FWAdapterHeaderTableManager&) = delete;
0050
0051 const FWAdapterHeaderTableManager& operator=(const FWAdapterHeaderTableManager&) = delete;
0052
0053 private:
0054
0055 const FWTableManagerBase* m_table;
0056 FWColumnLabelCellRenderer* m_renderer;
0057 int m_sortedColumn;
0058 bool m_descendingSort;
0059 };
0060
0061 #endif