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 // $Id: FWCollectionSummaryTableManager.h,v 1.2 2011/08/20 03:48:40 amraktad Exp $
20 //
21 
22 // system include files
23 #include <vector>
24 #include <boost/shared_ptr.hpp>
25 
26 // user include files
30 
31 // forward declarations
32 class FWEventItem;
33 //class FWItemValueGetter;
35 
37 
38 public:
39  FWCollectionSummaryTableManager(FWEventItem* iCollection, const TGGC* iContext, const TGGC* iHighlightContext, FWCollectionSummaryWidget*);
41 
42  // ---------- const member functions ---------------------
43  virtual int numberOfRows() const ;
44  virtual int numberOfColumns() const ;
45  virtual std::vector<std::string> getTitles() const;
46  virtual int unsortedRowNumber(int iSortedRowNumber) const;
47 
48  virtual FWTableCellRendererBase* cellRenderer(int iSortedRowNumber, int iCol) const;
49 
50  virtual bool hasRowHeaders() const ;
51  virtual FWTableCellRendererBase* rowHeader(int iSortedRowNumber) const ;
52 
53  // ---------- static member functions --------------------
54 
55  // ---------- member functions ---------------------------
56  virtual void buttonReleasedInRowHeader(Int_t row, Event_t* event, Int_t relX, Int_t relY);
57 
58 protected:
59  virtual void implSort(int iCol, bool iSortOrder);
60 private:
62 
64 
65  void dataChanged();
66  // ---------- member data --------------------------------
68  std::vector<int> m_sortedToUnsortedIndicies;
69 
73 };
74 
75 
76 #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