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()");
100 fClient->NeedRedraw(
this);
138 fClient->NeedRedraw(
this);
146 fClient->NeedRedraw(
this);
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 int numberOfColumns() const =0
Number of columns 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 ...
virtual int numberOfRows() const =0
Number of rows in the table.
virtual FWTableCellRendererBase * cellRenderer(int iSortedRowNumber, int iCol) const =0
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
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
virtual void buttonEvent(Event_t *iClickEvent, int iRelClickX, int iRelClickY)
virtual unsigned int cellHeight() const
require all cells to be the same height