CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWTabularWidget.h
Go to the documentation of this file.
1 #ifndef Fireworks_TableWidget_FWTabularWidget_h
2 #define Fireworks_TableWidget_FWTabularWidget_h
3 // -*- C++ -*-
4 //
5 // Package: TableWidget
6 // Class : FWTabularWidget
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Mon Feb 2 16:45:19 EST 2009
19 // $Id: FWTabularWidget.h,v 1.6 2011/03/07 13:13:51 amraktad Exp $
20 //
21 
22 // system include files
23 #include <vector>
24 #include "TGFrame.h"
25 
26 // user include files
27 
28 // forward declarations
29 class FWTableManagerBase;
30 
31 class FWTabularWidget : public TGFrame
32 {
33 
34 public:
35  static const TGGC& getDefaultGC();
36 
37  static const int kTextBuffer;
38  static const int kSeperatorWidth;
39 
40  FWTabularWidget(FWTableManagerBase* iManager,const TGWindow* p=0, GContext_t context = getDefaultGC()());
41  virtual ~FWTabularWidget();
42 
43  // ---------- const member functions ---------------------
44  const std::vector<unsigned int>& widthOfTextInColumns() const { return m_widthOfTextInColumns;}
45  UInt_t verticalOffset() const {return m_vOffset;}
46  UInt_t horizontalOffset() const { return m_hOffset;}
47 
48  // ---------- static member functions --------------------
49 
50  // ---------- member functions ---------------------------
51  void setWidthOfTextInColumns(const std::vector<unsigned int>& );
52  void DoRedraw();
53  TGDimension GetDefaultSize() const;
54 
57 
58  virtual Bool_t HandleButton(Event_t *event);
59 
60  void buttonPressed(Int_t row, Int_t column, Event_t* event, Int_t relX, Int_t relY); //*SIGNAL*
61  void buttonReleased(Int_t row, Int_t column, Event_t* event, Int_t relX, Int_t relY); //*SIGNAL*
62 
63  void dataChanged();
64  void needToRedraw();
65 
67 
68  void setLineContext(GContext_t iContext);
69  void setBackgroundAreaContext(GContext_t iContext);
70 
71  void disableGrowInWidth() { m_growInWidth = false; }
72 
73 private:
74  //FWTabularWidget(const FWTabularWidget&); // stop default
75 
76  //const FWTabularWidget& operator=(const FWTabularWidget&); // stop default
77 
78  // ---------- member data --------------------------------
79 
80  void translateToRowColumn(Int_t iX, Int_t iY, Int_t& oRow, Int_t& oCol, Int_t&oRelX, Int_t& oRelY) const;
81 
83  std::vector<unsigned int> m_widthOfTextInColumns;
84  std::vector<unsigned int> m_widthOfTextInColumnsMax;
87 
88  unsigned int m_vOffset;
89  unsigned int m_hOffset;
90 
91  GContext_t m_normGC;
92  GContext_t m_backgroundGC;
93 
95 };
96 
97 
98 #endif
void buttonReleased(Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY)
void translateToRowColumn(Int_t iX, Int_t iY, Int_t &oRow, Int_t &oCol, Int_t &oRelX, Int_t &oRelY) const
FWTabularWidget(FWTableManagerBase *iManager, const TGWindow *p=0, GContext_t context=getDefaultGC()())
unsigned int m_vOffset
void setLineContext(GContext_t iContext)
void buttonPressed(Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY)
void setWidthOfTextInColumns(const std::vector< unsigned int > &)
UInt_t verticalOffset() const
TGDimension GetDefaultSize() const
static const TGGC & getDefaultGC()
virtual Bool_t HandleButton(Event_t *event)
GContext_t m_backgroundGC
GContext_t m_normGC
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
std::vector< unsigned int > m_widthOfTextInColumns
void disableGrowInWidth()
void setHorizontalOffset(UInt_t)
const std::vector< unsigned int > & widthOfTextInColumns() const
unsigned int UInt_t
Definition: FUTypes.h:12
unsigned int m_hOffset
UInt_t horizontalOffset() const
FWTableManagerBase * m_table
void setBackgroundAreaContext(GContext_t iContext)
std::vector< unsigned int > m_widthOfTextInColumnsMax
ClassDef(FWTabularWidget, 0)
static const int kSeperatorWidth
static const int kTextBuffer
void setVerticalOffset(UInt_t)
virtual ~FWTabularWidget()