17 #include "TGResourcePool.h" 42 m_widthOfTextInColumns(m_table->numberOfColumns(),static_cast<unsigned
int>(0)),
46 m_backgroundGC(ULONG_MAX),
61 gVirtualX->GrabButton(fId,kAnyButton, kAnyModifier, kButtonPressMask|kButtonReleaseMask,
kNone,
kNone);
62 m_table->Connect(
"visualPropertiesChanged()",
"FWTabularWidget",
this,
"needToRedraw()");
72 m_table->Disconnect(
"visualPropertiesChanged()",
this,
"needToRedraw()");
153 if (event->fType==kButtonPress) {
154 Int_t row,
col,relX,relY;
157 if (row >= 0 && row < m_table->numberOfRows() && col >= 0 && col < m_table->numberOfColumns()) {
166 if (event->fType==kButtonRelease) {
167 Int_t row,
col,relX,relY;
170 if (row >= 0 && row < m_table->numberOfRows() && col >= 0 && col < m_table->numberOfColumns()) {
226 args[1]=(Long_t)column;
227 args[2]=(Long_t)event;
228 args[3]=(Long_t)relX;
229 args[4]=(Long_t)relY;
230 Emit(
"buttonPressed(Int_t,Int_t,Event_t*,Int_t,Int_t)",args);
238 args[1]=(Long_t)column;
239 args[2]=(Long_t)event;
240 args[3]=(Long_t)relX;
241 args[4]=(Long_t)relY;
242 Emit(
"buttonReleased(Int_t,Int_t,Event_t*,Int_t,Int_t)",args);
260 gVirtualX->DrawLine(fId,
m_normGC, xOrigin, y, visibleWidth, y);
265 Int_t startRow, startColumn,relX,relY;
267 if(startRow<0) { startRow = 0;}
268 if(startColumn<0) { startColumn=0;}
269 Int_t endRow, endColumn;
271 if(endRow >= numRows) {
281 Int_t columnOffset=kSeperatorWidth+
kTextBuffer+xOrigin;
283 itTextWidth != itEnd; ++itTextWidth) {
289 for(
int row = startRow; row <= endRow; ++row) {
292 int x = columnOffset;
294 for(
int col = startColumn;
296 ++
col,++itTextWidth) {
302 gVirtualX->DrawLine(fId,
m_normGC, xOrigin, y, visibleWidth, y);
307 gVirtualX->DrawLine(fId,
m_normGC,x,0,x,y);
313 gVirtualX->DrawLine(fId,
m_normGC,x,0,x,y);
338 if(! (GetOptions() & kFixedWidth) ) {
342 if(! (GetOptions() & kFixedHeight) ) {
347 return TGDimension(w, h);
356 static const TGGC* s_default = gClient->GetResourcePool()->GetFrameGC();
virtual FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const =0
virtual int numberOfRows() const =0
Number of rows in the table.
virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight)=0
virtual std::vector< unsigned int > maxWidthForColumns() const
for each column in the table this returns the present maximum width for that column ...
ClassImp(AliDaqEventHeader) ClassImp(AliDaqPosition2D) ClassImp(AliDaqPositionCOPS) ClassImp(AliDaqTilt) ClassImp(AliDaqDistance) ClassImp(AliDaqTemperature) ClassImp(CocoaDaqRootEvent) CocoaDaqRootEvent
virtual int numberOfColumns() const =0
Number of columns in the table.
virtual void buttonEvent(Event_t *iClickEvent, int iRelClickX, int iRelClickY)
virtual unsigned int cellHeight() const
require all cells to be the same height