-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewer_mainwin.h
42 lines (39 loc) · 909 Bytes
/
viewer_mainwin.h
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QDragEnterEvent>
#include <QDropEvent>
#include <QFile>
#include <QFileInfo>
#include "aboutdialog.h"
#include "gtranslatedialog.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class viewer_mainwin : public QMainWindow
{
Q_OBJECT
public:
viewer_mainwin(QWidget *parent = nullptr);
QString currentPath;
~viewer_mainwin();
public slots:
void fileOpen(const QString &fname = "");
private:
void iconSetup();
void actionSetup();
void dragEnterEvent(QDragEnterEvent *);
void dropEvent(QDropEvent *);
QString loadFile(QString);
Ui::MainWindow *ui;
AboutDialog *about_;
GTranslateDialog *trdlg;
bool is_empty;
bool is_opened;
private slots:
void filePrint();
void showabout();
void setData();
void trDlgOpen();
};
#endif // MAINWINDOW_H