blob: d1cb144ef77bc826124504e0b4179d0ac2cede60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QString>
class SvgView;
QT_BEGIN_NAMESPACE
class QAction;
class QGraphicsView;
class QGraphicsScene;
class QGraphicsRectItem;
class QLabel;
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow();
bool loadFile(const QString &path);
public slots:
void openFile();
void exportImage();
void setRenderer(int renderMode);
private slots:
void updateZoomLabel();
private:
QAction *m_nativeAction;
QAction *m_glAction;
QAction *m_imageAction;
QAction *m_antialiasingAction;
QAction *m_backgroundAction;
QAction *m_outlineAction;
SvgView *m_view;
QLabel *m_zoomLabel;
QString m_currentPath;
};
#endif
|