18 #include "TGResourcePool.h"
43 m_widthOfTextInColumns(m_table->numberOfColumns(),static_cast<unsigned int>(0)),
47 m_backgroundGC(ULONG_MAX),
62 gVirtualX->GrabButton(fId,kAnyButton, kAnyModifier, kButtonPressMask|kButtonReleaseMask,
kNone,
kNone);
63 m_table->Connect(
"visualPropertiesChanged()",
"FWTabularWidget",
this,
"needToRedraw()");
73 m_table->Disconnect(
"visualPropertiesChanged()",
this,
"needToRedraw()");
101 fClient->NeedRedraw(
this);
139 fClient->NeedRedraw(
this);
147 fClient->NeedRedraw(
this);
154 if (event->fType==kButtonPress) {
155 Int_t row,
col,relX,relY;
158 if (row >= 0 && row < m_table->numberOfRows() && col >= 0 && col < m_table->numberOfColumns()) {
167 if (event->fType==kButtonRelease) {
168 Int_t row,
col,relX,relY;
171 if (row >= 0 && row < m_table->numberOfRows() && col >= 0 && col < m_table->numberOfColumns()) {
227 args[1]=(Long_t)column;
228 args[2]=(Long_t)event;
229 args[3]=(Long_t)relX;
230 args[4]=(Long_t)relY;
231 Emit(
"buttonPressed(Int_t,Int_t,Event_t*,Int_t,Int_t)",args);
239 args[1]=(Long_t)column;
240 args[2]=(Long_t)event;
241 args[3]=(Long_t)relX;
242 args[4]=(Long_t)relY;
243 Emit(
"buttonReleased(Int_t,Int_t,Event_t*,Int_t,Int_t)",args);
261 gVirtualX->DrawLine(fId,
m_normGC, xOrigin, y, visibleWidth, y);
266 Int_t startRow, startColumn,relX,relY;
268 if(startRow<0) { startRow = 0;}
269 if(startColumn<0) { startColumn=0;}
270 Int_t endRow, endColumn;
272 if(endRow >= numRows) {
282 Int_t columnOffset=kSeperatorWidth+
kTextBuffer+xOrigin;
284 itTextWidth != itEnd; ++itTextWidth) {
290 for(
int row = startRow; row <= endRow; ++row) {
293 int x = columnOffset;
295 for(
int col = startColumn;
297 ++
col,++itTextWidth) {
303 gVirtualX->DrawLine(fId,
m_normGC, xOrigin, y, visibleWidth, y);
308 gVirtualX->DrawLine(fId,
m_normGC,x,0,x,y);
314 gVirtualX->DrawLine(fId,
m_normGC,x,0,x,y);
339 if(! (GetOptions() & kFixedWidth) ) {
343 if(! (GetOptions() & kFixedHeight) ) {
348 return TGDimension(w, h);
357 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