~charon-developers/+junk/charon-utils-structure-texture-decomp

« back to all changes in this revision

Viewing changes to src/qt/vigraqt/qimageviewer.hxx

  • Committer: Stephan Meister
  • Date: 2013-07-24 14:07:15 UTC
  • Revision ID: stephan.meister@iwr.uni-heidelberg.de-20130724140715-xtff9kb6k6ujtusr
highlight scanline and horizontal line under mouse cursor in all views when middle mouse button is pressed

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
         */
240
240
    virtual void slideBy(QPoint const &diff);
241
241
 
 
242
        virtual void drawHighline(const QPoint &pos,bool draw = false) ;
 
243
 
242
244
signals:
243
 
    void mouseOver(int x, int y);
 
245
    void mouseOver(int x, int y,Qt::MouseButtons buttons);
 
246
        void mouseReleased() ;
244
247
 
245
248
    void imageChanged(); // FIXME: add ROI param
246
249
    void zoomLevelChanged(int zoomLevel);
268
271
    QPointF centerPixel_;
269
272
    int     zoomLevel_;
270
273
 
 
274
        bool _drawHighline ;
 
275
        QPoint _highlinePos ;
 
276
 
271
277
  private:
272
278
    inline void computeUpperLeft()
273
279
    {
280
286
    bool    pendingAutoZoom_;
281
287
    int     minAutoZoom_, maxAutoZoom_;
282
288
    QPoint  lastMousePosition_;
 
289
 
283
290
};
284
291
 
285
292
QPoint QImageViewerBase::windowCoordinate(QPointF const & imagePoint) const