summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-10-15 14:14:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-10-15 21:03:16 +0200
commit27a5f7d36874b6a20f5cae27d9b583b821a7cb8f (patch)
treebb8a6f9d88019ccc9a471b58da367e0e26a20366 /chart2
parentec548bce309d965a25e807ae79432114926e06f3 (diff)
weld TitlesAndObjectsTabPage
Change-Id: I071ddf117e44fab3b5f712198973c86a0fd8d206 Reviewed-on: https://gerrit.libreoffice.org/61798 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/dialogs/res_LegendPosition.cxx100
-rw-r--r--chart2/source/controller/dialogs/res_Titles.cxx180
-rw-r--r--chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx72
-rw-r--r--chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.hxx21
-rw-r--r--chart2/source/controller/inc/res_LegendPosition.hxx25
-rw-r--r--chart2/source/controller/inc/res_Titles.hxx44
-rw-r--r--chart2/uiconfig/ui/wizelementspage.ui80
7 files changed, 219 insertions, 303 deletions
diff --git a/chart2/source/controller/dialogs/res_LegendPosition.cxx b/chart2/source/controller/dialogs/res_LegendPosition.cxx
index 8eab04a77e0f..5842b0e2206f 100644
--- a/chart2/source/controller/dialogs/res_LegendPosition.cxx
+++ b/chart2/source/controller/dialogs/res_LegendPosition.cxx
@@ -39,37 +39,34 @@ namespace chart
using namespace ::com::sun::star;
using namespace ::com::sun::star::chart2;
-LegendPositionResources::LegendPositionResources(VclBuilderContainer& rParent)
- : m_xCC() //unused in this scenario
- , m_pCbxShow( nullptr ) //unused in this scenario, assumed to be visible
+LegendPositionResources::LegendPositionResources(weld::Builder& rBuilder)
+ : m_xRbtLeft(rBuilder.weld_radio_button("left"))
+ , m_xRbtRight(rBuilder.weld_radio_button("right"))
+ , m_xRbtTop(rBuilder.weld_radio_button("top"))
+ , m_xRbtBottom(rBuilder.weld_radio_button("bottom"))
{
- rParent.get(m_pRbtLeft, "left");
- rParent.get(m_pRbtRight, "right");
- rParent.get(m_pRbtTop, "top");
- rParent.get(m_pRbtBottom, "bottom");
impl_setRadioButtonToggleHdl();
}
-LegendPositionResources::LegendPositionResources(VclBuilderContainer& rParent,
+LegendPositionResources::LegendPositionResources(weld::Builder& rBuilder,
const uno::Reference< uno::XComponentContext >& xCC)
: m_xCC(xCC)
+ , m_xCbxShow(rBuilder.weld_check_button("show"))
+ , m_xRbtLeft(rBuilder.weld_radio_button("left"))
+ , m_xRbtRight(rBuilder.weld_radio_button("right"))
+ , m_xRbtTop(rBuilder.weld_radio_button("top"))
+ , m_xRbtBottom(rBuilder.weld_radio_button("bottom"))
{
- rParent.get(m_pCbxShow, "show");
- rParent.get(m_pRbtLeft, "left");
- rParent.get(m_pRbtRight, "right");
- rParent.get(m_pRbtTop, "top");
- rParent.get(m_pRbtBottom, "bottom");
-
- m_pCbxShow->SetToggleHdl( LINK( this, LegendPositionResources, PositionEnableHdl ) );
+ m_xCbxShow->connect_toggled( LINK( this, LegendPositionResources, PositionEnableHdl ) );
impl_setRadioButtonToggleHdl();
}
void LegendPositionResources::impl_setRadioButtonToggleHdl()
{
- m_pRbtLeft->SetToggleHdl( LINK( this, LegendPositionResources, PositionChangeHdl ) );
- m_pRbtTop->SetToggleHdl( LINK( this, LegendPositionResources, PositionChangeHdl ) );
- m_pRbtRight->SetToggleHdl( LINK( this, LegendPositionResources, PositionChangeHdl ) );
- m_pRbtBottom->SetToggleHdl( LINK( this, LegendPositionResources, PositionChangeHdl ) );
+ m_xRbtLeft->connect_toggled( LINK( this, LegendPositionResources, PositionChangeHdl ) );
+ m_xRbtTop->connect_toggled( LINK( this, LegendPositionResources, PositionChangeHdl ) );
+ m_xRbtRight->connect_toggled( LINK( this, LegendPositionResources, PositionChangeHdl ) );
+ m_xRbtBottom->connect_toggled( LINK( this, LegendPositionResources, PositionChangeHdl ) );
}
LegendPositionResources::~LegendPositionResources()
@@ -87,9 +84,9 @@ void LegendPositionResources::writeToResources( const uno::Reference< frame::XMo
//show
bool bShowLegend = false;
xProp->getPropertyValue( "Show" ) >>= bShowLegend;
- if (m_pCbxShow)
- m_pCbxShow->Check( bShowLegend );
- PositionEnableHdl(*m_pCbxShow);
+ if (m_xCbxShow)
+ m_xCbxShow->set_active( bShowLegend );
+ PositionEnableHdl(*m_xCbxShow);
//position
chart2::LegendPosition ePos;
@@ -97,21 +94,20 @@ void LegendPositionResources::writeToResources( const uno::Reference< frame::XMo
switch( ePos )
{
case chart2::LegendPosition_LINE_START:
- m_pRbtLeft->Check();
+ m_xRbtLeft->set_active(true);
break;
case chart2::LegendPosition_LINE_END:
- m_pRbtRight->Check();
+ m_xRbtRight->set_active(true);
break;
case chart2::LegendPosition_PAGE_START:
- m_pRbtTop->Check();
+ m_xRbtTop->set_active(true);
break;
case chart2::LegendPosition_PAGE_END:
- m_pRbtBottom->Check();
+ m_xRbtBottom->set_active(true);
break;
-
case chart2::LegendPosition_CUSTOM:
default:
- m_pRbtRight->Check();
+ m_xRbtRight->set_active(true);
break;
}
}
@@ -126,7 +122,7 @@ void LegendPositionResources::writeToModel( const css::uno::Reference< frame::XM
{
try
{
- bool bShowLegend = m_pCbxShow && m_pCbxShow->IsChecked();
+ bool bShowLegend = m_xCbxShow && m_xCbxShow->get_active();
ChartModel& rModel = dynamic_cast<ChartModel&>(*xChartModel.get());
uno::Reference< beans::XPropertySet > xProp(LegendHelper::getLegend(rModel, m_xCC, bShowLegend), uno::UNO_QUERY);
if( xProp.is() )
@@ -138,18 +134,18 @@ void LegendPositionResources::writeToModel( const css::uno::Reference< frame::XM
chart2::LegendPosition eNewPos;
css::chart::ChartLegendExpansion eExp = css::chart::ChartLegendExpansion_HIGH;
- if( m_pRbtLeft->IsChecked() )
+ if( m_xRbtLeft->get_active() )
eNewPos = chart2::LegendPosition_LINE_START;
- else if( m_pRbtRight->IsChecked() )
+ else if( m_xRbtRight->get_active() )
{
eNewPos = chart2::LegendPosition_LINE_END;
}
- else if( m_pRbtTop->IsChecked() )
+ else if( m_xRbtTop->get_active() )
{
eNewPos = chart2::LegendPosition_PAGE_START;
eExp = css::chart::ChartLegendExpansion_WIDE;
}
- else if( m_pRbtBottom->IsChecked() )
+ else if( m_xRbtBottom->get_active() )
{
eNewPos = chart2::LegendPosition_PAGE_END;
eExp = css::chart::ChartLegendExpansion_WIDE;
@@ -166,14 +162,14 @@ void LegendPositionResources::writeToModel( const css::uno::Reference< frame::XM
}
}
-IMPL_LINK_NOARG(LegendPositionResources, PositionEnableHdl, CheckBox&, void)
+IMPL_LINK_NOARG(LegendPositionResources, PositionEnableHdl, weld::ToggleButton&, void)
{
- bool bEnable = m_pCbxShow == nullptr || m_pCbxShow->IsChecked();
+ bool bEnable = !m_xCbxShow || m_xCbxShow->get_active();
- m_pRbtLeft->Enable( bEnable );
- m_pRbtTop->Enable( bEnable );
- m_pRbtRight->Enable( bEnable );
- m_pRbtBottom->Enable( bEnable );
+ m_xRbtLeft->set_sensitive( bEnable );
+ m_xRbtTop->set_sensitive( bEnable );
+ m_xRbtRight->set_sensitive( bEnable );
+ m_xRbtBottom->set_sensitive( bEnable );
m_aChangeLink.Call(nullptr);
}
@@ -187,51 +183,51 @@ void LegendPositionResources::initFromItemSet( const SfxItemSet& rInAttrs )
switch( nLegendPosition )
{
case chart2::LegendPosition_LINE_START:
- m_pRbtLeft->Check();
+ m_xRbtLeft->set_active(true);
break;
case chart2::LegendPosition_PAGE_START:
- m_pRbtTop->Check();
+ m_xRbtTop->set_active(true);
break;
case chart2::LegendPosition_LINE_END:
- m_pRbtRight->Check();
+ m_xRbtRight->set_active(true);
break;
case chart2::LegendPosition_PAGE_END:
- m_pRbtBottom->Check();
+ m_xRbtBottom->set_active(true);
break;
default:
break;
}
}
- if( m_pCbxShow && rInAttrs.GetItemState( SCHATTR_LEGEND_SHOW, true, &pPoolItem ) == SfxItemState::SET )
+ if( m_xCbxShow && rInAttrs.GetItemState( SCHATTR_LEGEND_SHOW, true, &pPoolItem ) == SfxItemState::SET )
{
bool bShow = static_cast< const SfxBoolItem * >( pPoolItem )->GetValue();
- m_pCbxShow->Check(bShow);
+ m_xCbxShow->set_active(bShow);
}
}
void LegendPositionResources::writeToItemSet( SfxItemSet& rOutAttrs ) const
{
chart2::LegendPosition nLegendPosition = chart2::LegendPosition_CUSTOM;
- if( m_pRbtLeft->IsChecked() )
+ if( m_xRbtLeft->get_active() )
nLegendPosition = chart2::LegendPosition_LINE_START;
- else if( m_pRbtTop->IsChecked() )
+ else if( m_xRbtTop->get_active() )
nLegendPosition = chart2::LegendPosition_PAGE_START;
- else if( m_pRbtRight->IsChecked() )
+ else if( m_xRbtRight->get_active() )
nLegendPosition = chart2::LegendPosition_LINE_END;
- else if( m_pRbtBottom->IsChecked() )
+ else if( m_xRbtBottom->get_active() )
nLegendPosition = chart2::LegendPosition_PAGE_END;
rOutAttrs.Put( SfxInt32Item(SCHATTR_LEGEND_POS, static_cast<sal_Int32>(nLegendPosition) ) );
- rOutAttrs.Put( SfxBoolItem(SCHATTR_LEGEND_SHOW, m_pCbxShow == nullptr || m_pCbxShow->IsChecked()) );
+ rOutAttrs.Put( SfxBoolItem(SCHATTR_LEGEND_SHOW, !m_xCbxShow || m_xCbxShow->get_active()) );
}
-IMPL_LINK( LegendPositionResources, PositionChangeHdl, RadioButton&, rRadio, void )
+IMPL_LINK (LegendPositionResources, PositionChangeHdl, weld::ToggleButton&, rRadio, void)
{
//for each radio click there are coming two change events
//first uncheck of previous button -> ignore that call
//the second call gives the check of the new button
- if( rRadio.IsChecked() )
+ if( rRadio.get_active() )
m_aChangeLink.Call(nullptr);
}
diff --git a/chart2/source/controller/dialogs/res_Titles.cxx b/chart2/source/controller/dialogs/res_Titles.cxx
index 90d35f0da020..4269d1d45195 100644
--- a/chart2/source/controller/dialogs/res_Titles.cxx
+++ b/chart2/source/controller/dialogs/res_Titles.cxx
@@ -25,127 +25,109 @@
namespace chart
{
-TitleResources::TitleResources( VclBuilderContainer& rBuilder, bool bShowSecondaryAxesTitle )
+TitleResources::TitleResources(weld::Builder& rBuilder, bool bShowSecondaryAxesTitle)
+ : m_xFT_Main(rBuilder.weld_label("labelMainTitle"))
+ , m_xFT_Sub(rBuilder.weld_label("labelSubTitle"))
+ , m_xEd_Main(rBuilder.weld_entry("maintitle"))
+ , m_xEd_Sub(rBuilder.weld_entry("subtitle"))
+ , m_xFT_XAxis(rBuilder.weld_label("labelPrimaryXaxis"))
+ , m_xFT_YAxis(rBuilder.weld_label("labelPrimaryYaxis"))
+ , m_xFT_ZAxis(rBuilder.weld_label("labelPrimaryZaxis"))
+ , m_xEd_XAxis(rBuilder.weld_entry("primaryXaxis"))
+ , m_xEd_YAxis(rBuilder.weld_entry("primaryYaxis"))
+ , m_xEd_ZAxis(rBuilder.weld_entry("primaryZaxis"))
+ , m_xFT_SecondaryXAxis(rBuilder.weld_label("labelSecondaryXAxis"))
+ , m_xFT_SecondaryYAxis(rBuilder.weld_label("labelSecondaryYAxis"))
+ , m_xEd_SecondaryXAxis(rBuilder.weld_entry("secondaryXaxis"))
+ , m_xEd_SecondaryYAxis(rBuilder.weld_entry("secondaryYaxis"))
{
- rBuilder.get( m_pFT_Main, "labelMainTitle" );
- rBuilder.get( m_pFT_Sub, "labelSubTitle" );
- rBuilder.get( m_pEd_Main, "maintitle" );
- rBuilder.get( m_pEd_Sub, "subtitle" );
-
- rBuilder.get( m_pFT_XAxis, "labelPrimaryXaxis" );
- rBuilder.get( m_pFT_YAxis, "labelPrimaryYaxis" );
- rBuilder.get( m_pFT_ZAxis, "labelPrimaryZaxis" );
- rBuilder.get( m_pEd_XAxis, "primaryXaxis" );
- rBuilder.get( m_pEd_YAxis, "primaryYaxis" );
- rBuilder.get( m_pEd_ZAxis, "primaryZaxis" );
-
- rBuilder.get( m_pFT_SecondaryXAxis, "labelSecondaryXAxis" );
- rBuilder.get( m_pFT_SecondaryYAxis, "labelSecondaryYAxis" );
- rBuilder.get( m_pEd_SecondaryXAxis, "secondaryXaxis" );
- rBuilder.get( m_pEd_SecondaryYAxis, "secondaryYaxis" );
-
- m_pFT_SecondaryXAxis->Show( bShowSecondaryAxesTitle );
- m_pFT_SecondaryYAxis->Show( bShowSecondaryAxesTitle );
- m_pEd_SecondaryXAxis->Show( bShowSecondaryAxesTitle );
- m_pEd_SecondaryYAxis->Show( bShowSecondaryAxesTitle );
+ m_xFT_SecondaryXAxis->show( bShowSecondaryAxesTitle );
+ m_xFT_SecondaryYAxis->show( bShowSecondaryAxesTitle );
+ m_xEd_SecondaryXAxis->show( bShowSecondaryAxesTitle );
+ m_xEd_SecondaryYAxis->show( bShowSecondaryAxesTitle );
}
TitleResources::~TitleResources()
{
}
-void TitleResources::SetUpdateDataHdl( const Link<Edit&,void>& rLink )
+void TitleResources::connect_changed( const Link<weld::Entry&,void>& rLink )
{
- sal_uLong nTimeout = 4*EDIT_UPDATEDATA_TIMEOUT;
-
- m_pEd_Main->EnableUpdateData( nTimeout );
- m_pEd_Main->SetUpdateDataHdl( rLink );
-
- m_pEd_Sub->EnableUpdateData( nTimeout );
- m_pEd_Sub->SetUpdateDataHdl( rLink );
-
- m_pEd_XAxis->EnableUpdateData( nTimeout );
- m_pEd_XAxis->SetUpdateDataHdl( rLink );
-
- m_pEd_YAxis->EnableUpdateData( nTimeout );
- m_pEd_YAxis->SetUpdateDataHdl( rLink );
-
- m_pEd_ZAxis->EnableUpdateData( nTimeout );
- m_pEd_ZAxis->SetUpdateDataHdl( rLink );
-
- m_pEd_SecondaryXAxis->EnableUpdateData( nTimeout );
- m_pEd_SecondaryXAxis->SetUpdateDataHdl( rLink );
-
- m_pEd_SecondaryYAxis->EnableUpdateData( nTimeout );
- m_pEd_SecondaryYAxis->SetUpdateDataHdl( rLink );
+ m_xEd_Main->connect_changed( rLink );
+ m_xEd_Sub->connect_changed( rLink );
+ m_xEd_XAxis->connect_changed( rLink );
+ m_xEd_YAxis->connect_changed( rLink );
+ m_xEd_ZAxis->connect_changed( rLink );
+ m_xEd_SecondaryXAxis->connect_changed( rLink );
+ m_xEd_SecondaryYAxis->connect_changed( rLink );
}
-bool TitleResources::IsModified()
+bool TitleResources::get_value_changed_from_saved()
{
- return m_pEd_Main->IsModified()
- || m_pEd_Sub->IsModified()
- || m_pEd_XAxis->IsModified()
- || m_pEd_YAxis->IsModified()
- || m_pEd_ZAxis->IsModified()
- || m_pEd_SecondaryXAxis->IsModified()
- || m_pEd_SecondaryYAxis->IsModified();
+ return m_xEd_Main->get_value_changed_from_saved()
+ || m_xEd_Sub->get_value_changed_from_saved()
+ || m_xEd_XAxis->get_value_changed_from_saved()
+ || m_xEd_YAxis->get_value_changed_from_saved()
+ || m_xEd_ZAxis->get_value_changed_from_saved()
+ || m_xEd_SecondaryXAxis->get_value_changed_from_saved()
+ || m_xEd_SecondaryYAxis->get_value_changed_from_saved();
}
-void TitleResources::ClearModifyFlag()
+void TitleResources::save_value()
{
- m_pEd_Main->ClearModifyFlag();
- m_pEd_Sub->ClearModifyFlag();
- m_pEd_XAxis->ClearModifyFlag();
- m_pEd_YAxis->ClearModifyFlag();
- m_pEd_ZAxis->ClearModifyFlag();
- m_pEd_SecondaryXAxis->ClearModifyFlag();
- m_pEd_SecondaryYAxis->ClearModifyFlag();
+ m_xEd_Main->save_value();
+ m_xEd_Sub->save_value();
+ m_xEd_XAxis->save_value();
+ m_xEd_YAxis->save_value();
+ m_xEd_ZAxis->save_value();
+ m_xEd_SecondaryXAxis->save_value();
+ m_xEd_SecondaryYAxis->save_value();
}
void TitleResources::writeToResources( const TitleDialogData& rInput )
{
- m_pFT_Main->Enable( rInput.aPossibilityList[0] );
- m_pFT_Sub->Enable( rInput.aPossibilityList[1] );
- m_pFT_XAxis->Enable( rInput.aPossibilityList[2] );
- m_pFT_YAxis->Enable( rInput.aPossibilityList[3] );
- m_pFT_ZAxis->Enable( rInput.aPossibilityList[4] );
- m_pFT_SecondaryXAxis->Enable( rInput.aPossibilityList[5] );
- m_pFT_SecondaryYAxis->Enable( rInput.aPossibilityList[6] );
-
- m_pEd_Main->Enable( rInput.aPossibilityList[0] );
- m_pEd_Sub->Enable( rInput.aPossibilityList[1] );
- m_pEd_XAxis->Enable( rInput.aPossibilityList[2] );
- m_pEd_YAxis->Enable( rInput.aPossibilityList[3] );
- m_pEd_ZAxis->Enable( rInput.aPossibilityList[4] );
- m_pEd_SecondaryXAxis->Enable( rInput.aPossibilityList[5] );
- m_pEd_SecondaryYAxis->Enable( rInput.aPossibilityList[6] );
-
- m_pEd_Main->SetText(rInput.aTextList[0]);
- m_pEd_Sub->SetText(rInput.aTextList[1]);
- m_pEd_XAxis->SetText(rInput.aTextList[2]);
- m_pEd_YAxis->SetText(rInput.aTextList[3]);
- m_pEd_ZAxis->SetText(rInput.aTextList[4]);
- m_pEd_SecondaryXAxis->SetText(rInput.aTextList[5]);
- m_pEd_SecondaryYAxis->SetText(rInput.aTextList[6]);
+ m_xFT_Main->set_sensitive( rInput.aPossibilityList[0] );
+ m_xFT_Sub->set_sensitive( rInput.aPossibilityList[1] );
+ m_xFT_XAxis->set_sensitive( rInput.aPossibilityList[2] );
+ m_xFT_YAxis->set_sensitive( rInput.aPossibilityList[3] );
+ m_xFT_ZAxis->set_sensitive( rInput.aPossibilityList[4] );
+ m_xFT_SecondaryXAxis->set_sensitive( rInput.aPossibilityList[5] );
+ m_xFT_SecondaryYAxis->set_sensitive( rInput.aPossibilityList[6] );
+
+ m_xEd_Main->set_sensitive( rInput.aPossibilityList[0] );
+ m_xEd_Sub->set_sensitive( rInput.aPossibilityList[1] );
+ m_xEd_XAxis->set_sensitive( rInput.aPossibilityList[2] );
+ m_xEd_YAxis->set_sensitive( rInput.aPossibilityList[3] );
+ m_xEd_ZAxis->set_sensitive( rInput.aPossibilityList[4] );
+ m_xEd_SecondaryXAxis->set_sensitive( rInput.aPossibilityList[5] );
+ m_xEd_SecondaryYAxis->set_sensitive( rInput.aPossibilityList[6] );
+
+ m_xEd_Main->set_text(rInput.aTextList[0]);
+ m_xEd_Sub->set_text(rInput.aTextList[1]);
+ m_xEd_XAxis->set_text(rInput.aTextList[2]);
+ m_xEd_YAxis->set_text(rInput.aTextList[3]);
+ m_xEd_ZAxis->set_text(rInput.aTextList[4]);
+ m_xEd_SecondaryXAxis->set_text(rInput.aTextList[5]);
+ m_xEd_SecondaryYAxis->set_text(rInput.aTextList[6]);
}
void TitleResources::readFromResources( TitleDialogData& rOutput )
{
- rOutput.aExistenceList[0] = !m_pEd_Main->GetText().isEmpty();
- rOutput.aExistenceList[1] = !m_pEd_Sub->GetText().isEmpty();
- rOutput.aExistenceList[2] = !m_pEd_XAxis->GetText().isEmpty();
- rOutput.aExistenceList[3] = !m_pEd_YAxis->GetText().isEmpty();
- rOutput.aExistenceList[4] = !m_pEd_ZAxis->GetText().isEmpty();
- rOutput.aExistenceList[5] = !m_pEd_SecondaryXAxis->GetText().isEmpty();
- rOutput.aExistenceList[6] = !m_pEd_SecondaryYAxis->GetText().isEmpty();
-
- rOutput.aTextList[0] = m_pEd_Main->GetText();
- rOutput.aTextList[1] = m_pEd_Sub->GetText();
- rOutput.aTextList[2] = m_pEd_XAxis->GetText();
- rOutput.aTextList[3] = m_pEd_YAxis->GetText();
- rOutput.aTextList[4] = m_pEd_ZAxis->GetText();
- rOutput.aTextList[5] = m_pEd_SecondaryXAxis->GetText();
- rOutput.aTextList[6] = m_pEd_SecondaryYAxis->GetText();
+ rOutput.aExistenceList[0] = !m_xEd_Main->get_text().isEmpty();
+ rOutput.aExistenceList[1] = !m_xEd_Sub->get_text().isEmpty();
+ rOutput.aExistenceList[2] = !m_xEd_XAxis->get_text().isEmpty();
+ rOutput.aExistenceList[3] = !m_xEd_YAxis->get_text().isEmpty();
+ rOutput.aExistenceList[4] = !m_xEd_ZAxis->get_text().isEmpty();
+ rOutput.aExistenceList[5] = !m_xEd_SecondaryXAxis->get_text().isEmpty();
+ rOutput.aExistenceList[6] = !m_xEd_SecondaryYAxis->get_text().isEmpty();
+
+ rOutput.aTextList[0] = m_xEd_Main->get_text();
+ rOutput.aTextList[1] = m_xEd_Sub->get_text();
+ rOutput.aTextList[2] = m_xEd_XAxis->get_text();
+ rOutput.aTextList[3] = m_xEd_YAxis->get_text();
+ rOutput.aTextList[4] = m_xEd_ZAxis->get_text();
+ rOutput.aTextList[5] = m_xEd_SecondaryXAxis->get_text();
+ rOutput.aTextList[6] = m_xEd_SecondaryYAxis->get_text();
}
SchTitleResources::SchTitleResources(weld::Builder& rBuilder, bool bShowSecondaryAxesTitle)
diff --git a/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx b/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx
index 902208cf33ad..5fe62b88ea85 100644
--- a/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx
+++ b/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.cxx
@@ -30,27 +30,26 @@ namespace chart
using namespace ::com::sun::star;
using namespace ::com::sun::star::chart2;
-TitlesAndObjectsTabPage::TitlesAndObjectsTabPage( svt::OWizardMachine* pParent
- , const uno::Reference< XChartDocument >& xChartModel
- , const uno::Reference< uno::XComponentContext >& xContext )
- : OWizardPage(pParent, "WizElementsPage", "modules/schart/ui/wizelementspage.ui")
- , m_xTitleResources(new TitleResources(*this, false))
- , m_xLegendPositionResources(new LegendPositionResources(*this, xContext))
- , m_xChartModel(xChartModel)
- , m_xCC(xContext)
- , m_bCommitToModel(true)
- , m_aTimerTriggeredControllerLock( uno::Reference< frame::XModel >( m_xChartModel, uno::UNO_QUERY ) )
+TitlesAndObjectsTabPage::TitlesAndObjectsTabPage(TabPageParent pParent,
+ const uno::Reference< XChartDocument >& xChartModel,
+ const uno::Reference< uno::XComponentContext >& xContext )
+ : OWizardPage(pParent, "modules/schart/ui/wizelementspage.ui", "WizElementsPage")
+ , m_xTitleResources(new TitleResources(*m_xBuilder, false))
+ , m_xLegendPositionResources(new LegendPositionResources(*m_xBuilder, xContext))
+ , m_xChartModel(xChartModel)
+ , m_xCC(xContext)
+ , m_bCommitToModel(true)
+ , m_aTimerTriggeredControllerLock( uno::Reference< frame::XModel >( m_xChartModel, uno::UNO_QUERY ) )
+ , m_xCB_Grid_X(m_xBuilder->weld_check_button("x"))
+ , m_xCB_Grid_Y(m_xBuilder->weld_check_button("y"))
+ , m_xCB_Grid_Z(m_xBuilder->weld_check_button("z"))
{
- get(m_pCB_Grid_X, "x");
- get(m_pCB_Grid_Y, "y");
- get(m_pCB_Grid_Z, "z");
-
- m_xTitleResources->SetUpdateDataHdl( LINK( this, TitlesAndObjectsTabPage, ChangeEditHdl ));
+ m_xTitleResources->connect_changed( LINK( this, TitlesAndObjectsTabPage, ChangeEditHdl ));
m_xLegendPositionResources->SetChangeHdl( LINK( this, TitlesAndObjectsTabPage, ChangeHdl ));
- m_pCB_Grid_X->SetToggleHdl( LINK( this, TitlesAndObjectsTabPage, ChangeCheckBoxHdl ));
- m_pCB_Grid_Y->SetToggleHdl( LINK( this, TitlesAndObjectsTabPage, ChangeCheckBoxHdl ));
- m_pCB_Grid_Z->SetToggleHdl( LINK( this, TitlesAndObjectsTabPage, ChangeCheckBoxHdl ));
+ m_xCB_Grid_X->connect_toggled( LINK( this, TitlesAndObjectsTabPage, ChangeCheckBoxHdl ));
+ m_xCB_Grid_Y->connect_toggled( LINK( this, TitlesAndObjectsTabPage, ChangeCheckBoxHdl ));
+ m_xCB_Grid_Z->connect_toggled( LINK( this, TitlesAndObjectsTabPage, ChangeCheckBoxHdl ));
}
TitlesAndObjectsTabPage::~TitlesAndObjectsTabPage()
@@ -58,14 +57,6 @@ TitlesAndObjectsTabPage::~TitlesAndObjectsTabPage()
disposeOnce();
}
-void TitlesAndObjectsTabPage::dispose()
-{
- m_pCB_Grid_X.clear();
- m_pCB_Grid_Y.clear();
- m_pCB_Grid_Z.clear();
- OWizardPage::dispose();
-}
-
void TitlesAndObjectsTabPage::initializePage()
{
m_bCommitToModel = false;
@@ -89,12 +80,12 @@ void TitlesAndObjectsTabPage::initializePage()
uno::Sequence< sal_Bool > aExistenceList;
AxisHelper::getAxisOrGridPossibilities( aPossibilityList, xDiagram, false );
AxisHelper::getAxisOrGridExcistence( aExistenceList, xDiagram, false );
- m_pCB_Grid_X->Enable( aPossibilityList[0] );
- m_pCB_Grid_Y->Enable( aPossibilityList[1] );
- m_pCB_Grid_Z->Enable( aPossibilityList[2] );
- m_pCB_Grid_X->Check( aExistenceList[0] );
- m_pCB_Grid_Y->Check( aExistenceList[1] );
- m_pCB_Grid_Z->Check( aExistenceList[2] );
+ m_xCB_Grid_X->set_sensitive( aPossibilityList[0] );
+ m_xCB_Grid_Y->set_sensitive( aPossibilityList[1] );
+ m_xCB_Grid_Z->set_sensitive( aPossibilityList[2] );
+ m_xCB_Grid_X->set_active( aExistenceList[0] );
+ m_xCB_Grid_Y->set_active( aExistenceList[1] );
+ m_xCB_Grid_Z->set_active( aExistenceList[2] );
}
m_bCommitToModel = true;
@@ -102,7 +93,7 @@ void TitlesAndObjectsTabPage::initializePage()
bool TitlesAndObjectsTabPage::commitPage( ::svt::WizardTypes::CommitPageReason /*eReason*/ )
{
- if( m_xTitleResources->IsModified() ) //titles may have changed in the meanwhile
+ if( m_xTitleResources->get_value_changed_from_saved() ) //titles may have changed in the meanwhile
commitToModel();
return true;//return false if this page should not be left
}
@@ -119,7 +110,7 @@ void TitlesAndObjectsTabPage::commitToModel()
TitleDialogData aTitleOutput;
m_xTitleResources->readFromResources( aTitleOutput );
aTitleOutput.writeDifferenceToModel( xModel, m_xCC );
- m_xTitleResources->ClearModifyFlag();
+ m_xTitleResources->save_value();
}
//commit legend changes to model
@@ -133,23 +124,24 @@ void TitlesAndObjectsTabPage::commitToModel()
uno::Sequence< sal_Bool > aOldExistenceList;
AxisHelper::getAxisOrGridExcistence( aOldExistenceList, xDiagram, false );
uno::Sequence< sal_Bool > aNewExistenceList(aOldExistenceList);
- aNewExistenceList[0] = m_pCB_Grid_X->IsChecked();
- aNewExistenceList[1] = m_pCB_Grid_Y->IsChecked();
- aNewExistenceList[2] = m_pCB_Grid_Z->IsChecked();
+ aNewExistenceList[0] = m_xCB_Grid_X->get_active();
+ aNewExistenceList[1] = m_xCB_Grid_Y->get_active();
+ aNewExistenceList[2] = m_xCB_Grid_Z->get_active();
AxisHelper::changeVisibilityOfGrids( xDiagram
, aOldExistenceList, aNewExistenceList );
}
}
-
-IMPL_LINK_NOARG(TitlesAndObjectsTabPage, ChangeCheckBoxHdl, CheckBox&, void)
+IMPL_LINK_NOARG(TitlesAndObjectsTabPage, ChangeCheckBoxHdl, weld::ToggleButton&, void)
{
ChangeHdl(nullptr);
}
-IMPL_LINK_NOARG(TitlesAndObjectsTabPage, ChangeEditHdl, Edit&, void)
+
+IMPL_LINK_NOARG(TitlesAndObjectsTabPage, ChangeEditHdl, weld::Entry&, void)
{
ChangeHdl(nullptr);
}
+
IMPL_LINK_NOARG(TitlesAndObjectsTabPage, ChangeHdl, LinkParamNone*, void)
{
if( m_bCommitToModel )
diff --git a/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.hxx b/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.hxx
index ae070e09cf11..b57350cc8aad 100644
--- a/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.hxx
+++ b/chart2/source/controller/dialogs/tp_Wizard_TitlesAndObjects.hxx
@@ -24,8 +24,6 @@
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <svtools/wizardmachine.hxx>
-#include <vcl/edit.hxx>
-#include <vcl/fixed.hxx>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <memory>
@@ -39,11 +37,10 @@ namespace chart
class TitlesAndObjectsTabPage final : public svt::OWizardPage
{
public:
- TitlesAndObjectsTabPage( svt::OWizardMachine* pParent
- , const css::uno::Reference< css::chart2::XChartDocument >& xChartModel
- , const css::uno::Reference< css::uno::XComponentContext >& xContext );
+ TitlesAndObjectsTabPage(TabPageParent pParent,
+ const css::uno::Reference< css::chart2::XChartDocument >& xChartModel,
+ const css::uno::Reference< css::uno::XComponentContext >& xContext);
virtual ~TitlesAndObjectsTabPage() override;
- virtual void dispose() override;
virtual void initializePage() override;
virtual bool commitPage( ::svt::WizardTypes::CommitPageReason eReason ) override;
@@ -52,21 +49,21 @@ public:
private:
void commitToModel();
DECL_LINK( ChangeHdl, LinkParamNone*, void );
- DECL_LINK( ChangeEditHdl, Edit&, void );
- DECL_LINK( ChangeCheckBoxHdl, CheckBox&, void );
+ DECL_LINK( ChangeEditHdl, weld::Entry&, void );
+ DECL_LINK( ChangeCheckBoxHdl, weld::ToggleButton&, void );
std::unique_ptr< TitleResources > m_xTitleResources;
std::unique_ptr< LegendPositionResources > m_xLegendPositionResources;
- VclPtr<CheckBox> m_pCB_Grid_X;
- VclPtr<CheckBox> m_pCB_Grid_Y;
- VclPtr<CheckBox> m_pCB_Grid_Z;
-
css::uno::Reference< css::chart2::XChartDocument > m_xChartModel;
css::uno::Reference< css::uno::XComponentContext> m_xCC;
bool m_bCommitToModel;
TimerTriggeredControllerLock m_aTimerTriggeredControllerLock;
+
+ std::unique_ptr<weld::CheckButton> m_xCB_Grid_X;
+ std::unique_ptr<weld::CheckButton> m_xCB_Grid_Y;
+ std::unique_ptr<weld::CheckButton> m_xCB_Grid_Z;
};
} //namespace chart
diff --git a/chart2/source/controller/inc/res_LegendPosition.hxx b/chart2/source/controller/inc/res_LegendPosition.hxx
index 149fbc5336a4..40c5c2ff8b70 100644
--- a/chart2/source/controller/inc/res_LegendPosition.hxx
+++ b/chart2/source/controller/inc/res_LegendPosition.hxx
@@ -19,12 +19,9 @@
#ifndef INCLUDED_CHART2_SOURCE_CONTROLLER_INC_RES_LEGENDPOSITION_HXX
#define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_RES_LEGENDPOSITION_HXX
-#include <vcl/button.hxx>
#include <vcl/weld.hxx>
#include <svl/itemset.hxx>
-class VclBuilderContainer;
-
namespace com { namespace sun { namespace star { namespace frame { class XModel; } } } }
namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } }
@@ -36,9 +33,9 @@ class LegendPositionResources final
public:
//constructor without Display checkbox
- LegendPositionResources(VclBuilderContainer& rParent);
+ LegendPositionResources(weld::Builder& rBuilder);
//constructor inclusive Display checkbox
- LegendPositionResources(VclBuilderContainer& rParent, const css::uno::Reference<
+ LegendPositionResources(weld::Builder& rBuilder, const css::uno::Reference<
css::uno::XComponentContext>& xCC );
~LegendPositionResources();
@@ -50,23 +47,21 @@ public:
void SetChangeHdl( const Link<LinkParamNone*,void>& rLink );
- DECL_LINK( PositionEnableHdl, CheckBox&, void );
- DECL_LINK( PositionChangeHdl, RadioButton&, void );
+ DECL_LINK( PositionEnableHdl, weld::ToggleButton&, void );
+ DECL_LINK( PositionChangeHdl, weld::ToggleButton&, void );
private:
void impl_setRadioButtonToggleHdl();
private:
css::uno::Reference< css::uno::XComponentContext> m_xCC;
-
- VclPtr<CheckBox> m_pCbxShow;
-
- VclPtr<RadioButton> m_pRbtLeft;
- VclPtr<RadioButton> m_pRbtRight;
- VclPtr<RadioButton> m_pRbtTop;
- VclPtr<RadioButton> m_pRbtBottom;
-
Link<LinkParamNone*,void> m_aChangeLink;
+
+ std::unique_ptr<weld::CheckButton> m_xCbxShow;
+ std::unique_ptr<weld::RadioButton> m_xRbtLeft;
+ std::unique_ptr<weld::RadioButton> m_xRbtRight;
+ std::unique_ptr<weld::RadioButton> m_xRbtTop;
+ std::unique_ptr<weld::RadioButton> m_xRbtBottom;
};
diff --git a/chart2/source/controller/inc/res_Titles.hxx b/chart2/source/controller/inc/res_Titles.hxx
index 9541a2c82ba9..7f0580d4025e 100644
--- a/chart2/source/controller/inc/res_Titles.hxx
+++ b/chart2/source/controller/inc/res_Titles.hxx
@@ -20,45 +20,41 @@
#define INCLUDED_CHART2_SOURCE_CONTROLLER_INC_RES_TITLES_HXX
#include "TitleDialogData.hxx"
-#include <vcl/fixed.hxx>
#include <vcl/weld.hxx>
-class VclBuilderContainer;
-class Edit;
-
namespace chart
{
class TitleResources final
{
public:
- TitleResources(VclBuilderContainer& rParent, bool bShowSecondaryAxesTitle);
+ TitleResources(weld::Builder& rParent, bool bShowSecondaryAxesTitle);
~TitleResources();
void writeToResources( const TitleDialogData& rInput );
void readFromResources( TitleDialogData& rOutput );
- void SetUpdateDataHdl( const Link<Edit&,void>& rLink );
- bool IsModified();
- void ClearModifyFlag();
+ void connect_changed( const Link<weld::Entry&,void>& rLink );
+ bool get_value_changed_from_saved();
+ void save_value();
private:
- VclPtr<FixedText> m_pFT_Main;
- VclPtr<FixedText> m_pFT_Sub;
- VclPtr<Edit> m_pEd_Main;
- VclPtr<Edit> m_pEd_Sub;
-
- VclPtr<FixedText> m_pFT_XAxis;
- VclPtr<FixedText> m_pFT_YAxis;
- VclPtr<FixedText> m_pFT_ZAxis;
- VclPtr<Edit> m_pEd_XAxis;
- VclPtr<Edit> m_pEd_YAxis;
- VclPtr<Edit> m_pEd_ZAxis;
-
- VclPtr<FixedText> m_pFT_SecondaryXAxis;
- VclPtr<FixedText> m_pFT_SecondaryYAxis;
- VclPtr<Edit> m_pEd_SecondaryXAxis;
- VclPtr<Edit> m_pEd_SecondaryYAxis;
+ std::unique_ptr<weld::Label> m_xFT_Main;
+ std::unique_ptr<weld::Label> m_xFT_Sub;
+ std::unique_ptr<weld::Entry> m_xEd_Main;
+ std::unique_ptr<weld::Entry> m_xEd_Sub;
+
+ std::unique_ptr<weld::Label> m_xFT_XAxis;
+ std::unique_ptr<weld::Label> m_xFT_YAxis;
+ std::unique_ptr<weld::Label> m_xFT_ZAxis;
+ std::unique_ptr<weld::Entry> m_xEd_XAxis;
+ std::unique_ptr<weld::Entry> m_xEd_YAxis;
+ std::unique_ptr<weld::Entry> m_xEd_ZAxis;
+
+ std::unique_ptr<weld::Label> m_xFT_SecondaryXAxis;
+ std::unique_ptr<weld::Label> m_xFT_SecondaryYAxis;
+ std::unique_ptr<weld::Entry> m_xEd_SecondaryXAxis;
+ std::unique_ptr<weld::Entry> m_xEd_SecondaryYAxis;
};
class SchTitleResources final
diff --git a/chart2/uiconfig/ui/wizelementspage.ui b/chart2/uiconfig/ui/wizelementspage.ui
index 5708f364db29..b301b8258f1e 100644
--- a/chart2/uiconfig/ui/wizelementspage.ui
+++ b/chart2/uiconfig/ui/wizelementspage.ui
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.22.1 -->
<interface domain="chart">
- <!-- interface-requires gtk+ 3.6 -->
+ <requires lib="gtk+" version="3.18"/>
<object class="GtkBox" id="WizElementsPage">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -35,48 +36,42 @@
<object class="GtkLabel" id="labelPrimaryXaxis">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes" context="wizelementspage|labelPrimaryXaxis">_X axis</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">primaryXaxis</property>
+ <property name="xalign">0</property>
</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="GtkLabel" id="labelPrimaryYaxis">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes" context="wizelementspage|labelPrimaryYaxis">_Y axis</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">primaryYaxis</property>
+ <property name="xalign">0</property>
</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>
<child>
<object class="GtkLabel" id="labelPrimaryZaxis">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes" context="wizelementspage|labelPrimaryZaxis">_Z axis</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">primaryZaxis</property>
+ <property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">4</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
<child>
@@ -84,12 +79,11 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
+ <property name="activates_default">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
<child>
@@ -97,12 +91,11 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
+ <property name="activates_default">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
<child>
@@ -110,44 +103,39 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
+ <property name="activates_default">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">4</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="labelMainTitle">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes" context="wizelementspage|labelMainTitle">_Title</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">maintitle</property>
+ <property name="xalign">0</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="GtkLabel" id="labelSubTitle">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes" context="wizelementspage|labelSubTitle">_Subtitle</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">subtitle</property>
+ <property name="xalign">0</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>
@@ -155,12 +143,11 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
+ <property name="activates_default">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
<child>
@@ -168,44 +155,39 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
+ <property name="activates_default">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="labelSecondaryXAxis">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes" context="wizelementspage|labelSecondaryXAxis">X _axis</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">secondaryXaxis</property>
+ <property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">5</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="labelSecondaryYAxis">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
- <property name="xalign">0</property>
<property name="label" translatable="yes" context="wizelementspage|labelSecondaryYAxis">Y ax_is</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">secondaryYaxis</property>
+ <property name="xalign">0</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">6</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
<child>
@@ -213,12 +195,11 @@
<property name="can_focus">True</property>
<property name="no_show_all">True</property>
<property name="hexpand">True</property>
+ <property name="activates_default">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">5</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
<child>
@@ -226,20 +207,17 @@
<property name="can_focus">True</property>
<property name="no_show_all">True</property>
<property name="hexpand">True</property>
+ <property name="activates_default">True</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">6</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
</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>
@@ -260,8 +238,6 @@
<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>
@@ -282,14 +258,12 @@
<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">right</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>
@@ -301,13 +275,11 @@
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
- <property name="group">top</property>
+ <property name="group">left</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>
@@ -319,13 +291,11 @@
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
- <property name="group">bottom</property>
+ <property name="group">left</property>
</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>
@@ -342,8 +312,6 @@
<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>
@@ -352,16 +320,12 @@
<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="left_attach">1</property>
<property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
</object>
@@ -416,8 +380,6 @@
<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>
@@ -433,8 +395,6 @@
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
<child>
@@ -450,8 +410,6 @@
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
</packing>
</child>
</object>