test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWCollectionSummaryTableManager.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWCollectionSummaryTableManager_h
2 #define Fireworks_Core_FWCollectionSummaryTableManager_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWCollectionSummaryTableManager
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sun Feb 22 10:13:37 CST 2009
19 //
20 
21 // system include files
22 #include <vector>
23 #include <boost/shared_ptr.hpp>
24 
25 // user include files
29 
30 // forward declarations
31 class FWEventItem;
32 //class FWItemValueGetter;
34 
36 
37 public:
38  FWCollectionSummaryTableManager(FWEventItem* iCollection, const TGGC* iContext, const TGGC* iHighlightContext, FWCollectionSummaryWidget*);
40 
41  // ---------- const member functions ---------------------
42  virtual int numberOfRows() const ;
43  virtual int numberOfColumns() const ;
44  virtual std::vector<std::string> getTitles() const;
45  virtual int unsortedRowNumber(int iSortedRowNumber) const;
46 
47  virtual FWTableCellRendererBase* cellRenderer(int iSortedRowNumber, int iCol) const;
48 
49  virtual bool hasRowHeaders() const ;
50  virtual FWTableCellRendererBase* rowHeader(int iSortedRowNumber) const ;
51 
52  // ---------- static member functions --------------------
53 
54  // ---------- member functions ---------------------------
55  virtual void buttonReleasedInRowHeader(Int_t row, Event_t* event, Int_t relX, Int_t relY);
56 
57 protected:
58  virtual void implSort(int iCol, bool iSortOrder);
59 private:
61 
63 
64  void dataChanged();
65  // ---------- member data --------------------------------
67  std::vector<int> m_sortedToUnsortedIndicies;
68 
72 };
73 
74 
75 #endif
virtual FWTableCellRendererBase * rowHeader(int iSortedRowNumber) const
Returns the renderer for the row header for the sorted row number iSortedRowNumber.
FWCollectionSummaryModelCellRenderer m_renderer
virtual void implSort(int iCol, bool iSortOrder)
Called by &#39;sort&#39; method to actually handle the sorting of the rows. Arguments are the same as &#39;sort&#39;...
virtual bool hasRowHeaders() const
Returns &#39;true&#39; if this table has row headers. Defaults return value is false.
virtual std::vector< std::string > getTitles() const
returns the title names for each column
virtual int numberOfRows() const
Number of rows in the table.
const FWCollectionSummaryTableManager & operator=(const FWCollectionSummaryTableManager &)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
virtual int unsortedRowNumber(int iSortedRowNumber) const
when passed the index to the sorted order of the rows it returns the original row number from the und...
virtual void buttonReleasedInRowHeader(Int_t row, Event_t *event, Int_t relX, Int_t relY)
virtual int numberOfColumns() const
Number of columns in the table.
FWCollectionSummaryTableManager(FWEventItem *iCollection, const TGGC *iContext, const TGGC *iHighlightContext, FWCollectionSummaryWidget *)
virtual FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const