示例#1
0
void wxStfChildFrame::OnComboInactChannel(wxCommandEvent& WXUNUSED(event)) {
    if (pInactChannel->GetCurrentSelection()==pActChannel->GetCurrentSelection()) {
        // correct selection:
        for (int n_c=0;n_c<(int)pInactChannel->GetCount();++n_c) {
            if (n_c!=pInactChannel->GetCurrentSelection()) {
                pActChannel->SetSelection(n_c);
                break;
            }
        }
    }

    UpdateChannels();
}
示例#2
0
void CFunc::GetChannels(int& src, int& dst) const
{
   src = dst = 0;
   CMyString sDescr = DescrName();
   CMyString srcStr = firstChanStr(sDescr);
   CMyString dstStr = firstChanStr(sDescr);
   src = numChannels(srcStr);
   if (dstStr.IsEmpty())
      dst = src;
   else
      dst = numChannels(dstStr);
   UpdateChannels(src, dst);
}
示例#3
0
int main()
{   
    printf("Boot complete\n");
    fflush(stdin);
    
    while(1) {
        UpdateChannels();
//        ShowInfoChannel(0);
//        ShowInfoChannel(1);
//        ShowInfoChannel(2);
//        ShowInfoChannel(3);
        ProcessCommand();
    }
    return 0;
}
// 
// Change aperture stored in project
//
bool CChooseApertureDlg::Execute(CFrameSet &fset, const CApertures &aper, const CSelection &sel, int *ap_index)
{
	m_FrameSet = &fset;
	m_Aper = aper;
	m_Selection = sel;
	m_ApertureIndex = *ap_index;
	UpdateApertures();
	UpdateChannels();
	UpdateGraph(TRUE, TRUE);
	if (gtk_dialog_run(GTK_DIALOG(m_pDlg))==GTK_RESPONSE_ACCEPT) {
		*ap_index = m_ApertureIndex;
		return true;
	}
	return false;		
}