metaforce/hecl-gui/LaunchMenu.hpp

38 lines
825 B
C++
Raw Normal View History

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-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
};
#endif // GUI_LAUNCHMENU_HPP