2015-05-23 22:55:12 -06:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
2015-05-17 17:08:10 -06:00
|
|
|
// Licensed under GPLv2+
|
2015-03-18 16:00:27 -06:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <wx/dialog.h>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
|
|
|
class wxNotebook;
|
|
|
|
class wxPanel;
|
|
|
|
|
2015-03-18 18:33:20 -06:00
|
|
|
wxDECLARE_EVENT(wxDOLPHIN_CFG_REFRESH_LIST, wxCommandEvent);
|
|
|
|
|
2015-03-18 16:00:27 -06:00
|
|
|
class CConfigMain : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 02:43:46 -06:00
|
|
|
CConfigMain(wxWindow* parent, wxWindowID id = wxID_ANY,
|
|
|
|
const wxString& title = _("Dolphin Configuration"),
|
|
|
|
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_DIALOG_STYLE);
|
|
|
|
virtual ~CConfigMain();
|
|
|
|
|
2016-11-05 18:53:40 -06:00
|
|
|
void SetSelectedTab(wxWindowID tab_id);
|
2016-06-24 02:43:46 -06:00
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
ID_NOTEBOOK = 1000,
|
|
|
|
ID_GENERALPAGE,
|
|
|
|
ID_DISPLAYPAGE,
|
|
|
|
ID_AUDIOPAGE,
|
|
|
|
ID_GAMECUBEPAGE,
|
|
|
|
ID_WIIPAGE,
|
|
|
|
ID_PATHSPAGE,
|
|
|
|
ID_ADVANCEDPAGE,
|
|
|
|
};
|
2015-03-18 16:00:27 -06:00
|
|
|
|
|
|
|
private:
|
2016-06-24 02:43:46 -06:00
|
|
|
void CreateGUIControls();
|
|
|
|
void OnClose(wxCloseEvent& event);
|
2016-08-15 13:18:58 -06:00
|
|
|
void OnCloseButton(wxCommandEvent& event);
|
2016-11-05 18:53:40 -06:00
|
|
|
void OnShow(wxShowEvent& event);
|
2016-06-24 02:43:46 -06:00
|
|
|
void OnSetRefreshGameListOnClose(wxCommandEvent& event);
|
2015-03-18 16:00:27 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
wxNotebook* Notebook;
|
2015-03-18 16:00:27 -06:00
|
|
|
|
2016-06-24 02:43:46 -06:00
|
|
|
bool m_refresh_game_list_on_close;
|
2015-03-18 16:00:27 -06:00
|
|
|
};
|