Kaydet (Commit) a9c4c9d9 authored tarafından Caolán McNamara's avatar Caolán McNamara

weld SwAuthenticationSettingsDialog

Change-Id: I60cb9bbc4c094cea909ecbe4365b37ae0d9a4f78
Reviewed-on: https://gerrit.libreoffice.org/53040Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 6384e5ec
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <mailmergehelper.hxx> #include <mailmergehelper.hxx>
#include <cmdid.h> #include <cmdid.h>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
#include <vcl/weld.hxx>
#include <comphelper/processfactory.hxx> #include <comphelper/processfactory.hxx>
#include <com/sun/star/mail/MailServiceType.hpp> #include <com/sun/star/mail/MailServiceType.hpp>
#include <com/sun/star/mail/XMailService.hpp> #include <com/sun/star/mail/XMailService.hpp>
...@@ -72,45 +73,39 @@ public: ...@@ -72,45 +73,39 @@ public:
virtual void dispose() override; virtual void dispose() override;
}; };
class SwAuthenticationSettingsDialog : public SfxModalDialog class SwAuthenticationSettingsDialog : public weld::GenericDialogController
{ {
VclPtr<CheckBox> m_pAuthenticationCB; SwMailMergeConfigItem& m_rConfigItem;
VclPtr<RadioButton> m_pSeparateAuthenticationRB; std::unique_ptr<weld::CheckButton> m_xAuthenticationCB;
VclPtr<RadioButton> m_pSMTPAfterPOPRB; std::unique_ptr<weld::RadioButton> m_xSeparateAuthenticationRB;
std::unique_ptr<weld::RadioButton> m_xSMTPAfterPOPRB;
VclPtr<FixedText> m_pOutgoingServerFT; std::unique_ptr<weld::Label> m_xOutgoingServerFT;
VclPtr<FixedText> m_pUserNameFT; std::unique_ptr<weld::Label> m_xUserNameFT;
VclPtr<Edit> m_pUserNameED; std::unique_ptr<weld::Entry> m_xUserNameED;
VclPtr<FixedText> m_pOutPasswordFT; std::unique_ptr<weld::Label> m_xOutPasswordFT;
VclPtr<Edit> m_pOutPasswordED; std::unique_ptr<weld::Entry> m_xOutPasswordED;
std::unique_ptr<weld::Label> m_xIncomingServerFT;
VclPtr<FixedText> m_pIncomingServerFT; std::unique_ptr<weld::Label> m_xServerFT;
VclPtr<FixedText> m_pServerFT; std::unique_ptr<weld::Entry> m_xServerED;
VclPtr<Edit> m_pServerED; std::unique_ptr<weld::Label> m_xPortFT;
VclPtr<FixedText> m_pPortFT; std::unique_ptr<weld::SpinButton> m_xPortNF;
VclPtr<NumericField> m_pPortNF; std::unique_ptr<weld::Label> m_xProtocolFT;
VclPtr<FixedText> m_pProtocolFT; std::unique_ptr<weld::RadioButton> m_xPOP3RB;
VclPtr<RadioButton> m_pPOP3RB; std::unique_ptr<weld::RadioButton> m_xIMAPRB;
VclPtr<RadioButton> m_pIMAPRB; std::unique_ptr<weld::Label> m_xInUsernameFT;
VclPtr<FixedText> m_pInUsernameFT; std::unique_ptr<weld::Entry> m_xInUsernameED;
VclPtr<Edit> m_pInUsernameED; std::unique_ptr<weld::Label> m_xInPasswordFT;
VclPtr<FixedText> m_pInPasswordFT; std::unique_ptr<weld::Entry> m_xInPasswordED;
VclPtr<Edit> m_pInPasswordED; std::unique_ptr<weld::Button> m_xOKPB;
VclPtr<OKButton> m_pOKPB; DECL_LINK(OKHdl_Impl, weld::Button&, void);
DECL_LINK(CheckBoxHdl_Impl, weld::ToggleButton&, void);
SwMailMergeConfigItem& rConfigItem; DECL_LINK(RadioButtonHdl_Impl, weld::ToggleButton&, void);
DECL_LINK(InServerHdl_Impl, weld::Button&, void);
DECL_LINK(OKHdl_Impl, Button*, void);
DECL_LINK( CheckBoxHdl_Impl, Button*, void);
DECL_LINK(RadioButtonHdl_Impl, Button*, void);
DECL_LINK(InServerHdl_Impl, Button*, void);
public: public:
SwAuthenticationSettingsDialog(SwMailConfigPage* pParent, SwMailMergeConfigItem& rItem); SwAuthenticationSettingsDialog(weld::Window* pParent, SwMailMergeConfigItem& rItem);
virtual ~SwAuthenticationSettingsDialog() override;
virtual void dispose() override;
}; };
SwMailConfigPage::SwMailConfigPage( vcl::Window* pParent, const SfxItemSet& rSet ) : SwMailConfigPage::SwMailConfigPage( vcl::Window* pParent, const SfxItemSet& rSet ) :
...@@ -215,8 +210,8 @@ IMPL_LINK_NOARG(SwMailConfigPage, AuthenticationHdl, Button*, void) ...@@ -215,8 +210,8 @@ IMPL_LINK_NOARG(SwMailConfigPage, AuthenticationHdl, Button*, void)
{ {
m_pConfigItem->SetMailAddress(m_pAddressED->GetText()); m_pConfigItem->SetMailAddress(m_pAddressED->GetText());
ScopedVclPtrInstance< SwAuthenticationSettingsDialog > aDlg(this, *m_pConfigItem); SwAuthenticationSettingsDialog aDlg(GetFrameWeld(), *m_pConfigItem);
aDlg->Execute(); aDlg.run();
} }
IMPL_LINK_NOARG(SwMailConfigPage, TestHdl, Button*, void) IMPL_LINK_NOARG(SwMailConfigPage, TestHdl, Button*, void)
...@@ -397,158 +392,124 @@ SwMailConfigDlg::SwMailConfigDlg(vcl::Window* pParent, SfxItemSet& rSet) ...@@ -397,158 +392,124 @@ SwMailConfigDlg::SwMailConfigDlg(vcl::Window* pParent, SfxItemSet& rSet)
} }
SwAuthenticationSettingsDialog::SwAuthenticationSettingsDialog( SwAuthenticationSettingsDialog::SwAuthenticationSettingsDialog(
SwMailConfigPage* pParent, SwMailMergeConfigItem& rItem) weld::Window* pParent, SwMailMergeConfigItem& rItem)
: SfxModalDialog(pParent, "AuthenticationSettingsDialog", "modules/swriter/ui/authenticationsettingsdialog.ui") : GenericDialogController(pParent, "modules/swriter/ui/authenticationsettingsdialog.ui", "AuthenticationSettingsDialog")
, rConfigItem( rItem ) , m_rConfigItem(rItem)
, m_xAuthenticationCB(m_xBuilder->weld_check_button("authentication"))
, m_xSeparateAuthenticationRB(m_xBuilder->weld_radio_button("separateauthentication"))
, m_xSMTPAfterPOPRB(m_xBuilder->weld_radio_button("smtpafterpop"))
, m_xOutgoingServerFT(m_xBuilder->weld_label("label1"))
, m_xUserNameFT(m_xBuilder->weld_label("username_label"))
, m_xUserNameED(m_xBuilder->weld_entry("username"))
, m_xOutPasswordFT(m_xBuilder->weld_label("outpassword_label"))
, m_xOutPasswordED(m_xBuilder->weld_entry("outpassword"))
, m_xIncomingServerFT(m_xBuilder->weld_label("label2"))
, m_xServerFT(m_xBuilder->weld_label("server_label"))
, m_xServerED(m_xBuilder->weld_entry("server"))
, m_xPortFT(m_xBuilder->weld_label("port_label"))
, m_xPortNF(m_xBuilder->weld_spin_button("port"))
, m_xProtocolFT(m_xBuilder->weld_label("label3"))
, m_xPOP3RB(m_xBuilder->weld_radio_button("pop3"))
, m_xIMAPRB(m_xBuilder->weld_radio_button("imap"))
, m_xInUsernameFT(m_xBuilder->weld_label("inusername_label"))
, m_xInUsernameED(m_xBuilder->weld_entry("inusername"))
, m_xInPasswordFT(m_xBuilder->weld_label("inpassword_label"))
, m_xInPasswordED(m_xBuilder->weld_entry("inpassword"))
, m_xOKPB(m_xBuilder->weld_button("ok"))
{ {
get(m_pAuthenticationCB,"authentication"); m_xAuthenticationCB->connect_toggled( LINK( this, SwAuthenticationSettingsDialog, CheckBoxHdl_Impl));
get(m_pSeparateAuthenticationRB,"separateauthentication"); Link<weld::ToggleButton&,void> aRBLink = LINK( this, SwAuthenticationSettingsDialog, RadioButtonHdl_Impl );
get(m_pSMTPAfterPOPRB,"smtpafterpop"); m_xSeparateAuthenticationRB->connect_toggled( aRBLink );
get(m_pOutgoingServerFT,"label1"); m_xSMTPAfterPOPRB->connect_toggled( aRBLink );
get(m_pUserNameFT,"username_label"); m_xOKPB->connect_clicked( LINK( this, SwAuthenticationSettingsDialog, OKHdl_Impl));
get(m_pUserNameED,"username"); Link<weld::Button&,void> aInServerLink = LINK( this, SwAuthenticationSettingsDialog, InServerHdl_Impl );
get(m_pOutPasswordFT,"outpassword_label"); m_xPOP3RB->connect_clicked( aInServerLink );
get(m_pOutPasswordED,"outpassword"); m_xIMAPRB->connect_clicked( aInServerLink );
get(m_pIncomingServerFT,"label2");
get(m_pServerFT,"server_label"); m_xAuthenticationCB->set_active(m_rConfigItem.IsAuthentication());
get(m_pServerED,"server"); if (m_rConfigItem.IsSMTPAfterPOP())
get(m_pPortFT,"port_label"); m_xSMTPAfterPOPRB->set_active(true);
get(m_pPortNF,"port");
get(m_pProtocolFT,"label3");
get(m_pPOP3RB,"pop3");
get(m_pIMAPRB,"imap");
get(m_pInUsernameFT,"inusername_label");
get(m_pInUsernameED,"inusername");
get(m_pInPasswordFT,"inpassword_label");
get(m_pInPasswordED,"inpassword");
get(m_pOKPB,"ok");
m_pAuthenticationCB->SetClickHdl( LINK( this, SwAuthenticationSettingsDialog, CheckBoxHdl_Impl));
Link<Button*,void> aRBLink = LINK( this, SwAuthenticationSettingsDialog, RadioButtonHdl_Impl );
m_pSeparateAuthenticationRB->SetClickHdl( aRBLink );
m_pSMTPAfterPOPRB->SetClickHdl( aRBLink );
m_pOKPB->SetClickHdl( LINK( this, SwAuthenticationSettingsDialog, OKHdl_Impl));
Link<Button*,void> aInServerLink = LINK( this, SwAuthenticationSettingsDialog, InServerHdl_Impl );
m_pPOP3RB->SetClickHdl( aInServerLink );
m_pIMAPRB->SetClickHdl( aInServerLink );
m_pAuthenticationCB->Check( rConfigItem.IsAuthentication() );
if(rConfigItem.IsSMTPAfterPOP())
m_pSMTPAfterPOPRB->Check();
else else
m_pSeparateAuthenticationRB->Check(); m_xSeparateAuthenticationRB->set_active(true);
m_pUserNameED->SetText( rConfigItem.GetMailUserName() ); m_xUserNameED->set_text(m_rConfigItem.GetMailUserName());
m_pOutPasswordED->SetText( rConfigItem.GetMailPassword() ); m_xOutPasswordED->set_text(m_rConfigItem.GetMailPassword());
m_pServerED->SetText( rConfigItem.GetInServerName() ); m_xServerED->set_text(m_rConfigItem.GetInServerName());
m_pPortNF->SetValue( rConfigItem.GetInServerPort() ); m_xPortNF->set_value(m_rConfigItem.GetInServerPort());
if(rConfigItem.IsInServerPOP()) if (m_rConfigItem.IsInServerPOP())
m_pPOP3RB->Check(); m_xPOP3RB->set_active(true);
else else
m_pIMAPRB->Check(); m_xIMAPRB->set_active(true);
m_pInUsernameED->SetText( rConfigItem.GetInServerUserName()); m_xInUsernameED->set_text(m_rConfigItem.GetInServerUserName());
m_pInPasswordED->SetText( rConfigItem.GetInServerPassword() ); m_xInPasswordED->set_text(m_rConfigItem.GetInServerPassword());
CheckBoxHdl_Impl( m_pAuthenticationCB ); CheckBoxHdl_Impl(*m_xAuthenticationCB);
}
SwAuthenticationSettingsDialog::~SwAuthenticationSettingsDialog()
{
disposeOnce();
}
void SwAuthenticationSettingsDialog::dispose()
{
m_pAuthenticationCB.clear();
m_pSeparateAuthenticationRB.clear();
m_pSMTPAfterPOPRB.clear();
m_pOutgoingServerFT.clear();
m_pUserNameFT.clear();
m_pUserNameED.clear();
m_pOutPasswordFT.clear();
m_pOutPasswordED.clear();
m_pIncomingServerFT.clear();
m_pServerFT.clear();
m_pServerED.clear();
m_pPortFT.clear();
m_pPortNF.clear();
m_pProtocolFT.clear();
m_pPOP3RB.clear();
m_pIMAPRB.clear();
m_pInUsernameFT.clear();
m_pInUsernameED.clear();
m_pInPasswordFT.clear();
m_pInPasswordED.clear();
m_pOKPB.clear();
SfxModalDialog::dispose();
} }
IMPL_LINK_NOARG(SwAuthenticationSettingsDialog, OKHdl_Impl, Button*, void) IMPL_LINK_NOARG(SwAuthenticationSettingsDialog, OKHdl_Impl, weld::Button&, void)
{ {
rConfigItem.SetAuthentication( m_pAuthenticationCB->IsChecked() ); m_rConfigItem.SetAuthentication( m_xAuthenticationCB->get_active() );
rConfigItem.SetSMTPAfterPOP(m_pSMTPAfterPOPRB->IsChecked()); m_rConfigItem.SetSMTPAfterPOP(m_xSMTPAfterPOPRB->get_active());
rConfigItem.SetMailUserName(m_pUserNameED->GetText()); m_rConfigItem.SetMailUserName(m_xUserNameED->get_text());
rConfigItem.SetMailPassword(m_pOutPasswordED->GetText()); m_rConfigItem.SetMailPassword(m_xOutPasswordED->get_text());
rConfigItem.SetInServerName(m_pServerED->GetText()); m_rConfigItem.SetInServerName(m_xServerED->get_text());
rConfigItem.SetInServerPort(sal::static_int_cast< sal_Int16, sal_Int64 >(m_pPortNF->GetValue( ) )); m_rConfigItem.SetInServerPort(m_xPortNF->get_value());
rConfigItem.SetInServerPOP(m_pPOP3RB->IsChecked()); m_rConfigItem.SetInServerPOP(m_xPOP3RB->get_active());
rConfigItem.SetInServerUserName(m_pInUsernameED->GetText()); m_rConfigItem.SetInServerUserName(m_xInUsernameED->get_text());
m_rConfigItem.SetInServerPassword(m_xInPasswordED->get_text());
rConfigItem.SetInServerPassword(m_pInPasswordED->GetText()); m_xDialog->response(RET_OK);
EndDialog(RET_OK);
} }
IMPL_LINK( SwAuthenticationSettingsDialog, CheckBoxHdl_Impl, Button*, pBox, void) IMPL_LINK( SwAuthenticationSettingsDialog, CheckBoxHdl_Impl, weld::ToggleButton&, rBox, void)
{ {
bool bChecked = static_cast<CheckBox*>(pBox)->IsChecked(); bool bChecked = rBox.get_active();
m_pSeparateAuthenticationRB->Enable(bChecked); m_xSeparateAuthenticationRB->set_sensitive(bChecked);
m_pSMTPAfterPOPRB->Enable(bChecked); m_xSMTPAfterPOPRB->set_sensitive(bChecked);
RadioButtonHdl_Impl( nullptr ); RadioButtonHdl_Impl(*m_xSeparateAuthenticationRB);
} }
IMPL_LINK_NOARG(SwAuthenticationSettingsDialog, RadioButtonHdl_Impl, Button*, void) IMPL_LINK_NOARG(SwAuthenticationSettingsDialog, RadioButtonHdl_Impl, weld::ToggleButton&, void)
{ {
bool bSeparate = m_pSeparateAuthenticationRB->IsChecked(); bool bSeparate = m_xSeparateAuthenticationRB->get_active();
bool bIsEnabled = m_pSeparateAuthenticationRB->IsEnabled(); bool bIsEnabled = m_xSeparateAuthenticationRB->get_sensitive();
bool bNotSeparate = !bSeparate && bIsEnabled; bool bNotSeparate = !bSeparate && bIsEnabled;
bSeparate &= bIsEnabled; bSeparate &= bIsEnabled;
if ( bSeparate && m_pUserNameED->GetText().isEmpty() ) if (bSeparate && m_xUserNameED->get_text().isEmpty())
m_pUserNameED->SetText( rConfigItem.GetMailAddress() ); m_xUserNameED->set_text(m_rConfigItem.GetMailAddress());
else if ( !bSeparate && m_pUserNameED->GetText() == rConfigItem.GetMailAddress() ) else if (!bSeparate && m_xUserNameED->get_text() == m_rConfigItem.GetMailAddress())
m_pUserNameED->SetText(""); m_xUserNameED->set_text("");
if ( bNotSeparate && m_pInUsernameED->GetText().isEmpty() ) if (bNotSeparate && m_xInUsernameED->get_text().isEmpty())
m_pInUsernameED->SetText( rConfigItem.GetMailAddress() ); m_xInUsernameED->set_text(m_rConfigItem.GetMailAddress());
else if ( !bNotSeparate && m_pInUsernameED->GetText() == rConfigItem.GetMailAddress() ) else if (!bNotSeparate && m_xInUsernameED->get_text() == m_rConfigItem.GetMailAddress())
m_pInUsernameED->SetText(""); m_xInUsernameED->set_text("");
m_pOutgoingServerFT->Enable(bSeparate); m_xOutgoingServerFT->set_sensitive(bSeparate);
m_pUserNameFT->Enable(bSeparate); m_xUserNameFT->set_sensitive(bSeparate);
m_pUserNameED->Enable(bSeparate); m_xUserNameED->set_sensitive(bSeparate);
m_pOutPasswordFT->Enable(bSeparate); m_xOutPasswordFT->set_sensitive(bSeparate);
m_pOutPasswordED->Enable(bSeparate); m_xOutPasswordED->set_sensitive(bSeparate);
m_pIncomingServerFT->Enable(bNotSeparate); m_xIncomingServerFT->set_sensitive(bNotSeparate);
m_pServerFT->Enable(bNotSeparate); m_xServerFT->set_sensitive(bNotSeparate);
m_pServerED->Enable(bNotSeparate); m_xServerED->set_sensitive(bNotSeparate);
m_pPortFT->Enable(bNotSeparate); m_xPortFT->set_sensitive(bNotSeparate);
m_pPortNF->Enable(bNotSeparate); m_xPortNF->set_sensitive(bNotSeparate);
m_pInUsernameFT->Enable(bNotSeparate); m_xInUsernameFT->set_sensitive(bNotSeparate);
m_pInUsernameED->Enable(bNotSeparate); m_xInUsernameED->set_sensitive(bNotSeparate);
m_pProtocolFT->Enable(bNotSeparate); m_xProtocolFT->set_sensitive(bNotSeparate);
m_pPOP3RB->Enable(bNotSeparate); m_xPOP3RB->set_sensitive(bNotSeparate);
m_pIMAPRB->Enable(bNotSeparate); m_xIMAPRB->set_sensitive(bNotSeparate);
m_pInPasswordFT->Enable(bNotSeparate); m_xInPasswordFT->set_sensitive(bNotSeparate);
m_pInPasswordED->Enable(bNotSeparate); m_xInPasswordED->set_sensitive(bNotSeparate);
} }
IMPL_LINK_NOARG( SwAuthenticationSettingsDialog, InServerHdl_Impl, Button*, void) IMPL_LINK_NOARG( SwAuthenticationSettingsDialog, InServerHdl_Impl, weld::Button&, void)
{ {
bool bPOP = m_pPOP3RB->IsChecked(); bool bPOP = m_xPOP3RB->get_active();
rConfigItem.SetInServerPOP(bPOP); m_rConfigItem.SetInServerPOP(bPOP);
m_pPortNF->SetValue(rConfigItem.GetInServerPort()); m_xPortNF->set_value(m_rConfigItem.GetInServerPort());
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 --> <!-- Generated with glade 3.20.4 -->
<interface domain="sw"> <interface domain="sw">
<requires lib="gtk+" version="3.18"/> <requires lib="gtk+" version="3.18"/>
<object class="GtkAdjustment" id="adjustment1"> <object class="GtkAdjustment" id="adjustment1">
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="border_width">6</property> <property name="border_width">6</property>
<property name="title" translatable="yes" context="authenticationsettingsdialog|AuthenticationSettingsDialog">Server Authentication</property> <property name="title" translatable="yes" context="authenticationsettingsdialog|AuthenticationSettingsDialog">Server Authentication</property>
<property name="modal">True</property>
<property name="default_width">0</property>
<property name="default_height">0</property>
<property name="type_hint">dialog</property> <property name="type_hint">dialog</property>
<child internal-child="vbox"> <child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1"> <object class="GtkBox" id="dialog-vbox1">
...@@ -100,7 +103,7 @@ ...@@ -100,7 +103,7 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkRadioButton" id="separateauthentication:wrap"> <object class="GtkRadioButton" id="separateauthentication">
<property name="label" translatable="yes" context="authenticationsettingsdialog|separateauthentication">The outgoing mail server (SMTP) requires _separate authentication</property> <property name="label" translatable="yes" context="authenticationsettingsdialog|separateauthentication">The outgoing mail server (SMTP) requires _separate authentication</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
...@@ -110,7 +113,6 @@ ...@@ -110,7 +113,6 @@
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="active">True</property> <property name="active">True</property>
<property name="draw_indicator">True</property> <property name="draw_indicator">True</property>
<property name="group">smtpafterpop:wrap</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -123,8 +125,8 @@ ...@@ -123,8 +125,8 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_left">24</property> <property name="margin_left">24</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="authenticationsettingsdialog|label1">Outgoing mail server:</property> <property name="label" translatable="yes" context="authenticationsettingsdialog|label1">Outgoing mail server:</property>
<property name="xalign">0</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -137,6 +139,7 @@ ...@@ -137,6 +139,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="activates_default">True</property>
<property name="width_chars">40</property> <property name="width_chars">40</property>
</object> </object>
<packing> <packing>
...@@ -149,10 +152,10 @@ ...@@ -149,10 +152,10 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_left">24</property> <property name="margin_left">24</property>
<property name="xalign">1</property>
<property name="label" translatable="yes" context="authenticationsettingsdialog|username_label">_User name:</property> <property name="label" translatable="yes" context="authenticationsettingsdialog|username_label">_User name:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="mnemonic_widget">username</property> <property name="mnemonic_widget">username</property>
<property name="xalign">1</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -165,7 +168,9 @@ ...@@ -165,7 +168,9 @@
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="visibility">False</property> <property name="visibility">False</property>
<property name="activates_default">True</property>
<property name="width_chars">40</property> <property name="width_chars">40</property>
<property name="input_purpose">password</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
...@@ -177,10 +182,10 @@ ...@@ -177,10 +182,10 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_left">24</property> <property name="margin_left">24</property>
<property name="xalign">1</property>
<property name="label" translatable="yes" context="authenticationsettingsdialog|outpassword_label">_Password:</property> <property name="label" translatable="yes" context="authenticationsettingsdialog|outpassword_label">_Password:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="mnemonic_widget">outpassword</property> <property name="mnemonic_widget">outpassword</property>
<property name="xalign">1</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -188,7 +193,7 @@ ...@@ -188,7 +193,7 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkRadioButton" id="smtpafterpop:wrap"> <object class="GtkRadioButton" id="smtpafterpop">
<property name="label" translatable="yes" context="authenticationsettingsdialog|smtpafterpop">The outgoing mail server uses the same authentication as the _incoming mail server</property> <property name="label" translatable="yes" context="authenticationsettingsdialog|smtpafterpop">The outgoing mail server uses the same authentication as the _incoming mail server</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
...@@ -198,7 +203,7 @@ ...@@ -198,7 +203,7 @@
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="active">True</property> <property name="active">True</property>
<property name="draw_indicator">True</property> <property name="draw_indicator">True</property>
<property name="group">separateauthentication:wrap</property> <property name="group">separateauthentication</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -211,8 +216,8 @@ ...@@ -211,8 +216,8 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_left">24</property> <property name="margin_left">24</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="authenticationsettingsdialog|label2">Incoming mail server:</property> <property name="label" translatable="yes" context="authenticationsettingsdialog|label2">Incoming mail server:</property>
<property name="xalign">0</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -225,6 +230,7 @@ ...@@ -225,6 +230,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="activates_default">True</property>
<property name="width_chars">40</property> <property name="width_chars">40</property>
</object> </object>
<packing> <packing>
...@@ -237,10 +243,10 @@ ...@@ -237,10 +243,10 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_left">24</property> <property name="margin_left">24</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="authenticationsettingsdialog|server_label">Server _name:</property> <property name="label" translatable="yes" context="authenticationsettingsdialog|server_label">Server _name:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="mnemonic_widget">server</property> <property name="mnemonic_widget">server</property>
<property name="xalign">0</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -251,6 +257,7 @@ ...@@ -251,6 +257,7 @@
<object class="GtkSpinButton" id="port"> <object class="GtkSpinButton" id="port">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="activates_default">True</property>
<property name="width_chars">3</property> <property name="width_chars">3</property>
<property name="adjustment">adjustment1</property> <property name="adjustment">adjustment1</property>
</object> </object>
...@@ -263,10 +270,10 @@ ...@@ -263,10 +270,10 @@
<object class="GtkLabel" id="port_label"> <object class="GtkLabel" id="port_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="xalign">1</property>
<property name="label" translatable="yes" context="authenticationsettingsdialog|port_label">P_ort:</property> <property name="label" translatable="yes" context="authenticationsettingsdialog|port_label">P_ort:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="mnemonic_widget">port</property> <property name="mnemonic_widget">port</property>
<property name="xalign">1</property>
</object> </object>
<packing> <packing>
<property name="left_attach">2</property> <property name="left_attach">2</property>
...@@ -278,8 +285,8 @@ ...@@ -278,8 +285,8 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_left">24</property> <property name="margin_left">24</property>
<property name="xalign">1</property>
<property name="label" translatable="yes" context="authenticationsettingsdialog|label3">Type:</property> <property name="label" translatable="yes" context="authenticationsettingsdialog|label3">Type:</property>
<property name="xalign">1</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -296,7 +303,6 @@ ...@@ -296,7 +303,6 @@
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="active">True</property> <property name="active">True</property>
<property name="draw_indicator">True</property> <property name="draw_indicator">True</property>
<property name="group">imap</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
...@@ -325,6 +331,7 @@ ...@@ -325,6 +331,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="activates_default">True</property>
<property name="width_chars">40</property> <property name="width_chars">40</property>
</object> </object>
<packing> <packing>
...@@ -338,7 +345,9 @@ ...@@ -338,7 +345,9 @@
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="visibility">False</property> <property name="visibility">False</property>
<property name="activates_default">True</property>
<property name="width_chars">40</property> <property name="width_chars">40</property>
<property name="input_purpose">password</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
...@@ -350,10 +359,10 @@ ...@@ -350,10 +359,10 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_left">24</property> <property name="margin_left">24</property>
<property name="xalign">1</property>
<property name="label" translatable="yes" context="authenticationsettingsdialog|inusername_label">Us_er name:</property> <property name="label" translatable="yes" context="authenticationsettingsdialog|inusername_label">Us_er name:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="mnemonic_widget">inusername</property> <property name="mnemonic_widget">inusername</property>
<property name="xalign">1</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -365,10 +374,10 @@ ...@@ -365,10 +374,10 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_left">24</property> <property name="margin_left">24</property>
<property name="xalign">1</property>
<property name="label" translatable="yes" context="authenticationsettingsdialog|inpassword_label">Pass_word:</property> <property name="label" translatable="yes" context="authenticationsettingsdialog|inpassword_label">Pass_word:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="mnemonic_widget">inpassword</property> <property name="mnemonic_widget">inpassword</property>
<property name="xalign">1</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -428,5 +437,8 @@ ...@@ -428,5 +437,8 @@
<action-widget response="-6">cancel</action-widget> <action-widget response="-6">cancel</action-widget>
<action-widget response="-11">help</action-widget> <action-widget response="-11">help</action-widget>
</action-widgets> </action-widgets>
<child>
<placeholder/>
</child>
</object> </object>
</interface> </interface>
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