2018-10-07 03:41:18 +00:00
|
|
|
#pragma once
|
2018-01-10 06:19:48 +00:00
|
|
|
|
|
|
|
#include <QMenu>
|
2018-03-23 21:55:42 +00:00
|
|
|
namespace hecl { struct CVarCommons; }
|
2018-01-10 06:19:48 +00:00
|
|
|
|
|
|
|
class LaunchMenu : public QMenu
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
hecl::CVarCommons& m_commons;
|
|
|
|
|
|
|
|
QMenu m_apiMenu;
|
|
|
|
QMenu m_msaaMenu;
|
|
|
|
QMenu m_anisoMenu;
|
|
|
|
|
|
|
|
QActionGroup m_apiGroup;
|
|
|
|
QActionGroup m_msaaGroup;
|
|
|
|
QActionGroup m_anisoGroup;
|
|
|
|
|
|
|
|
void initApiAction(const QString& action);
|
|
|
|
void initMsaaAction(const QString& action);
|
|
|
|
void initAnisoAction(const QString& action);
|
2018-01-16 06:41:52 +00:00
|
|
|
void initDeepColor();
|
2018-01-15 13:17:08 +00:00
|
|
|
void initDeveloperMode();
|
2018-01-10 06:19:48 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
LaunchMenu(hecl::CVarCommons& commons, QWidget* parent = Q_NULLPTR);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void apiTriggered();
|
|
|
|
void msaaTriggered();
|
|
|
|
void anisoTriggered();
|
2018-01-16 06:41:52 +00:00
|
|
|
void deepColorTriggered();
|
2018-01-15 13:17:08 +00:00
|
|
|
void developerModeTriggered();
|
2018-01-10 06:19:48 +00:00
|
|
|
};
|
|
|
|
|