예제 #1
0
void ContactView::onEdit()
{
  setAddingNewContact(false);   //editing  
  ToDialog();
  contactEditable(true);   //and set focus on the first field
  ui->contact_pages->setCurrentIndex(info);
  ui->info_stack->setCurrentWidget(ui->info_edit);
}
예제 #2
0
BOOL CSites_AdvancedPage::OnInitDialog()
{
	CPropertyPage::OnInitDialog();

	m_bDialogWasInited = TRUE;
	ToDialog ();
	m_bUserChangedProtocols = FALSE;
	
	ApplyLanguage ();
	return TRUE; 
	             
}
예제 #3
0
void ContactView::onCancel()
{
  setModified(false);
  ToDialog();
  contactEditable(false);
  if (isAddingNewContact())
  {
    emit canceledNewContact();
  }
  else  //editing contact
  {    
  }
}
예제 #4
0
void ContactView::setContact(const Contact& current_contact)
{
    _current_contact = current_contact;
    ui->khid_pubkey->setContact(_current_contact);
    ToDialog();
}
예제 #5
0
void ContactView::addNewContact ()
{  
  ToDialog();
  contactEditable(true);
}