-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
55 lines (48 loc) · 1.41 KB
/
mainwindow.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
46
47
48
49
50
51
52
53
54
55
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QStringList>
#include <QPushButton>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
void showPicture();
void resizeEvent(QResizeEvent* e);
void closeEvent(QCloseEvent *event);
void hideAndEmpty();
void showButtons();
unsigned int getInRow();
unsigned int getInColumn();
void setButtonsMinimumSize();
~MainWindow();
protected:
void changeEvent(QEvent *e);
QPushButton *buttons[100][100];
bool fullscreen;
private:
Ui::MainWindow *ui;
QStringList files; // List of images found in opened dir
unsigned int current; // Offset in files array of current displayed image
QString path; // Name of opened directory
unsigned int inRow;
unsigned int inColumn;
private slots:
void on_actionSettings_triggered();
void on_actionLast_triggered();
void on_actionFirst_triggered();
void on_actionContents_triggered();
void on_actionAbout_Qt_triggered();
void on_actionUnhide_triggered();
void on_actionAbout_triggered();
void on_actionPrevious_triggered();
void on_actionNext_triggered();
void on_actionFullscreen_triggered();
void on_actionClose_triggered();
void on_actionClose_dir_triggered();
void on_actionOpen_dir_triggered();
};
#endif // MAINWINDOW_H