Remove some superfluous arguments from some wx control creations
wx has these as default parameters.
This commit is contained in:
parent
e5b250fa79
commit
b2d47401b2
|
@ -57,10 +57,10 @@ CARCodeAddEdit::CARCodeAddEdit(int _selection, wxWindow* parent, wxWindowID id,
|
||||||
wxStaticBoxSizer* sbEntry = new wxStaticBoxSizer(wxVERTICAL, this, _("Cheat Code"));
|
wxStaticBoxSizer* sbEntry = new wxStaticBoxSizer(wxVERTICAL, this, _("Cheat Code"));
|
||||||
wxGridBagSizer* sgEntry = new wxGridBagSizer(0, 0);
|
wxGridBagSizer* sgEntry = new wxGridBagSizer(0, 0);
|
||||||
|
|
||||||
wxStaticText* EditCheatNameText = new wxStaticText(this, ID_EDITCHEAT_NAME_TEXT, _("Name:"), wxDefaultPosition, wxDefaultSize);
|
wxStaticText* EditCheatNameText = new wxStaticText(this, ID_EDITCHEAT_NAME_TEXT, _("Name:"));
|
||||||
EditCheatName = new wxTextCtrl(this, ID_EDITCHEAT_NAME, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
|
EditCheatName = new wxTextCtrl(this, ID_EDITCHEAT_NAME, wxEmptyString);
|
||||||
EditCheatName->SetValue(currentName);
|
EditCheatName->SetValue(currentName);
|
||||||
EntrySelection = new wxSpinButton(this, ID_ENTRY_SELECT, wxDefaultPosition, wxDefaultSize, wxVERTICAL);
|
EntrySelection = new wxSpinButton(this, ID_ENTRY_SELECT);
|
||||||
EntrySelection->SetRange(1, ((int)arCodes.size()) > 0 ? (int)arCodes.size() : 1);
|
EntrySelection->SetRange(1, ((int)arCodes.size()) > 0 ? (int)arCodes.size() : 1);
|
||||||
EntrySelection->SetValue((int)(arCodes.size() - selection));
|
EntrySelection->SetValue((int)(arCodes.size() - selection));
|
||||||
EditCheatCode = new wxTextCtrl(this, ID_EDITCHEAT_CODE, wxEmptyString, wxDefaultPosition, wxSize(300, 100), wxTE_MULTILINE);
|
EditCheatCode = new wxTextCtrl(this, ID_EDITCHEAT_CODE, wxEmptyString, wxDefaultPosition, wxSize(300, 100), wxTE_MULTILINE);
|
||||||
|
|
|
@ -81,20 +81,20 @@ void wxCheatsWindow::Init_ChildControls()
|
||||||
wxPanel* const panel = new wxPanel(this);
|
wxPanel* const panel = new wxPanel(this);
|
||||||
|
|
||||||
// Main Notebook
|
// Main Notebook
|
||||||
m_Notebook_Main = new wxNotebook(panel, wxID_ANY, wxDefaultPosition, wxDefaultSize);
|
m_Notebook_Main = new wxNotebook(panel, wxID_ANY);
|
||||||
|
|
||||||
// --- Tabs ---
|
// --- Tabs ---
|
||||||
// $ Cheats List Tab
|
// $ Cheats List Tab
|
||||||
m_Tab_Cheats = new wxPanel(m_Notebook_Main, wxID_ANY, wxDefaultPosition, wxDefaultSize);
|
m_Tab_Cheats = new wxPanel(m_Notebook_Main, wxID_ANY);
|
||||||
|
|
||||||
m_CheckListBox_CheatsList = new wxCheckListBox(m_Tab_Cheats, wxID_ANY, wxDefaultPosition, wxSize(300, 0), m_CheatStringList, wxLB_HSCROLL, wxDefaultValidator);
|
m_CheckListBox_CheatsList = new wxCheckListBox(m_Tab_Cheats, wxID_ANY, wxDefaultPosition, wxSize(300, 0), m_CheatStringList, wxLB_HSCROLL, wxDefaultValidator);
|
||||||
m_CheckListBox_CheatsList->Bind(wxEVT_COMMAND_LISTBOX_SELECTED, &wxCheatsWindow::OnEvent_CheatsList_ItemSelected, this);
|
m_CheckListBox_CheatsList->Bind(wxEVT_COMMAND_LISTBOX_SELECTED, &wxCheatsWindow::OnEvent_CheatsList_ItemSelected, this);
|
||||||
m_CheckListBox_CheatsList->Bind(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, &wxCheatsWindow::OnEvent_CheatsList_ItemToggled, this);
|
m_CheckListBox_CheatsList->Bind(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, &wxCheatsWindow::OnEvent_CheatsList_ItemToggled, this);
|
||||||
|
|
||||||
m_Label_Codename = new wxStaticText(m_Tab_Cheats, wxID_ANY, _("Name: "), wxDefaultPosition, wxDefaultSize);
|
m_Label_Codename = new wxStaticText(m_Tab_Cheats, wxID_ANY, _("Name: "));
|
||||||
m_GroupBox_Info = new wxStaticBox(m_Tab_Cheats, wxID_ANY, _("Code Info"), wxDefaultPosition, wxDefaultSize);
|
m_GroupBox_Info = new wxStaticBox(m_Tab_Cheats, wxID_ANY, _("Code Info"));
|
||||||
|
|
||||||
m_Label_NumCodes = new wxStaticText(m_Tab_Cheats, wxID_ANY, _("Number Of Codes: "), wxDefaultPosition, wxDefaultSize);
|
m_Label_NumCodes = new wxStaticText(m_Tab_Cheats, wxID_ANY, _("Number Of Codes: "));
|
||||||
m_ListBox_CodesList = new wxListBox(m_Tab_Cheats, wxID_ANY, wxDefaultPosition, wxSize(120, 150), 0, 0, wxLB_HSCROLL);
|
m_ListBox_CodesList = new wxListBox(m_Tab_Cheats, wxID_ANY, wxDefaultPosition, wxSize(120, 150), 0, 0, wxLB_HSCROLL);
|
||||||
|
|
||||||
wxStaticBoxSizer* sGroupBoxInfo = new wxStaticBoxSizer(m_GroupBox_Info, wxVERTICAL);
|
wxStaticBoxSizer* sGroupBoxInfo = new wxStaticBoxSizer(m_GroupBox_Info, wxVERTICAL);
|
||||||
|
@ -112,7 +112,7 @@ void wxCheatsWindow::Init_ChildControls()
|
||||||
wxPanel* const tab_cheat_search = new CheatSearchTab(m_Notebook_Main);
|
wxPanel* const tab_cheat_search = new CheatSearchTab(m_Notebook_Main);
|
||||||
|
|
||||||
// $ Log Tab
|
// $ Log Tab
|
||||||
m_Tab_Log = new wxPanel(m_Notebook_Main, wxID_ANY, wxDefaultPosition, wxDefaultSize);
|
m_Tab_Log = new wxPanel(m_Notebook_Main, wxID_ANY);
|
||||||
|
|
||||||
wxButton* const button_updatelog = new wxButton(m_Tab_Log, wxID_ANY, _("Update"));
|
wxButton* const button_updatelog = new wxButton(m_Tab_Log, wxID_ANY, _("Update"));
|
||||||
button_updatelog->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &wxCheatsWindow::OnEvent_ButtonUpdateLog_Press, this);
|
button_updatelog->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &wxCheatsWindow::OnEvent_ButtonUpdateLog_Press, this);
|
||||||
|
@ -141,9 +141,9 @@ void wxCheatsWindow::Init_ChildControls()
|
||||||
m_Notebook_Main->AddPage(m_Tab_Log, _("Logging"));
|
m_Notebook_Main->AddPage(m_Tab_Log, _("Logging"));
|
||||||
|
|
||||||
// Button Strip
|
// Button Strip
|
||||||
button_apply = new wxButton(panel, wxID_APPLY, _("Apply"), wxDefaultPosition, wxDefaultSize);
|
button_apply = new wxButton(panel, wxID_APPLY, _("Apply"));
|
||||||
button_apply->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &wxCheatsWindow::OnEvent_ApplyChanges_Press, this);
|
button_apply->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &wxCheatsWindow::OnEvent_ApplyChanges_Press, this);
|
||||||
wxButton* const button_cancel = new wxButton(panel, wxID_CANCEL, _("Cancel"), wxDefaultPosition, wxDefaultSize);
|
wxButton* const button_cancel = new wxButton(panel, wxID_CANCEL, _("Cancel"));
|
||||||
button_cancel->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &wxCheatsWindow::OnEvent_ButtonClose_Press, this);
|
button_cancel->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &wxCheatsWindow::OnEvent_ButtonClose_Press, this);
|
||||||
|
|
||||||
Bind(wxEVT_CLOSE_WINDOW, &wxCheatsWindow::OnEvent_Close, this);
|
Bind(wxEVT_CLOSE_WINDOW, &wxCheatsWindow::OnEvent_Close, this);
|
||||||
|
@ -164,7 +164,7 @@ void wxCheatsWindow::Init_ChildControls()
|
||||||
}
|
}
|
||||||
|
|
||||||
CheatSearchTab::CheatSearchTab(wxWindow* const parent)
|
CheatSearchTab::CheatSearchTab(wxWindow* const parent)
|
||||||
: wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize)
|
: wxPanel(parent, -1)
|
||||||
{
|
{
|
||||||
// first scan button
|
// first scan button
|
||||||
btnInitScan = new wxButton(this, -1, _("New Scan"));
|
btnInitScan = new wxButton(this, -1, _("New Scan"));
|
||||||
|
@ -188,7 +188,7 @@ CheatSearchTab::CheatSearchTab(wxWindow* const parent)
|
||||||
sizer_cheat_new_search->Add(size_radiobtn.rad_32, 0, wxRIGHT | wxBOTTOM | wxALIGN_CENTER_VERTICAL, 5);
|
sizer_cheat_new_search->Add(size_radiobtn.rad_32, 0, wxRIGHT | wxBOTTOM | wxALIGN_CENTER_VERTICAL, 5);
|
||||||
|
|
||||||
// result controls
|
// result controls
|
||||||
lbox_search_results = new wxListBox(this, -1, wxDefaultPosition, wxDefaultSize);
|
lbox_search_results = new wxListBox(this, -1);
|
||||||
label_results_count = new wxStaticText(this, -1, _("Count:"));
|
label_results_count = new wxStaticText(this, -1, _("Count:"));
|
||||||
|
|
||||||
// create AR code button
|
// create AR code button
|
||||||
|
@ -599,7 +599,7 @@ void CheatSearchTab::CreateARCode(wxCommandEvent&)
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateCodeDialog::CreateCodeDialog(wxWindow* const parent, const u32 address)
|
CreateCodeDialog::CreateCodeDialog(wxWindow* const parent, const u32 address)
|
||||||
: wxDialog(parent, -1, _("Create AR Code"), wxDefaultPosition)
|
: wxDialog(parent, -1, _("Create AR Code"))
|
||||||
, code_address(address)
|
, code_address(address)
|
||||||
{
|
{
|
||||||
wxStaticText* const label_name = new wxStaticText(this, -1, _("Name: "));
|
wxStaticText* const label_name = new wxStaticText(this, -1, _("Name: "));
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
|
|
||||||
#include "VideoCommon/VideoBackendBase.h"
|
#include "VideoCommon/VideoBackendBase.h"
|
||||||
|
|
||||||
#define TEXT_BOX(page, text) new wxStaticText(page, wxID_ANY, text, wxDefaultPosition, wxDefaultSize)
|
#define TEXT_BOX(page, text) new wxStaticText(page, wxID_ANY, text)
|
||||||
|
|
||||||
struct CPUCore
|
struct CPUCore
|
||||||
{
|
{
|
||||||
|
@ -544,13 +544,13 @@ void CConfigMain::CreateGUIControls()
|
||||||
InitializeGUILists();
|
InitializeGUILists();
|
||||||
|
|
||||||
// Create the notebook and pages
|
// Create the notebook and pages
|
||||||
Notebook = new wxNotebook(this, ID_NOTEBOOK, wxDefaultPosition, wxDefaultSize);
|
Notebook = new wxNotebook(this, ID_NOTEBOOK);
|
||||||
wxPanel* const GeneralPage = new wxPanel(Notebook, ID_GENERALPAGE, wxDefaultPosition, wxDefaultSize);
|
wxPanel* const GeneralPage = new wxPanel(Notebook, ID_GENERALPAGE);
|
||||||
wxPanel* const DisplayPage = new wxPanel(Notebook, ID_DISPLAYPAGE, wxDefaultPosition, wxDefaultSize);
|
wxPanel* const DisplayPage = new wxPanel(Notebook, ID_DISPLAYPAGE);
|
||||||
wxPanel* const AudioPage = new wxPanel(Notebook, ID_AUDIOPAGE, wxDefaultPosition, wxDefaultSize);
|
wxPanel* const AudioPage = new wxPanel(Notebook, ID_AUDIOPAGE);
|
||||||
wxPanel* const GamecubePage = new wxPanel(Notebook, ID_GAMECUBEPAGE, wxDefaultPosition, wxDefaultSize);
|
wxPanel* const GamecubePage = new wxPanel(Notebook, ID_GAMECUBEPAGE);
|
||||||
wxPanel* const WiiPage = new wxPanel(Notebook, ID_WIIPAGE, wxDefaultPosition, wxDefaultSize);
|
wxPanel* const WiiPage = new wxPanel(Notebook, ID_WIIPAGE);
|
||||||
PathsPage = new wxPanel(Notebook, ID_PATHSPAGE, wxDefaultPosition, wxDefaultSize);
|
PathsPage = new wxPanel(Notebook, ID_PATHSPAGE);
|
||||||
|
|
||||||
Notebook->AddPage(GeneralPage, _("General"));
|
Notebook->AddPage(GeneralPage, _("General"));
|
||||||
Notebook->AddPage(DisplayPage, _("Interface"));
|
Notebook->AddPage(DisplayPage, _("Interface"));
|
||||||
|
@ -561,14 +561,14 @@ void CConfigMain::CreateGUIControls()
|
||||||
|
|
||||||
// General page
|
// General page
|
||||||
// Core Settings - Basic
|
// Core Settings - Basic
|
||||||
CPUThread = new wxCheckBox(GeneralPage, ID_CPUTHREAD, _("Enable Dual Core (speedup)"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
CPUThread = new wxCheckBox(GeneralPage, ID_CPUTHREAD, _("Enable Dual Core (speedup)"));
|
||||||
SkipIdle = new wxCheckBox(GeneralPage, ID_IDLESKIP, _("Enable Idle Skipping (speedup)"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
SkipIdle = new wxCheckBox(GeneralPage, ID_IDLESKIP, _("Enable Idle Skipping (speedup)"));
|
||||||
EnableCheats = new wxCheckBox(GeneralPage, ID_ENABLECHEATS, _("Enable Cheats"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
EnableCheats = new wxCheckBox(GeneralPage, ID_ENABLECHEATS, _("Enable Cheats"));
|
||||||
// Framelimit
|
// Framelimit
|
||||||
Framelimit = new wxChoice(GeneralPage, ID_FRAMELIMIT, wxDefaultPosition, wxDefaultSize, arrayStringFor_Framelimit, 0, wxDefaultValidator);
|
Framelimit = new wxChoice(GeneralPage, ID_FRAMELIMIT, wxDefaultPosition, wxDefaultSize, arrayStringFor_Framelimit);
|
||||||
// Core Settings - Advanced
|
// Core Settings - Advanced
|
||||||
CPUEngine = new wxRadioBox(GeneralPage, ID_CPUENGINE, _("CPU Emulator Engine"), wxDefaultPosition, wxDefaultSize, arrayStringFor_CPUEngine, 0, wxRA_SPECIFY_ROWS);
|
CPUEngine = new wxRadioBox(GeneralPage, ID_CPUENGINE, _("CPU Emulator Engine"), wxDefaultPosition, wxDefaultSize, arrayStringFor_CPUEngine, 0, wxRA_SPECIFY_ROWS);
|
||||||
_NTSCJ = new wxCheckBox(GeneralPage, ID_NTSCJ, _("Force Console as NTSC-J"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
_NTSCJ = new wxCheckBox(GeneralPage, ID_NTSCJ, _("Force Console as NTSC-J"));
|
||||||
|
|
||||||
// Populate the General settings
|
// Populate the General settings
|
||||||
wxBoxSizer* sFramelimit = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* sFramelimit = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
@ -590,18 +590,13 @@ void CConfigMain::CreateGUIControls()
|
||||||
GeneralPage->SetSizer(sGeneralPage);
|
GeneralPage->SetSizer(sGeneralPage);
|
||||||
|
|
||||||
// Interface Language
|
// Interface Language
|
||||||
InterfaceLang = new wxChoice(DisplayPage, ID_INTERFACE_LANG, wxDefaultPosition,
|
InterfaceLang = new wxChoice(DisplayPage, ID_INTERFACE_LANG, wxDefaultPosition, wxDefaultSize, arrayStringFor_InterfaceLang);
|
||||||
wxDefaultSize, arrayStringFor_InterfaceLang, 0, wxDefaultValidator);
|
|
||||||
// Hotkey configuration
|
// Hotkey configuration
|
||||||
HotkeyConfig = new wxButton(DisplayPage, ID_HOTKEY_CONFIG, _("Hotkeys"),
|
HotkeyConfig = new wxButton(DisplayPage, ID_HOTKEY_CONFIG, _("Hotkeys"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);
|
||||||
wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT, wxDefaultValidator);
|
|
||||||
// Interface settings
|
// Interface settings
|
||||||
ConfirmStop = new wxCheckBox(DisplayPage, ID_INTERFACE_CONFIRMSTOP, _("Confirm on Stop"),
|
ConfirmStop = new wxCheckBox(DisplayPage, ID_INTERFACE_CONFIRMSTOP, _("Confirm on Stop"));
|
||||||
wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
UsePanicHandlers = new wxCheckBox(DisplayPage, ID_INTERFACE_USEPANICHANDLERS, _("Use Panic Handlers"));
|
||||||
UsePanicHandlers = new wxCheckBox(DisplayPage, ID_INTERFACE_USEPANICHANDLERS,
|
OnScreenDisplayMessages = new wxCheckBox(DisplayPage, ID_INTERFACE_ONSCREENDISPLAYMESSAGES, _("On-Screen Display Messages"));
|
||||||
_("Use Panic Handlers"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
|
||||||
OnScreenDisplayMessages = new wxCheckBox(DisplayPage, ID_INTERFACE_ONSCREENDISPLAYMESSAGES,
|
|
||||||
_("On-Screen Display Messages"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
|
||||||
|
|
||||||
wxBoxSizer* sInterface = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* sInterface = new wxBoxSizer(wxHORIZONTAL);
|
||||||
sInterface->Add(TEXT_BOX(DisplayPage, _("Language:")), 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
|
sInterface->Add(TEXT_BOX(DisplayPage, _("Language:")), 0, wxALIGN_CENTER_VERTICAL | wxALL, 5);
|
||||||
|
@ -656,20 +651,14 @@ void CConfigMain::CreateGUIControls()
|
||||||
|
|
||||||
|
|
||||||
// Audio page
|
// Audio page
|
||||||
DSPEngine = new wxRadioBox(AudioPage, ID_DSPENGINE, _("DSP Emulator Engine"),
|
DSPEngine = new wxRadioBox(AudioPage, ID_DSPENGINE, _("DSP Emulator Engine"), wxDefaultPosition, wxDefaultSize, arrayStringFor_DSPEngine, 0, wxRA_SPECIFY_ROWS);
|
||||||
wxDefaultPosition, wxDefaultSize, arrayStringFor_DSPEngine, 0, wxRA_SPECIFY_ROWS);
|
|
||||||
DSPThread = new wxCheckBox(AudioPage, ID_DSPTHREAD, _("DSPLLE on Separate Thread"));
|
DSPThread = new wxCheckBox(AudioPage, ID_DSPTHREAD, _("DSPLLE on Separate Thread"));
|
||||||
DumpAudio = new wxCheckBox(AudioPage, ID_DUMP_AUDIO, _("Dump Audio"),
|
DumpAudio = new wxCheckBox(AudioPage, ID_DUMP_AUDIO, _("Dump Audio"));
|
||||||
wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
|
||||||
DPL2Decoder = new wxCheckBox(AudioPage, ID_DPL2DECODER, _("Dolby Pro Logic II decoder"));
|
DPL2Decoder = new wxCheckBox(AudioPage, ID_DPL2DECODER, _("Dolby Pro Logic II decoder"));
|
||||||
VolumeSlider = new wxSlider(AudioPage, ID_VOLUME, 0, 1, 100,
|
VolumeSlider = new wxSlider(AudioPage, ID_VOLUME, 0, 1, 100, wxDefaultPosition, wxDefaultSize, wxSL_VERTICAL|wxSL_INVERSE);
|
||||||
wxDefaultPosition, wxDefaultSize, wxSL_VERTICAL|wxSL_INVERSE);
|
VolumeText = new wxStaticText(AudioPage, wxID_ANY, wxT(""));
|
||||||
VolumeText = new wxStaticText(AudioPage, wxID_ANY, wxT(""),
|
BackendSelection = new wxChoice(AudioPage, ID_BACKEND, wxDefaultPosition, wxDefaultSize, wxArrayBackends, 0, wxDefaultValidator, wxEmptyString);
|
||||||
wxDefaultPosition, wxDefaultSize, 0);
|
Latency = new wxSpinCtrl(AudioPage, ID_LATENCY, "", wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 30);
|
||||||
BackendSelection = new wxChoice(AudioPage, ID_BACKEND, wxDefaultPosition,
|
|
||||||
wxDefaultSize, wxArrayBackends, 0, wxDefaultValidator, wxEmptyString);
|
|
||||||
Latency = new wxSpinCtrl(AudioPage, ID_LATENCY, "", wxDefaultPosition, wxDefaultSize,
|
|
||||||
wxSP_ARROW_KEYS, 0, 30);
|
|
||||||
|
|
||||||
Latency->Bind(wxEVT_COMMAND_SPINCTRL_UPDATED, &CConfigMain::AudioSettingsChanged, this);
|
Latency->Bind(wxEVT_COMMAND_SPINCTRL_UPDATED, &CConfigMain::AudioSettingsChanged, this);
|
||||||
|
|
||||||
|
@ -711,9 +700,8 @@ void CConfigMain::CreateGUIControls()
|
||||||
|
|
||||||
// Gamecube page
|
// Gamecube page
|
||||||
// IPL settings
|
// IPL settings
|
||||||
GCSystemLang = new wxChoice(GamecubePage, ID_GC_SRAM_LNG, wxDefaultPosition,
|
GCSystemLang = new wxChoice(GamecubePage, ID_GC_SRAM_LNG, wxDefaultPosition, wxDefaultSize, arrayStringFor_GCSystemLang);
|
||||||
wxDefaultSize, arrayStringFor_GCSystemLang, 0, wxDefaultValidator);
|
GCAlwaysHLE_BS2 = new wxCheckBox(GamecubePage, ID_GC_ALWAYS_HLE_BS2, _("Skip BIOS"));
|
||||||
GCAlwaysHLE_BS2 = new wxCheckBox(GamecubePage, ID_GC_ALWAYS_HLE_BS2, _("Skip BIOS"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
|
||||||
// Device settings
|
// Device settings
|
||||||
// EXI Devices
|
// EXI Devices
|
||||||
wxStaticText* GCEXIDeviceText[3];
|
wxStaticText* GCEXIDeviceText[3];
|
||||||
|
@ -724,9 +712,9 @@ void CConfigMain::CreateGUIControls()
|
||||||
GCEXIDevice[1] = new wxChoice(GamecubePage, ID_GC_EXIDEVICE_SLOTB);
|
GCEXIDevice[1] = new wxChoice(GamecubePage, ID_GC_EXIDEVICE_SLOTB);
|
||||||
GCEXIDevice[2] = new wxChoice(GamecubePage, ID_GC_EXIDEVICE_SP1);
|
GCEXIDevice[2] = new wxChoice(GamecubePage, ID_GC_EXIDEVICE_SP1);
|
||||||
GCMemcardPath[0] = new wxButton(GamecubePage, ID_GC_EXIDEVICE_SLOTA_PATH, wxT("..."),
|
GCMemcardPath[0] = new wxButton(GamecubePage, ID_GC_EXIDEVICE_SLOTA_PATH, wxT("..."),
|
||||||
wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT, wxDefaultValidator);
|
wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);
|
||||||
GCMemcardPath[1] = new wxButton(GamecubePage, ID_GC_EXIDEVICE_SLOTB_PATH, wxT("..."),
|
GCMemcardPath[1] = new wxButton(GamecubePage, ID_GC_EXIDEVICE_SLOTB_PATH, wxT("..."),
|
||||||
wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT, wxDefaultValidator);
|
wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT);
|
||||||
|
|
||||||
//SI Devices
|
//SI Devices
|
||||||
wxStaticText* GCSIDeviceText[4];
|
wxStaticText* GCSIDeviceText[4];
|
||||||
|
@ -780,14 +768,14 @@ void CConfigMain::CreateGUIControls()
|
||||||
|
|
||||||
// Wii page
|
// Wii page
|
||||||
// Misc Settings
|
// Misc Settings
|
||||||
WiiScreenSaver = new wxCheckBox(WiiPage, ID_WII_IPL_SSV, _("Enable Screen Saver"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
WiiScreenSaver = new wxCheckBox(WiiPage, ID_WII_IPL_SSV, _("Enable Screen Saver"));
|
||||||
WiiEuRGB60 = new wxCheckBox(WiiPage, ID_WII_IPL_E60, _("Use EuRGB60 Mode (PAL60)"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
WiiEuRGB60 = new wxCheckBox(WiiPage, ID_WII_IPL_E60, _("Use EuRGB60 Mode (PAL60)"));
|
||||||
WiiAspectRatio = new wxChoice(WiiPage, ID_WII_IPL_AR, wxDefaultPosition, wxDefaultSize, arrayStringFor_WiiAspectRatio, 0, wxDefaultValidator);
|
WiiAspectRatio = new wxChoice(WiiPage, ID_WII_IPL_AR, wxDefaultPosition, wxDefaultSize, arrayStringFor_WiiAspectRatio);
|
||||||
WiiSystemLang = new wxChoice(WiiPage, ID_WII_IPL_LNG, wxDefaultPosition, wxDefaultSize, arrayStringFor_WiiSystemLang, 0, wxDefaultValidator);
|
WiiSystemLang = new wxChoice(WiiPage, ID_WII_IPL_LNG, wxDefaultPosition, wxDefaultSize, arrayStringFor_WiiSystemLang);
|
||||||
|
|
||||||
// Device Settings
|
// Device Settings
|
||||||
WiiSDCard = new wxCheckBox(WiiPage, ID_WII_SD_CARD, _("Insert SD Card"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
WiiSDCard = new wxCheckBox(WiiPage, ID_WII_SD_CARD, _("Insert SD Card"));
|
||||||
WiiKeyboard = new wxCheckBox(WiiPage, ID_WII_KEYBOARD, _("Connect USB Keyboard"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
WiiKeyboard = new wxCheckBox(WiiPage, ID_WII_KEYBOARD, _("Connect USB Keyboard"));
|
||||||
|
|
||||||
// Populate the Wii Page
|
// Populate the Wii Page
|
||||||
sWiiIPLSettings = new wxGridBagSizer();
|
sWiiIPLSettings = new wxGridBagSizer();
|
||||||
|
@ -813,10 +801,10 @@ void CConfigMain::CreateGUIControls()
|
||||||
|
|
||||||
|
|
||||||
// Paths page
|
// Paths page
|
||||||
ISOPaths = new wxListBox(PathsPage, ID_ISOPATHS, wxDefaultPosition, wxDefaultSize, arrayStringFor_ISOPaths, wxLB_SINGLE, wxDefaultValidator);
|
ISOPaths = new wxListBox(PathsPage, ID_ISOPATHS, wxDefaultPosition, wxDefaultSize, arrayStringFor_ISOPaths, wxLB_SINGLE);
|
||||||
RecursiveISOPath = new wxCheckBox(PathsPage, ID_RECURSIVEISOPATH, _("Search Subfolders"), wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator);
|
RecursiveISOPath = new wxCheckBox(PathsPage, ID_RECURSIVEISOPATH, _("Search Subfolders"));
|
||||||
AddISOPath = new wxButton(PathsPage, ID_ADDISOPATH, _("Add..."), wxDefaultPosition, wxDefaultSize, 0);
|
AddISOPath = new wxButton(PathsPage, ID_ADDISOPATH, _("Add..."));
|
||||||
RemoveISOPath = new wxButton(PathsPage, ID_REMOVEISOPATH, _("Remove"), wxDefaultPosition, wxDefaultSize, 0);
|
RemoveISOPath = new wxButton(PathsPage, ID_REMOVEISOPATH, _("Remove"));
|
||||||
RemoveISOPath->Enable(false);
|
RemoveISOPath->Enable(false);
|
||||||
|
|
||||||
DefaultISO = new wxFilePickerCtrl(PathsPage, ID_DEFAULTISO, wxEmptyString, _("Choose a default ISO:"),
|
DefaultISO = new wxFilePickerCtrl(PathsPage, ID_DEFAULTISO, wxEmptyString, _("Choose a default ISO:"),
|
||||||
|
|
|
@ -25,7 +25,7 @@ BEGIN_EVENT_TABLE(BreakPointDlg, wxDialog)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
BreakPointDlg::BreakPointDlg(CBreakPointWindow *_Parent)
|
BreakPointDlg::BreakPointDlg(CBreakPointWindow *_Parent)
|
||||||
: wxDialog(_Parent, wxID_ANY, wxT("BreakPoint"), wxDefaultPosition, wxDefaultSize)
|
: wxDialog(_Parent, wxID_ANY, wxT("BreakPoint"))
|
||||||
, Parent(_Parent)
|
, Parent(_Parent)
|
||||||
{
|
{
|
||||||
m_pEditAddress = new wxTextCtrl(this, wxID_ANY, wxT("80000000"));
|
m_pEditAddress = new wxTextCtrl(this, wxID_ANY, wxT("80000000"));
|
||||||
|
|
|
@ -23,14 +23,14 @@
|
||||||
#include "DolphinWX/Debugger/BreakpointWindow.h"
|
#include "DolphinWX/Debugger/BreakpointWindow.h"
|
||||||
#include "DolphinWX/Debugger/MemoryCheckDlg.h"
|
#include "DolphinWX/Debugger/MemoryCheckDlg.h"
|
||||||
|
|
||||||
#define TEXT_BOX(text) new wxStaticText(this, wxID_ANY, wxT(text), wxDefaultPosition, wxDefaultSize)
|
#define TEXT_BOX(text) new wxStaticText(this, wxID_ANY, wxT(text))
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(MemoryCheckDlg, wxDialog)
|
BEGIN_EVENT_TABLE(MemoryCheckDlg, wxDialog)
|
||||||
EVT_BUTTON(wxID_OK, MemoryCheckDlg::OnOK)
|
EVT_BUTTON(wxID_OK, MemoryCheckDlg::OnOK)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
MemoryCheckDlg::MemoryCheckDlg(CBreakPointWindow *parent)
|
MemoryCheckDlg::MemoryCheckDlg(CBreakPointWindow *parent)
|
||||||
: wxDialog(parent, wxID_ANY, _("Memory Check"), wxDefaultPosition, wxDefaultSize)
|
: wxDialog(parent, wxID_ANY, _("Memory Check"))
|
||||||
, m_parent(parent)
|
, m_parent(parent)
|
||||||
{
|
{
|
||||||
m_pEditStartAddress = new wxTextCtrl(this, wxID_ANY, wxT(""));
|
m_pEditStartAddress = new wxTextCtrl(this, wxID_ANY, wxT(""));
|
||||||
|
|
|
@ -55,7 +55,7 @@ BEGIN_EVENT_TABLE(CMemoryView, wxControl)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
CMemoryView::CMemoryView(DebugInterface* debuginterface, wxWindow* parent)
|
CMemoryView::CMemoryView(DebugInterface* debuginterface, wxWindow* parent)
|
||||||
: wxControl(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize)
|
: wxControl(parent, wxID_ANY)
|
||||||
, curAddress(debuginterface->GetPC())
|
, curAddress(debuginterface->GetPC())
|
||||||
, debugger(debuginterface)
|
, debugger(debuginterface)
|
||||||
, align(debuginterface->GetInstructionSize(0))
|
, align(debuginterface->GetInstructionSize(0))
|
||||||
|
|
|
@ -56,7 +56,7 @@ std::recursive_mutex sMutex;
|
||||||
wxEvtHandler *volatile FifoPlayerDlg::m_EvtHandler = NULL;
|
wxEvtHandler *volatile FifoPlayerDlg::m_EvtHandler = NULL;
|
||||||
|
|
||||||
FifoPlayerDlg::FifoPlayerDlg(wxWindow * const parent) :
|
FifoPlayerDlg::FifoPlayerDlg(wxWindow * const parent) :
|
||||||
wxDialog(parent, wxID_ANY, _("FIFO Player"), wxDefaultPosition, wxDefaultSize),
|
wxDialog(parent, wxID_ANY, _("FIFO Player")),
|
||||||
m_search_result_idx(0), m_FramesToRecord(1)
|
m_search_result_idx(0), m_FramesToRecord(1)
|
||||||
{
|
{
|
||||||
CreateGUIControls();
|
CreateGUIControls();
|
||||||
|
@ -102,7 +102,7 @@ void FifoPlayerDlg::CreateGUIControls()
|
||||||
wxBoxSizer* sMain;
|
wxBoxSizer* sMain;
|
||||||
sMain = new wxBoxSizer(wxVERTICAL);
|
sMain = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
m_Notebook = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0);
|
m_Notebook = new wxNotebook(this, wxID_ANY);
|
||||||
|
|
||||||
{
|
{
|
||||||
m_PlayPage = new wxPanel(m_Notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
|
m_PlayPage = new wxPanel(m_Notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL);
|
||||||
|
@ -112,15 +112,15 @@ void FifoPlayerDlg::CreateGUIControls()
|
||||||
wxStaticBoxSizer* sPlayInfo;
|
wxStaticBoxSizer* sPlayInfo;
|
||||||
sPlayInfo = new wxStaticBoxSizer(new wxStaticBox(m_PlayPage, wxID_ANY, _("File Info")), wxVERTICAL);
|
sPlayInfo = new wxStaticBoxSizer(new wxStaticBox(m_PlayPage, wxID_ANY, _("File Info")), wxVERTICAL);
|
||||||
|
|
||||||
m_NumFramesLabel = new wxStaticText(m_PlayPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
|
m_NumFramesLabel = new wxStaticText(m_PlayPage, wxID_ANY, wxEmptyString);
|
||||||
m_NumFramesLabel->Wrap(-1);
|
m_NumFramesLabel->Wrap(-1);
|
||||||
sPlayInfo->Add(m_NumFramesLabel, 0, wxALL, 5);
|
sPlayInfo->Add(m_NumFramesLabel, 0, wxALL, 5);
|
||||||
|
|
||||||
m_CurrentFrameLabel = new wxStaticText(m_PlayPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
|
m_CurrentFrameLabel = new wxStaticText(m_PlayPage, wxID_ANY, wxEmptyString);
|
||||||
m_CurrentFrameLabel->Wrap(-1);
|
m_CurrentFrameLabel->Wrap(-1);
|
||||||
sPlayInfo->Add(m_CurrentFrameLabel, 0, wxALL, 5);
|
sPlayInfo->Add(m_CurrentFrameLabel, 0, wxALL, 5);
|
||||||
|
|
||||||
m_NumObjectsLabel = new wxStaticText(m_PlayPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
|
m_NumObjectsLabel = new wxStaticText(m_PlayPage, wxID_ANY, wxEmptyString);
|
||||||
m_NumObjectsLabel->Wrap(-1);
|
m_NumObjectsLabel->Wrap(-1);
|
||||||
sPlayInfo->Add(m_NumObjectsLabel, 0, wxALL, 5);
|
sPlayInfo->Add(m_NumObjectsLabel, 0, wxALL, 5);
|
||||||
|
|
||||||
|
@ -129,14 +129,14 @@ void FifoPlayerDlg::CreateGUIControls()
|
||||||
wxStaticBoxSizer* sFrameRange;
|
wxStaticBoxSizer* sFrameRange;
|
||||||
sFrameRange = new wxStaticBoxSizer(new wxStaticBox(m_PlayPage, wxID_ANY, _("Frame Range")), wxHORIZONTAL);
|
sFrameRange = new wxStaticBoxSizer(new wxStaticBox(m_PlayPage, wxID_ANY, _("Frame Range")), wxHORIZONTAL);
|
||||||
|
|
||||||
m_FrameFromLabel = new wxStaticText(m_PlayPage, wxID_ANY, _("From"), wxDefaultPosition, wxDefaultSize, 0);
|
m_FrameFromLabel = new wxStaticText(m_PlayPage, wxID_ANY, _("From"));
|
||||||
m_FrameFromLabel->Wrap(-1);
|
m_FrameFromLabel->Wrap(-1);
|
||||||
sFrameRange->Add(m_FrameFromLabel, 0, wxALL, 5);
|
sFrameRange->Add(m_FrameFromLabel, 0, wxALL, 5);
|
||||||
|
|
||||||
m_FrameFromCtrl = new wxSpinCtrl(m_PlayPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 10, 0);
|
m_FrameFromCtrl = new wxSpinCtrl(m_PlayPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 10, 0);
|
||||||
sFrameRange->Add(m_FrameFromCtrl, 0, wxALL, 5);
|
sFrameRange->Add(m_FrameFromCtrl, 0, wxALL, 5);
|
||||||
|
|
||||||
m_FrameToLabel = new wxStaticText(m_PlayPage, wxID_ANY, _("To"), wxDefaultPosition, wxDefaultSize, 0);
|
m_FrameToLabel = new wxStaticText(m_PlayPage, wxID_ANY, _("To"));
|
||||||
m_FrameToLabel->Wrap(-1);
|
m_FrameToLabel->Wrap(-1);
|
||||||
sFrameRange->Add(m_FrameToLabel, 0, wxALL, 5);
|
sFrameRange->Add(m_FrameToLabel, 0, wxALL, 5);
|
||||||
|
|
||||||
|
@ -148,14 +148,14 @@ void FifoPlayerDlg::CreateGUIControls()
|
||||||
wxStaticBoxSizer* sObjectRange;
|
wxStaticBoxSizer* sObjectRange;
|
||||||
sObjectRange = new wxStaticBoxSizer(new wxStaticBox(m_PlayPage, wxID_ANY, _("Object Range")), wxHORIZONTAL);
|
sObjectRange = new wxStaticBoxSizer(new wxStaticBox(m_PlayPage, wxID_ANY, _("Object Range")), wxHORIZONTAL);
|
||||||
|
|
||||||
m_ObjectFromLabel = new wxStaticText(m_PlayPage, wxID_ANY, _("From"), wxDefaultPosition, wxDefaultSize, 0);
|
m_ObjectFromLabel = new wxStaticText(m_PlayPage, wxID_ANY, _("From"));
|
||||||
m_ObjectFromLabel->Wrap(-1);
|
m_ObjectFromLabel->Wrap(-1);
|
||||||
sObjectRange->Add(m_ObjectFromLabel, 0, wxALL, 5);
|
sObjectRange->Add(m_ObjectFromLabel, 0, wxALL, 5);
|
||||||
|
|
||||||
m_ObjectFromCtrl = new wxSpinCtrl(m_PlayPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 10000, 0);
|
m_ObjectFromCtrl = new wxSpinCtrl(m_PlayPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 10000, 0);
|
||||||
sObjectRange->Add(m_ObjectFromCtrl, 0, wxALL, 5);
|
sObjectRange->Add(m_ObjectFromCtrl, 0, wxALL, 5);
|
||||||
|
|
||||||
m_ObjectToLabel = new wxStaticText(m_PlayPage, wxID_ANY, _("To"), wxDefaultPosition, wxDefaultSize, 0);
|
m_ObjectToLabel = new wxStaticText(m_PlayPage, wxID_ANY, _("To"));
|
||||||
m_ObjectToLabel->Wrap(-1);
|
m_ObjectToLabel->Wrap(-1);
|
||||||
sObjectRange->Add(m_ObjectToLabel, 0, wxALL, 5);
|
sObjectRange->Add(m_ObjectToLabel, 0, wxALL, 5);
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ void FifoPlayerDlg::CreateGUIControls()
|
||||||
wxStaticBoxSizer* sPlayOptions;
|
wxStaticBoxSizer* sPlayOptions;
|
||||||
sPlayOptions = new wxStaticBoxSizer(new wxStaticBox(m_PlayPage, wxID_ANY, _("Playback Options")), wxVERTICAL);
|
sPlayOptions = new wxStaticBoxSizer(new wxStaticBox(m_PlayPage, wxID_ANY, _("Playback Options")), wxVERTICAL);
|
||||||
|
|
||||||
m_EarlyMemoryUpdates = new wxCheckBox(m_PlayPage, wxID_ANY, _("Early Memory Updates"), wxDefaultPosition, wxDefaultSize, 0);
|
m_EarlyMemoryUpdates = new wxCheckBox(m_PlayPage, wxID_ANY, _("Early Memory Updates"));
|
||||||
sPlayOptions->Add(m_EarlyMemoryUpdates, 0, wxALL, 5);
|
sPlayOptions->Add(m_EarlyMemoryUpdates, 0, wxALL, 5);
|
||||||
|
|
||||||
sPlayPage->Add(sPlayOptions, 0, wxEXPAND, 5);
|
sPlayPage->Add(sPlayOptions, 0, wxEXPAND, 5);
|
||||||
|
@ -187,15 +187,15 @@ void FifoPlayerDlg::CreateGUIControls()
|
||||||
wxStaticBoxSizer* sRecordInfo;
|
wxStaticBoxSizer* sRecordInfo;
|
||||||
sRecordInfo = new wxStaticBoxSizer(new wxStaticBox(m_RecordPage, wxID_ANY, _("Recording Info")), wxVERTICAL);
|
sRecordInfo = new wxStaticBoxSizer(new wxStaticBox(m_RecordPage, wxID_ANY, _("Recording Info")), wxVERTICAL);
|
||||||
|
|
||||||
m_RecordingFifoSizeLabel = new wxStaticText(m_RecordPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
|
m_RecordingFifoSizeLabel = new wxStaticText(m_RecordPage, wxID_ANY, wxEmptyString);
|
||||||
m_RecordingFifoSizeLabel->Wrap(-1);
|
m_RecordingFifoSizeLabel->Wrap(-1);
|
||||||
sRecordInfo->Add(m_RecordingFifoSizeLabel, 0, wxALL, 5);
|
sRecordInfo->Add(m_RecordingFifoSizeLabel, 0, wxALL, 5);
|
||||||
|
|
||||||
m_RecordingMemSizeLabel = new wxStaticText(m_RecordPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
|
m_RecordingMemSizeLabel = new wxStaticText(m_RecordPage, wxID_ANY, wxEmptyString);
|
||||||
m_RecordingMemSizeLabel->Wrap(-1);
|
m_RecordingMemSizeLabel->Wrap(-1);
|
||||||
sRecordInfo->Add(m_RecordingMemSizeLabel, 0, wxALL, 5);
|
sRecordInfo->Add(m_RecordingMemSizeLabel, 0, wxALL, 5);
|
||||||
|
|
||||||
m_RecordingFramesLabel = new wxStaticText(m_RecordPage, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0);
|
m_RecordingFramesLabel = new wxStaticText(m_RecordPage, wxID_ANY, wxEmptyString);
|
||||||
m_RecordingFramesLabel->Wrap(-1);
|
m_RecordingFramesLabel->Wrap(-1);
|
||||||
sRecordInfo->Add(m_RecordingFramesLabel, 0, wxALL, 5);
|
sRecordInfo->Add(m_RecordingFramesLabel, 0, wxALL, 5);
|
||||||
|
|
||||||
|
@ -204,10 +204,10 @@ void FifoPlayerDlg::CreateGUIControls()
|
||||||
wxBoxSizer* sRecordButtons;
|
wxBoxSizer* sRecordButtons;
|
||||||
sRecordButtons = new wxBoxSizer(wxHORIZONTAL);
|
sRecordButtons = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
|
||||||
m_RecordStop = new wxButton(m_RecordPage, wxID_ANY, _("Record"), wxDefaultPosition, wxDefaultSize, 0);
|
m_RecordStop = new wxButton(m_RecordPage, wxID_ANY, _("Record"));
|
||||||
sRecordButtons->Add(m_RecordStop, 0, wxALL, 5);
|
sRecordButtons->Add(m_RecordStop, 0, wxALL, 5);
|
||||||
|
|
||||||
m_Save = new wxButton(m_RecordPage, wxID_ANY, _("Save"), wxDefaultPosition, wxDefaultSize, 0);
|
m_Save = new wxButton(m_RecordPage, wxID_ANY, _("Save"));
|
||||||
sRecordButtons->Add(m_Save, 0, wxALL, 5);
|
sRecordButtons->Add(m_Save, 0, wxALL, 5);
|
||||||
|
|
||||||
sRecordPage->Add(sRecordButtons, 0, wxEXPAND, 5);
|
sRecordPage->Add(sRecordButtons, 0, wxEXPAND, 5);
|
||||||
|
@ -215,7 +215,7 @@ void FifoPlayerDlg::CreateGUIControls()
|
||||||
wxStaticBoxSizer* sRecordingOptions;
|
wxStaticBoxSizer* sRecordingOptions;
|
||||||
sRecordingOptions = new wxStaticBoxSizer(new wxStaticBox(m_RecordPage, wxID_ANY, _("Recording Options")), wxHORIZONTAL);
|
sRecordingOptions = new wxStaticBoxSizer(new wxStaticBox(m_RecordPage, wxID_ANY, _("Recording Options")), wxHORIZONTAL);
|
||||||
|
|
||||||
m_FramesToRecordLabel = new wxStaticText(m_RecordPage, wxID_ANY, _("Frames To Record"), wxDefaultPosition, wxDefaultSize, 0);
|
m_FramesToRecordLabel = new wxStaticText(m_RecordPage, wxID_ANY, _("Frames To Record"));
|
||||||
m_FramesToRecordLabel->Wrap(-1);
|
m_FramesToRecordLabel->Wrap(-1);
|
||||||
sRecordingOptions->Add(m_FramesToRecordLabel, 0, wxALL, 5);
|
sRecordingOptions->Add(m_FramesToRecordLabel, 0, wxALL, 5);
|
||||||
|
|
||||||
|
@ -308,7 +308,7 @@ void FifoPlayerDlg::CreateGUIControls()
|
||||||
|
|
||||||
sButtons->Add(sCloseButtonExpander, 1, wxEXPAND, 5);
|
sButtons->Add(sCloseButtonExpander, 1, wxEXPAND, 5);
|
||||||
|
|
||||||
m_Close = new wxButton(this, wxID_ANY, _("Close"), wxDefaultPosition, wxDefaultSize, 0);
|
m_Close = new wxButton(this, wxID_ANY, _("Close"));
|
||||||
sButtons->Add(m_Close, 0, wxALL, 5);
|
sButtons->Add(m_Close, 0, wxALL, 5);
|
||||||
|
|
||||||
sMain->Add(sButtons, 0, wxEXPAND, 5);
|
sMain->Add(sButtons, 0, wxEXPAND, 5);
|
||||||
|
|
|
@ -1080,11 +1080,9 @@ wxWindow * CFrame::GetNotebookPageFromId(wxWindowID Id)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxFrame * CFrame::CreateParentFrame(wxWindowID Id, const wxString& Title,
|
wxFrame* CFrame::CreateParentFrame(wxWindowID Id, const wxString& Title, wxWindow* Child)
|
||||||
wxWindow * Child)
|
|
||||||
{
|
{
|
||||||
wxFrame * Frame = new wxFrame(this, Id, Title,
|
wxFrame* Frame = new wxFrame(this, Id, Title);
|
||||||
wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE);
|
|
||||||
|
|
||||||
Child->Reparent(Frame);
|
Child->Reparent(Frame);
|
||||||
|
|
||||||
|
|
|
@ -231,48 +231,29 @@ void CGameListCtrl::InitBitmaps()
|
||||||
SetImageList(m_imageListSmall, wxIMAGE_LIST_SMALL);
|
SetImageList(m_imageListSmall, wxIMAGE_LIST_SMALL);
|
||||||
|
|
||||||
m_FlagImageIndex.resize(DiscIO::IVolume::NUMBER_OF_COUNTRIES);
|
m_FlagImageIndex.resize(DiscIO::IVolume::NUMBER_OF_COUNTRIES);
|
||||||
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_EUROPE] =
|
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_EUROPE] = m_imageListSmall->Add(wxBitmap(Flag_Europe_xpm));
|
||||||
m_imageListSmall->Add(wxBitmap(Flag_Europe_xpm), wxNullBitmap);
|
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_GERMANY] = m_imageListSmall->Add(wxBitmap(Flag_Germany_xpm));
|
||||||
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_GERMANY] =
|
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_FRANCE] = m_imageListSmall->Add(wxBitmap(Flag_France_xpm));
|
||||||
m_imageListSmall->Add(wxBitmap(Flag_Germany_xpm), wxNullBitmap);
|
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_USA] = m_imageListSmall->Add(wxBitmap(Flag_USA_xpm));
|
||||||
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_FRANCE] =
|
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_JAPAN] = m_imageListSmall->Add(wxBitmap(Flag_Japan_xpm));
|
||||||
m_imageListSmall->Add(wxBitmap(Flag_France_xpm), wxNullBitmap);
|
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_KOREA] = m_imageListSmall->Add(wxBitmap(Flag_Korea_xpm));
|
||||||
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_USA] =
|
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_ITALY] = m_imageListSmall->Add(wxBitmap(Flag_Italy_xpm));
|
||||||
m_imageListSmall->Add(wxBitmap(Flag_USA_xpm), wxNullBitmap);
|
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_TAIWAN] = m_imageListSmall->Add(wxBitmap(Flag_Taiwan_xpm));
|
||||||
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_JAPAN] =
|
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_SDK] = m_imageListSmall->Add(wxBitmap(Flag_SDK_xpm));
|
||||||
m_imageListSmall->Add(wxBitmap(Flag_Japan_xpm), wxNullBitmap);
|
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_UNKNOWN] = m_imageListSmall->Add(wxBitmap(Flag_Unknown_xpm));
|
||||||
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_KOREA] =
|
|
||||||
m_imageListSmall->Add(wxBitmap(Flag_Korea_xpm), wxNullBitmap);
|
|
||||||
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_ITALY] =
|
|
||||||
m_imageListSmall->Add(wxBitmap(Flag_Italy_xpm), wxNullBitmap);
|
|
||||||
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_TAIWAN] =
|
|
||||||
m_imageListSmall->Add(wxBitmap(Flag_Taiwan_xpm), wxNullBitmap);
|
|
||||||
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_SDK] =
|
|
||||||
m_imageListSmall->Add(wxBitmap(Flag_SDK_xpm), wxNullBitmap);
|
|
||||||
m_FlagImageIndex[DiscIO::IVolume::COUNTRY_UNKNOWN] =
|
|
||||||
m_imageListSmall->Add(wxBitmap(Flag_Unknown_xpm), wxNullBitmap);
|
|
||||||
|
|
||||||
m_PlatformImageIndex.resize(3);
|
m_PlatformImageIndex.resize(3);
|
||||||
m_PlatformImageIndex[0] =
|
m_PlatformImageIndex[0] = m_imageListSmall->Add(wxBitmap(Platform_Gamecube_xpm));
|
||||||
m_imageListSmall->Add(wxBitmap(Platform_Gamecube_xpm), wxNullBitmap);
|
m_PlatformImageIndex[1] = m_imageListSmall->Add(wxBitmap(Platform_Wii_xpm));
|
||||||
m_PlatformImageIndex[1] =
|
m_PlatformImageIndex[2] = m_imageListSmall->Add(wxBitmap(Platform_Wad_xpm));
|
||||||
m_imageListSmall->Add(wxBitmap(Platform_Wii_xpm), wxNullBitmap);
|
|
||||||
m_PlatformImageIndex[2] =
|
|
||||||
m_imageListSmall->Add(wxBitmap(Platform_Wad_xpm), wxNullBitmap);
|
|
||||||
|
|
||||||
m_EmuStateImageIndex.resize(6);
|
m_EmuStateImageIndex.resize(6);
|
||||||
m_EmuStateImageIndex[0] =
|
m_EmuStateImageIndex[0] = m_imageListSmall->Add(wxBitmap(rating_0));
|
||||||
m_imageListSmall->Add(wxBitmap(rating_0), wxNullBitmap);
|
m_EmuStateImageIndex[1] = m_imageListSmall->Add(wxBitmap(rating_1));
|
||||||
m_EmuStateImageIndex[1] =
|
m_EmuStateImageIndex[2] = m_imageListSmall->Add(wxBitmap(rating_2));
|
||||||
m_imageListSmall->Add(wxBitmap(rating_1), wxNullBitmap);
|
m_EmuStateImageIndex[3] = m_imageListSmall->Add(wxBitmap(rating_3));
|
||||||
m_EmuStateImageIndex[2] =
|
m_EmuStateImageIndex[4] = m_imageListSmall->Add(wxBitmap(rating_4));
|
||||||
m_imageListSmall->Add(wxBitmap(rating_2), wxNullBitmap);
|
m_EmuStateImageIndex[5] = m_imageListSmall->Add(wxBitmap(rating_5));
|
||||||
m_EmuStateImageIndex[3] =
|
|
||||||
m_imageListSmall->Add(wxBitmap(rating_3), wxNullBitmap);
|
|
||||||
m_EmuStateImageIndex[4] =
|
|
||||||
m_imageListSmall->Add(wxBitmap(rating_4), wxNullBitmap);
|
|
||||||
m_EmuStateImageIndex[5] =
|
|
||||||
m_imageListSmall->Add(wxBitmap(rating_5), wxNullBitmap);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGameListCtrl::BrowseForDirectory()
|
void CGameListCtrl::BrowseForDirectory()
|
||||||
|
|
|
@ -39,9 +39,9 @@ static const wxString wxstr_name(wxTRANSLATE("Name: ")),
|
||||||
wxstr_creator(wxTRANSLATE("Creator: "));
|
wxstr_creator(wxTRANSLATE("Creator: "));
|
||||||
|
|
||||||
CodeConfigPanel::CodeConfigPanel(wxWindow* const parent)
|
CodeConfigPanel::CodeConfigPanel(wxWindow* const parent)
|
||||||
: wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize)
|
: wxPanel(parent, -1)
|
||||||
{
|
{
|
||||||
m_listbox_gcodes = new wxCheckListBox(this, -1, wxDefaultPosition, wxDefaultSize);
|
m_listbox_gcodes = new wxCheckListBox(this, -1);
|
||||||
m_listbox_gcodes->Bind(wxEVT_COMMAND_LISTBOX_SELECTED, &CodeConfigPanel::UpdateInfoBox, this);
|
m_listbox_gcodes->Bind(wxEVT_COMMAND_LISTBOX_SELECTED, &CodeConfigPanel::UpdateInfoBox, this);
|
||||||
m_listbox_gcodes->Bind(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, &CodeConfigPanel::ToggleCode, this);
|
m_listbox_gcodes->Bind(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, &CodeConfigPanel::ToggleCode, this);
|
||||||
|
|
||||||
|
|
|
@ -281,11 +281,11 @@ void HotkeyConfigDialog::CreateHotkeyGUIControls(void)
|
||||||
// A small type font
|
// A small type font
|
||||||
wxFont m_SmallFont(7, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
|
wxFont m_SmallFont(7, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
|
||||||
|
|
||||||
wxNotebook *Notebook = new wxNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize);
|
wxNotebook *Notebook = new wxNotebook(this, wxID_ANY);
|
||||||
|
|
||||||
for (int j = 0; j < 2; j++)
|
for (int j = 0; j < 2; j++)
|
||||||
{
|
{
|
||||||
wxPanel *Page = new wxPanel(Notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize);
|
wxPanel *Page = new wxPanel(Notebook, wxID_ANY);
|
||||||
Notebook->AddPage(Page, pageNames[j]);
|
Notebook->AddPage(Page, pageNames[j]);
|
||||||
|
|
||||||
wxGridBagSizer *sHotkeys = new wxGridBagSizer();
|
wxGridBagSizer *sHotkeys = new wxGridBagSizer();
|
||||||
|
@ -309,8 +309,7 @@ void HotkeyConfigDialog::CreateHotkeyGUIControls(void)
|
||||||
wxStaticText *stHotkeys = new wxStaticText(Page, wxID_ANY, hkText[i]);
|
wxStaticText *stHotkeys = new wxStaticText(Page, wxID_ANY, hkText[i]);
|
||||||
|
|
||||||
// Key selection button
|
// Key selection button
|
||||||
m_Button_Hotkeys[i] = new wxButton(Page, i, wxEmptyString,
|
m_Button_Hotkeys[i] = new wxButton(Page, i, wxEmptyString, wxDefaultPosition, size);
|
||||||
wxDefaultPosition, size);
|
|
||||||
m_Button_Hotkeys[i]->SetFont(m_SmallFont);
|
m_Button_Hotkeys[i]->SetFont(m_SmallFont);
|
||||||
m_Button_Hotkeys[i]->SetToolTip(_("Left click to detect hotkeys.\nEnter space to clear."));
|
m_Button_Hotkeys[i]->SetToolTip(_("Left click to detect hotkeys.\nEnter space to clear."));
|
||||||
SetButtonText(i,
|
SetButtonText(i,
|
||||||
|
|
|
@ -362,55 +362,48 @@ long CISOProperties::GetElementStyle(const char* section, const char* key)
|
||||||
|
|
||||||
void CISOProperties::CreateGUIControls(bool IsWad)
|
void CISOProperties::CreateGUIControls(bool IsWad)
|
||||||
{
|
{
|
||||||
wxButton * const EditConfig =
|
wxButton* const EditConfig = new wxButton(this, ID_EDITCONFIG, _("Edit Config"));
|
||||||
new wxButton(this, ID_EDITCONFIG, _("Edit Config"), wxDefaultPosition, wxDefaultSize);
|
|
||||||
EditConfig->SetToolTip(_("This will let you Manually Edit the INI config file"));
|
EditConfig->SetToolTip(_("This will let you Manually Edit the INI config file"));
|
||||||
|
|
||||||
wxButton * const EditConfigDefault =
|
wxButton* const EditConfigDefault = new wxButton(this, ID_SHOWDEFAULTCONFIG, _("Show Defaults"));
|
||||||
new wxButton(this, ID_SHOWDEFAULTCONFIG, _("Show Defaults"), wxDefaultPosition, wxDefaultSize);
|
|
||||||
EditConfigDefault->SetToolTip(_("Opens the default (read-only) configuration for this game in an external text editor."));
|
EditConfigDefault->SetToolTip(_("Opens the default (read-only) configuration for this game in an external text editor."));
|
||||||
|
|
||||||
// Notebook
|
// Notebook
|
||||||
wxNotebook * const m_Notebook =
|
wxNotebook* const m_Notebook = new wxNotebook(this, ID_NOTEBOOK);
|
||||||
new wxNotebook(this, ID_NOTEBOOK, wxDefaultPosition, wxDefaultSize);
|
wxPanel* const m_GameConfig = new wxPanel(m_Notebook, ID_GAMECONFIG);
|
||||||
wxPanel * const m_GameConfig =
|
|
||||||
new wxPanel(m_Notebook, ID_GAMECONFIG, wxDefaultPosition, wxDefaultSize);
|
|
||||||
m_Notebook->AddPage(m_GameConfig, _("GameConfig"));
|
m_Notebook->AddPage(m_GameConfig, _("GameConfig"));
|
||||||
wxPanel * const m_PatchPage =
|
wxPanel* const m_PatchPage = new wxPanel(m_Notebook, ID_PATCH_PAGE);
|
||||||
new wxPanel(m_Notebook, ID_PATCH_PAGE, wxDefaultPosition, wxDefaultSize);
|
|
||||||
m_Notebook->AddPage(m_PatchPage, _("Patches"));
|
m_Notebook->AddPage(m_PatchPage, _("Patches"));
|
||||||
wxPanel * const m_CheatPage =
|
wxPanel* const m_CheatPage = new wxPanel(m_Notebook, ID_ARCODE_PAGE);
|
||||||
new wxPanel(m_Notebook, ID_ARCODE_PAGE, wxDefaultPosition, wxDefaultSize);
|
|
||||||
m_Notebook->AddPage(m_CheatPage, _("AR Codes"));
|
m_Notebook->AddPage(m_CheatPage, _("AR Codes"));
|
||||||
m_geckocode_panel = new Gecko::CodeConfigPanel(m_Notebook);
|
m_geckocode_panel = new Gecko::CodeConfigPanel(m_Notebook);
|
||||||
m_Notebook->AddPage(m_geckocode_panel, _("Gecko Codes"));
|
m_Notebook->AddPage(m_geckocode_panel, _("Gecko Codes"));
|
||||||
wxPanel * const m_Information =
|
wxPanel* const m_Information = new wxPanel(m_Notebook, ID_INFORMATION);
|
||||||
new wxPanel(m_Notebook, ID_INFORMATION, wxDefaultPosition, wxDefaultSize);
|
|
||||||
m_Notebook->AddPage(m_Information, _("Info"));
|
m_Notebook->AddPage(m_Information, _("Info"));
|
||||||
|
|
||||||
// GameConfig editing - Overrides and emulation state
|
// GameConfig editing - Overrides and emulation state
|
||||||
wxStaticText* const OverrideText = new wxStaticText(m_GameConfig, wxID_ANY, _("These settings override core Dolphin settings.\nUndetermined means the game uses Dolphin's setting."));
|
wxStaticText* const OverrideText = new wxStaticText(m_GameConfig, wxID_ANY, _("These settings override core Dolphin settings.\nUndetermined means the game uses Dolphin's setting."));
|
||||||
|
|
||||||
// Core
|
// Core
|
||||||
CPUThread = new wxCheckBox(m_GameConfig, ID_USEDUALCORE, _("Enable Dual Core"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "CPUThread"), wxDefaultValidator);
|
CPUThread = new wxCheckBox(m_GameConfig, ID_USEDUALCORE, _("Enable Dual Core"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "CPUThread"));
|
||||||
SkipIdle = new wxCheckBox(m_GameConfig, ID_IDLESKIP, _("Enable Idle Skipping"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "SkipIdle"), wxDefaultValidator);
|
SkipIdle = new wxCheckBox(m_GameConfig, ID_IDLESKIP, _("Enable Idle Skipping"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "SkipIdle"));
|
||||||
MMU = new wxCheckBox(m_GameConfig, ID_MMU, _("Enable MMU"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "MMU"), wxDefaultValidator);
|
MMU = new wxCheckBox(m_GameConfig, ID_MMU, _("Enable MMU"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "MMU"));
|
||||||
MMU->SetToolTip(_("Enables the Memory Management Unit, needed for some games. (ON = Compatible, OFF = Fast)"));
|
MMU->SetToolTip(_("Enables the Memory Management Unit, needed for some games. (ON = Compatible, OFF = Fast)"));
|
||||||
TLBHack = new wxCheckBox(m_GameConfig, ID_TLBHACK, _("MMU Speed Hack"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "TLBHack"), wxDefaultValidator);
|
TLBHack = new wxCheckBox(m_GameConfig, ID_TLBHACK, _("MMU Speed Hack"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "TLBHack"));
|
||||||
TLBHack->SetToolTip(_("Fast version of the MMU. Does not work for every game."));
|
TLBHack->SetToolTip(_("Fast version of the MMU. Does not work for every game."));
|
||||||
DCBZOFF = new wxCheckBox(m_GameConfig, ID_DCBZOFF, _("Skip DCBZ clearing"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "DCBZ"), wxDefaultValidator);
|
DCBZOFF = new wxCheckBox(m_GameConfig, ID_DCBZOFF, _("Skip DCBZ clearing"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "DCBZ"));
|
||||||
DCBZOFF->SetToolTip(_("Bypass the clearing of the data cache by the DCBZ instruction. Usually leave this option disabled."));
|
DCBZOFF->SetToolTip(_("Bypass the clearing of the data cache by the DCBZ instruction. Usually leave this option disabled."));
|
||||||
VBeam = new wxCheckBox(m_GameConfig, ID_VBEAM, _("VBeam Speed Hack"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "VBeam"), wxDefaultValidator);
|
VBeam = new wxCheckBox(m_GameConfig, ID_VBEAM, _("VBeam Speed Hack"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "VBeam"));
|
||||||
VBeam->SetToolTip(_("Doubles the emulated GPU clock rate. May speed up some games (ON = Fast, OFF = Compatible)"));
|
VBeam->SetToolTip(_("Doubles the emulated GPU clock rate. May speed up some games (ON = Fast, OFF = Compatible)"));
|
||||||
SyncGPU = new wxCheckBox(m_GameConfig, ID_SYNCGPU, _("Synchronize GPU thread"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "SyncGPU"), wxDefaultValidator);
|
SyncGPU = new wxCheckBox(m_GameConfig, ID_SYNCGPU, _("Synchronize GPU thread"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "SyncGPU"));
|
||||||
SyncGPU->SetToolTip(_("Synchronizes the GPU and CPU threads to help prevent random freezes in Dual Core mode. (ON = Compatible, OFF = Fast)"));
|
SyncGPU->SetToolTip(_("Synchronizes the GPU and CPU threads to help prevent random freezes in Dual Core mode. (ON = Compatible, OFF = Fast)"));
|
||||||
FastDiscSpeed = new wxCheckBox(m_GameConfig, ID_DISCSPEED, _("Speed up Disc Transfer Rate"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "FastDiscSpeed"), wxDefaultValidator);
|
FastDiscSpeed = new wxCheckBox(m_GameConfig, ID_DISCSPEED, _("Speed up Disc Transfer Rate"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "FastDiscSpeed"));
|
||||||
FastDiscSpeed->SetToolTip(_("Enable fast disc access. Needed for a few games. (ON = Fast, OFF = Compatible)"));
|
FastDiscSpeed->SetToolTip(_("Enable fast disc access. Needed for a few games. (ON = Fast, OFF = Compatible)"));
|
||||||
BlockMerging = new wxCheckBox(m_GameConfig, ID_MERGEBLOCKS, _("Enable Block Merging"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "BlockMerging"), wxDefaultValidator);
|
BlockMerging = new wxCheckBox(m_GameConfig, ID_MERGEBLOCKS, _("Enable Block Merging"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "BlockMerging"));
|
||||||
DSPHLE = new wxCheckBox(m_GameConfig, ID_AUDIO_DSP_HLE, _("DSP HLE emulation (fast)"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "DSPHLE"), wxDefaultValidator);
|
DSPHLE = new wxCheckBox(m_GameConfig, ID_AUDIO_DSP_HLE, _("DSP HLE emulation (fast)"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Core", "DSPHLE"));
|
||||||
|
|
||||||
// Wii Console
|
// Wii Console
|
||||||
EnableWideScreen = new wxCheckBox(m_GameConfig, ID_ENABLEWIDESCREEN, _("Enable WideScreen"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Wii", "Widescreen"), wxDefaultValidator);
|
EnableWideScreen = new wxCheckBox(m_GameConfig, ID_ENABLEWIDESCREEN, _("Enable WideScreen"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Wii", "Widescreen"));
|
||||||
|
|
||||||
// Video
|
// Video
|
||||||
UseBBox = new wxCheckBox(m_GameConfig, ID_USE_BBOX, _("Enable Bounding Box Calculation"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Video", "UseBBox"));
|
UseBBox = new wxCheckBox(m_GameConfig, ID_USE_BBOX, _("Enable Bounding Box Calculation"), wxDefaultPosition, wxDefaultSize, GetElementStyle("Video", "UseBBox"));
|
||||||
|
@ -424,16 +417,14 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
||||||
PHSettings->SetToolTip(_("Customize some Orthographic Projection parameters."));
|
PHSettings->SetToolTip(_("Customize some Orthographic Projection parameters."));
|
||||||
|
|
||||||
wxBoxSizer* const sEmuState = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* const sEmuState = new wxBoxSizer(wxHORIZONTAL);
|
||||||
wxStaticText * const EmuStateText =
|
wxStaticText* const EmuStateText = new wxStaticText(m_GameConfig, wxID_ANY, _("Emulation State: "));
|
||||||
new wxStaticText(m_GameConfig, wxID_ANY, _("Emulation State: "));
|
|
||||||
arrayStringFor_EmuState.Add(_("Not Set"));
|
arrayStringFor_EmuState.Add(_("Not Set"));
|
||||||
arrayStringFor_EmuState.Add(_("Broken"));
|
arrayStringFor_EmuState.Add(_("Broken"));
|
||||||
arrayStringFor_EmuState.Add(_("Intro"));
|
arrayStringFor_EmuState.Add(_("Intro"));
|
||||||
arrayStringFor_EmuState.Add(_("In Game"));
|
arrayStringFor_EmuState.Add(_("In Game"));
|
||||||
arrayStringFor_EmuState.Add(_("Playable"));
|
arrayStringFor_EmuState.Add(_("Playable"));
|
||||||
arrayStringFor_EmuState.Add(_("Perfect"));
|
arrayStringFor_EmuState.Add(_("Perfect"));
|
||||||
EmuState = new wxChoice(m_GameConfig, ID_EMUSTATE,
|
EmuState = new wxChoice(m_GameConfig, ID_EMUSTATE, wxDefaultPosition, wxDefaultSize, arrayStringFor_EmuState);
|
||||||
wxDefaultPosition, wxDefaultSize, arrayStringFor_EmuState);
|
|
||||||
EmuIssues = new wxTextCtrl(m_GameConfig, ID_EMU_ISSUES, wxEmptyString);
|
EmuIssues = new wxTextCtrl(m_GameConfig, ID_EMU_ISSUES, wxEmptyString);
|
||||||
|
|
||||||
wxBoxSizer* const sConfigPage = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const sConfigPage = new wxBoxSizer(wxVERTICAL);
|
||||||
|
@ -450,8 +441,7 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
||||||
sbCoreOverrides->Add(BlockMerging, 0, wxLEFT, 5);
|
sbCoreOverrides->Add(BlockMerging, 0, wxLEFT, 5);
|
||||||
sbCoreOverrides->Add(DSPHLE, 0, wxLEFT, 5);
|
sbCoreOverrides->Add(DSPHLE, 0, wxLEFT, 5);
|
||||||
|
|
||||||
wxStaticBoxSizer * const sbWiiOverrides =
|
wxStaticBoxSizer * const sbWiiOverrides = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Wii Console"));
|
||||||
new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Wii Console"));
|
|
||||||
if (!DiscIO::IsVolumeWiiDisc(OpenISO) && !DiscIO::IsVolumeWadFile(OpenISO))
|
if (!DiscIO::IsVolumeWiiDisc(OpenISO) && !DiscIO::IsVolumeWadFile(OpenISO))
|
||||||
{
|
{
|
||||||
sbWiiOverrides->ShowItems(false);
|
sbWiiOverrides->ShowItems(false);
|
||||||
|
@ -459,15 +449,13 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
||||||
}
|
}
|
||||||
sbWiiOverrides->Add(EnableWideScreen, 0, wxLEFT, 5);
|
sbWiiOverrides->Add(EnableWideScreen, 0, wxLEFT, 5);
|
||||||
|
|
||||||
wxStaticBoxSizer * const sbVideoOverrides =
|
wxStaticBoxSizer * const sbVideoOverrides = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Video"));
|
||||||
new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Video"));
|
|
||||||
sbVideoOverrides->Add(UseBBox, 0, wxLEFT, 5);
|
sbVideoOverrides->Add(UseBBox, 0, wxLEFT, 5);
|
||||||
szrPHackSettings->Add(PHackEnable, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5);
|
szrPHackSettings->Add(PHackEnable, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5);
|
||||||
szrPHackSettings->Add(PHSettings, 0, wxLEFT, 5);
|
szrPHackSettings->Add(PHSettings, 0, wxLEFT, 5);
|
||||||
|
|
||||||
sbVideoOverrides->Add(szrPHackSettings, 0, wxEXPAND);
|
sbVideoOverrides->Add(szrPHackSettings, 0, wxEXPAND);
|
||||||
wxStaticBoxSizer * const sbGameConfig =
|
wxStaticBoxSizer * const sbGameConfig = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Game-Specific Settings"));
|
||||||
new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Game-Specific Settings"));
|
|
||||||
sbGameConfig->Add(OverrideText, 0, wxEXPAND|wxALL, 5);
|
sbGameConfig->Add(OverrideText, 0, wxEXPAND|wxALL, 5);
|
||||||
sbGameConfig->Add(sbCoreOverrides, 0, wxEXPAND);
|
sbGameConfig->Add(sbCoreOverrides, 0, wxEXPAND);
|
||||||
sbGameConfig->Add(sbWiiOverrides, 0, wxEXPAND);
|
sbGameConfig->Add(sbWiiOverrides, 0, wxEXPAND);
|
||||||
|
@ -482,8 +470,7 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
||||||
|
|
||||||
// Patches
|
// Patches
|
||||||
wxBoxSizer* const sPatches = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const sPatches = new wxBoxSizer(wxVERTICAL);
|
||||||
Patches = new wxCheckListBox(m_PatchPage, ID_PATCHES_LIST, wxDefaultPosition,
|
Patches = new wxCheckListBox(m_PatchPage, ID_PATCHES_LIST, wxDefaultPosition, wxDefaultSize, arrayStringFor_Patches, wxLB_HSCROLL);
|
||||||
wxDefaultSize, arrayStringFor_Patches, wxLB_HSCROLL);
|
|
||||||
wxBoxSizer* const sPatchButtons = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* const sPatchButtons = new wxBoxSizer(wxHORIZONTAL);
|
||||||
EditPatch = new wxButton(m_PatchPage, ID_EDITPATCH, _("Edit..."));
|
EditPatch = new wxButton(m_PatchPage, ID_EDITPATCH, _("Edit..."));
|
||||||
wxButton* const AddPatch = new wxButton(m_PatchPage, ID_ADDPATCH, _("Add..."));
|
wxButton* const AddPatch = new wxButton(m_PatchPage, ID_ADDPATCH, _("Add..."));
|
||||||
|
@ -504,13 +491,11 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
||||||
|
|
||||||
// Action Replay Cheats
|
// Action Replay Cheats
|
||||||
wxBoxSizer * const sCheats = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer * const sCheats = new wxBoxSizer(wxVERTICAL);
|
||||||
Cheats = new wxCheckListBox(m_CheatPage, ID_CHEATS_LIST, wxDefaultPosition,
|
Cheats = new wxCheckListBox(m_CheatPage, ID_CHEATS_LIST, wxDefaultPosition, wxDefaultSize, arrayStringFor_Cheats, wxLB_HSCROLL);
|
||||||
wxDefaultSize, arrayStringFor_Cheats, wxLB_HSCROLL);
|
|
||||||
wxBoxSizer * const sCheatButtons = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer * const sCheatButtons = new wxBoxSizer(wxHORIZONTAL);
|
||||||
EditCheat = new wxButton(m_CheatPage, ID_EDITCHEAT, _("Edit..."));
|
EditCheat = new wxButton(m_CheatPage, ID_EDITCHEAT, _("Edit..."));
|
||||||
wxButton * const AddCheat = new wxButton(m_CheatPage, ID_ADDCHEAT, _("Add..."));
|
wxButton * const AddCheat = new wxButton(m_CheatPage, ID_ADDCHEAT, _("Add..."));
|
||||||
RemoveCheat = new wxButton(m_CheatPage, ID_REMOVECHEAT, _("Remove"),
|
RemoveCheat = new wxButton(m_CheatPage, ID_REMOVECHEAT, _("Remove"));
|
||||||
wxDefaultPosition, wxDefaultSize, 0);
|
|
||||||
EditCheat->Enable(false);
|
EditCheat->Enable(false);
|
||||||
RemoveCheat->Enable(false);
|
RemoveCheat->Enable(false);
|
||||||
|
|
||||||
|
@ -525,34 +510,20 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
||||||
m_CheatPage->SetSizer(sCheatPage);
|
m_CheatPage->SetSizer(sCheatPage);
|
||||||
|
|
||||||
|
|
||||||
wxStaticText * const m_NameText =
|
wxStaticText* const m_NameText = new wxStaticText(m_Information, wxID_ANY, _("Name:"));
|
||||||
new wxStaticText(m_Information, wxID_ANY, _("Name:"));
|
m_Name = new wxTextCtrl(m_Information, ID_NAME, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
||||||
m_Name = new wxTextCtrl(m_Information, ID_NAME, wxEmptyString,
|
wxStaticText* const m_GameIDText = new wxStaticText(m_Information, wxID_ANY, _("Game ID:"));
|
||||||
wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
m_GameID = new wxTextCtrl(m_Information, ID_GAMEID, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
||||||
wxStaticText * const m_GameIDText =
|
wxStaticText* const m_CountryText = new wxStaticText(m_Information, wxID_ANY, _("Country:"));
|
||||||
new wxStaticText(m_Information, wxID_ANY, _("Game ID:"));
|
m_Country = new wxTextCtrl(m_Information, ID_COUNTRY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
||||||
m_GameID = new wxTextCtrl(m_Information, ID_GAMEID, wxEmptyString,
|
wxStaticText* const m_MakerIDText = new wxStaticText(m_Information, wxID_ANY, _("Maker ID:"));
|
||||||
wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
m_MakerID = new wxTextCtrl(m_Information, ID_MAKERID, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
||||||
wxStaticText * const m_CountryText =
|
wxStaticText* const m_RevisionText = new wxStaticText(m_Information, wxID_ANY, _("Revision:"));
|
||||||
new wxStaticText(m_Information, wxID_ANY, _("Country:"));
|
m_Revision = new wxTextCtrl(m_Information, ID_REVISION, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
||||||
m_Country = new wxTextCtrl(m_Information, ID_COUNTRY, wxEmptyString,
|
wxStaticText* const m_DateText = new wxStaticText(m_Information, wxID_ANY, _("Date:"));
|
||||||
wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
m_Date = new wxTextCtrl(m_Information, ID_DATE, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
||||||
wxStaticText * const m_MakerIDText =
|
wxStaticText* const m_FSTText = new wxStaticText(m_Information, wxID_ANY, _("FST Size:"));
|
||||||
new wxStaticText(m_Information, wxID_ANY, _("Maker ID:"));
|
m_FST = new wxTextCtrl(m_Information, ID_FST, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
||||||
m_MakerID = new wxTextCtrl(m_Information, ID_MAKERID, wxEmptyString,
|
|
||||||
wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
|
||||||
wxStaticText * const m_RevisionText =
|
|
||||||
new wxStaticText(m_Information, wxID_ANY, _("Revision:"));
|
|
||||||
m_Revision = new wxTextCtrl(m_Information, ID_REVISION, wxEmptyString,
|
|
||||||
wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
|
||||||
wxStaticText * const m_DateText =
|
|
||||||
new wxStaticText(m_Information, wxID_ANY, _("Date:"));
|
|
||||||
m_Date = new wxTextCtrl(m_Information, ID_DATE, wxEmptyString,
|
|
||||||
wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
|
||||||
wxStaticText * const m_FSTText =
|
|
||||||
new wxStaticText(m_Information, wxID_ANY, _("FST Size:"));
|
|
||||||
m_FST = new wxTextCtrl(m_Information, ID_FST, wxEmptyString,
|
|
||||||
wxDefaultPosition, wxDefaultSize, wxTE_READONLY);
|
|
||||||
|
|
||||||
wxStaticText* const m_LangText = new wxStaticText(m_Information, wxID_ANY, _("Show Language:"));
|
wxStaticText* const m_LangText = new wxStaticText(m_Information, wxID_ANY, _("Show Language:"));
|
||||||
arrayStringFor_Lang.Add(_("English"));
|
arrayStringFor_Lang.Add(_("English"));
|
||||||
|
@ -581,7 +552,7 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
||||||
wxStaticText* const m_CommentText = new wxStaticText(m_Information, wxID_ANY, _("Comment:"));
|
wxStaticText* const m_CommentText = new wxStaticText(m_Information, wxID_ANY, _("Comment:"));
|
||||||
m_Comment = new wxTextCtrl(m_Information, ID_COMMENT, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY);
|
m_Comment = new wxTextCtrl(m_Information, ID_COMMENT, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY);
|
||||||
wxStaticText* const m_BannerText = new wxStaticText(m_Information, wxID_ANY, _("Banner:"));
|
wxStaticText* const m_BannerText = new wxStaticText(m_Information, wxID_ANY, _("Banner:"));
|
||||||
m_Banner = new wxStaticBitmap(m_Information, ID_BANNER, wxNullBitmap, wxDefaultPosition, wxSize(96, 32), 0);
|
m_Banner = new wxStaticBitmap(m_Information, ID_BANNER, wxNullBitmap, wxDefaultPosition, wxSize(96, 32));
|
||||||
|
|
||||||
// ISO Details
|
// ISO Details
|
||||||
wxGridBagSizer* const sISODetails = new wxGridBagSizer(0, 0);
|
wxGridBagSizer* const sISODetails = new wxGridBagSizer(0, 0);
|
||||||
|
@ -628,8 +599,7 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
||||||
|
|
||||||
if (!IsWad)
|
if (!IsWad)
|
||||||
{
|
{
|
||||||
wxPanel * const m_Filesystem =
|
wxPanel* const m_Filesystem = new wxPanel(m_Notebook, ID_FILESYSTEM);
|
||||||
new wxPanel(m_Notebook, ID_FILESYSTEM, wxDefaultPosition, wxDefaultSize);
|
|
||||||
m_Notebook->AddPage(m_Filesystem, _("Filesystem"));
|
m_Notebook->AddPage(m_Filesystem, _("Filesystem"));
|
||||||
|
|
||||||
// Filesystem icons
|
// Filesystem icons
|
||||||
|
@ -639,8 +609,7 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
||||||
m_iconList->Add(wxBitmap(file_xpm), wxNullBitmap); // 2
|
m_iconList->Add(wxBitmap(file_xpm), wxNullBitmap); // 2
|
||||||
|
|
||||||
// Filesystem tree
|
// Filesystem tree
|
||||||
m_Treectrl = new wxTreeCtrl(m_Filesystem, ID_TREECTRL,
|
m_Treectrl = new wxTreeCtrl(m_Filesystem, ID_TREECTRL);
|
||||||
wxDefaultPosition, wxDefaultSize, wxTR_DEFAULT_STYLE);
|
|
||||||
m_Treectrl->AssignImageList(m_iconList);
|
m_Treectrl->AssignImageList(m_iconList);
|
||||||
RootId = m_Treectrl->AddRoot(_("Disc"), 0, 0, 0);
|
RootId = m_Treectrl->AddRoot(_("Disc"), 0, 0, 0);
|
||||||
|
|
||||||
|
@ -659,8 +628,7 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
||||||
EditConfigDefault->Disable();
|
EditConfigDefault->Disable();
|
||||||
|
|
||||||
// Add notebook and buttons to the dialog
|
// Add notebook and buttons to the dialog
|
||||||
wxBoxSizer* sMain;
|
wxBoxSizer* sMain = new wxBoxSizer(wxVERTICAL);
|
||||||
sMain = new wxBoxSizer(wxVERTICAL);
|
|
||||||
sMain->Add(m_Notebook, 1, wxEXPAND|wxALL, 5);
|
sMain->Add(m_Notebook, 1, wxEXPAND|wxALL, 5);
|
||||||
sMain->Add(sButtons, 0, wxEXPAND|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
sMain->Add(sButtons, 0, wxEXPAND|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
||||||
sMain->SetMinSize(wxSize(500, -1));
|
sMain->SetMinSize(wxSize(500, -1));
|
||||||
|
@ -697,7 +665,7 @@ void CISOProperties::OnBannerImageSave(wxCommandEvent& WXUNUSED (event))
|
||||||
wxString dirHome;
|
wxString dirHome;
|
||||||
|
|
||||||
wxFileDialog dialog(this, _("Save as..."), wxGetHomeDir(&dirHome), wxString::Format(wxT("%s.png"), m_GameID->GetLabel().c_str()),
|
wxFileDialog dialog(this, _("Save as..."), wxGetHomeDir(&dirHome), wxString::Format(wxT("%s.png"), m_GameID->GetLabel().c_str()),
|
||||||
wxALL_FILES_PATTERN, wxFD_SAVE|wxFD_OVERWRITE_PROMPT, wxDefaultPosition, wxDefaultSize);
|
wxALL_FILES_PATTERN, wxFD_SAVE|wxFD_OVERWRITE_PROMPT);
|
||||||
if (dialog.ShowModal() == wxID_OK)
|
if (dialog.ShowModal() == wxID_OK)
|
||||||
{
|
{
|
||||||
m_Banner->GetBitmap().ConvertToImage().SaveFile(dialog.GetPath());
|
m_Banner->GetBitmap().ConvertToImage().SaveFile(dialog.GetPath());
|
||||||
|
@ -716,9 +684,13 @@ void CISOProperties::OnRightClickOnTree(wxTreeEvent& event)
|
||||||
popupMenu->Append(IDM_EXTRACTDIR, _("Extract Partition..."));
|
popupMenu->Append(IDM_EXTRACTDIR, _("Extract Partition..."));
|
||||||
}
|
}
|
||||||
else if (m_Treectrl->GetItemImage(m_Treectrl->GetSelection()) == 1)
|
else if (m_Treectrl->GetItemImage(m_Treectrl->GetSelection()) == 1)
|
||||||
|
{
|
||||||
popupMenu->Append(IDM_EXTRACTDIR, _("Extract Directory..."));
|
popupMenu->Append(IDM_EXTRACTDIR, _("Extract Directory..."));
|
||||||
|
}
|
||||||
else if (m_Treectrl->GetItemImage(m_Treectrl->GetSelection()) == 2)
|
else if (m_Treectrl->GetItemImage(m_Treectrl->GetSelection()) == 2)
|
||||||
|
{
|
||||||
popupMenu->Append(IDM_EXTRACTFILE, _("Extract File..."));
|
popupMenu->Append(IDM_EXTRACTFILE, _("Extract File..."));
|
||||||
|
}
|
||||||
|
|
||||||
popupMenu->Append(IDM_EXTRACTALL, _("Extract All Files..."));
|
popupMenu->Append(IDM_EXTRACTALL, _("Extract All Files..."));
|
||||||
|
|
||||||
|
@ -739,12 +711,9 @@ void CISOProperties::OnRightClickOnTree(wxTreeEvent& event)
|
||||||
|
|
||||||
void CISOProperties::OnExtractFile(wxCommandEvent& WXUNUSED (event))
|
void CISOProperties::OnExtractFile(wxCommandEvent& WXUNUSED (event))
|
||||||
{
|
{
|
||||||
wxString Path;
|
wxString File = m_Treectrl->GetItemText(m_Treectrl->GetSelection());
|
||||||
wxString File;
|
|
||||||
|
|
||||||
File = m_Treectrl->GetItemText(m_Treectrl->GetSelection());
|
wxString Path = wxFileSelector(
|
||||||
|
|
||||||
Path = wxFileSelector(
|
|
||||||
_("Export File"),
|
_("Export File"),
|
||||||
wxEmptyString, File, wxEmptyString,
|
wxEmptyString, File, wxEmptyString,
|
||||||
wxGetTranslation(wxALL_FILES),
|
wxGetTranslation(wxALL_FILES),
|
||||||
|
@ -756,8 +725,7 @@ void CISOProperties::OnExtractFile(wxCommandEvent& WXUNUSED (event))
|
||||||
|
|
||||||
while (m_Treectrl->GetItemParent(m_Treectrl->GetSelection()) != m_Treectrl->GetRootItem())
|
while (m_Treectrl->GetItemParent(m_Treectrl->GetSelection()) != m_Treectrl->GetRootItem())
|
||||||
{
|
{
|
||||||
wxString temp;
|
wxString temp = m_Treectrl->GetItemText(m_Treectrl->GetItemParent(m_Treectrl->GetSelection()));
|
||||||
temp = m_Treectrl->GetItemText(m_Treectrl->GetItemParent(m_Treectrl->GetSelection()));
|
|
||||||
File = temp + wxT(DIR_SEP_CHR) + File;
|
File = temp + wxT(DIR_SEP_CHR) + File;
|
||||||
|
|
||||||
m_Treectrl->SelectItem(m_Treectrl->GetItemParent(m_Treectrl->GetSelection()));
|
m_Treectrl->SelectItem(m_Treectrl->GetItemParent(m_Treectrl->GetSelection()));
|
||||||
|
|
|
@ -73,8 +73,7 @@ void GamepadPage::ConfigExtension(wxCommandEvent& event)
|
||||||
if (ex->switch_extension)
|
if (ex->switch_extension)
|
||||||
{
|
{
|
||||||
wxDialog dlg(this, -1,
|
wxDialog dlg(this, -1,
|
||||||
wxGetTranslation(StrToWxStr(ex->attachments[ex->switch_extension]->GetName())),
|
wxGetTranslation(StrToWxStr(ex->attachments[ex->switch_extension]->GetName())));
|
||||||
wxDefaultPosition, wxDefaultSize);
|
|
||||||
|
|
||||||
wxBoxSizer* const main_szr = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const main_szr = new wxBoxSizer(wxVERTICAL);
|
||||||
const std::size_t orig_size = control_groups.size();
|
const std::size_t orig_size = control_groups.size();
|
||||||
|
@ -115,7 +114,7 @@ void PadSettingExtension::UpdateValue()
|
||||||
}
|
}
|
||||||
|
|
||||||
PadSettingCheckBox::PadSettingCheckBox(wxWindow* const parent, ControlState& _value, const char* const label)
|
PadSettingCheckBox::PadSettingCheckBox(wxWindow* const parent, ControlState& _value, const char* const label)
|
||||||
: PadSetting(new wxCheckBox(parent, -1, wxGetTranslation(StrToWxStr(label)), wxDefaultPosition))
|
: PadSetting(new wxCheckBox(parent, -1, wxGetTranslation(StrToWxStr(label))))
|
||||||
, value(_value)
|
, value(_value)
|
||||||
{
|
{
|
||||||
UpdateGUI();
|
UpdateGUI();
|
||||||
|
@ -573,10 +572,10 @@ wxStaticBoxSizer* ControlDialog::CreateControlChooser(GamepadPage* const parent)
|
||||||
wxButton* const select_button = new wxButton(this, -1, _("Select"));
|
wxButton* const select_button = new wxButton(this, -1, _("Select"));
|
||||||
select_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &ControlDialog::SetSelectedControl, this);
|
select_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &ControlDialog::SetSelectedControl, this);
|
||||||
|
|
||||||
wxButton* const not_button = new wxButton(this, -1, _("! NOT"), wxDefaultPosition);
|
wxButton* const not_button = new wxButton(this, -1, _("! NOT"));
|
||||||
not_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &ControlDialog::AppendControl, this);
|
not_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &ControlDialog::AppendControl, this);
|
||||||
|
|
||||||
wxButton* const or_button = new wxButton(this, -1, _("| OR"), wxDefaultPosition);
|
wxButton* const or_button = new wxButton(this, -1, _("| OR"));
|
||||||
or_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &ControlDialog::AppendControl, this);
|
or_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &ControlDialog::AppendControl, this);
|
||||||
|
|
||||||
control_lbox = new wxListBox(this, -1, wxDefaultPosition, wxSize(-1, 64));
|
control_lbox = new wxListBox(this, -1, wxDefaultPosition, wxSize(-1, 64));
|
||||||
|
@ -589,8 +588,8 @@ wxStaticBoxSizer* ControlDialog::CreateControlChooser(GamepadPage* const parent)
|
||||||
if (control_reference->is_input)
|
if (control_reference->is_input)
|
||||||
{
|
{
|
||||||
// TODO: check if && is good on other OS
|
// TODO: check if && is good on other OS
|
||||||
wxButton* const and_button = new wxButton(this, -1, _("&& AND"), wxDefaultPosition);
|
wxButton* const and_button = new wxButton(this, -1, _("&& AND"));
|
||||||
wxButton* const add_button = new wxButton(this, -1, _("+ ADD"), wxDefaultPosition);
|
wxButton* const add_button = new wxButton(this, -1, _("+ ADD"));
|
||||||
|
|
||||||
and_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &ControlDialog::AppendControl, this);
|
and_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &ControlDialog::AppendControl, this);
|
||||||
add_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &ControlDialog::AppendControl, this);
|
add_button->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &ControlDialog::AppendControl, this);
|
||||||
|
@ -950,7 +949,7 @@ ControlGroupsSizer::ControlGroupsSizer(ControllerEmu* const controller, wxWindow
|
||||||
}
|
}
|
||||||
|
|
||||||
GamepadPage::GamepadPage(wxWindow* parent, InputPlugin& plugin, const unsigned int pad_num, InputConfigDialog* const config_dialog)
|
GamepadPage::GamepadPage(wxWindow* parent, InputPlugin& plugin, const unsigned int pad_num, InputConfigDialog* const config_dialog)
|
||||||
: wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize)
|
: wxPanel(parent, wxID_ANY)
|
||||||
,controller(plugin.controllers[pad_num])
|
,controller(plugin.controllers[pad_num])
|
||||||
, m_config_dialog(config_dialog)
|
, m_config_dialog(config_dialog)
|
||||||
, m_plugin(plugin)
|
, m_plugin(plugin)
|
||||||
|
@ -1019,7 +1018,7 @@ GamepadPage::GamepadPage(wxWindow* parent, InputPlugin& plugin, const unsigned i
|
||||||
|
|
||||||
|
|
||||||
InputConfigDialog::InputConfigDialog(wxWindow* const parent, InputPlugin& plugin, const std::string& name, const int tab_num)
|
InputConfigDialog::InputConfigDialog(wxWindow* const parent, InputPlugin& plugin, const std::string& name, const int tab_num)
|
||||||
: wxDialog(parent, wxID_ANY, wxGetTranslation(StrToWxStr(name)), wxPoint(128,-1), wxDefaultSize)
|
: wxDialog(parent, wxID_ANY, wxGetTranslation(StrToWxStr(name)), wxPoint(128,-1))
|
||||||
, m_plugin(plugin)
|
, m_plugin(plugin)
|
||||||
{
|
{
|
||||||
m_pad_notebook = new wxNotebook(this, -1, wxDefaultPosition, wxDefaultSize, wxNB_DEFAULT);
|
m_pad_notebook = new wxNotebook(this, -1, wxDefaultPosition, wxDefaultSize, wxNB_DEFAULT);
|
||||||
|
|
|
@ -56,8 +56,7 @@ void LogConfigWindow::CreateGUIControls()
|
||||||
for (int i = 0; i < MAX_LOGLEVEL; ++i)
|
for (int i = 0; i < MAX_LOGLEVEL; ++i)
|
||||||
wxLevelsUse.Add(wxLevels[i]);
|
wxLevelsUse.Add(wxLevels[i]);
|
||||||
m_verbosity = new wxRadioBox(this, wxID_ANY, _("Verbosity"),
|
m_verbosity = new wxRadioBox(this, wxID_ANY, _("Verbosity"),
|
||||||
wxDefaultPosition, wxDefaultSize, wxLevelsUse, 0,
|
wxDefaultPosition, wxDefaultSize, wxLevelsUse, 0, wxRA_SPECIFY_ROWS);
|
||||||
wxRA_SPECIFY_ROWS, wxDefaultValidator);
|
|
||||||
m_verbosity->Bind(wxEVT_COMMAND_RADIOBOX_SELECTED, &LogConfigWindow::OnVerbosityChange, this);
|
m_verbosity->Bind(wxEVT_COMMAND_RADIOBOX_SELECTED, &LogConfigWindow::OnVerbosityChange, this);
|
||||||
|
|
||||||
// Options
|
// Options
|
||||||
|
|
|
@ -129,8 +129,7 @@ void CLogWindow::CreateGUIControls()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Font
|
// Font
|
||||||
m_FontChoice = new wxChoice(this, IDM_FONT,
|
m_FontChoice = new wxChoice(this, IDM_FONT);
|
||||||
wxDefaultPosition, wxDefaultSize, 0, NULL, 0, wxDefaultValidator);
|
|
||||||
m_FontChoice->Append(_("Default font"));
|
m_FontChoice->Append(_("Default font"));
|
||||||
m_FontChoice->Append(_("Monospaced font"));
|
m_FontChoice->Append(_("Monospaced font"));
|
||||||
m_FontChoice->Append(_("Selected font"));
|
m_FontChoice->Append(_("Selected font"));
|
||||||
|
@ -161,8 +160,7 @@ void CLogWindow::CreateGUIControls()
|
||||||
|
|
||||||
// Sizers
|
// Sizers
|
||||||
wxBoxSizer *sTop = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer *sTop = new wxBoxSizer(wxHORIZONTAL);
|
||||||
sTop->Add(new wxButton(this, IDM_CLEARLOG, _("Clear"),
|
sTop->Add(new wxButton(this, IDM_CLEARLOG, _("Clear"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT));
|
||||||
wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT));
|
|
||||||
sTop->Add(m_FontChoice, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT, 3);
|
sTop->Add(m_FontChoice, 0, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT, 3);
|
||||||
sTop->Add(m_WrapLine, 0, wxALIGN_CENTER_VERTICAL);
|
sTop->Add(m_WrapLine, 0, wxALIGN_CENTER_VERTICAL);
|
||||||
|
|
||||||
|
|
|
@ -81,7 +81,7 @@ void FillWithGameNames(wxListBox* game_lbox, const CGameListCtrl& game_list)
|
||||||
}
|
}
|
||||||
|
|
||||||
NetPlaySetupDiag::NetPlaySetupDiag(wxWindow* const parent, const CGameListCtrl* const game_list)
|
NetPlaySetupDiag::NetPlaySetupDiag(wxWindow* const parent, const CGameListCtrl* const game_list)
|
||||||
: wxFrame(parent, wxID_ANY, wxT(NETPLAY_TITLEBAR), wxDefaultPosition, wxDefaultSize)
|
: wxFrame(parent, wxID_ANY, wxT(NETPLAY_TITLEBAR))
|
||||||
, m_game_list(game_list)
|
, m_game_list(game_list)
|
||||||
{
|
{
|
||||||
IniFile inifile;
|
IniFile inifile;
|
||||||
|
@ -91,8 +91,7 @@ NetPlaySetupDiag::NetPlaySetupDiag(wxWindow* const parent, const CGameListCtrl*
|
||||||
wxPanel* const panel = new wxPanel(this);
|
wxPanel* const panel = new wxPanel(this);
|
||||||
|
|
||||||
// top row
|
// top row
|
||||||
wxStaticText* const nick_lbl = new wxStaticText(panel, wxID_ANY, _("Nickname :"),
|
wxStaticText* const nick_lbl = new wxStaticText(panel, wxID_ANY, _("Nickname :"));
|
||||||
wxDefaultPosition, wxDefaultSize);
|
|
||||||
|
|
||||||
std::string nickname;
|
std::string nickname;
|
||||||
netplay_section.Get("Nickname", &nickname, "Player");
|
netplay_section.Get("Nickname", &nickname, "Player");
|
||||||
|
@ -104,24 +103,22 @@ NetPlaySetupDiag::NetPlaySetupDiag(wxWindow* const parent, const CGameListCtrl*
|
||||||
|
|
||||||
|
|
||||||
// tabs
|
// tabs
|
||||||
wxNotebook* const notebook = new wxNotebook(panel, wxID_ANY, wxDefaultPosition, wxDefaultSize);
|
wxNotebook* const notebook = new wxNotebook(panel, wxID_ANY);
|
||||||
wxPanel* const connect_tab = new wxPanel(notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize);
|
wxPanel* const connect_tab = new wxPanel(notebook, wxID_ANY);
|
||||||
notebook->AddPage(connect_tab, _("Connect"));
|
notebook->AddPage(connect_tab, _("Connect"));
|
||||||
wxPanel* const host_tab = new wxPanel(notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize);
|
wxPanel* const host_tab = new wxPanel(notebook, wxID_ANY);
|
||||||
notebook->AddPage(host_tab, _("Host"));
|
notebook->AddPage(host_tab, _("Host"));
|
||||||
|
|
||||||
|
|
||||||
// connect tab
|
// connect tab
|
||||||
{
|
{
|
||||||
wxStaticText* const ip_lbl = new wxStaticText(connect_tab, wxID_ANY, _("Address :"),
|
wxStaticText* const ip_lbl = new wxStaticText(connect_tab, wxID_ANY, _("Address :"));
|
||||||
wxDefaultPosition, wxDefaultSize);
|
|
||||||
|
|
||||||
std::string address;
|
std::string address;
|
||||||
netplay_section.Get("Address", &address, "localhost");
|
netplay_section.Get("Address", &address, "localhost");
|
||||||
m_connect_ip_text = new wxTextCtrl(connect_tab, wxID_ANY, StrToWxStr(address));
|
m_connect_ip_text = new wxTextCtrl(connect_tab, wxID_ANY, StrToWxStr(address));
|
||||||
|
|
||||||
wxStaticText* const port_lbl = new wxStaticText(connect_tab, wxID_ANY, _("Port :"),
|
wxStaticText* const port_lbl = new wxStaticText(connect_tab, wxID_ANY, _("Port :"));
|
||||||
wxDefaultPosition, wxDefaultSize);
|
|
||||||
|
|
||||||
// string? w/e
|
// string? w/e
|
||||||
std::string port;
|
std::string port;
|
||||||
|
@ -144,8 +141,7 @@ NetPlaySetupDiag::NetPlaySetupDiag(wxWindow* const parent, const CGameListCtrl*
|
||||||
"All memory cards must be identical between players or disabled.\n"
|
"All memory cards must be identical between players or disabled.\n"
|
||||||
"Wiimote support is probably terrible. Don't use it.\n"
|
"Wiimote support is probably terrible. Don't use it.\n"
|
||||||
"\n"
|
"\n"
|
||||||
"The host must have the chosen TCP port open/forwarded!\n"),
|
"The host must have the chosen TCP port open/forwarded!\n"));
|
||||||
wxDefaultPosition, wxDefaultSize);
|
|
||||||
|
|
||||||
wxBoxSizer* const top_szr = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* const top_szr = new wxBoxSizer(wxHORIZONTAL);
|
||||||
top_szr->Add(ip_lbl, 0, wxCENTER | wxRIGHT, 5);
|
top_szr->Add(ip_lbl, 0, wxCENTER | wxRIGHT, 5);
|
||||||
|
@ -165,8 +161,7 @@ NetPlaySetupDiag::NetPlaySetupDiag(wxWindow* const parent, const CGameListCtrl*
|
||||||
|
|
||||||
// host tab
|
// host tab
|
||||||
{
|
{
|
||||||
wxStaticText* const port_lbl = new wxStaticText(host_tab, wxID_ANY, _("Port :"),
|
wxStaticText* const port_lbl = new wxStaticText(host_tab, wxID_ANY, _("Port :"));
|
||||||
wxDefaultPosition, wxDefaultSize);
|
|
||||||
|
|
||||||
// string? w/e
|
// string? w/e
|
||||||
std::string port;
|
std::string port;
|
||||||
|
@ -314,7 +309,7 @@ void NetPlaySetupDiag::OnQuit(wxCommandEvent&)
|
||||||
|
|
||||||
NetPlayDiag::NetPlayDiag(wxWindow* const parent, const CGameListCtrl* const game_list,
|
NetPlayDiag::NetPlayDiag(wxWindow* const parent, const CGameListCtrl* const game_list,
|
||||||
const std::string& game, const bool is_hosting)
|
const std::string& game, const bool is_hosting)
|
||||||
: wxFrame(parent, wxID_ANY, wxT(NETPLAY_TITLEBAR), wxDefaultPosition, wxDefaultSize)
|
: wxFrame(parent, wxID_ANY, wxT(NETPLAY_TITLEBAR))
|
||||||
, m_selected_game(game)
|
, m_selected_game(game)
|
||||||
, m_start_btn(NULL)
|
, m_start_btn(NULL)
|
||||||
, m_game_list(game_list)
|
, m_game_list(game_list)
|
||||||
|
@ -617,7 +612,7 @@ bool NetPlayDiag::IsRecording()
|
||||||
}
|
}
|
||||||
|
|
||||||
ChangeGameDiag::ChangeGameDiag(wxWindow* const parent, const CGameListCtrl* const game_list, wxString& game_name)
|
ChangeGameDiag::ChangeGameDiag(wxWindow* const parent, const CGameListCtrl* const game_list, wxString& game_name)
|
||||||
: wxDialog(parent, wxID_ANY, _("Change Game"), wxDefaultPosition, wxDefaultSize)
|
: wxDialog(parent, wxID_ANY, _("Change Game"))
|
||||||
, m_game_name(game_name)
|
, m_game_name(game_name)
|
||||||
{
|
{
|
||||||
m_game_lbox = new wxListBox(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, nullptr, wxLB_SORT);
|
m_game_lbox = new wxListBox(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, nullptr, wxLB_SORT);
|
||||||
|
@ -644,7 +639,7 @@ void ChangeGameDiag::OnPick(wxCommandEvent& event)
|
||||||
}
|
}
|
||||||
|
|
||||||
PadMapDiag::PadMapDiag(wxWindow* const parent, PadMapping map[], PadMapping wiimotemap[], std::vector<const Player *>& player_list)
|
PadMapDiag::PadMapDiag(wxWindow* const parent, PadMapping map[], PadMapping wiimotemap[], std::vector<const Player *>& player_list)
|
||||||
: wxDialog(parent, wxID_ANY, _("Configure Pads"), wxDefaultPosition, wxDefaultSize)
|
: wxDialog(parent, wxID_ANY, _("Configure Pads"))
|
||||||
, m_mapping(map)
|
, m_mapping(map)
|
||||||
, m_wiimapping (wiimotemap)
|
, m_wiimapping (wiimotemap)
|
||||||
, m_player_list(player_list)
|
, m_player_list(player_list)
|
||||||
|
|
|
@ -73,7 +73,7 @@ void CPatchAddEdit::CreateGUIControls(int _selection)
|
||||||
wxStaticText* EditPatchOffsetText = new wxStaticText(this, ID_EDITPATCH_OFFSET_TEXT, _("Offset:"));
|
wxStaticText* EditPatchOffsetText = new wxStaticText(this, ID_EDITPATCH_OFFSET_TEXT, _("Offset:"));
|
||||||
EditPatchOffset = new wxTextCtrl(this, ID_EDITPATCH_OFFSET);
|
EditPatchOffset = new wxTextCtrl(this, ID_EDITPATCH_OFFSET);
|
||||||
EditPatchOffset->SetValue(wxString::Format(wxT("%08X"), tempEntries.at(0).address));
|
EditPatchOffset->SetValue(wxString::Format(wxT("%08X"), tempEntries.at(0).address));
|
||||||
EntrySelection = new wxSpinButton(this, ID_ENTRY_SELECT, wxDefaultPosition, wxDefaultSize, wxVERTICAL);
|
EntrySelection = new wxSpinButton(this, ID_ENTRY_SELECT);
|
||||||
EntrySelection->SetRange(0, (int)tempEntries.size()-1);
|
EntrySelection->SetRange(0, (int)tempEntries.size()-1);
|
||||||
EntrySelection->SetValue((int)tempEntries.size()-1);
|
EntrySelection->SetValue((int)tempEntries.size()-1);
|
||||||
wxArrayString wxArrayStringFor_EditPatchType;
|
wxArrayString wxArrayStringFor_EditPatchType;
|
||||||
|
|
|
@ -61,11 +61,11 @@ TASInputDlg::TASInputDlg(wxWindow *parent, wxWindowID id, const wxString &title,
|
||||||
wxBoxSizer* const main_yslider_box = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const main_yslider_box = new wxBoxSizer(wxVERTICAL);
|
||||||
wxBoxSizer* const main_stick_box = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const main_stick_box = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
static_bitmap_main = new wxStaticBitmap(this, ID_MAIN_STICK, TASInputDlg::CreateStickBitmap(128,128), wxDefaultPosition, wxDefaultSize);
|
static_bitmap_main = new wxStaticBitmap(this, ID_MAIN_STICK, TASInputDlg::CreateStickBitmap(128,128));
|
||||||
static_bitmap_main->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::OnMouseDownL, this);
|
static_bitmap_main->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::OnMouseDownL, this);
|
||||||
static_bitmap_main->Bind(wxEVT_MOTION, &TASInputDlg::OnMouseDownL, this);
|
static_bitmap_main->Bind(wxEVT_MOTION, &TASInputDlg::OnMouseDownL, this);
|
||||||
static_bitmap_main->Bind(wxEVT_RIGHT_UP, &TASInputDlg::OnMouseUpR, this);
|
static_bitmap_main->Bind(wxEVT_RIGHT_UP, &TASInputDlg::OnMouseUpR, this);
|
||||||
wx_mainX_s = new wxSlider(this, ID_MAIN_X_SLIDER, 128, 0, 255, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL);
|
wx_mainX_s = new wxSlider(this, ID_MAIN_X_SLIDER, 128, 0, 255);
|
||||||
wx_mainX_s->SetMinSize(wxSize(120,-1));
|
wx_mainX_s->SetMinSize(wxSize(120,-1));
|
||||||
wx_mainX_t = new wxTextCtrl(this, ID_MAIN_X_TEXT, wxT("128"), wxDefaultPosition, wxSize(40, 20));
|
wx_mainX_t = new wxTextCtrl(this, ID_MAIN_X_TEXT, wxT("128"), wxDefaultPosition, wxSize(40, 20));
|
||||||
wx_mainX_t->SetMaxLength(3);
|
wx_mainX_t->SetMaxLength(3);
|
||||||
|
@ -88,11 +88,11 @@ TASInputDlg::TASInputDlg(wxWindow *parent, wxWindowID id, const wxString &title,
|
||||||
wxBoxSizer* const c_yslider_box = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const c_yslider_box = new wxBoxSizer(wxVERTICAL);
|
||||||
wxBoxSizer* const c_stick_box = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const c_stick_box = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
static_bitmap_c = new wxStaticBitmap(this, ID_C_STICK, TASInputDlg::CreateStickBitmap(128,128), wxDefaultPosition, wxDefaultSize);
|
static_bitmap_c = new wxStaticBitmap(this, ID_C_STICK, TASInputDlg::CreateStickBitmap(128,128));
|
||||||
static_bitmap_c->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::OnMouseDownL, this);
|
static_bitmap_c->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::OnMouseDownL, this);
|
||||||
static_bitmap_c->Bind(wxEVT_MOTION, &TASInputDlg::OnMouseDownL, this);
|
static_bitmap_c->Bind(wxEVT_MOTION, &TASInputDlg::OnMouseDownL, this);
|
||||||
static_bitmap_c->Bind(wxEVT_RIGHT_UP, &TASInputDlg::OnMouseUpR, this);
|
static_bitmap_c->Bind(wxEVT_RIGHT_UP, &TASInputDlg::OnMouseUpR, this);
|
||||||
wx_cX_s = new wxSlider(this, ID_C_X_SLIDER, 128, 0, 255, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL);
|
wx_cX_s = new wxSlider(this, ID_C_X_SLIDER, 128, 0, 255);
|
||||||
wx_cX_s->SetMinSize(wxSize(120,-1));
|
wx_cX_s->SetMinSize(wxSize(120,-1));
|
||||||
wx_cX_t = new wxTextCtrl(this, ID_C_X_TEXT, wxT("128"), wxDefaultPosition, wxSize(40, 20));
|
wx_cX_t = new wxTextCtrl(this, ID_C_X_TEXT, wxT("128"), wxDefaultPosition, wxSize(40, 20));
|
||||||
wx_cX_t->SetMaxLength(3);
|
wx_cX_t->SetMaxLength(3);
|
||||||
|
@ -129,28 +129,28 @@ TASInputDlg::TASInputDlg(wxWindow *parent, wxWindowID id, const wxString &title,
|
||||||
wxStaticBoxSizer* const buttons_box = new wxStaticBoxSizer(wxVERTICAL, this, _("Buttons"));
|
wxStaticBoxSizer* const buttons_box = new wxStaticBoxSizer(wxVERTICAL, this, _("Buttons"));
|
||||||
wxGridSizer* const buttons_grid = new wxGridSizer(4);
|
wxGridSizer* const buttons_grid = new wxGridSizer(4);
|
||||||
|
|
||||||
wx_a_button = new wxCheckBox(this,ID_A,_T("A"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_a_button = new wxCheckBox(this,ID_A,_T("A"));
|
||||||
wx_a_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_a_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_a_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_a_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
wx_b_button = new wxCheckBox(this,ID_B,_T("B"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_b_button = new wxCheckBox(this,ID_B,_T("B"));
|
||||||
wx_b_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_b_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_b_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_b_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
wx_x_button = new wxCheckBox(this,ID_X,_T("X"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_x_button = new wxCheckBox(this,ID_X,_T("X"));
|
||||||
wx_x_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_x_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_x_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_x_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
wx_y_button = new wxCheckBox(this,ID_Y,_T("Y"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_y_button = new wxCheckBox(this,ID_Y,_T("Y"));
|
||||||
wx_y_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_y_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_y_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_y_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
wx_l_button = new wxCheckBox(this,ID_L,_T("L"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_l_button = new wxCheckBox(this,ID_L,_T("L"));
|
||||||
wx_l_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_l_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_l_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_l_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
wx_r_button = new wxCheckBox(this,ID_R,_T("R"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_r_button = new wxCheckBox(this,ID_R,_T("R"));
|
||||||
wx_r_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_r_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_r_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_r_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
wx_z_button = new wxCheckBox(this,ID_Z,_T("Z"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_z_button = new wxCheckBox(this,ID_Z,_T("Z"));
|
||||||
wx_z_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_z_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_z_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_z_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
wx_start_button = new wxCheckBox(this,ID_START,_T("Start"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_start_button = new wxCheckBox(this,ID_START,_T("Start"));
|
||||||
wx_start_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_start_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_start_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_start_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
|
|
||||||
|
@ -166,16 +166,16 @@ TASInputDlg::TASInputDlg(wxWindow *parent, wxWindowID id, const wxString &title,
|
||||||
|
|
||||||
wxGridSizer* const buttons_dpad = new wxGridSizer(3);
|
wxGridSizer* const buttons_dpad = new wxGridSizer(3);
|
||||||
|
|
||||||
wx_up_button = new wxCheckBox(this,ID_UP,_T("Up"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_up_button = new wxCheckBox(this,ID_UP,_T("Up"));
|
||||||
wx_up_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_up_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_up_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_up_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
wx_right_button = new wxCheckBox(this,ID_RIGHT,_T("Right"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_right_button = new wxCheckBox(this,ID_RIGHT,_T("Right"));
|
||||||
wx_right_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_right_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_right_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_right_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
wx_down_button = new wxCheckBox(this,ID_DOWN,_T("Down"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_down_button = new wxCheckBox(this,ID_DOWN,_T("Down"));
|
||||||
wx_down_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_down_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_down_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_down_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
wx_left_button = new wxCheckBox(this,ID_LEFT,_T("Left"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,wxCheckBoxNameStr);
|
wx_left_button = new wxCheckBox(this,ID_LEFT,_T("Left"));
|
||||||
wx_left_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
wx_left_button->Bind(wxEVT_RIGHT_DOWN, &TASInputDlg::SetTurbo, this);
|
||||||
wx_left_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
wx_left_button->Bind(wxEVT_LEFT_DOWN, &TASInputDlg::SetTurboFalse, this);
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
class wxWindow;
|
class wxWindow;
|
||||||
|
|
||||||
UDPConfigDiag::UDPConfigDiag(wxWindow * const parent, UDPWrapper * _wrp) :
|
UDPConfigDiag::UDPConfigDiag(wxWindow * const parent, UDPWrapper * _wrp) :
|
||||||
wxDialog(parent, -1, _("UDP Wiimote"), wxDefaultPosition, wxDefaultSize),
|
wxDialog(parent, -1, _("UDP Wiimote")),
|
||||||
wrp(_wrp)
|
wrp(_wrp)
|
||||||
{
|
{
|
||||||
wxBoxSizer *const outer_sizer = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer *const outer_sizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
|
@ -209,8 +209,7 @@ wxArrayString GetListOfResolutions()
|
||||||
|
|
||||||
VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, const std::string& _ininame)
|
VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, const std::string& _ininame)
|
||||||
: wxDialog(parent, -1,
|
: wxDialog(parent, -1,
|
||||||
wxString::Format(_("Dolphin %s Graphics Configuration"), wxGetTranslation(StrToWxStr(title))),
|
wxString::Format(_("Dolphin %s Graphics Configuration"), wxGetTranslation(StrToWxStr(title))))
|
||||||
wxDefaultPosition, wxDefaultSize)
|
|
||||||
, vconfig(g_Config)
|
, vconfig(g_Config)
|
||||||
, ininame(_ininame)
|
, ininame(_ininame)
|
||||||
{
|
{
|
||||||
|
@ -218,11 +217,11 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
|
||||||
|
|
||||||
Bind(wxEVT_UPDATE_UI, &VideoConfigDiag::OnUpdateUI, this);
|
Bind(wxEVT_UPDATE_UI, &VideoConfigDiag::OnUpdateUI, this);
|
||||||
|
|
||||||
wxNotebook* const notebook = new wxNotebook(this, -1, wxDefaultPosition, wxDefaultSize);
|
wxNotebook* const notebook = new wxNotebook(this, -1);
|
||||||
|
|
||||||
// -- GENERAL --
|
// -- GENERAL --
|
||||||
{
|
{
|
||||||
wxPanel* const page_general = new wxPanel(notebook, -1, wxDefaultPosition);
|
wxPanel* const page_general = new wxPanel(notebook, -1);
|
||||||
notebook->AddPage(page_general, _("General"));
|
notebook->AddPage(page_general, _("General"));
|
||||||
wxBoxSizer* const szr_general = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const szr_general = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
|
@ -233,7 +232,7 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
|
||||||
// backend
|
// backend
|
||||||
{
|
{
|
||||||
wxStaticText* const label_backend = new wxStaticText(page_general, wxID_ANY, _("Backend:"));
|
wxStaticText* const label_backend = new wxStaticText(page_general, wxID_ANY, _("Backend:"));
|
||||||
choice_backend = new wxChoice(page_general, wxID_ANY, wxDefaultPosition);
|
choice_backend = new wxChoice(page_general, wxID_ANY);
|
||||||
RegisterControl(choice_backend, wxGetTranslation(backend_desc));
|
RegisterControl(choice_backend, wxGetTranslation(backend_desc));
|
||||||
|
|
||||||
std::vector<VideoBackend*>::const_iterator
|
std::vector<VideoBackend*>::const_iterator
|
||||||
|
@ -357,7 +356,7 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
|
||||||
|
|
||||||
// -- ENHANCEMENTS --
|
// -- ENHANCEMENTS --
|
||||||
{
|
{
|
||||||
wxPanel* const page_enh = new wxPanel(notebook, -1, wxDefaultPosition);
|
wxPanel* const page_enh = new wxPanel(notebook, -1);
|
||||||
notebook->AddPage(page_enh, _("Enhancements"));
|
notebook->AddPage(page_enh, _("Enhancements"));
|
||||||
wxBoxSizer* const szr_enh_main = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const szr_enh_main = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
|
@ -403,7 +402,7 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
|
||||||
// postproc shader
|
// postproc shader
|
||||||
if (vconfig.backend_info.PPShaders.size())
|
if (vconfig.backend_info.PPShaders.size())
|
||||||
{
|
{
|
||||||
wxChoice *const choice_ppshader = new wxChoice(page_enh, -1, wxDefaultPosition);
|
wxChoice *const choice_ppshader = new wxChoice(page_enh, -1);
|
||||||
RegisterControl(choice_ppshader, wxGetTranslation(ppshader_desc));
|
RegisterControl(choice_ppshader, wxGetTranslation(ppshader_desc));
|
||||||
choice_ppshader->AppendString(_("(off)"));
|
choice_ppshader->AppendString(_("(off)"));
|
||||||
|
|
||||||
|
@ -451,7 +450,7 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
|
||||||
|
|
||||||
// -- SPEED HACKS --
|
// -- SPEED HACKS --
|
||||||
{
|
{
|
||||||
wxPanel* const page_hacks = new wxPanel(notebook, -1, wxDefaultPosition);
|
wxPanel* const page_hacks = new wxPanel(notebook, -1);
|
||||||
notebook->AddPage(page_hacks, _("Hacks"));
|
notebook->AddPage(page_hacks, _("Hacks"));
|
||||||
wxBoxSizer* const szr_hacks = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const szr_hacks = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
|
@ -536,7 +535,7 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
|
||||||
|
|
||||||
// -- ADVANCED --
|
// -- ADVANCED --
|
||||||
{
|
{
|
||||||
wxPanel* const page_advanced = new wxPanel(notebook, -1, wxDefaultPosition);
|
wxPanel* const page_advanced = new wxPanel(notebook, -1);
|
||||||
notebook->AddPage(page_advanced, _("Advanced"));
|
notebook->AddPage(page_advanced, _("Advanced"));
|
||||||
wxBoxSizer* const szr_advanced = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const szr_advanced = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
|
@ -604,7 +603,7 @@ VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, con
|
||||||
page_advanced->SetSizerAndFit(szr_advanced);
|
page_advanced->SetSizerAndFit(szr_advanced);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxButton* const btn_close = new wxButton(this, wxID_OK, _("Close"), wxDefaultPosition);
|
wxButton* const btn_close = new wxButton(this, wxID_OK, _("Close"));
|
||||||
btn_close->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &VideoConfigDiag::Event_ClickClose, this);
|
btn_close->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &VideoConfigDiag::Event_ClickClose, this);
|
||||||
|
|
||||||
Bind(wxEVT_CLOSE_WINDOW, &VideoConfigDiag::Event_Close, this);
|
Bind(wxEVT_CLOSE_WINDOW, &VideoConfigDiag::Event_Close, this);
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
class InputPlugin;
|
class InputPlugin;
|
||||||
|
|
||||||
WiimoteConfigDiag::WiimoteConfigDiag(wxWindow* const parent, InputPlugin& plugin)
|
WiimoteConfigDiag::WiimoteConfigDiag(wxWindow* const parent, InputPlugin& plugin)
|
||||||
: wxDialog(parent, -1, _("Dolphin Wiimote Configuration"), wxDefaultPosition, wxDefaultSize)
|
: wxDialog(parent, -1, _("Dolphin Wiimote Configuration"))
|
||||||
, m_plugin(plugin)
|
, m_plugin(plugin)
|
||||||
{
|
{
|
||||||
wxBoxSizer* const main_sizer = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* const main_sizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
@ -100,7 +100,7 @@ WiimoteConfigDiag::WiimoteConfigDiag(wxWindow* const parent, InputPlugin& plugin
|
||||||
|
|
||||||
|
|
||||||
// "Real wiimotes" controls
|
// "Real wiimotes" controls
|
||||||
wxButton* const refresh_btn = new wxButton(this, -1, _("Refresh"), wxDefaultPosition);
|
wxButton* const refresh_btn = new wxButton(this, -1, _("Refresh"));
|
||||||
refresh_btn->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &WiimoteConfigDiag::RefreshRealWiimotes, this);
|
refresh_btn->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &WiimoteConfigDiag::RefreshRealWiimotes, this);
|
||||||
|
|
||||||
wxStaticBoxSizer* const real_wiimotes_group = new wxStaticBoxSizer(wxVERTICAL, this, _("Real Wiimotes"));
|
wxStaticBoxSizer* const real_wiimotes_group = new wxStaticBoxSizer(wxVERTICAL, this, _("Real Wiimotes"));
|
||||||
|
@ -129,7 +129,7 @@ WiimoteConfigDiag::WiimoteConfigDiag(wxWindow* const parent, InputPlugin& plugin
|
||||||
// "General Settings" controls
|
// "General Settings" controls
|
||||||
const wxString str[] = { _("Bottom"), _("Top") };
|
const wxString str[] = { _("Bottom"), _("Top") };
|
||||||
wxChoice* const WiiSensBarPos = new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 2, str);
|
wxChoice* const WiiSensBarPos = new wxChoice(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 2, str);
|
||||||
wxSlider* const WiiSensBarSens = new wxSlider(this, wxID_ANY, 0, 0, 4, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL);
|
wxSlider* const WiiSensBarSens = new wxSlider(this, wxID_ANY, 0, 0, 4);
|
||||||
wxSlider* const WiimoteSpkVolume = new wxSlider(this, wxID_ANY, 0, 0, 127);
|
wxSlider* const WiimoteSpkVolume = new wxSlider(this, wxID_ANY, 0, 0, 127);
|
||||||
wxCheckBox* const WiimoteMotor = new wxCheckBox(this, wxID_ANY, _("Wiimote Motor"));
|
wxCheckBox* const WiimoteMotor = new wxCheckBox(this, wxID_ANY, _("Wiimote Motor"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue