(Qt) Combine Qt header files
This commit is contained in:
parent
a23127c51b
commit
3336e61859
|
@ -536,17 +536,10 @@ ifeq ($(HAVE_QT), 1)
|
||||||
MOC_HEADERS += ui/drivers/ui_qt.h \
|
MOC_HEADERS += ui/drivers/ui_qt.h \
|
||||||
ui/drivers/qt/ui_qt_load_core_window.h \
|
ui/drivers/qt/ui_qt_load_core_window.h \
|
||||||
ui/drivers/qt/gridview.h \
|
ui/drivers/qt/gridview.h \
|
||||||
ui/drivers/qt/coreoptionsdialog.h \
|
ui/drivers/qt/qt_dialogs.h \
|
||||||
ui/drivers/qt/filedropwidget.h \
|
ui/drivers/qt/qt_widgets.h
|
||||||
ui/drivers/qt/coreinfodialog.h \
|
|
||||||
ui/drivers/qt/playlistentrydialog.h \
|
|
||||||
ui/drivers/qt/viewoptionsdialog.h
|
|
||||||
ifeq ($(HAVE_MENU), 1)
|
ifeq ($(HAVE_MENU), 1)
|
||||||
ifeq ($(HAVE_SHADERS_COMMON), 1)
|
MOC_HEADERS += ui/drivers/qt/qt_options.h
|
||||||
MOC_HEADERS += ui/drivers/qt/shaderparamsdialog.h
|
|
||||||
endif
|
|
||||||
MOC_HEADERS += ui/drivers/qt/settingswidgets.h \
|
|
||||||
ui/drivers/qt/qt_options.h
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DEFINES += -DHAVE_MAIN
|
DEFINES += -DHAVE_MAIN
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
#ifndef COREINFODIALOG_H
|
|
||||||
#define COREINFODIALOG_H
|
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
class QFormLayout;
|
|
||||||
class MainWindow;
|
|
||||||
|
|
||||||
class CoreInfoDialog : public QDialog
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
CoreInfoDialog(MainWindow *mainwindow, QWidget *parent = 0);
|
|
||||||
public slots:
|
|
||||||
void showCoreInfo();
|
|
||||||
private:
|
|
||||||
QFormLayout *m_formLayout;
|
|
||||||
MainWindow *m_mainwindow;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,42 +0,0 @@
|
||||||
#ifndef COREOPTIONSDIALOG_H
|
|
||||||
#define COREOPTIONSDIALOG_H
|
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
#include <QPointer>
|
|
||||||
|
|
||||||
class QCloseEvent;
|
|
||||||
class QResizeEvent;
|
|
||||||
class QVBoxLayout;
|
|
||||||
class QFormLayout;
|
|
||||||
class QLayout;
|
|
||||||
class QScrollArea;
|
|
||||||
|
|
||||||
class CoreOptionsDialog : public QDialog
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
CoreOptionsDialog(QWidget *parent = 0);
|
|
||||||
~CoreOptionsDialog();
|
|
||||||
signals:
|
|
||||||
void closed();
|
|
||||||
void resized(QSize size);
|
|
||||||
public slots:
|
|
||||||
void reload();
|
|
||||||
private slots:
|
|
||||||
void clearLayout();
|
|
||||||
void buildLayout();
|
|
||||||
void onSaveGameSpecificOptions();
|
|
||||||
void onSaveFolderSpecificOptions();
|
|
||||||
void onCoreOptionComboBoxCurrentIndexChanged(int index);
|
|
||||||
void onCoreOptionResetClicked();
|
|
||||||
void onCoreOptionResetAllClicked();
|
|
||||||
private:
|
|
||||||
QPointer<QVBoxLayout> m_layout;
|
|
||||||
QPointer<QScrollArea> m_scrollArea;
|
|
||||||
protected:
|
|
||||||
void closeEvent(QCloseEvent *event);
|
|
||||||
void resizeEvent(QResizeEvent *event);
|
|
||||||
void paintEvent(QPaintEvent *event);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,28 +0,0 @@
|
||||||
#ifndef FILEDROPWIDGET_H
|
|
||||||
#define FILEDROPWIDGET_H
|
|
||||||
|
|
||||||
#include <QStackedWidget>
|
|
||||||
|
|
||||||
class QDragEnterEvent;
|
|
||||||
class QDropEvent;
|
|
||||||
class QKeyEvent;
|
|
||||||
class QPaintEvent;
|
|
||||||
|
|
||||||
class FileDropWidget : public QStackedWidget
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
FileDropWidget(QWidget *parent = 0);
|
|
||||||
signals:
|
|
||||||
void filesDropped(QStringList files);
|
|
||||||
void enterPressed();
|
|
||||||
void deletePressed();
|
|
||||||
protected:
|
|
||||||
void dragEnterEvent(QDragEnterEvent *event);
|
|
||||||
void dragMoveEvent(QDragMoveEvent *event);
|
|
||||||
void dropEvent(QDropEvent *event);
|
|
||||||
void keyPressEvent(QKeyEvent *event);
|
|
||||||
void paintEvent(QPaintEvent *event);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,45 +0,0 @@
|
||||||
#ifndef PLAYLISTENTRYDIALOG_H
|
|
||||||
#define PLAYLISTENTRYDIALOG_H
|
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
class QSettings;
|
|
||||||
class QLineEdit;
|
|
||||||
class QComboBox;
|
|
||||||
class QCheckBox;
|
|
||||||
class MainWindow;
|
|
||||||
|
|
||||||
class PlaylistEntryDialog : public QDialog
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
PlaylistEntryDialog(MainWindow *mainwindow, QWidget *parent = 0);
|
|
||||||
const QHash<QString, QString> getSelectedCore();
|
|
||||||
const QString getSelectedDatabase();
|
|
||||||
const QString getSelectedName();
|
|
||||||
const QString getSelectedPath();
|
|
||||||
const QStringList getSelectedExtensions();
|
|
||||||
bool filterInArchive();
|
|
||||||
bool nameFieldEnabled();
|
|
||||||
void setEntryValues(const QHash<QString, QString> &contentHash);
|
|
||||||
public slots:
|
|
||||||
bool showDialog(const QHash<QString, QString> &hash = QHash<QString, QString>());
|
|
||||||
void hideDialog();
|
|
||||||
void onAccepted();
|
|
||||||
void onRejected();
|
|
||||||
private slots:
|
|
||||||
void onPathClicked();
|
|
||||||
private:
|
|
||||||
void loadPlaylistOptions();
|
|
||||||
|
|
||||||
MainWindow *m_mainwindow;
|
|
||||||
QSettings *m_settings;
|
|
||||||
QLineEdit *m_nameLineEdit;
|
|
||||||
QLineEdit *m_pathLineEdit;
|
|
||||||
QLineEdit *m_extensionsLineEdit;
|
|
||||||
QComboBox *m_coreComboBox;
|
|
||||||
QComboBox *m_databaseComboBox;
|
|
||||||
QCheckBox *m_extensionArchiveCheckBox;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -29,10 +29,7 @@
|
||||||
#include <QStackedLayout>
|
#include <QStackedLayout>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
|
|
||||||
#include "coreoptionsdialog.h"
|
#include "qt_dialogs.h"
|
||||||
#include "viewoptionsdialog.h"
|
|
||||||
#include "coreinfodialog.h"
|
|
||||||
#include "playlistentrydialog.h"
|
|
||||||
#include "../ui_qt.h"
|
#include "../ui_qt.h"
|
||||||
|
|
||||||
#ifndef CXX_BUILD
|
#ifndef CXX_BUILD
|
||||||
|
@ -69,12 +66,6 @@ extern "C" {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_MENU)
|
|
||||||
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
|
||||||
#include "shaderparamsdialog.h"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "qt_options.h"
|
#include "qt_options.h"
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
|
#if defined(_MSC_VER) && !defined(_XBOX) && (_MSC_VER >= 1500 && _MSC_VER < 1900)
|
||||||
|
|
|
@ -0,0 +1,245 @@
|
||||||
|
#ifndef COREINFODIALOG_H
|
||||||
|
#define COREINFODIALOG_H
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
#include <QPointer>
|
||||||
|
|
||||||
|
#include <retro_common_api.h>
|
||||||
|
|
||||||
|
#ifndef CXX_BUILD
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "../../../gfx/video_shader_parse.h"
|
||||||
|
|
||||||
|
#ifndef CXX_BUILD
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
class QFormLayout;
|
||||||
|
class QCloseEvent;
|
||||||
|
class QResizeEvent;
|
||||||
|
class QVBoxLayout;
|
||||||
|
class QLayout;
|
||||||
|
class QScrollArea;
|
||||||
|
class MainWindow;
|
||||||
|
class QSettings;
|
||||||
|
class QLineEdit;
|
||||||
|
class QCheckBox;
|
||||||
|
class QComboBox;
|
||||||
|
class QPushButton;
|
||||||
|
class QColor;
|
||||||
|
class QLabel;
|
||||||
|
class QSpinBox;
|
||||||
|
|
||||||
|
#ifdef HAVE_MENU
|
||||||
|
class QWidget;
|
||||||
|
class OptionsCategory;
|
||||||
|
class QListWidget;
|
||||||
|
class QStackedLayout;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
class CoreInfoDialog : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
CoreInfoDialog(MainWindow *mainwindow, QWidget *parent = 0);
|
||||||
|
public slots:
|
||||||
|
void showCoreInfo();
|
||||||
|
private:
|
||||||
|
QFormLayout *m_formLayout;
|
||||||
|
MainWindow *m_mainwindow;
|
||||||
|
};
|
||||||
|
|
||||||
|
class CoreOptionsDialog : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
CoreOptionsDialog(QWidget *parent = 0);
|
||||||
|
~CoreOptionsDialog();
|
||||||
|
signals:
|
||||||
|
void closed();
|
||||||
|
void resized(QSize size);
|
||||||
|
public slots:
|
||||||
|
void reload();
|
||||||
|
private slots:
|
||||||
|
void clearLayout();
|
||||||
|
void buildLayout();
|
||||||
|
void onSaveGameSpecificOptions();
|
||||||
|
void onSaveFolderSpecificOptions();
|
||||||
|
void onCoreOptionComboBoxCurrentIndexChanged(int index);
|
||||||
|
void onCoreOptionResetClicked();
|
||||||
|
void onCoreOptionResetAllClicked();
|
||||||
|
private:
|
||||||
|
QPointer<QVBoxLayout> m_layout;
|
||||||
|
QPointer<QScrollArea> m_scrollArea;
|
||||||
|
protected:
|
||||||
|
void closeEvent(QCloseEvent *event);
|
||||||
|
void resizeEvent(QResizeEvent *event);
|
||||||
|
void paintEvent(QPaintEvent *event);
|
||||||
|
};
|
||||||
|
|
||||||
|
class ShaderPass
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ShaderPass(struct video_shader_pass *passToCopy = NULL);
|
||||||
|
~ShaderPass();
|
||||||
|
ShaderPass& operator=(const ShaderPass &other);
|
||||||
|
struct video_shader_pass *pass;
|
||||||
|
};
|
||||||
|
|
||||||
|
class ShaderParamsDialog : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
ShaderParamsDialog(QWidget *parent = 0);
|
||||||
|
~ShaderParamsDialog();
|
||||||
|
signals:
|
||||||
|
void closed();
|
||||||
|
void resized(QSize size);
|
||||||
|
public slots:
|
||||||
|
void reload();
|
||||||
|
private slots:
|
||||||
|
void onShaderParamCheckBoxClicked();
|
||||||
|
void onShaderParamSliderValueChanged(int value);
|
||||||
|
void onShaderParamSpinBoxValueChanged(int value);
|
||||||
|
void onShaderParamDoubleSpinBoxValueChanged(double value);
|
||||||
|
void onFilterComboBoxIndexChanged(int index);
|
||||||
|
void onGroupBoxContextMenuRequested(const QPoint &pos);
|
||||||
|
void onParameterLabelContextMenuRequested(const QPoint &pos);
|
||||||
|
void onScaleComboBoxIndexChanged(int index);
|
||||||
|
void onShaderPassMoveDownClicked();
|
||||||
|
void onShaderPassMoveUpClicked();
|
||||||
|
void onShaderResetPass(int pass);
|
||||||
|
void onShaderResetAllPasses();
|
||||||
|
void onShaderRemovePass(int pass);
|
||||||
|
void onShaderRemoveAllPassesClicked();
|
||||||
|
void onShaderRemovePassClicked();
|
||||||
|
void onShaderResetParameter(QString parameter);
|
||||||
|
void onShaderLoadPresetClicked();
|
||||||
|
void onShaderAddPassClicked();
|
||||||
|
void onShaderSavePresetAsClicked();
|
||||||
|
void onShaderSaveCorePresetClicked();
|
||||||
|
void onShaderSaveParentPresetClicked();
|
||||||
|
void onShaderSaveGamePresetClicked();
|
||||||
|
void onShaderSaveGlobalPresetClicked();
|
||||||
|
void onShaderRemoveCorePresetClicked();
|
||||||
|
void onShaderRemoveParentPresetClicked();
|
||||||
|
void onShaderRemoveGamePresetClicked();
|
||||||
|
void onShaderRemoveGlobalPresetClicked();
|
||||||
|
void onShaderApplyClicked();
|
||||||
|
void updateRemovePresetButtonsState();
|
||||||
|
void clearLayout();
|
||||||
|
void buildLayout();
|
||||||
|
private:
|
||||||
|
QString getFilterLabel(unsigned filter);
|
||||||
|
void addShaderParam(struct video_shader_parameter *param, QFormLayout *form);
|
||||||
|
void getShaders(struct video_shader **menu_shader, struct video_shader **video_shader);
|
||||||
|
void operateShaderPreset(bool save, const char *path, unsigned action_type);
|
||||||
|
|
||||||
|
QPointer<QVBoxLayout> m_layout;
|
||||||
|
QPointer<QScrollArea> m_scrollArea;
|
||||||
|
QAction *removeGlobalPresetAction;
|
||||||
|
QAction *removeCorePresetAction;
|
||||||
|
QAction *removeParentPresetAction;
|
||||||
|
QAction *removeGamePresetAction;
|
||||||
|
protected:
|
||||||
|
void closeEvent(QCloseEvent *event);
|
||||||
|
void resizeEvent(QResizeEvent *event);
|
||||||
|
void paintEvent(QPaintEvent *event);
|
||||||
|
};
|
||||||
|
|
||||||
|
class ViewOptionsWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
ViewOptionsWidget(MainWindow *mainwindow, QWidget *parent = 0);
|
||||||
|
public slots:
|
||||||
|
void onAccepted();
|
||||||
|
void onRejected();
|
||||||
|
void loadViewOptions();
|
||||||
|
void saveViewOptions();
|
||||||
|
private slots:
|
||||||
|
void onThemeComboBoxIndexChanged(int index);
|
||||||
|
void onHighlightColorChoose();
|
||||||
|
private:
|
||||||
|
void showOrHideHighlightColor();
|
||||||
|
|
||||||
|
MainWindow *m_mainwindow;
|
||||||
|
QSettings *m_settings;
|
||||||
|
QCheckBox *m_saveGeometryCheckBox;
|
||||||
|
QCheckBox *m_saveDockPositionsCheckBox;
|
||||||
|
QCheckBox *m_saveLastTabCheckBox;
|
||||||
|
QCheckBox *m_showHiddenFilesCheckBox;
|
||||||
|
QComboBox *m_themeComboBox;
|
||||||
|
QSpinBox *m_thumbnailCacheSpinBox;
|
||||||
|
QSpinBox *m_thumbnailDropSizeSpinBox;
|
||||||
|
QComboBox *m_startupPlaylistComboBox;
|
||||||
|
QPushButton *m_highlightColorPushButton;
|
||||||
|
QColor m_highlightColor;
|
||||||
|
QLabel *m_highlightColorLabel;
|
||||||
|
QString m_customThemePath;
|
||||||
|
QCheckBox *m_suggestLoadedCoreFirstCheckBox;
|
||||||
|
QSpinBox *m_allPlaylistsListMaxCountSpinBox;
|
||||||
|
QSpinBox *m_allPlaylistsGridMaxCountSpinBox;
|
||||||
|
};
|
||||||
|
|
||||||
|
class ViewOptionsDialog : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
ViewOptionsDialog(MainWindow *window, QWidget *parent = 0);
|
||||||
|
#ifdef HAVE_MENU
|
||||||
|
void repaintIcons();
|
||||||
|
#endif
|
||||||
|
public slots:
|
||||||
|
void showDialog();
|
||||||
|
void hideDialog();
|
||||||
|
private slots:
|
||||||
|
void onRejected();
|
||||||
|
private:
|
||||||
|
#ifdef HAVE_MENU
|
||||||
|
void addCategory(QWidget *widget, QString name, QString icon);
|
||||||
|
void addCategory(OptionsCategory *category);
|
||||||
|
QVector<OptionsCategory*> m_categoryList;
|
||||||
|
QListWidget *m_optionsList;
|
||||||
|
QStackedLayout *m_optionsStack;
|
||||||
|
#else
|
||||||
|
ViewOptionsWidget *m_viewOptionsWidget;
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
|
class PlaylistEntryDialog : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
PlaylistEntryDialog(MainWindow *mainwindow, QWidget *parent = 0);
|
||||||
|
const QHash<QString, QString> getSelectedCore();
|
||||||
|
const QString getSelectedDatabase();
|
||||||
|
const QString getSelectedName();
|
||||||
|
const QString getSelectedPath();
|
||||||
|
const QStringList getSelectedExtensions();
|
||||||
|
bool filterInArchive();
|
||||||
|
bool nameFieldEnabled();
|
||||||
|
void setEntryValues(const QHash<QString, QString> &contentHash);
|
||||||
|
public slots:
|
||||||
|
bool showDialog(const QHash<QString, QString> &hash = QHash<QString, QString>());
|
||||||
|
void hideDialog();
|
||||||
|
void onAccepted();
|
||||||
|
void onRejected();
|
||||||
|
private slots:
|
||||||
|
void onPathClicked();
|
||||||
|
private:
|
||||||
|
void loadPlaylistOptions();
|
||||||
|
|
||||||
|
MainWindow *m_mainwindow;
|
||||||
|
QSettings *m_settings;
|
||||||
|
QLineEdit *m_nameLineEdit;
|
||||||
|
QLineEdit *m_pathLineEdit;
|
||||||
|
QLineEdit *m_extensionsLineEdit;
|
||||||
|
QComboBox *m_coreComboBox;
|
||||||
|
QComboBox *m_databaseComboBox;
|
||||||
|
QCheckBox *m_extensionArchiveCheckBox;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
|
@ -4,7 +4,7 @@
|
||||||
#include <QButtonGroup>
|
#include <QButtonGroup>
|
||||||
|
|
||||||
#include "qt_options.h"
|
#include "qt_options.h"
|
||||||
#include "viewoptionsdialog.h"
|
#include "qt_dialogs.h"
|
||||||
|
|
||||||
#ifndef CXX_BUILD
|
#ifndef CXX_BUILD
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#include <QScrollArea>
|
#include <QScrollArea>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#include "settingswidgets.h"
|
#include "qt_widgets.h"
|
||||||
|
|
||||||
#include "../../../configuration.h"
|
#include "../../../configuration.h"
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#include <QtConcurrent>
|
#include <QtConcurrent>
|
||||||
|
|
||||||
#include "../ui_qt.h"
|
#include "../ui_qt.h"
|
||||||
#include "playlistentrydialog.h"
|
#include "qt_dialogs.h"
|
||||||
|
|
||||||
#ifndef CXX_BUILD
|
#ifndef CXX_BUILD
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -18,9 +18,8 @@
|
||||||
#include <QAction>
|
#include <QAction>
|
||||||
#include <QMenu>
|
#include <QMenu>
|
||||||
|
|
||||||
#include "filedropwidget.h"
|
#include "qt_widgets.h"
|
||||||
#include "settingswidgets.h"
|
#include "qt_dialogs.h"
|
||||||
#include "playlistentrydialog.h"
|
|
||||||
#include "../ui_qt.h"
|
#include "../ui_qt.h"
|
||||||
|
|
||||||
#ifndef CXX_BUILD
|
#ifndef CXX_BUILD
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
#include <QFormLayout>
|
#include <QFormLayout>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QColorDialog>
|
#include <QColorDialog>
|
||||||
|
#include <QStackedWidget>
|
||||||
|
|
||||||
#ifndef CXX_BUILD
|
#ifndef CXX_BUILD
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -28,6 +29,11 @@ extern "C" {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
class QDragEnterEvent;
|
||||||
|
class QDropEvent;
|
||||||
|
class QKeyEvent;
|
||||||
|
class QPaintEvent;
|
||||||
|
|
||||||
class FormLayout : public QFormLayout
|
class FormLayout : public QFormLayout
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -547,4 +553,21 @@ protected:
|
||||||
QColor color();
|
QColor color();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class FileDropWidget : public QStackedWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
FileDropWidget(QWidget *parent = 0);
|
||||||
|
signals:
|
||||||
|
void filesDropped(QStringList files);
|
||||||
|
void enterPressed();
|
||||||
|
void deletePressed();
|
||||||
|
protected:
|
||||||
|
void dragEnterEvent(QDragEnterEvent *event);
|
||||||
|
void dragMoveEvent(QDragMoveEvent *event);
|
||||||
|
void dropEvent(QDropEvent *event);
|
||||||
|
void keyPressEvent(QKeyEvent *event);
|
||||||
|
void paintEvent(QPaintEvent *event);
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
|
@ -1,96 +0,0 @@
|
||||||
#ifndef SHADERPARAMSDIALOG_H
|
|
||||||
#define SHADERPARAMSDIALOG_H
|
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
#include <QPointer>
|
|
||||||
|
|
||||||
#include <retro_common_api.h>
|
|
||||||
|
|
||||||
#ifndef CXX_BUILD
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../../gfx/video_shader_parse.h"
|
|
||||||
|
|
||||||
#ifndef CXX_BUILD
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class QCloseEvent;
|
|
||||||
class QResizeEvent;
|
|
||||||
class QVBoxLayout;
|
|
||||||
class QFormLayout;
|
|
||||||
class QLayout;
|
|
||||||
class QScrollArea;
|
|
||||||
|
|
||||||
class ShaderPass
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
ShaderPass(struct video_shader_pass *passToCopy = NULL);
|
|
||||||
~ShaderPass();
|
|
||||||
ShaderPass& operator=(const ShaderPass &other);
|
|
||||||
struct video_shader_pass *pass;
|
|
||||||
};
|
|
||||||
|
|
||||||
class ShaderParamsDialog : public QDialog
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
ShaderParamsDialog(QWidget *parent = 0);
|
|
||||||
~ShaderParamsDialog();
|
|
||||||
signals:
|
|
||||||
void closed();
|
|
||||||
void resized(QSize size);
|
|
||||||
public slots:
|
|
||||||
void reload();
|
|
||||||
private slots:
|
|
||||||
void onShaderParamCheckBoxClicked();
|
|
||||||
void onShaderParamSliderValueChanged(int value);
|
|
||||||
void onShaderParamSpinBoxValueChanged(int value);
|
|
||||||
void onShaderParamDoubleSpinBoxValueChanged(double value);
|
|
||||||
void onFilterComboBoxIndexChanged(int index);
|
|
||||||
void onGroupBoxContextMenuRequested(const QPoint &pos);
|
|
||||||
void onParameterLabelContextMenuRequested(const QPoint &pos);
|
|
||||||
void onScaleComboBoxIndexChanged(int index);
|
|
||||||
void onShaderPassMoveDownClicked();
|
|
||||||
void onShaderPassMoveUpClicked();
|
|
||||||
void onShaderResetPass(int pass);
|
|
||||||
void onShaderResetAllPasses();
|
|
||||||
void onShaderRemovePass(int pass);
|
|
||||||
void onShaderRemoveAllPassesClicked();
|
|
||||||
void onShaderRemovePassClicked();
|
|
||||||
void onShaderResetParameter(QString parameter);
|
|
||||||
void onShaderLoadPresetClicked();
|
|
||||||
void onShaderAddPassClicked();
|
|
||||||
void onShaderSavePresetAsClicked();
|
|
||||||
void onShaderSaveCorePresetClicked();
|
|
||||||
void onShaderSaveParentPresetClicked();
|
|
||||||
void onShaderSaveGamePresetClicked();
|
|
||||||
void onShaderSaveGlobalPresetClicked();
|
|
||||||
void onShaderRemoveCorePresetClicked();
|
|
||||||
void onShaderRemoveParentPresetClicked();
|
|
||||||
void onShaderRemoveGamePresetClicked();
|
|
||||||
void onShaderRemoveGlobalPresetClicked();
|
|
||||||
void onShaderApplyClicked();
|
|
||||||
void updateRemovePresetButtonsState();
|
|
||||||
void clearLayout();
|
|
||||||
void buildLayout();
|
|
||||||
private:
|
|
||||||
QString getFilterLabel(unsigned filter);
|
|
||||||
void addShaderParam(struct video_shader_parameter *param, QFormLayout *form);
|
|
||||||
void getShaders(struct video_shader **menu_shader, struct video_shader **video_shader);
|
|
||||||
void operateShaderPreset(bool save, const char *path, unsigned action_type);
|
|
||||||
|
|
||||||
QPointer<QVBoxLayout> m_layout;
|
|
||||||
QPointer<QScrollArea> m_scrollArea;
|
|
||||||
QAction *removeGlobalPresetAction;
|
|
||||||
QAction *removeCorePresetAction;
|
|
||||||
QAction *removeParentPresetAction;
|
|
||||||
QAction *removeGamePresetAction;
|
|
||||||
protected:
|
|
||||||
void closeEvent(QCloseEvent *event);
|
|
||||||
void resizeEvent(QResizeEvent *event);
|
|
||||||
void paintEvent(QPaintEvent *event);
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -1,82 +0,0 @@
|
||||||
#ifndef VIEWOPTIONSDIALOG_H
|
|
||||||
#define VIEWOPTIONSDIALOG_H
|
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
class MainWindow;
|
|
||||||
class QSettings;
|
|
||||||
class QCheckBox;
|
|
||||||
class QComboBox;
|
|
||||||
class QPushButton;
|
|
||||||
class QColor;
|
|
||||||
class QLabel;
|
|
||||||
class QSpinBox;
|
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
|
||||||
class QWidget;
|
|
||||||
class OptionsCategory;
|
|
||||||
class QListWidget;
|
|
||||||
class QStackedLayout;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
class ViewOptionsWidget : public QWidget
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
ViewOptionsWidget(MainWindow *mainwindow, QWidget *parent = 0);
|
|
||||||
public slots:
|
|
||||||
void onAccepted();
|
|
||||||
void onRejected();
|
|
||||||
void loadViewOptions();
|
|
||||||
void saveViewOptions();
|
|
||||||
private slots:
|
|
||||||
void onThemeComboBoxIndexChanged(int index);
|
|
||||||
void onHighlightColorChoose();
|
|
||||||
private:
|
|
||||||
void showOrHideHighlightColor();
|
|
||||||
|
|
||||||
MainWindow *m_mainwindow;
|
|
||||||
QSettings *m_settings;
|
|
||||||
QCheckBox *m_saveGeometryCheckBox;
|
|
||||||
QCheckBox *m_saveDockPositionsCheckBox;
|
|
||||||
QCheckBox *m_saveLastTabCheckBox;
|
|
||||||
QCheckBox *m_showHiddenFilesCheckBox;
|
|
||||||
QComboBox *m_themeComboBox;
|
|
||||||
QSpinBox *m_thumbnailCacheSpinBox;
|
|
||||||
QSpinBox *m_thumbnailDropSizeSpinBox;
|
|
||||||
QComboBox *m_startupPlaylistComboBox;
|
|
||||||
QPushButton *m_highlightColorPushButton;
|
|
||||||
QColor m_highlightColor;
|
|
||||||
QLabel *m_highlightColorLabel;
|
|
||||||
QString m_customThemePath;
|
|
||||||
QCheckBox *m_suggestLoadedCoreFirstCheckBox;
|
|
||||||
QSpinBox *m_allPlaylistsListMaxCountSpinBox;
|
|
||||||
QSpinBox *m_allPlaylistsGridMaxCountSpinBox;
|
|
||||||
};
|
|
||||||
|
|
||||||
class ViewOptionsDialog : public QDialog
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
ViewOptionsDialog(MainWindow *window, QWidget *parent = 0);
|
|
||||||
#ifdef HAVE_MENU
|
|
||||||
void repaintIcons();
|
|
||||||
#endif
|
|
||||||
public slots:
|
|
||||||
void showDialog();
|
|
||||||
void hideDialog();
|
|
||||||
private slots:
|
|
||||||
void onRejected();
|
|
||||||
private:
|
|
||||||
#ifdef HAVE_MENU
|
|
||||||
void addCategory(QWidget *widget, QString name, QString icon);
|
|
||||||
void addCategory(OptionsCategory *category);
|
|
||||||
QVector<OptionsCategory*> m_categoryList;
|
|
||||||
QListWidget *m_optionsList;
|
|
||||||
QStackedLayout *m_optionsStack;
|
|
||||||
#else
|
|
||||||
ViewOptionsWidget *m_viewOptionsWidget;
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
|
@ -49,15 +49,7 @@
|
||||||
#include "ui_qt.h"
|
#include "ui_qt.h"
|
||||||
#include "qt/gridview.h"
|
#include "qt/gridview.h"
|
||||||
#include "qt/ui_qt_load_core_window.h"
|
#include "qt/ui_qt_load_core_window.h"
|
||||||
#include "qt/coreinfodialog.h"
|
#include "qt/qt_dialogs.h"
|
||||||
#include "qt/playlistentrydialog.h"
|
|
||||||
#if defined(HAVE_MENU)
|
|
||||||
#if defined(HAVE_CG) || defined(HAVE_GLSL) || defined(HAVE_SLANG) || defined(HAVE_HLSL)
|
|
||||||
#include "qt/shaderparamsdialog.h"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#include "qt/coreoptionsdialog.h"
|
|
||||||
#include "qt/viewoptionsdialog.h"
|
|
||||||
|
|
||||||
#ifndef CXX_BUILD
|
#ifndef CXX_BUILD
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
#include <QSortFilterProxyModel>
|
#include <QSortFilterProxyModel>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
|
||||||
#include "qt/filedropwidget.h"
|
#include "qt/qt_widgets.h"
|
||||||
|
|
||||||
#ifndef CXX_BUILD
|
#ifndef CXX_BUILD
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
Loading…
Reference in New Issue