mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Correcting errors in words and their meanings. Update the Russian language. Now look better.
35 lines
765 B
C++
35 lines
765 B
C++
#ifndef __MAGNIFYING_GLASS
|
|
#define __MAGNIFYING_GLASS
|
|
|
|
#include <QLabel>
|
|
#include <QtGui>
|
|
#include <QMouseEvent>
|
|
#include <QWidget>
|
|
|
|
class MagnifyingGlass : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
private:
|
|
float zoomLevel;
|
|
void setup(const QSize & size);
|
|
void keyPressEvent(QKeyEvent * event);
|
|
public:
|
|
MagnifyingGlass(int width,int height,QWidget * parent);
|
|
MagnifyingGlass(const QSize & size, QWidget * parent);
|
|
void mouseMoveEvent(QMouseEvent * event);
|
|
public slots:
|
|
void updateImage(int x, int y);
|
|
void updateImage();
|
|
void wheelEvent(QWheelEvent * event);
|
|
void zoomIn();
|
|
void zoomOut();
|
|
void sizeUp();
|
|
void sizeDown();
|
|
void heightUp();
|
|
void heightDown();
|
|
void widthUp();
|
|
void widthDown();
|
|
};
|
|
|
|
#endif
|