Fix for bug 15872: Remove Quick Launch window in Installer UI (r=smeredith)

This commit is contained in:
shrutiv%netscape.com 2002-07-29 18:46:49 +00:00
Родитель e92d0fc993
Коммит e69b291c52
1 изменённых файлов: 22 добавлений и 2 удалений

Просмотреть файл

@ -1279,6 +1279,22 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget)
CopyDir(from, to, NULL, TRUE);
}
}
else if (strcmp(pcmd, "ChangeCheckboxState") == 0)
{
// Change state and visibility of target widget/checkbox depending
// on whether the current widget/checkbox is checked or unchecked
WIDGET *tmpWidget = findWidget((char*) (LPCTSTR)curWidget->target);
if (curWidget)
{
if ((curWidget->value) == "1")
tmpWidget->control->EnableWindow(TRUE);
else
{
((CButton*)tmpWidget->control)->SetCheck(0);
tmpWidget->control->EnableWindow(FALSE);
}
}
}
else if (strcmp(pcmd, "DisableFields") == 0)
{
// Disable widgets specified in parms list
@ -1471,8 +1487,12 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget)
if (str[0] == '1')
{
SetGlobal("QuicklaunchDialog","TRUE");
SetGlobal("QuicklaunchEnabled","TRUE");
if ((CWizardUI::GetScreenValue(findWidget("QuickLauncherLocked"))) == "1")
// check if Quick launch is locked
SetGlobal("QuicklaunchDialog","FALSE");
else
SetGlobal("QuicklaunchDialog","TRUE");
SetGlobal("QuicklaunchEnabled","TRUE");
}
else
{