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

really convert select address block to .ui

Change-Id: Icfd77f2037a27f24fd796084509a1baa7734103b
üst 6521201d
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
#define DLG_MM_CREATEADDRESSLIST (RC_DBUI_BEGIN + 14) #define DLG_MM_CREATEADDRESSLIST (RC_DBUI_BEGIN + 14)
#define DLG_MM_CUSTOMIZE_ADDRESS_LIST (RC_DBUI_BEGIN + 17) #define DLG_MM_CUSTOMIZE_ADDRESS_LIST (RC_DBUI_BEGIN + 17)
#define DLG_MM_SELECTADDRESSBLOCK (RC_DBUI_BEGIN + 19)
#define DLG_MM_ASSIGNFIELDS (RC_DBUI_BEGIN + 20) #define DLG_MM_ASSIGNFIELDS (RC_DBUI_BEGIN + 20)
#define DLG_MM_LAYOUT_PAGE (RC_DBUI_BEGIN + 22) #define DLG_MM_LAYOUT_PAGE (RC_DBUI_BEGIN + 22)
......
...@@ -222,7 +222,7 @@ SwAddressPreview::SwAddressPreview(Window* pParent, WinBits nStyle) ...@@ -222,7 +222,7 @@ SwAddressPreview::SwAddressPreview(Window* pParent, WinBits nStyle)
extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSwAddressPreview(Window *pParent, VclBuilder::stringmap &rMap) extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSwAddressPreview(Window *pParent, VclBuilder::stringmap &rMap)
{ {
WinBits nWinStyle = WB_NOTABSTOP; WinBits nWinStyle = WB_DIALOGCONTROL;
OString sBorder = VclBuilder::extractCustomProperty(rMap); OString sBorder = VclBuilder::extractCustomProperty(rMap);
if (!sBorder.isEmpty()) if (!sBorder.isEmpty())
nWinStyle |= WB_BORDER; nWinStyle |= WB_BORDER;
......
...@@ -338,44 +338,35 @@ IMPL_LINK(SwMailMergeAddressBlockPage, InsertDataHdl_Impl, ImageButton*, pButton ...@@ -338,44 +338,35 @@ IMPL_LINK(SwMailMergeAddressBlockPage, InsertDataHdl_Impl, ImageButton*, pButton
} }
SwSelectAddressBlockDialog::SwSelectAddressBlockDialog( SwSelectAddressBlockDialog::SwSelectAddressBlockDialog(
Window* pParent, SwMailMergeConfigItem& rConfig) : Window* pParent, SwMailMergeConfigItem& rConfig)
SfxModalDialog(pParent, SW_RES(DLG_MM_SELECTADDRESSBLOCK)), : SfxModalDialog(pParent, "SelectBlockDialog",
#ifdef _MSC_VER "modules/swriter/ui/selectblockdialog.ui")
#pragma warning (disable : 4355) , m_rConfig(rConfig)
#endif {
m_aSelectFT( this, SW_RES( FT_SELECT)), get(m_pPreview, "preview");
m_aPreview( this, SW_RES( WIN_PREVIEW)), Size aSize(m_pPreview->LogicToPixel(Size(192, 100), MapMode(MAP_APPFONT)));
m_aNewPB( this, SW_RES( PB_NEW)), m_pPreview->set_width_request(aSize.Width());
m_aCustomizePB( this, SW_RES( PB_CUSTOMIZE)), m_pPreview->set_height_request(aSize.Height());
m_aDeletePB( this, SW_RES( PB_DELETE)), get(m_pNewPB, "new");
m_aSettingsFI( this, SW_RES( FI_SETTINGS)), get(m_pCustomizePB, "edit");
m_aNeverRB( this, SW_RES( RB_NEVER)), get(m_pDeletePB, "delete");
m_aAlwaysRB( this, SW_RES( RB_ALWAYS)), get(m_pNeverRB, "never");
m_aDependentRB( this, SW_RES( RB_DEPENDENT)), get(m_pAlwaysRB, "always");
m_aCountryED( this, SW_RES( ED_COUNTRY)), get(m_pDependentRB, "dependent");
m_aSeparatorFL( this, SW_RES( FL_SEPARATOR)), get(m_pCountryED, "country");
m_aOK( this, SW_RES( PB_OK)),
m_aCancel( this, SW_RES( PB_CANCEL)),
m_aHelp( this, SW_RES( PB_HELP)),
#ifdef _MSC_VER
#pragma warning (default : 4355)
#endif
m_rConfig(rConfig)
{
FreeResource();
Link aCustomizeHdl = LINK(this, SwSelectAddressBlockDialog, NewCustomizeHdl_Impl); Link aCustomizeHdl = LINK(this, SwSelectAddressBlockDialog, NewCustomizeHdl_Impl);
m_aNewPB.SetClickHdl(aCustomizeHdl); m_pNewPB->SetClickHdl(aCustomizeHdl);
m_aCustomizePB.SetClickHdl(aCustomizeHdl); m_pCustomizePB->SetClickHdl(aCustomizeHdl);
m_aDeletePB.SetClickHdl(LINK(this, SwSelectAddressBlockDialog, DeleteHdl_Impl)); m_pDeletePB->SetClickHdl(LINK(this, SwSelectAddressBlockDialog, DeleteHdl_Impl));
Link aLk = LINK(this, SwSelectAddressBlockDialog, IncludeHdl_Impl); Link aLk = LINK(this, SwSelectAddressBlockDialog, IncludeHdl_Impl);
m_aNeverRB.SetClickHdl(aLk); m_pNeverRB->SetClickHdl(aLk);
m_aAlwaysRB.SetClickHdl(aLk); m_pAlwaysRB->SetClickHdl(aLk);
m_aDependentRB.SetClickHdl(aLk); m_pDependentRB->SetClickHdl(aLk);
m_aPreview.SetLayout(2, 2); m_pPreview->SetLayout(2, 2);
m_aPreview.EnableScrollBar(); m_pPreview->EnableScrollBar();
} }
SwSelectAddressBlockDialog::~SwSelectAddressBlockDialog() SwSelectAddressBlockDialog::~SwSelectAddressBlockDialog()
...@@ -387,15 +378,15 @@ void SwSelectAddressBlockDialog::SetAddressBlocks(const uno::Sequence< OUString> ...@@ -387,15 +378,15 @@ void SwSelectAddressBlockDialog::SetAddressBlocks(const uno::Sequence< OUString>
{ {
m_aAddressBlocks = rBlocks; m_aAddressBlocks = rBlocks;
for(sal_Int32 nAddress = 0; nAddress < m_aAddressBlocks.getLength(); ++nAddress) for(sal_Int32 nAddress = 0; nAddress < m_aAddressBlocks.getLength(); ++nAddress)
m_aPreview.AddAddress(m_aAddressBlocks[nAddress]); m_pPreview->AddAddress(m_aAddressBlocks[nAddress]);
m_aPreview.SelectAddress(nSelectedAddress); m_pPreview->SelectAddress(nSelectedAddress);
} }
// return the address blocks and put the selected one to the first position // return the address blocks and put the selected one to the first position
const uno::Sequence< OUString >& SwSelectAddressBlockDialog::GetAddressBlocks() const uno::Sequence< OUString >& SwSelectAddressBlockDialog::GetAddressBlocks()
{ {
//put the selected block to the first position //put the selected block to the first position
sal_uInt16 nSelect = m_aPreview.GetSelectedAddress(); sal_uInt16 nSelect = m_pPreview->GetSelectedAddress();
if(nSelect) if(nSelect)
{ {
uno::Sequence< OUString >aTemp = m_aAddressBlocks; uno::Sequence< OUString >aTemp = m_aAddressBlocks;
...@@ -418,21 +409,22 @@ const uno::Sequence< OUString >& SwSelectAddressBlockDialog::GetAddressBlocks ...@@ -418,21 +409,22 @@ const uno::Sequence< OUString >& SwSelectAddressBlockDialog::GetAddressBlocks
void SwSelectAddressBlockDialog::SetSettings( void SwSelectAddressBlockDialog::SetSettings(
sal_Bool bIsCountry, OUString rCountry) sal_Bool bIsCountry, OUString rCountry)
{ {
RadioButton *pActive = m_pNeverRB;
if(bIsCountry) if(bIsCountry)
{ {
!rCountry.isEmpty() ? m_aDependentRB.Check() : m_aAlwaysRB.Check(); pActive = !rCountry.isEmpty() ? m_pDependentRB : m_pAlwaysRB;
m_aCountryED.SetText(rCountry); m_pCountryED->SetText(rCountry);
} }
else pActive->Check();
m_aNeverRB.Check(); IncludeHdl_Impl(pActive);
m_aDeletePB.Enable(m_aAddressBlocks.getLength() > 1); m_pDeletePB->Enable(m_aAddressBlocks.getLength() > 1);
} }
OUString SwSelectAddressBlockDialog::GetCountry() const OUString SwSelectAddressBlockDialog::GetCountry() const
{ {
OUString sRet; OUString sRet;
if(m_aDependentRB.IsChecked()) if(m_pDependentRB->IsChecked())
sRet = m_aCountryED.GetText(); sRet = m_pCountryED->GetText();
return sRet; return sRet;
} }
...@@ -440,7 +432,7 @@ IMPL_LINK(SwSelectAddressBlockDialog, DeleteHdl_Impl, PushButton*, pButton) ...@@ -440,7 +432,7 @@ IMPL_LINK(SwSelectAddressBlockDialog, DeleteHdl_Impl, PushButton*, pButton)
{ {
if(m_aAddressBlocks.getLength()) if(m_aAddressBlocks.getLength())
{ {
sal_uInt16 nSelected = m_aPreview.GetSelectedAddress(); sal_uInt16 nSelected = m_pPreview->GetSelectedAddress();
OUString* pAddressBlocks = m_aAddressBlocks.getArray(); OUString* pAddressBlocks = m_aAddressBlocks.getArray();
sal_Int32 nSource = 0; sal_Int32 nSource = 0;
for(sal_Int32 nTarget = 0; nTarget < m_aAddressBlocks.getLength() - 1; nTarget++) for(sal_Int32 nTarget = 0; nTarget < m_aAddressBlocks.getLength() - 1; nTarget++)
...@@ -452,14 +444,14 @@ IMPL_LINK(SwSelectAddressBlockDialog, DeleteHdl_Impl, PushButton*, pButton) ...@@ -452,14 +444,14 @@ IMPL_LINK(SwSelectAddressBlockDialog, DeleteHdl_Impl, PushButton*, pButton)
m_aAddressBlocks.realloc(m_aAddressBlocks.getLength() - 1); m_aAddressBlocks.realloc(m_aAddressBlocks.getLength() - 1);
if(m_aAddressBlocks.getLength() <= 1) if(m_aAddressBlocks.getLength() <= 1)
pButton->Enable(sal_False); pButton->Enable(sal_False);
m_aPreview.RemoveSelectedAddress(); m_pPreview->RemoveSelectedAddress();
} }
return 0; return 0;
} }
IMPL_LINK(SwSelectAddressBlockDialog, NewCustomizeHdl_Impl, PushButton*, pButton) IMPL_LINK(SwSelectAddressBlockDialog, NewCustomizeHdl_Impl, PushButton*, pButton)
{ {
bool bCustomize = pButton == &m_aCustomizePB; bool bCustomize = pButton == m_pCustomizePB;
SwCustomizeAddressBlockDialog::DialogType nType = bCustomize ? SwCustomizeAddressBlockDialog::DialogType nType = bCustomize ?
SwCustomizeAddressBlockDialog::ADDRESSBLOCK_EDIT : SwCustomizeAddressBlockDialog::ADDRESSBLOCK_EDIT :
SwCustomizeAddressBlockDialog::ADDRESSBLOCK_NEW; SwCustomizeAddressBlockDialog::ADDRESSBLOCK_NEW;
...@@ -467,26 +459,26 @@ IMPL_LINK(SwSelectAddressBlockDialog, NewCustomizeHdl_Impl, PushButton*, pButton ...@@ -467,26 +459,26 @@ IMPL_LINK(SwSelectAddressBlockDialog, NewCustomizeHdl_Impl, PushButton*, pButton
new SwCustomizeAddressBlockDialog(pButton,m_rConfig,nType); new SwCustomizeAddressBlockDialog(pButton,m_rConfig,nType);
if(bCustomize) if(bCustomize)
{ {
pDlg->SetAddress(m_aAddressBlocks[m_aPreview.GetSelectedAddress()]); pDlg->SetAddress(m_aAddressBlocks[m_pPreview->GetSelectedAddress()]);
} }
if(RET_OK == pDlg->Execute()) if(RET_OK == pDlg->Execute())
{ {
if(bCustomize) if(bCustomize)
{ {
OUString sNew = pDlg->GetAddress(); OUString sNew = pDlg->GetAddress();
m_aPreview.ReplaceSelectedAddress(sNew); m_pPreview->ReplaceSelectedAddress(sNew);
m_aAddressBlocks[m_aPreview.GetSelectedAddress()] = sNew; m_aAddressBlocks[m_pPreview->GetSelectedAddress()] = sNew;
} }
else else
{ {
OUString sNew = pDlg->GetAddress(); OUString sNew = pDlg->GetAddress();
m_aPreview.AddAddress(sNew); m_pPreview->AddAddress(sNew);
m_aAddressBlocks.realloc(m_aAddressBlocks.getLength() + 1); m_aAddressBlocks.realloc(m_aAddressBlocks.getLength() + 1);
sal_uInt16 nSelect = (sal_uInt16)m_aAddressBlocks.getLength() - 1; sal_uInt16 nSelect = (sal_uInt16)m_aAddressBlocks.getLength() - 1;
m_aAddressBlocks[nSelect] = sNew; m_aAddressBlocks[nSelect] = sNew;
m_aPreview.SelectAddress(nSelect); m_pPreview->SelectAddress(nSelect);
} }
m_aDeletePB.Enable( m_aAddressBlocks.getLength() > 1); m_pDeletePB->Enable( m_aAddressBlocks.getLength() > 1);
} }
delete pDlg; delete pDlg;
return 0; return 0;
...@@ -494,7 +486,7 @@ IMPL_LINK(SwSelectAddressBlockDialog, NewCustomizeHdl_Impl, PushButton*, pButton ...@@ -494,7 +486,7 @@ IMPL_LINK(SwSelectAddressBlockDialog, NewCustomizeHdl_Impl, PushButton*, pButton
IMPL_LINK(SwSelectAddressBlockDialog, IncludeHdl_Impl, RadioButton*, pButton) IMPL_LINK(SwSelectAddressBlockDialog, IncludeHdl_Impl, RadioButton*, pButton)
{ {
m_aCountryED.Enable(&m_aDependentRB == pButton); m_pCountryED->Enable(m_pDependentRB == pButton);
return 0; return 0;
} }
......
...@@ -39,15 +39,6 @@ ...@@ -39,15 +39,6 @@
#define FI_THIRD 18 #define FI_THIRD 18
#define FI_MATCH_FIELDS 19 #define FI_MATCH_FIELDS 19
#define FT_SELECT 20
#define PB_NEW 21
#define PB_DELETE 22
#define PB_CUSTOMIZE 23
#define RB_NEVER 25
#define RB_ALWAYS 26
#define RB_DEPENDENT 27
#define ED_COUNTRY 28
#define FL_SEPARATOR 29 #define FL_SEPARATOR 29
#define PB_OK 30 #define PB_OK 30
#define PB_CANCEL 31 #define PB_CANCEL 31
......
...@@ -98,23 +98,15 @@ public: ...@@ -98,23 +98,15 @@ public:
class SwSelectAddressBlockDialog : public SfxModalDialog class SwSelectAddressBlockDialog : public SfxModalDialog
{ {
FixedText m_aSelectFT; SwAddressPreview* m_pPreview;
SwAddressPreview m_aPreview; PushButton* m_pNewPB;
PushButton m_aNewPB; PushButton* m_pCustomizePB;
PushButton m_aCustomizePB; PushButton* m_pDeletePB;
PushButton m_aDeletePB;
FixedInfo m_aSettingsFI; RadioButton* m_pNeverRB;
RadioButton m_aNeverRB; RadioButton* m_pAlwaysRB;
RadioButton m_aAlwaysRB; RadioButton* m_pDependentRB;
RadioButton m_aDependentRB; Edit* m_pCountryED;
Edit m_aCountryED;
FixedLine m_aSeparatorFL;
OKButton m_aOK;
CancelButton m_aCancel;
HelpButton m_aHelp;
com::sun::star::uno::Sequence< OUString> m_aAddressBlocks; com::sun::star::uno::Sequence< OUString> m_aAddressBlocks;
SwMailMergeConfigItem& m_rConfig; SwMailMergeConfigItem& m_rConfig;
...@@ -134,7 +126,7 @@ public: ...@@ -134,7 +126,7 @@ public:
const com::sun::star::uno::Sequence< OUString>& GetAddressBlocks(); const com::sun::star::uno::Sequence< OUString>& GetAddressBlocks();
void SetSettings(sal_Bool bIsCountry, OUString sCountry); void SetSettings(sal_Bool bIsCountry, OUString sCountry);
sal_Bool IsIncludeCountry() const {return !m_aNeverRB.IsChecked();} sal_Bool IsIncludeCountry() const {return !m_pNeverRB->IsChecked();}
OUString GetCountry() const; OUString GetCountry() const;
}; };
......
...@@ -186,109 +186,6 @@ TabPage DLG_MM_ADDRESSBLOCK_PAGE ...@@ -186,109 +186,6 @@ TabPage DLG_MM_ADDRESSBLOCK_PAGE
}; };
}; };
ModalDialog DLG_MM_SELECTADDRESSBLOCK
{
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 260 , 219 ) ;
Moveable = TRUE ;
Text [ en-US ] = "Select Address Block";
FixedText FT_SELECT
{
Pos = MAP_APPFONT ( 6 , 3 ) ;
Size = MAP_APPFONT ( 150 , 8 ) ;
Text[ en-US ] = "~Select your preferred address block";
};
Window WIN_PREVIEW
{
Border = TRUE;
Pos = MAP_APPFONT ( 6 , 14 ) ;
Size = MAP_APPFONT ( 192 , 100 ) ;
DialogControl = TRUE;
};
PushButton PB_NEW
{
HelpID = "sw:PushButton:DLG_MM_SELECTADDRESSBLOCK:PB_NEW";
Pos = MAP_APPFONT ( 204 , 14 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text[ en-US ] = "~New...";
};
PushButton PB_CUSTOMIZE
{
HelpID = "sw:PushButton:DLG_MM_SELECTADDRESSBLOCK:PB_CUSTOMIZE";
Pos = MAP_APPFONT ( 204 , 31 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text[ en-US ] = "~Edit...";
};
PushButton PB_DELETE
{
HelpID = "sw:PushButton:DLG_MM_SELECTADDRESSBLOCK:PB_DELETE";
Pos = MAP_APPFONT ( 204 , 48 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Group = FALSE;
Text[ en-US ] = "~Delete";
};
FixedText FI_SETTINGS
{
Pos = MAP_APPFONT ( 6 , 120 ) ;
Size = MAP_APPFONT ( 150 , 8 ) ;
Text[ en-US ] = "Address block settings";
};
RadioButton RB_NEVER
{
HelpID = "sw:RadioButton:DLG_MM_SELECTADDRESSBLOCK:RB_NEVER";
Pos = MAP_APPFONT ( 12 , 131 ) ;
Size = MAP_APPFONT ( 150 , 10 ) ;
Text[ en-US ] = "N~ever include the country/region";
};
RadioButton RB_ALWAYS
{
HelpID = "sw:RadioButton:DLG_MM_SELECTADDRESSBLOCK:RB_ALWAYS";
Pos = MAP_APPFONT ( 12 , 145 ) ;
Size = MAP_APPFONT ( 150 , 10 ) ;
Text[ en-US ] = "~Always include the country/region";
};
RadioButton RB_DEPENDENT
{
HelpID = "sw:RadioButton:DLG_MM_SELECTADDRESSBLOCK:RB_DEPENDENT";
Pos = MAP_APPFONT ( 12 , 159 ) ;
Size = MAP_APPFONT ( 150 , 10 ) ;
Text[ en-US ] = "Only ~include the country/region if it is not:";
};
Edit ED_COUNTRY
{
HelpID = "sw:Edit:DLG_MM_SELECTADDRESSBLOCK:ED_COUNTRY";
Pos = MAP_APPFONT ( 18 , 172 ) ;
Size = MAP_APPFONT ( 180 , 12 ) ;
Border = TRUE;
};
FixedLine FL_SEPARATOR
{
Pos = MAP_APPFONT ( 0 , 188 ) ;
Size = MAP_APPFONT ( 260 , 8 ) ;
};
OKButton PB_OK
{
Pos = MAP_APPFONT ( 95 , 199 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
};
CancelButton PB_CANCEL
{
Pos = MAP_APPFONT ( 148 , 199 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
};
HelpButton PB_HELP
{
Pos = MAP_APPFONT ( 204 , 199 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
};
};
#define WORKAROUND\ #define WORKAROUND\
Text [ en-US ] = "New Address Block"; Text [ en-US ] = "New Address Block";
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<interface> <interface>
<!-- interface-requires LibreOffice 1.0 -->
<!-- interface-requires gtk+ 3.0 --> <!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires LibreOffice 1.0 -->
<object class="GtkDialog" id="AddressBlockDialog"> <object class="GtkDialog" id="AddressBlockDialog">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="border_width">6</property> <property name="border_width">6</property>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<interface> <interface>
<!-- interface-requires gtk+ 3.0 --> <!-- interface-requires gtk+ 3.0 -->
<!-- interface-requires LibreOffice 1.0 -->
<object class="GtkDialog" id="SelectBlockDialog"> <object class="GtkDialog" id="SelectBlockDialog">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="border_width">6</property> <property name="border_width">6</property>
...@@ -68,7 +69,221 @@ ...@@ -68,7 +69,221 @@
</packing> </packing>
</child> </child>
<child> <child>
<placeholder/> <object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="row_spacing">6</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkButtonBox" id="buttonbox2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<property name="layout_style">start</property>
<child>
<object class="GtkButton" id="new">
<property name="label" translatable="yes">_New...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="edit">
<property name="label" translatable="yes">_Edit...</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="delete">
<property name="label" translatable="yes">_Delete</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">2</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">_Select your preferred address block</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">preview:border</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">2</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkFrame" id="frame1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<child>
<object class="GtkAlignment" id="alignment1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="top_padding">6</property>
<property name="left_padding">12</property>
<child>
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="row_spacing">6</property>
<child>
<object class="GtkRadioButton" id="never">
<property name="label" translatable="yes">N_ever include the country/region</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<property name="group">always</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="always">
<property name="label" translatable="yes">_Always include the country/region</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
<property name="group">dependent</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkRadioButton" id="dependent">
<property name="label" translatable="yes">Only _include the country/region if it is not:</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">never</property>
<accessibility>
<relation type="label-for" target="country"/>
</accessibility>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="country">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="margin_left">12</property>
<property name="hexpand">True</property>
<property name="invisible_char"></property>
<accessibility>
<relation type="labelled-by" target="dependent"/>
</accessibility>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
</child>
</object>
</child>
<child type="label">
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Address block settings</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="swlo-SwAddressPreview" id="preview:border">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child> </child>
</object> </object>
</child> </child>
...@@ -78,11 +293,4 @@ ...@@ -78,11 +293,4 @@
<action-widget response="0">help</action-widget> <action-widget response="0">help</action-widget>
</action-widgets> </action-widgets>
</object> </object>
<object class="GtkSizeGroup" id="sizegroup1">
<property name="mode">both</property>
<widgets>
<widget name="addressdest:border"/>
<widget name="addrpreview:border"/>
</widgets>
</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