Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Fireworks
TableWidget
interface
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
//
20
21
// system include files
22
#include <vector>
23
#include "TGFrame.h"
24
#include "TVirtualX.h"
25
26
// user include files
27
28
// forward declarations
29
class
FWTableManagerBase
;
30
31
class
FWTabularWidget
:
public
TGFrame {
32
public
:
33
static
const
TGGC&
getDefaultGC
();
34
35
static
const
int
kTextBuffer
;
36
static
const
int
kSeperatorWidth
;
37
38
FWTabularWidget
(
FWTableManagerBase
* iManager,
const
TGWindow*
p
=
nullptr
, GContext_t
context
=
getDefaultGC
()());
39
~FWTabularWidget
()
override
;
40
41
// ---------- const member functions ---------------------
42
const
std::vector<unsigned int>&
widthOfTextInColumns
()
const
{
return
m_widthOfTextInColumns
; }
43
UInt_t
verticalOffset
()
const
{
return
m_vOffset
; }
44
UInt_t
horizontalOffset
()
const
{
return
m_hOffset
; }
45
46
// ---------- static member functions --------------------
47
48
// ---------- member functions ---------------------------
49
void
setWidthOfTextInColumns
(
const
std::vector<unsigned int>&);
50
void
DoRedraw
()
override
;
51
TGDimension
GetDefaultSize
()
const override
;
52
53
void
setVerticalOffset
(UInt_t);
54
void
setHorizontalOffset
(UInt_t);
55
56
Bool_t
HandleButton
(Event_t*
event
)
override
;
57
58
void
buttonPressed
(Int_t row, Int_t column, Event_t*
event
, Int_t relX, Int_t relY);
//*SIGNAL*
59
void
buttonReleased
(Int_t row, Int_t column, Event_t*
event
, Int_t relX, Int_t relY);
//*SIGNAL*
60
61
void
dataChanged
();
62
void
needToRedraw
();
63
64
ClassDefOverride
(
FWTabularWidget
, 0);
65
66
void
setLineContext
(GContext_t iContext);
67
void
setBackgroundAreaContext
(GContext_t iContext);
68
69
void
disableGrowInWidth
() {
m_growInWidth
=
false
; }
70
71
private
:
72
//FWTabularWidget(const FWTabularWidget&); // stop default
73
74
//const FWTabularWidget& operator=(const FWTabularWidget&); // stop default
75
76
// ---------- member data --------------------------------
77
78
void
translateToRowColumn
(Int_t iX, Int_t iY, Int_t& oRow, Int_t& oCol, Int_t& oRelX, Int_t& oRelY)
const
;
79
80
FWTableManagerBase
*
m_table
;
81
std::vector<unsigned int>
m_widthOfTextInColumns
;
82
std::vector<unsigned int>
m_widthOfTextInColumnsMax
;
83
int
m_textHeight
;
84
int
m_tableWidth
;
85
86
unsigned
int
m_vOffset
;
87
unsigned
int
m_hOffset
;
88
89
GContext_t
m_normGC
;
90
GContext_t
m_backgroundGC
;
91
92
bool
m_growInWidth
;
93
};
94
95
#endif
FWTabularWidget::buttonReleased
void buttonReleased(Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY)
Definition:
FWTabularWidget.cc:210
FWTabularWidget
Definition:
FWTabularWidget.h:31
edmPickEvents.event
tuple event
Definition:
edmPickEvents.py:273
FWTabularWidget::translateToRowColumn
void translateToRowColumn(Int_t iX, Int_t iY, Int_t &oRow, Int_t &oCol, Int_t &oRelX, Int_t &oRelY) const
Definition:
FWTabularWidget.cc:162
FWTabularWidget::HandleButton
Bool_t HandleButton(Event_t *event) override
Definition:
FWTabularWidget.cc:132
FWTabularWidget::m_vOffset
unsigned int m_vOffset
Definition:
FWTabularWidget.h:86
FWTabularWidget::DoRedraw
void DoRedraw() override
Definition:
FWTabularWidget.cc:221
FWTabularWidget::setLineContext
void setLineContext(GContext_t iContext)
Definition:
FWTabularWidget.cc:294
FWTabularWidget::m_tableWidth
int m_tableWidth
Definition:
FWTabularWidget.h:84
FWTabularWidget::GetDefaultSize
TGDimension GetDefaultSize() const override
Definition:
FWTabularWidget.cc:300
FWTableManagerBase
Definition:
FWTableManagerBase.h:44
FWTabularWidget::buttonPressed
void buttonPressed(Int_t row, Int_t column, Event_t *event, Int_t relX, Int_t relY)
Definition:
FWTabularWidget.cc:200
FWTabularWidget::FWTabularWidget
FWTabularWidget(FWTableManagerBase *iManager, const TGWindow *p=nullptr, GContext_t context=getDefaultGC()())
Definition:
FWTabularWidget.cc:38
FWTabularWidget::setWidthOfTextInColumns
void setWidthOfTextInColumns(const std::vector< unsigned int > &)
Definition:
FWTabularWidget.cc:92
FWTabularWidget::verticalOffset
UInt_t verticalOffset() const
Definition:
FWTabularWidget.h:43
FWTabularWidget::~FWTabularWidget
~FWTabularWidget() override
Definition:
FWTabularWidget.cc:68
FWTabularWidget::needToRedraw
void needToRedraw()
Definition:
FWTabularWidget.cc:90
FWTabularWidget::getDefaultGC
static const TGGC & getDefaultGC()
Definition:
FWTabularWidget.cc:319
FWTabularWidget::m_backgroundGC
GContext_t m_backgroundGC
Definition:
FWTabularWidget.h:90
FWTabularWidget::m_normGC
GContext_t m_normGC
Definition:
FWTabularWidget.h:89
visDQMUpload.context
context
Definition:
visDQMUpload.py:30
FWTabularWidget::m_widthOfTextInColumns
std::vector< unsigned int > m_widthOfTextInColumns
Definition:
FWTabularWidget.h:81
FWTabularWidget::disableGrowInWidth
void disableGrowInWidth()
Definition:
FWTabularWidget.h:69
FWTabularWidget::setHorizontalOffset
void setHorizontalOffset(UInt_t)
Definition:
FWTabularWidget.cc:125
FWTabularWidget::widthOfTextInColumns
const std::vector< unsigned int > & widthOfTextInColumns() const
Definition:
FWTabularWidget.h:42
FWTabularWidget::ClassDefOverride
ClassDefOverride(FWTabularWidget, 0)
FWTabularWidget::m_textHeight
int m_textHeight
Definition:
FWTabularWidget.h:83
FWTabularWidget::m_hOffset
unsigned int m_hOffset
Definition:
FWTabularWidget.h:87
FWTabularWidget::horizontalOffset
UInt_t horizontalOffset() const
Definition:
FWTabularWidget.h:44
FWTabularWidget::m_table
FWTableManagerBase * m_table
Definition:
FWTabularWidget.h:80
FWTabularWidget::setBackgroundAreaContext
void setBackgroundAreaContext(GContext_t iContext)
Definition:
FWTabularWidget.cc:295
AlCaHLTBitMon_ParallelJobs.p
tuple p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
FWTabularWidget::m_widthOfTextInColumnsMax
std::vector< unsigned int > m_widthOfTextInColumnsMax
Definition:
FWTabularWidget.h:82
FWTabularWidget::kSeperatorWidth
static const int kSeperatorWidth
Definition:
FWTabularWidget.h:36
FWTabularWidget::kTextBuffer
static const int kTextBuffer
Definition:
FWTabularWidget.h:35
FWTabularWidget::m_growInWidth
bool m_growInWidth
Definition:
FWTabularWidget.h:92
FWTabularWidget::setVerticalOffset
void setVerticalOffset(UInt_t)
Definition:
FWTabularWidget.cc:119
FWTabularWidget::dataChanged
void dataChanged()
Definition:
FWTabularWidget.cc:85
Generated for CMSSW Reference Manual by
1.8.5