[Project64] Cleanup Settings/SettingsPage.h
This commit is contained in:
parent
04747706f2
commit
5942722436
|
@ -53,7 +53,6 @@ protected:
|
|||
{
|
||||
delete cb_iter->second;
|
||||
}
|
||||
|
||||
}
|
||||
bool Create(HWND hParent, const RECT & rcDispay)
|
||||
{
|
||||
|
@ -101,7 +100,8 @@ protected:
|
|||
if (EditBox.IsbString())
|
||||
{
|
||||
g_Settings->SaveString(Type, Value);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
DWORD dwValue = atoi(Value.c_str());
|
||||
g_Settings->SaveDword(Type, dwValue);
|
||||
}
|
||||
|
@ -113,7 +113,6 @@ protected:
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void UpdateModCheckBox(CModifiedButton & CheckBox, SettingID Type)
|
||||
{
|
||||
if (CheckBox.IsChanged())
|
||||
|
@ -156,7 +155,8 @@ protected:
|
|||
stdstr Value = g_Settings->LoadDefaultString(Type);
|
||||
EditBox.SetWindowText(Value.c_str());
|
||||
EditBox.SetReset(true);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
DWORD Value = g_Settings->LoadDefaultDword(Type);
|
||||
EditBox.SetWindowText(stdstr_f("%d", Value).c_str());
|
||||
EditBox.SetReset(true);
|
||||
|
@ -244,7 +244,6 @@ protected:
|
|||
Button->SetChanged(g_Settings->LoadBool(iter->first, SettingSelected));
|
||||
Button->SetCheck(SettingSelected ? BST_CHECKED : BST_UNCHECKED);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void UpdateComboBoxes(void)
|
||||
|
@ -280,7 +279,8 @@ protected:
|
|||
stdstr SelectedValue;
|
||||
TextBox->SetChanged(g_Settings->LoadStringVal(iter->first, SelectedValue));
|
||||
TextBox->SetWindowText(SelectedValue.c_str());
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
uint32_t SelectedValue;
|
||||
TextBox->SetChanged(g_Settings->LoadDword(iter->first, SelectedValue));
|
||||
TextBox->SetWindowText(stdstr_f("%d", SelectedValue).c_str());
|
||||
|
@ -546,7 +546,6 @@ protected:
|
|||
bool m_UpdatingTxt;
|
||||
};
|
||||
|
||||
|
||||
typedef std::vector<CSettingsPage *> SETTING_PAGES;
|
||||
|
||||
class CConfigSettingSection
|
||||
|
|
Loading…
Reference in New Issue