ACMX 2.139.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
prop.hpp
Go to the documentation of this file.
1#ifndef PROP_HPP
2#define PROP_HPP
3
4#include "backend.hpp"
5
6/**
7 * @file prop.hpp
8 * @brief Dialog for selecting executable and resource directories.
9 */
10#include <QComboBox>
11#include <QDialog>
12#include <QDir>
13#include <QFileDialog>
14#include <QGroupBox>
15#include <QHBoxLayout>
16#include <QLabel>
17#include <QLineEdit>
18#include <QMessageBox>
19#include <QPushButton>
20#include <QSettings>
21#include <QVBoxLayout>
22
23/**
24 * @brief Launcher properties dialog for executable/shader/screenshot paths.
25 */
26class PropWindow : public QDialog {
27 Q_OBJECT
28 public:
29 explicit PropWindow(acmx2::Backend backend, QWidget *parent = nullptr);
30
31 private:
32 void init();
33 void selectExecutable();
37 void restoreDefaults();
40
41 public:
42 QLineEdit *exePathLineEdit;
45 QComboBox *shaderCompilerComboBox = nullptr;
46 QLineEdit *shaderCompilerPathLineEdit = nullptr;
47};
48
49#endif
50#include "backend.hpp"
PropWindow(acmx2::Backend backend, QWidget *parent=nullptr)
Definition prop.cpp:8
void restoreDefaults()
Definition prop.cpp:185
void selectScreenshotDirectory()
Definition prop.cpp:165
void selectShaderCompiler()
Definition prop.cpp:175
void selectExecutable()
Definition prop.cpp:145
acmx2::Backend active_backend
Definition prop.hpp:39
void selectShaderDirectory()
Definition prop.cpp:155
QLineEdit * shaderCompilerPathLineEdit
Definition prop.hpp:46
QLineEdit * shaderDirLineEdit
Definition prop.hpp:43
QComboBox * shaderCompilerComboBox
Definition prop.hpp:45
QString getDefaultPicturesDirectory()
Definition prop.cpp:133
QLineEdit * exePathLineEdit
Definition prop.hpp:42
void init()
Definition prop.cpp:10
QLineEdit * screenshotDirLineEdit
Definition prop.hpp:44
Backend
Definition backend.hpp:8