예제 #1
0
파일: Boolean.cpp 프로젝트: Advi42/XCSoar
void
DataFieldBoolean::SetAsInteger(int Value)
{
  if (GetAsInteger() != Value) {
    SetAsBoolean(!(Value == 0));
  }
}
예제 #2
0
파일: Boolean.cpp 프로젝트: hnpilot/XCSoar
void
DataFieldBoolean::SetAsFloat(fixed Value)
{
  if (GetAsFixed() != Value) {
    SetAsBoolean(Value != fixed_zero);
  }
}
예제 #3
0
파일: Boolean.cpp 프로젝트: hnpilot/XCSoar
void
DataFieldBoolean::SetAsString(const TCHAR *Value)
{
  const TCHAR *res = GetAsString();
  if (_tcscmp(res, Value) != 0) {
    SetAsBoolean(_tcscmp(Value, mTextTrue) == 0);
  }
}
예제 #4
0
파일: Boolean.cpp 프로젝트: macsux/XCSoar
void
DataFieldBoolean::SetAsString(const TCHAR *Value)
{
  const TCHAR *res = GetAsString();
  if (_tcscmp(res, Value) != 0) {
    SetAsBoolean(true_text.equals(Value));
  }
}
예제 #5
0
파일: Boolean.cpp 프로젝트: Advi42/XCSoar
void
DataFieldBoolean::Dec()
{
  SetAsBoolean(false);
}
예제 #6
0
파일: Boolean.cpp 프로젝트: Advi42/XCSoar
void
DataFieldBoolean::Inc()
{
  SetAsBoolean(true);
}
예제 #7
0
파일: Boolean.cpp 프로젝트: Advi42/XCSoar
void
DataFieldBoolean::SetAsString(const TCHAR *Value)
{
  SetAsBoolean(ParseString(Value));
}
예제 #8
0
파일: Boolean.cpp 프로젝트: hnpilot/XCSoar
void
DataFieldBoolean::Dec(void)
{
  SetAsBoolean(!GetAsBoolean());
}