Esempio n. 1
0
/*
 * only called by #CAirspaceManager::ProcessAirspaceDetailQueue()
 * for display AirspaceDetails, use #PopupAirspaceDetail
 */
void dlgAirspaceDetails() {

  WndForm* wf = dlgLoadFromXML(CallBackTable, IDR_XML_AIRSPACEDETAILS);

  if (!wf) return;
  wf->SetTimerNotify(1000, OnTimer);
  
  SetValues(wf);

  wf->ShowModal();

  delete wf;
  wf = NULL;

  return;
}
Esempio n. 2
0
BOOL CDevCProbe::Config(PDeviceDescriptor_t d){
	if(m_pDevice != d) {
		StartupStore(_T("C-Probe Config : Invalide device descriptor%s"), NEWLINE);
		return FALSE;
	}

	WndForm* wf = dlgLoadFromXML(CallBackTable, IDR_XML_DEVCPROBE);
	if(wf) {

    	WndButton *wBt = NULL;

    	wBt = (WndButton *)wf->FindByName(TEXT("cmdClose"));
    	if(wBt){
        	wBt->SetOnClickNotify(OnCloseClicked);
    	}
    	wBt = (WndButton *)wf->FindByName(TEXT("cmdSetCompassCal"));
    	if(wBt){
        	wBt->SetOnClickNotify(OnCompassCalClicked);
    	}
    	wBt = (WndButton *)wf->FindByName(TEXT("cmdSetCalGyro"));
    	if(wBt){
        	wBt->SetOnClickNotify(OnCalGyroClicked);
    	}
    	wBt = (WndButton *)wf->FindByName(TEXT("cmdZeroDeltaPress"));
    	if(wBt){
        	wBt->SetOnClickNotify(OnZeroDeltaPressClicked);
    	}

    	GetFirmwareVersion(m_pDevice);

		wf->SetTimerNotify(1000, OnTimer);
		wf->ShowModal();

		delete wf;
		wf=NULL;
	}
	return TRUE;
}