-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_window.h
48 lines (37 loc) · 1.06 KB
/
main_window.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
43
44
45
#ifndef _MAIN_WINDOW_H_
#define _MAIN_WINDOW_H_
#include "ui_main_window.h"
class TabPage;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget* parent = nullptr);
private slots:
void aboutQT();
void about();
void chooseFiles();
void closeTab(int index);
void displayCurrentTab();
void resizeDialog();
void resizeOpts(int height, int width, bool applyToAll, bool sameDir,
const QString& outdir, int quality);
void zoomIn();
void zoomOut();
void setTabActionsEnabled(bool flag);
void closeCurrentTab();
void loadErrorHandler(const QString& fullpath);
void saveImage(int index, int height, int width, bool sameDir,
const QString& outdir, int quality) ;
void closeAllTabs();
protected:
void dropEvent(QDropEvent* event);
void dragEnterEvent(QDragEnterEvent *event);
void mouseDoubleClickEvent(QMouseEvent* event);
private:
Ui::MainWindow ui;
int lastTabIdx;
void addTabs(const QStringList& pathList);
void setTabIcon(int index);
};
#endif