Changeset 12134 for trunk/FACT++


Ignore:
Timestamp:
09/17/11 15:09:08 (13 years ago)
Author:
tbretz
Message:
Another improvement to the mouse tracking
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/FactGui.h

    r12131 r12134  
    34023402        const PixelMapEntry &entry = fPixelMap.index(isw);
    34033403
    3404         const int ihw = entry.hw();
    3405 
    3406         const int idx = fPatchHW[isw];
    3407         int ii = 0;
    3408         for (; ii<160;ii++)
    3409             if (idx ==fPatchMapHW[ii])
    3410                 break;
    3411 
    3412         const int patch = idx%4;
    3413         const int board = (idx/4)%10;
    3414         const int crate = (idx/4)/10;
    34153404        QString tipText;
    34163405        tipText += fRatesCanv->GetName();
    34173406        ostringstream str;
    3418         str << "  ||  Pixel=" << isw << " (hw=" << ihw << ")  ||  Patch=" << ii << " (hw=" << fPatchMapHW[idx] << "; Crate=" << crate << " Board=" << board << " Patch=" << patch << ")";
     3407        str << setfill('0') <<
     3408            "  ||  HW: " << entry.crate() << "|" << entry.board() << "|" << entry.patch() << "|" << entry.pixel() << " (crate|board|patch|pixel)" <<
     3409            "  ||  HV: " << entry.hv_board << "|" << setw(2) << entry.hv_channel << " (board|channel)" <<
     3410            "  ||  ID: " << isw;
     3411
     3412
    34193413        tipText += str.str().c_str();
    34203414        fStatusBar->showMessage(tipText, 3000);
     
    40994093        fEventCanv4->setMouseTracking(true);
    41004094
     4095        fBiasCamV->setMouseTracking(true);
     4096        fBiasCamA->setMouseTracking(true);
     4097
    41014098        fFeedbackDevCam->setMouseTracking(true);
    41024099        fFeedbackCmdCam->setMouseTracking(true);
     
    41294126                this, SLOT(slot_CameraMouseMove(int)));
    41304127
     4128        connect(fBiasCamV, SIGNAL(signalPixelMoveOver(int)),
     4129                this, SLOT(slot_CameraMouseMove(int)));
     4130        connect(fBiasCamA, SIGNAL(signalPixelMoveOver(int)),
     4131                this, SLOT(slot_CameraMouseMove(int)));
     4132
    41314133        connect(fFeedbackDevCam, SIGNAL(signalPixelMoveOver(int)),
    41324134                this, SLOT(slot_CameraMouseMove(int)));
Note: See TracChangeset for help on using the changeset viewer.