CMS 3D CMS Logo

FWTableWidget.h
Go to the documentation of this file.
1 #ifndef Fireworks_TableWidget_FWTableWidget_h
2 #define Fireworks_TableWidget_FWTableWidget_h
3 // -*- C++ -*-
4 //
5 // Package: TableWidget
6 // Class : FWTableWidget
7 //
18 //
19 // Original Author: Chris Jones
20 // Created: Mon Feb 2 16:45:47 EST 2009
21 //
22 
23 // system include files
24 #include "TGFrame.h"
25 
26 // user include files
27 
28 // forward declarations
29 class FWTableManagerBase;
30 class FWTabularWidget;
31 class TGVScrollBar;
32 class TGHScrollBar;
33 class TGGC;
34 
35 class FWTableWidget : public TGCompositeFrame {
36 public:
37  FWTableWidget(FWTableManagerBase* iManager, const TGWindow* p = nullptr);
38  ~FWTableWidget() override;
39 
40  // ---------- const member functions ---------------------
41  //the standard method gives the wrong values when using a TGTabularLayout
42  TGDimension GetDefaultSize() const override;
43 
44  // ---------- static member functions --------------------
45 
46  // ---------- member functions ---------------------------
47  using TGFrame::Resize;
48  void Resize(UInt_t w, UInt_t h) override;
49  void MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0) override;
50  void SetBackgroundColor(Pixel_t) override;
51  void SetHeaderBackgroundColor(Pixel_t);
52  void SetHeaderForegroundColor(Pixel_t);
53  void SetLineSeparatorColor(Pixel_t);
54 
55  Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) override;
56 
60  void sort(UInt_t iColumn, bool iDescendingSort);
61 
62  void buttonReleasedInHeader(Int_t row, Int_t column, Event_t* event, Int_t, Int_t);
63  void buttonReleasedInBody(Int_t row, Int_t column, Event_t* event, Int_t, Int_t);
64 
73  void rowClicked(Int_t iRow, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY); //*SIGNAL*
74  void cellClicked(Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY);
75  void columnClicked(Int_t iColumn, Int_t iButton, Int_t iKeyMod); //*SIGNAL*
76  void childrenEvent(Event_t*);
77  void Clicked();
78 
80 
81  void forceLayout() { m_forceLayout = true; }
82  void dataChanged();
83 
84  void buttonPressedInRowHeader(Int_t row, Int_t column, Event_t* event, Int_t relX, Int_t relY);
85  void buttonReleasedInRowHeader(Int_t row, Int_t column, Event_t* event, Int_t relX, Int_t relY);
86 
87  int sortedColumn() const { return m_sortedColumn; }
88  bool descendingSort() const { return m_descendingSort; }
89 
90  FWTabularWidget* body() { return m_body; }
91 
92  void disableGrowInWidth();
93 
94 protected:
95  void DoRedraw() override;
96 
97 private:
98  //FWTableWidget(const FWTableWidget&); // stop default
99 
100  //const FWTableWidget& operator=(const FWTableWidget&); // stop default
101 
102  // ---------- member data --------------------------------
103  bool handleResize(UInt_t w, UInt_t h);
110  TGVScrollBar* m_vSlider;
111  TGHScrollBar* m_hSlider;
114 
118 
122 };
123 
124 #endif
FWTableWidget::m_rowHeader
FWTabularWidget * m_rowHeader
Definition: FWTableWidget.h:109
DDAxes::y
FWTableWidget::SetBackgroundColor
void SetBackgroundColor(Pixel_t) override
Definition: FWTableWidget.cc:173
FWTableWidget::m_sortedColumn
int m_sortedColumn
Definition: FWTableWidget.h:115
FWTableWidget::childrenEvent
void childrenEvent(Event_t *)
Definition: FWTableWidget.cc:399
FWTableWidget::~FWTableWidget
~FWTableWidget() override
Definition: FWTableWidget.cc:133
FWTableWidget::dataChanged
void dataChanged()
Definition: FWTableWidget.cc:425
FWTableWidget::m_rowHeaderTable
FWTableManagerBase * m_rowHeaderTable
Definition: FWTableWidget.h:106
FWTableWidget::sort
void sort(UInt_t iColumn, bool iDescendingSort)
Definition: FWTableWidget.cc:161
FWTableWidget::m_body
FWTabularWidget * m_body
Definition: FWTableWidget.h:108
FWTableWidget::m_forceLayout
bool m_forceLayout
Definition: FWTableWidget.h:117
FWTableWidget::m_bodyTable
FWTableManagerBase * m_bodyTable
Definition: FWTableWidget.h:104
FWTableWidget::Resize
void Resize(UInt_t w, UInt_t h) override
Definition: FWTableWidget.cc:221
mps_check.msg
tuple msg
Definition: mps_check.py:285
FWTableWidget::m_showingHSlider
bool m_showingHSlider
Definition: FWTableWidget.h:113
DDAxes::x
FWTableWidget::SetHeaderForegroundColor
void SetHeaderForegroundColor(Pixel_t)
Definition: FWTableWidget.cc:198
FWTableWidget::DoRedraw
void DoRedraw() override
Definition: FWTableWidget.cc:506
FWTableWidget::m_headerTable
FWTableManagerBase * m_headerTable
Definition: FWTableWidget.h:105
FWTableWidget::ProcessMessage
Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2) override
Definition: FWTableWidget.cc:297
FWTableWidget::disableGrowInWidth
void disableGrowInWidth()
Definition: FWTableWidget.cc:498
FWTableWidget::m_headerForeground
TGGC * m_headerForeground
Definition: FWTableWidget.h:120
FWTableWidget::buttonReleasedInRowHeader
void buttonReleasedInRowHeader(Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY)
Definition: FWTableWidget.cc:472
FWTableWidget
Definition: FWTableWidget.h:35
w
const double w
Definition: UKUtility.cc:23
FWTableWidget::MoveResize
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Definition: FWTableWidget.cc:289
FWTableWidget::columnClicked
void columnClicked(Int_t iColumn, Int_t iButton, Int_t iKeyMod)
Definition: FWTableWidget.cc:415
FWTableWidget::buttonReleasedInHeader
void buttonReleasedInHeader(Int_t row, Int_t column, Event_t *event, Int_t, Int_t)
Definition: FWTableWidget.cc:331
FWTableWidget::Clicked
void Clicked()
Definition: FWTableWidget.cc:401
h
FWTableWidget::ClassDefOverride
ClassDefOverride(FWTableWidget, 0)
FWTableWidget::sortedColumn
int sortedColumn() const
Definition: FWTableWidget.h:87
FWTableWidget::m_showingVSlider
bool m_showingVSlider
Definition: FWTableWidget.h:112
FWTableManagerBase
Definition: FWTableManagerBase.h:44
FWTableWidget::rowClicked
void rowClicked(Int_t iRow, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY)
Definition: FWTableWidget.cc:403
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
FWTableWidget::cellClicked
void cellClicked(Int_t iRow, Int_t iColumn, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY)
Definition: FWTableWidget.cc:386
FWTableWidget::m_vSlider
TGVScrollBar * m_vSlider
Definition: FWTableWidget.h:110
FWTableWidget::forceLayout
void forceLayout()
Definition: FWTableWidget.h:81
FWTableWidget::FWTableWidget
FWTableWidget(FWTableManagerBase *iManager, const TGWindow *p=nullptr)
Definition: FWTableWidget.cc:39
FWTableWidget::m_header
FWTabularWidget * m_header
Definition: FWTableWidget.h:107
FWTableWidget::m_descendingSort
bool m_descendingSort
Definition: FWTableWidget.h:116
FWTableWidget::buttonReleasedInBody
void buttonReleasedInBody(Int_t row, Int_t column, Event_t *event, Int_t, Int_t)
Definition: FWTableWidget.cc:345
FWTableWidget::handleResize
bool handleResize(UInt_t w, UInt_t h)
Definition: FWTableWidget.cc:226
FWTableWidget::descendingSort
bool descendingSort() const
Definition: FWTableWidget.h:88
FWTableWidget::SetLineSeparatorColor
void SetLineSeparatorColor(Pixel_t)
Definition: FWTableWidget.cc:209
FWTableWidget::body
FWTabularWidget * body()
Definition: FWTableWidget.h:90
FWTableWidget::m_lineSeparator
TGGC * m_lineSeparator
Definition: FWTableWidget.h:121
FWTableWidget::SetHeaderBackgroundColor
void SetHeaderBackgroundColor(Pixel_t)
Definition: FWTableWidget.cc:188
FWTableWidget::GetDefaultSize
TGDimension GetDefaultSize() const override
Definition: FWTableWidget.cc:483
FWTableWidget::buttonPressedInRowHeader
void buttonPressedInRowHeader(Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY)
Definition: FWTableWidget.cc:465
FWTableWidget::m_hSlider
TGHScrollBar * m_hSlider
Definition: FWTableWidget.h:111
event
Definition: event.py:1
FWTableWidget::m_headerBackground
TGGC * m_headerBackground
Definition: FWTableWidget.h:119
FWTabularWidget
Definition: FWTabularWidget.h:31