CPanelLabNameStrings::CPanelLabNameStrings(
  wxWindow *parent)
  : nwxPanel(parent), m_pTextStdCtrlName(NULL), m_pData(NULL)
{
  wxArrayString as;
  as.Alloc(2);
  as.Add(_T("File name"));
  as.Add(_T("Sample name"));

  this->m_pRadioNameType = new wxRadioBox(
    this,wxID_ANY,_T("Search by:"),wxDefaultPosition, wxDefaultSize,as);
  m_pChoiceBook = new nwxChoicebook(this);
  nwxTextPanel *pPanel = new nwxTextPanel(m_pChoiceBook,wxID_ANY);
  m_pTextLadder = pPanel->GetTextCtrl();
  m_pChoiceBook->AddPage(pPanel,_T(CLabNameStrings::TYPE_LADDER),true);

  // get count immediately before adding positive control

  m_nPosCtrlNdx = (int)m_pChoiceBook->GetPageCount();
  pPanel = new nwxTextPanel(m_pChoiceBook,wxID_ANY);
  m_pTextPos = pPanel->GetTextCtrl();
  m_pChoiceBook->AddPage(pPanel,_T(CLabNameStrings::TYPE_POS_CONTROL));

  pPanel = new nwxTextPanel(m_pChoiceBook,wxID_ANY);
  m_pTextNeg = pPanel->GetTextCtrl();
  m_pChoiceBook->AddPage(pPanel,_T(CLabNameStrings::TYPE_NEG_CONTROL));

  //  2/11/09 added specimen types

  wxString sType;
  size_t nTYPES = CLabSpecimenCategory::TypeCount();
  size_t i;
  m_pvTextSpecimenTypes.reserve(nTYPES);
  for(i = 0; i < nTYPES; ++i)
  {
    sType = _T(CLabSpecimenCategory::TYPES[i]);
    pPanel = new nwxTextPanel(m_pChoiceBook, wxID_ANY);
    m_pvTextSpecimenTypes.push_back(pPanel->GetTextCtrl());
    m_pChoiceBook->AddPage(pPanel,sType);
  }

  //  2/11/09

  m_pTextStdCtrlName = new wxTextCtrl(this,wxID_ANY);
  m_pLabelNameString = new wxStaticText(this,wxID_ANY,
    CPanelLabSettings::g_sFileNameStrPrompt);
  m_pLabelStdCtrlName = new wxStaticText(this,wxID_ANY,_T("Standard Control Name"));
  m_pSizer = new wxBoxSizer(wxVERTICAL);

  m_pSizer->Add(this->m_pRadioNameType,0, wxALL | wxALIGN_LEFT,ID_BORDER);
  m_pSizer->Add(m_pLabelNameString,0, (wxALL ^ wxTOP) | wxALIGN_LEFT, ID_BORDER);
  m_pSizer->Add(m_pChoiceBook,1,wxEXPAND | (wxALL ^ wxTOP),ID_BORDER);

  m_pSizer->Add(m_pLabelStdCtrlName,0,wxALL | wxALIGN_LEFT, ID_BORDER);
  m_pSizer->Add(m_pTextStdCtrlName,0,wxEXPAND | (wxALL ^ wxTOP),ID_BORDER);
  SetSizer(m_pSizer);

  OnChangeCombo(*( (wxChoicebookEvent *) NULL ));
}
Пример #2
0
void CDlg::ChangeDatacombo2()
{
	OnChangeCombo(m_DataCombo2,ptrRsCmb2,1);
}
Пример #3
0
void CDlg::ChangeDatacombo1()
{
	OnChangeCombo(m_DataCombo1,ptrRsCmb1,1);
}