-
Notifications
You must be signed in to change notification settings - Fork 0
/
pcsxwindow.h
55 lines (47 loc) · 1.33 KB
/
pcsxwindow.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 PCSXWINDOW_H
#define PCSXWINDOW_H
#include <QMainWindow>
#include <QWidget>
#include <iostream>
#include <QString>
#include <QSlider>
#include <QVBoxLayout>
#include <QPushButton>
#include <QLineEdit>
#include "filemanager.h"
#include "pcsxlabel.h"
#include <QGridLayout>
#include <vector>
enum Options { FULLSCREEN, NOHACK };
static const char * optionsName[] = { "--fullscreen ", "--nohacks " };
class PcsxWindow : public QMainWindow {
Q_OBJECT
public:
explicit PcsxWindow(QWidget *parent = 0);
void createMenu();
void createLabels(std::vector<std::string> filesImages);
void addSettings();
void addSlider();
public slots:
void launchGame(QString gameName);
void handleList();
void handleThumbnails();
void handleLabelSize(int size);
void handleLineEdit(QString);
void about();
void handleOption(int option);
void saveSettings();
private:
std::vector<PcsxLabel *> _labels;
std::vector<QAction *> _actions;
std::string _options;
QWidget *_screen;
QLineEdit *_lineEdit;
QVBoxLayout *_vboxLayout;
QPushButton *_list;
QPushButton *_thumbnail;
QSlider *_slider;
QGridLayout *_gridLayout;
FileManager *_fileManager;
};
#endif // PCSXWINDOW_H