Пример #1
0
bool _HYDistributionChartWindow::_ProcessMenuSelection (long msel)
{
    switch (msel) {
    case HY_CHARTD_WIN32_MENU_BASE: {
        AddVariable ();
        return true;
    }
    case HY_CHARTD_WIN32_MENU_BASE+1: {
        RemoveVariable ();
        return true;
    }
    case HY_CHARTD_WIN32_MENU_BASE+2: {
        ShowMarginals ();
        return true;
    }
    default: {
        if (msel>=HY_CHARTD_WIN32_MENU_BASE+3) {
            HandleCatPostProcessor (msel-HY_CHARTD_WIN32_MENU_BASE-3);
            return true;
        }
    }
    }

    return _HYChartWindow::_ProcessMenuSelection(msel);
}
Пример #2
0
void CConfiguration::SetFlagVariable(const CString& Name, const bool Value)
{
 int index = VarIndex(Name);
 if (ValidIndex(index))
 {
  if (!Value)
  {
   RemoveVariable(index);
  }
 }
 else
 {
  if (Value)
  {
   InsertFlagVariable(Name,true);
  }
 }
}
Пример #3
0
void CConfiguration::SetUndefined(const CString& Name)
{
 RemoveVariable(DefinedPrefix()+Name);
}
Пример #4
0
void CConfiguration::RemoveVariable(const CString& Name)
{
 RemoveVariable(VarIndex(Name));
}