mirror of
https://github.com/vcmi/vcmi.git
synced 2025-10-08 23:22:25 +02:00
38 lines
639 B
C++
38 lines
639 B
C++
/*
|
|
* templateview.h, part of VCMI engine
|
|
*
|
|
* Authors: listed in file AUTHORS in main folder
|
|
*
|
|
* License: GNU General Public License v2.0 or later
|
|
* Full text of license available in license.txt file, in main folder
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QGraphicsView>
|
|
#include <QGraphicsPixmapItem>
|
|
|
|
class TemplateScene : public QGraphicsScene
|
|
{
|
|
Q_OBJECT;
|
|
public:
|
|
TemplateScene();
|
|
};
|
|
|
|
class TemplateView : public QGraphicsView
|
|
{
|
|
Q_OBJECT
|
|
|
|
int zoomlevel = 0;
|
|
|
|
public:
|
|
TemplateView(QWidget * parent);
|
|
|
|
void setZoomLevel(int level);
|
|
void changeZoomLevel(bool increase);
|
|
void autoFit();
|
|
|
|
void wheelEvent(QWheelEvent * e) override;
|
|
};
|