21 m_pPara->SetHookKeyboard(ui->cbHookKeyboard->isChecked());
22 m_pPara->SetEnableSystemUserToUser(ui->cbEnableUserName->isChecked());
25 m_pPara->SetEncryptKey(ui->leEncryptKey->text());
26 m_pPara->SetSavePassword(ui->cbSavePassword->isChecked());
27 m_pPara->SetViewPassowrd(ui->cbEnableViewPassword->isChecked());
28 if(ui->rbPromptAlways->isChecked())
29 m_pPara->SetPromptType(CParameterClient::PromptType::Always);
30 if(ui->rbPromptFirst->isChecked())
31 m_pPara->SetPromptType(CParameterClient::PromptType::First);
32 if(ui->rbPromptNo->isChecked())
33 m_pPara->SetPromptType(CParameterClient::PromptType::No);
34 m_pPara->SetShowProtocolPrefix(ui->cbShowPrefix->isChecked());
35 m_pPara->SetShowIpPortInName(ui->cbShowIPPort->isChecked());
63 m_pPara = qobject_cast<CParameterClient*>(pParameter);
66 ui->cbHookKeyboard->setChecked(m_pPara->GetHookKeyboard());
67 ui->cbEnableUserName->setChecked(m_pPara->GetEnableSystemUserToUser());
69 ui->cbViewZoom->addItem(QIcon::fromTheme(
"zoom-original"),
74 ui->cbViewZoom->addItem(QIcon::fromTheme(
"zoom"), tr(
"Zoom"),
76 ui->cbViewZoom->addItem(QIcon::fromTheme(
"zoom-fit-best"),
79 ui->cbViewZoom->addItem(QIcon::fromTheme(
"zoom-aspect-ratio"),
80 tr(
"Keep desktop aspectration adapt to windows"),
82 int nIndex = ui->cbViewZoom->findData((
int)m_pPara->GetAdaptWindows());
84 ui->cbViewZoom->setCurrentIndex(nIndex);
86 ui->leEncryptKey->setText(m_pPara->GetEncryptKey());
87 ui->cbSavePassword->setChecked(m_pPara->GetSavePassword());
88 ui->cbEnableViewPassword->setChecked(m_pPara->GetViewPassowrd());
89 ui->pbEncryptKey->setEnabled(ui->cbEnableViewPassword->isChecked());
90 switch (m_pPara->GetPromptType()) {
91 case CParameterClient::PromptType::Always:
92 ui->rbPromptAlways->setChecked(
true);
94 case CParameterClient::PromptType::First:
95 ui->rbPromptFirst->setChecked(
true);
97 case CParameterClient::PromptType::No:
98 ui->rbPromptNo->setChecked(
true);
101 ui->cbShowPrefix->setChecked(m_pPara->GetShowProtocolPrefix());
102 ui->cbShowIPPort->setChecked(m_pPara->GetShowIpPortInName());