metaforce/hecl-gui/LaunchMenu.hpp

36 lines
756 B
C++
Raw Normal View History

2018-10-07 03:41:18 +00:00
#pragma once
2018-01-10 06:19:48 +00:00
#include <QMenu>
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();
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();
void developerModeTriggered();
2018-01-10 06:19:48 +00:00
};