mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:58:33 +02:00
Fix the rest of the tooltips for linux.
Also remove some unneeded linkage since the merge. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7026 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -40,4 +40,4 @@ endif(WIN32)
|
|||||||
enable_precompiled_headers(Src/stdafx.h Src/stdafx.cpp SRCS)
|
enable_precompiled_headers(Src/stdafx.h Src/stdafx.cpp SRCS)
|
||||||
|
|
||||||
add_library(common STATIC ${SRCS})
|
add_library(common STATIC ${SRCS})
|
||||||
target_link_libraries(common clrun ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT})
|
target_link_libraries(common ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
@ -311,10 +311,8 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
|||||||
|
|
||||||
|
|
||||||
// GameConfig editing - Overrides and emulation state
|
// GameConfig editing - Overrides and emulation state
|
||||||
sbGameConfig = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Game-Specific Settings"));
|
|
||||||
OverrideText = new wxStaticText(m_GameConfig, ID_OVERRIDE_TEXT, _("These settings override core Dolphin settings.\nUndetermined means the game uses Dolphin's setting."), wxDefaultPosition, wxDefaultSize);
|
OverrideText = new wxStaticText(m_GameConfig, ID_OVERRIDE_TEXT, _("These settings override core Dolphin settings.\nUndetermined means the game uses Dolphin's setting."), wxDefaultPosition, wxDefaultSize);
|
||||||
// Core
|
// Core
|
||||||
sbCoreOverrides = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Core"));
|
|
||||||
CPUThread = new wxCheckBox(m_GameConfig, ID_USEDUALCORE, _("Enable Dual Core"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
CPUThread = new wxCheckBox(m_GameConfig, ID_USEDUALCORE, _("Enable Dual Core"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
||||||
SkipIdle = new wxCheckBox(m_GameConfig, ID_IDLESKIP, _("Enable Idle Skipping"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
SkipIdle = new wxCheckBox(m_GameConfig, ID_IDLESKIP, _("Enable Idle Skipping"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
||||||
MMU = new wxCheckBox(m_GameConfig, ID_MMU, _("Enable MMU"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
MMU = new wxCheckBox(m_GameConfig, ID_MMU, _("Enable MMU"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
||||||
@ -331,24 +329,9 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
|||||||
DSPHLE = new wxCheckBox(m_GameConfig, ID_AUDIO_DSP_HLE, _("DSP HLE emulation (fast)"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
DSPHLE = new wxCheckBox(m_GameConfig, ID_AUDIO_DSP_HLE, _("DSP HLE emulation (fast)"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
||||||
|
|
||||||
// Wii Console
|
// Wii Console
|
||||||
sbWiiOverrides = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Wii Console"));
|
|
||||||
EnableProgressiveScan = new wxCheckBox(m_GameConfig, ID_ENABLEPROGRESSIVESCAN, _("Enable Progressive Scan"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
EnableProgressiveScan = new wxCheckBox(m_GameConfig, ID_ENABLEPROGRESSIVESCAN, _("Enable Progressive Scan"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
||||||
EnableWideScreen = new wxCheckBox(m_GameConfig, ID_ENABLEWIDESCREEN, _("Enable WideScreen"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
EnableWideScreen = new wxCheckBox(m_GameConfig, ID_ENABLEWIDESCREEN, _("Enable WideScreen"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
||||||
if (!DiscIO::IsVolumeWiiDisc(OpenISO) && !DiscIO::IsVolumeWadFile(OpenISO))
|
|
||||||
{
|
|
||||||
sbWiiOverrides->ShowItems(false);
|
|
||||||
EnableProgressiveScan->Hide();
|
|
||||||
EnableWideScreen->Hide();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Progressive Scan is not used by Dolphin itself, and changing it on a per-game
|
|
||||||
// basis would have the side-effect of changing the SysConf, making this setting
|
|
||||||
// rather useless.
|
|
||||||
EnableProgressiveScan->Disable();
|
|
||||||
}
|
|
||||||
// Video
|
// Video
|
||||||
sbVideoOverrides = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Video"));
|
|
||||||
ForceFiltering = new wxCheckBox(m_GameConfig, ID_FORCEFILTERING, _("Force Filtering"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
ForceFiltering = new wxCheckBox(m_GameConfig, ID_FORCEFILTERING, _("Force Filtering"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
||||||
EFBCopyEnable = new wxCheckBox(m_GameConfig, ID_EFBCOPYENABLE, _("Enable Copy to EFB"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
EFBCopyEnable = new wxCheckBox(m_GameConfig, ID_EFBCOPYENABLE, _("Enable Copy to EFB"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
||||||
EFBAccessEnable = new wxCheckBox(m_GameConfig, ID_EFBACCESSENABLE, _("Enable CPU Access"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
EFBAccessEnable = new wxCheckBox(m_GameConfig, ID_EFBACCESSENABLE, _("Enable CPU Access"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
||||||
@ -360,7 +343,6 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
|||||||
UseZTPSpeedupHack->SetToolTip(_("Enable this to speed up The Legend of Zelda: Twilight Princess. Disable for ANY other game."));
|
UseZTPSpeedupHack->SetToolTip(_("Enable this to speed up The Legend of Zelda: Twilight Princess. Disable for ANY other game."));
|
||||||
DListCache = new wxCheckBox(m_GameConfig, ID_DLISTCACHE, _("DList Cache"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
DListCache = new wxCheckBox(m_GameConfig, ID_DLISTCACHE, _("DList Cache"), wxDefaultPosition, wxDefaultSize, wxCHK_3STATE|wxCHK_ALLOW_3RD_STATE_FOR_USER, wxDefaultValidator);
|
||||||
// Hack
|
// Hack
|
||||||
sbPHackSettings = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Custom Projection Hack"));
|
|
||||||
PHackEnable = new wxCheckBox(m_GameConfig, ID_PHACKENABLE, _("Enable"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE, wxDefaultValidator);
|
PHackEnable = new wxCheckBox(m_GameConfig, ID_PHACKENABLE, _("Enable"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE, wxDefaultValidator);
|
||||||
PHackEnable->SetToolTip(_("Customize some Orthographic Projection parameters."));
|
PHackEnable->SetToolTip(_("Customize some Orthographic Projection parameters."));
|
||||||
PHackChoiceText = new wxStaticText(m_GameConfig, ID_PHACK_CHOICE_TEXT, _("Presets: "), wxDefaultPosition, wxDefaultSize);
|
PHackChoiceText = new wxStaticText(m_GameConfig, ID_PHACK_CHOICE_TEXT, _("Presets: "), wxDefaultPosition, wxDefaultSize);
|
||||||
@ -394,7 +376,7 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
|||||||
|
|
||||||
wxBoxSizer* sConfigPage;
|
wxBoxSizer* sConfigPage;
|
||||||
sConfigPage = new wxBoxSizer(wxVERTICAL);
|
sConfigPage = new wxBoxSizer(wxVERTICAL);
|
||||||
sbGameConfig->Add(OverrideText, 0, wxEXPAND|wxALL, 5);
|
sbCoreOverrides = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Core"));
|
||||||
sbCoreOverrides->Add(CPUThread, 0, wxEXPAND|wxLEFT, 5);
|
sbCoreOverrides->Add(CPUThread, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbCoreOverrides->Add(SkipIdle, 0, wxEXPAND|wxLEFT, 5);
|
sbCoreOverrides->Add(SkipIdle, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbCoreOverrides->Add(MMU, 0, wxEXPAND|wxLEFT, 5);
|
sbCoreOverrides->Add(MMU, 0, wxEXPAND|wxLEFT, 5);
|
||||||
@ -404,8 +386,25 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
|||||||
sbCoreOverrides->Add(FastDiscSpeed, 0, wxEXPAND|wxLEFT, 5);
|
sbCoreOverrides->Add(FastDiscSpeed, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbCoreOverrides->Add(BlockMerging, 0, wxEXPAND|wxLEFT, 5);
|
sbCoreOverrides->Add(BlockMerging, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbCoreOverrides->Add(DSPHLE, 0, wxEXPAND|wxLEFT, 5);
|
sbCoreOverrides->Add(DSPHLE, 0, wxEXPAND|wxLEFT, 5);
|
||||||
|
|
||||||
|
sbWiiOverrides = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Wii Console"));
|
||||||
|
if (!DiscIO::IsVolumeWiiDisc(OpenISO) && !DiscIO::IsVolumeWadFile(OpenISO))
|
||||||
|
{
|
||||||
|
sbWiiOverrides->ShowItems(false);
|
||||||
|
EnableProgressiveScan->Hide();
|
||||||
|
EnableWideScreen->Hide();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Progressive Scan is not used by Dolphin itself, and changing it on a per-game
|
||||||
|
// basis would have the side-effect of changing the SysConf, making this setting
|
||||||
|
// rather useless.
|
||||||
|
EnableProgressiveScan->Disable();
|
||||||
|
}
|
||||||
sbWiiOverrides->Add(EnableProgressiveScan, 0, wxEXPAND|wxLEFT, 5);
|
sbWiiOverrides->Add(EnableProgressiveScan, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbWiiOverrides->Add(EnableWideScreen, 0, wxEXPAND|wxLEFT, 5);
|
sbWiiOverrides->Add(EnableWideScreen, 0, wxEXPAND|wxLEFT, 5);
|
||||||
|
|
||||||
|
sbVideoOverrides = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Video"));
|
||||||
sbVideoOverrides->Add(ForceFiltering, 0, wxEXPAND|wxLEFT, 5);
|
sbVideoOverrides->Add(ForceFiltering, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbVideoOverrides->Add(EFBCopyEnable, 0, wxEXPAND|wxLEFT, 5);
|
sbVideoOverrides->Add(EFBCopyEnable, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbVideoOverrides->Add(EFBAccessEnable, 0, wxEXPAND|wxLEFT, 5);
|
sbVideoOverrides->Add(EFBAccessEnable, 0, wxEXPAND|wxLEFT, 5);
|
||||||
@ -416,12 +415,15 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
|||||||
sbVideoOverrides->Add(UseZTPSpeedupHack, 0, wxEXPAND|wxLEFT, 5);
|
sbVideoOverrides->Add(UseZTPSpeedupHack, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbVideoOverrides->Add(DListCache, 0, wxEXPAND|wxLEFT, 5);
|
sbVideoOverrides->Add(DListCache, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbVideoOverrides->AddSpacer(5);
|
sbVideoOverrides->AddSpacer(5);
|
||||||
sbVideoOverrides->Add(sbPHackSettings, 0, wxEXPAND);
|
|
||||||
|
sbPHackSettings = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Custom Projection Hack"));
|
||||||
sbPHackSettings->Add(PHackEnable, 0, wxEXPAND|wxLEFT, 5);
|
sbPHackSettings->Add(PHackEnable, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbPHackSettings->AddSpacer(15);
|
sbPHackSettings->AddSpacer(15);
|
||||||
sbPHackSettings->Add(PHackChoiceText, 0, wxEXPAND|wxLEFT, 5);
|
sbPHackSettings->Add(PHackChoiceText, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbPHackSettings->Add(PHackChoice, 0, wxEXPAND|wxLEFT, 5);
|
sbPHackSettings->Add(PHackChoice, 0, wxEXPAND|wxLEFT, 5);
|
||||||
sbPHackSettings->Add(szrPHackSettings, 0, wxEXPAND|wxLEFT|wxTOP, 5);
|
sbPHackSettings->Add(szrPHackSettings, 0, wxEXPAND|wxLEFT|wxTOP, 5);
|
||||||
|
sbVideoOverrides->Add(sbPHackSettings, 0, wxEXPAND);
|
||||||
|
|
||||||
szrPHackSettings->Add(PHackZNearText, 0, wxALIGN_CENTER_VERTICAL);
|
szrPHackSettings->Add(PHackZNearText, 0, wxALIGN_CENTER_VERTICAL);
|
||||||
szrPHackSettings->Add(PHackZNear, 1, wxEXPAND);
|
szrPHackSettings->Add(PHackZNear, 1, wxEXPAND);
|
||||||
szrPHackSettings->Add(PHackSZNear, 0, wxEXPAND|wxLEFT, 5);
|
szrPHackSettings->Add(PHackSZNear, 0, wxEXPAND|wxLEFT, 5);
|
||||||
@ -430,6 +432,8 @@ void CISOProperties::CreateGUIControls(bool IsWad)
|
|||||||
szrPHackSettings->Add(PHackSZFar, 0, wxEXPAND|wxLEFT, 5);
|
szrPHackSettings->Add(PHackSZFar, 0, wxEXPAND|wxLEFT, 5);
|
||||||
szrPHackSettings->Add(PHackExP, 0, wxEXPAND|wxTOP, 5);
|
szrPHackSettings->Add(PHackExP, 0, wxEXPAND|wxTOP, 5);
|
||||||
|
|
||||||
|
sbGameConfig = new wxStaticBoxSizer(wxVERTICAL, m_GameConfig, _("Game-Specific Settings"));
|
||||||
|
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);
|
||||||
sbGameConfig->Add(sbVideoOverrides, 0, wxEXPAND);
|
sbGameConfig->Add(sbVideoOverrides, 0, wxEXPAND);
|
||||||
|
@ -687,10 +687,9 @@ ControlGroupBox::~ControlGroupBox()
|
|||||||
}
|
}
|
||||||
|
|
||||||
ControlGroupBox::ControlGroupBox(ControllerEmu::ControlGroup* const group, wxWindow* const parent, wxWindow* const eventsink)
|
ControlGroupBox::ControlGroupBox(ControllerEmu::ControlGroup* const group, wxWindow* const parent, wxWindow* const eventsink)
|
||||||
: wxStaticBoxSizer(wxVERTICAL, parent, WXTSTR_FROM_CSTR(group->name))
|
: wxBoxSizer(wxVERTICAL)
|
||||||
, control_group(group)
|
, control_group(group)
|
||||||
{
|
{
|
||||||
|
|
||||||
static_bitmap = NULL;
|
static_bitmap = NULL;
|
||||||
|
|
||||||
wxFont m_SmallFont(7, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
|
wxFont m_SmallFont(7, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL);
|
||||||
@ -877,7 +876,10 @@ ControlGroupsSizer::ControlGroupsSizer(ControllerEmu* const controller, wxWindow
|
|||||||
wxBoxSizer* stacked_groups = NULL;
|
wxBoxSizer* stacked_groups = NULL;
|
||||||
for (unsigned int i = 0; i < controller->groups.size(); ++i)
|
for (unsigned int i = 0; i < controller->groups.size(); ++i)
|
||||||
{
|
{
|
||||||
ControlGroupBox* control_group = new ControlGroupBox(controller->groups[i], parent, eventsink);
|
ControlGroupBox* control_group_box = new ControlGroupBox(controller->groups[i], parent, eventsink);
|
||||||
|
wxStaticBoxSizer *control_group =
|
||||||
|
new wxStaticBoxSizer(wxVERTICAL, parent, WXTSTR_FROM_CSTR(controller->groups[i]->name));
|
||||||
|
control_group->Add(control_group_box);
|
||||||
|
|
||||||
const size_t grp_size = controller->groups[i]->controls.size() + controller->groups[i]->settings.size();
|
const size_t grp_size = controller->groups[i]->controls.size() + controller->groups[i]->settings.size();
|
||||||
col_size += grp_size;
|
col_size += grp_size;
|
||||||
@ -895,7 +897,7 @@ ControlGroupsSizer::ControlGroupsSizer(ControllerEmu* const controller, wxWindow
|
|||||||
stacked_groups->Add(control_group, 0, wxEXPAND);
|
stacked_groups->Add(control_group, 0, wxEXPAND);
|
||||||
|
|
||||||
if (groups)
|
if (groups)
|
||||||
groups->push_back(control_group);
|
groups->push_back(control_group_box);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stacked_groups)
|
if (stacked_groups)
|
||||||
|
@ -156,7 +156,7 @@ public:
|
|||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
class ControlGroupBox : public wxStaticBoxSizer
|
class ControlGroupBox : public wxBoxSizer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ControlGroupBox(ControllerEmu::ControlGroup* const group, wxWindow* const parent, wxWindow* const eventsink);
|
ControlGroupBox(ControllerEmu::ControlGroup* const group, wxWindow* const parent, wxWindow* const eventsink);
|
||||||
|
Reference in New Issue
Block a user