2013-04-18 03:29:41 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2010-12-05 15:59:11 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2010-12-05 15:59:11 +00:00
|
|
|
|
|
|
|
#include <string>
|
2014-02-17 10:18:15 +00:00
|
|
|
#include <vector>
|
2010-12-05 15:59:11 +00:00
|
|
|
#include <wx/button.h>
|
|
|
|
#include <wx/checkbox.h>
|
2014-02-19 11:14:09 +00:00
|
|
|
#include <wx/combobox.h>
|
2010-12-05 15:59:11 +00:00
|
|
|
#include <wx/notebook.h>
|
|
|
|
#include <wx/panel.h>
|
|
|
|
#include <wx/spinctrl.h>
|
2014-02-19 11:14:09 +00:00
|
|
|
#include <wx/stattext.h>
|
|
|
|
#include <wx/textctrl.h>
|
|
|
|
#include <wx/wx.h>
|
|
|
|
|
|
|
|
#include "Core/ConfigManager.h"
|
|
|
|
#include "VideoBackends/Software/SWVideoConfig.h"
|
|
|
|
#include "VideoCommon/VideoBackendBase.h"
|
2010-12-05 15:59:11 +00:00
|
|
|
|
|
|
|
class VideoConfigDialog : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
VideoConfigDialog(wxWindow* parent, const std::string &title, const std::string& ininame);
|
2011-03-16 22:22:21 +00:00
|
|
|
~VideoConfigDialog();
|
2010-12-05 15:59:11 +00:00
|
|
|
|
2011-06-02 19:32:34 +00:00
|
|
|
void Event_Backend(wxCommandEvent &ev)
|
|
|
|
{
|
|
|
|
VideoBackend* new_backend = g_available_video_backends[ev.GetInt()];
|
|
|
|
|
|
|
|
if (g_video_backend != new_backend)
|
|
|
|
{
|
|
|
|
Close();
|
|
|
|
|
|
|
|
g_video_backend = new_backend;
|
|
|
|
SConfig::GetInstance().m_LocalCoreStartupParameter.m_strVideoBackend = g_video_backend->GetName();
|
|
|
|
|
|
|
|
g_video_backend->ShowConfig(GetParent());
|
|
|
|
}
|
|
|
|
ev.Skip();
|
|
|
|
}
|
|
|
|
|
2010-12-05 15:59:11 +00:00
|
|
|
protected:
|
2011-01-28 18:39:30 +00:00
|
|
|
SWVideoConfig& vconfig;
|
2010-12-05 15:59:11 +00:00
|
|
|
std::string ininame;
|
|
|
|
};
|