Kaydet (Commit) 6283cd07 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

gpg4libre: multi-select encryption certs, hide desc entry

Change-Id: I50ea6e82f18f296ea24f6e0d0e0e2eb381a5e54b
Reviewed-on: https://gerrit.libreoffice.org/46052Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
Tested-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst 124138ec
...@@ -68,7 +68,8 @@ private: ...@@ -68,7 +68,8 @@ private:
VclPtr<SvSimpleTable> m_pCertLB; VclPtr<SvSimpleTable> m_pCertLB;
VclPtr<PushButton> m_pViewBtn; VclPtr<PushButton> m_pViewBtn;
VclPtr<OKButton> m_pOKBtn; VclPtr<OKButton> m_pOKBtn;
VclPtr<Edit> m_pDescriptionED; VclPtr<FixedText> m_pFTDescription;
VclPtr<Edit> m_pDescriptionED;
bool mbInitialized; bool mbInitialized;
UserAction meAction; UserAction meAction;
......
...@@ -46,6 +46,7 @@ CertificateChooser::CertificateChooser(vcl::Window* _pParent, ...@@ -46,6 +46,7 @@ CertificateChooser::CertificateChooser(vcl::Window* _pParent,
get(m_pFTEncrypt, "encrypt"); get(m_pFTEncrypt, "encrypt");
get(m_pOKBtn, "ok"); get(m_pOKBtn, "ok");
get(m_pViewBtn, "viewcert"); get(m_pViewBtn, "viewcert");
get(m_pFTDescription, "description-label");
get(m_pDescriptionED, "description"); get(m_pDescriptionED, "description");
Size aControlSize(475, 122); Size aControlSize(475, 122);
...@@ -85,6 +86,7 @@ void CertificateChooser::dispose() ...@@ -85,6 +86,7 @@ void CertificateChooser::dispose()
m_pCertLB.disposeAndClear(); m_pCertLB.disposeAndClear();
m_pViewBtn.clear(); m_pViewBtn.clear();
m_pOKBtn.clear(); m_pOKBtn.clear();
m_pFTDescription.clear();
m_pDescriptionED.clear(); m_pDescriptionED.clear();
mvUserData.clear(); mvUserData.clear();
ModalDialog::dispose(); ModalDialog::dispose();
...@@ -166,6 +168,9 @@ void CertificateChooser::ImplInitialize() ...@@ -166,6 +168,9 @@ void CertificateChooser::ImplInitialize()
case UserAction::Encrypt: case UserAction::Encrypt:
m_pFTEncrypt->Show(); m_pFTEncrypt->Show();
m_pFTDescription->Hide();
m_pDescriptionED->Hide();
m_pCertLB->SetSelectionMode( SelectionMode::Multiple );
m_pOKBtn->SetText( get<FixedText>("str_encrypt")->GetText() ); m_pOKBtn->SetText( get<FixedText>("str_encrypt")->GetText() );
break; break;
......
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="spacing">12</property> <property name="spacing">12</property>
<child> <child>
<object class="GtkLabel" id="label2"> <object class="GtkLabel" id="description-label">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="label" translatable="yes" context="selectcertificatedialog|label2">Description:</property> <property name="label" translatable="yes" context="selectcertificatedialog|label2">Description:</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment