2018-01-10 06:19:48 +00:00
|
|
|
#ifndef GUI_LAUNCHMENU_HPP
|
|
|
|
#define GUI_LAUNCHMENU_HPP
|
|
|
|
|
|
|
|
#include <QMenu>
|
|
|
|
namespace hecl { class CVarCommons; }
|
|
|
|
|
|
|
|
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-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-15 13:17:08 +00:00
|
|
|
void developerModeTriggered();
|
2018-01-10 06:19:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // GUI_LAUNCHMENU_HPP
|