Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-03 04:09:59

0001 // -*- C++ -*-
0002 #ifndef Fireworks_Core_FWTriggerTableViewTableManager_h
0003 #define Fireworks_Core_FWTriggerTableViewTableManager_h
0004 //
0005 // Package:     Core
0006 // Class  :     FWTriggerTableViewTableManager
0007 //
0008 /**\class FWTriggerTableViewTableManager FWTriggerTableViewTableManager.h Fireworks/Core/interface/FWTriggerTableViewTableManager.h
0009 
0010  */
0011 //
0012 // Original Author:
0013 //         Created:  Mon Feb  2 16:40:52 EST 2009
0014 //
0015 
0016 // system include files
0017 #include <vector>
0018 #include <string>
0019 #include "TQObject.h"
0020 #include "GuiTypes.h"
0021 
0022 // user include files
0023 #include "Fireworks/TableWidget/interface/FWTableManagerBase.h"
0024 #include "Fireworks/TableWidget/interface/FWTextTableCellRenderer.h"
0025 #include "Fireworks/Core/interface/FWTriggerTableViewManager.h"
0026 #include "Fireworks/Core/interface/FWExpressionEvaluator.h"
0027 
0028 // forward declarations
0029 class FWTriggerTableView;
0030 
0031 class FWTriggerTableViewTableManager : public FWTableManagerBase {
0032   friend class FWTriggerTableView;
0033 
0034 public:
0035   FWTriggerTableViewTableManager(const FWTriggerTableView *);
0036   ~FWTriggerTableViewTableManager() override;
0037 
0038   // ---------- const member functions ---------------------
0039   ///Number of rows in the table
0040   int numberOfRows() const override;
0041   int numberOfColumns() const override;
0042   std::vector<std::string> getTitles() const override;
0043   int unsortedRowNumber(int iSortedRowNumber) const override;
0044 
0045   FWTableCellRendererBase *cellRenderer(int iSortedRowNumber, int iCol) const override;
0046   void dataChanged();  //*SIGNAL*
0047 
0048 protected:
0049   ///Called by 'sort' method to actually handle the sorting of the
0050   ///rows. Arguments are the same as 'sort'
0051   void implSort(int iCol, bool iSortOrder) override;
0052   std::vector<int> m_sortedToUnsortedIndices;
0053 
0054   const FWTriggerTableView *m_view;
0055   TGGC *m_graphicsContext;
0056   FWTextTableCellRenderer *m_renderer;
0057 
0058 public:
0059   FWTriggerTableViewTableManager(const FWTriggerTableViewTableManager &) = delete;                   // stop default
0060   const FWTriggerTableViewTableManager &operator=(const FWTriggerTableViewTableManager &) = delete;  // stop default
0061 };
0062 
0063 #endif