summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@edx.srv.br>2013-12-25 21:09:50 -0200
committerCaolán McNamara <caolanm@redhat.com>2013-12-27 16:52:29 +0000
commit9143eaff7294e69b64978136880a8607e2100743 (patch)
tree4b9804d36fb24ff79f7115248a04866ebb2fd6ec /chart2
parent79e7109b746f79880b944d90542fe69f04bf3be6 (diff)
Convert chart legend dialog to widget UI
Conflicts: chart2/AllLangResTarget_chartcontroller.mk Change-Id: Ibc265efe5a8bdf3e0e5fb8135fb0487de7e96764 Reviewed-on: https://gerrit.libreoffice.org/7199 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/AllLangResTarget_chartcontroller.mk1
-rw-r--r--chart2/UIConfig_chart2.mk1
-rw-r--r--chart2/source/controller/dialogs/dlg_InsertLegend.cxx14
-rw-r--r--chart2/source/controller/dialogs/dlg_InsertLegend.hrc25
-rw-r--r--chart2/source/controller/dialogs/dlg_InsertLegend.src37
-rw-r--r--chart2/source/controller/dialogs/res_LegendPosition.cxx220
-rw-r--r--chart2/source/controller/dialogs/res_LegendPosition.hxx45
-rw-r--r--chart2/source/controller/dialogs/res_LegendPosition_IDs.hrc26
-rw-r--r--chart2/source/controller/inc/HelpIds.hrc1
-rw-r--r--chart2/source/controller/inc/dlg_InsertLegend.hxx15
-rw-r--r--chart2/uiconfig/ui/dlg_InsertLegend.ui233
11 files changed, 244 insertions, 374 deletions
diff --git a/chart2/AllLangResTarget_chartcontroller.mk b/chart2/AllLangResTarget_chartcontroller.mk
index 69939b5dce87..f09bfb66cf2a 100644
--- a/chart2/AllLangResTarget_chartcontroller.mk
+++ b/chart2/AllLangResTarget_chartcontroller.mk
@@ -49,7 +49,6 @@ $(eval $(call gb_SrsTarget_add_nonlocalizable_files,chart2/res,\
chart2/source/controller/dialogs/dlg_CreationWizard.src \
chart2/source/controller/dialogs/dlg_InsertDataLabel.src \
chart2/source/controller/dialogs/dlg_InsertErrorBars.src \
- chart2/source/controller/dialogs/dlg_InsertLegend.src \
chart2/source/controller/dialogs/tp_ErrorBars.src \
chart2/source/controller/dialogs/tp_PointGeometry.src \
chart2/source/controller/menus/ShapeContextMenu.src \
diff --git a/chart2/UIConfig_chart2.mk b/chart2/UIConfig_chart2.mk
index cc7eee39fbf5..2e3a21c127be 100644
--- a/chart2/UIConfig_chart2.mk
+++ b/chart2/UIConfig_chart2.mk
@@ -38,6 +38,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/schart,\
chart2/uiconfig/ui/smoothlinesdlg \
chart2/uiconfig/ui/steppedlinesdlg \
chart2/uiconfig/ui/titlerotationtabpage \
+ chart2/uiconfig/ui/dlg_InsertLegend \
chart2/uiconfig/ui/tp_3D_SceneAppearance \
chart2/uiconfig/ui/tp_3D_SceneGeometry \
chart2/uiconfig/ui/tp_3D_SceneIllumination \
diff --git a/chart2/source/controller/dialogs/dlg_InsertLegend.cxx b/chart2/source/controller/dialogs/dlg_InsertLegend.cxx
index c8513d261cab..5d1f0f46a71f 100644
--- a/chart2/source/controller/dialogs/dlg_InsertLegend.cxx
+++ b/chart2/source/controller/dialogs/dlg_InsertLegend.cxx
@@ -18,10 +18,7 @@
*/
#include "dlg_InsertLegend.hxx"
-#include "dlg_InsertLegend.hrc"
#include "res_LegendPosition.hxx"
-#include "ObjectNameProvider.hxx"
-#include "ResId.hxx"
namespace chart
{
@@ -29,14 +26,11 @@ namespace chart
using namespace ::com::sun::star;
SchLegendDlg::SchLegendDlg(Window* pWindow, const uno::Reference< uno::XComponentContext>& xCC )
- : ModalDialog(pWindow, SchResId(DLG_LEGEND))
- , m_apLegendPositionResources( new oldLegendPositionResources(this,xCC) )
- , aBtnOK(this, SchResId(BTN_OK))
- , aBtnCancel(this, SchResId(BTN_CANCEL))
- , aBtnHelp(this, SchResId(BTN_HELP))
+ : ModalDialog(pWindow
+ ,"dlg_InsertLegend"
+ ,"modules/schart/ui/dlg_InsertLegend.ui")
+ , m_apLegendPositionResources( new LegendPositionResources(*this,xCC) )
{
- FreeResource();
- this->SetText( ObjectNameProvider::getName(OBJECTTYPE_LEGEND) );
}
SchLegendDlg::~SchLegendDlg()
diff --git a/chart2/source/controller/dialogs/dlg_InsertLegend.hrc b/chart2/source/controller/dialogs/dlg_InsertLegend.hrc
deleted file mode 100644
index fd728a0f3cf0..000000000000
--- a/chart2/source/controller/dialogs/dlg_InsertLegend.hrc
+++ /dev/null
@@ -1,25 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-#include "ResourceIds.hrc"
-
-#define BTN_OK 1
-#define BTN_CANCEL 1
-#define BTN_HELP 1
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/dialogs/dlg_InsertLegend.src b/chart2/source/controller/dialogs/dlg_InsertLegend.src
deleted file mode 100644
index 438601e27a83..000000000000
--- a/chart2/source/controller/dialogs/dlg_InsertLegend.src
+++ /dev/null
@@ -1,37 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#include "dlg_InsertLegend.hrc"
-#include "CommonResources.hrc"
-#include "res_LegendPosition.hrc"
-#include <svtools/controldims.hrc>
-
-ModalDialog DLG_LEGEND
-{
- HelpID = HID_INSERT_CHART_LEGEND ;
- OutputSize = TRUE ;
- SVLook = TRUE ;
- Size = MAP_APPFONT ( 156 , 80 ) ;
- Moveable = TRUE ;
- BUTTONS_OK_CANCEL_HELP_STACKED( 101 )
- RESOURCE_LEGENDDISPLAY( 6, 6 )
- RESOURCE_LEGENDPOSITION( 15, 6 + RSC_CD_FIXEDTEXT_HEIGHT +6 )
-};
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/dialogs/res_LegendPosition.cxx b/chart2/source/controller/dialogs/res_LegendPosition.cxx
index fe7d3dffb5c6..f50a885cbf4a 100644
--- a/chart2/source/controller/dialogs/res_LegendPosition.cxx
+++ b/chart2/source/controller/dialogs/res_LegendPosition.cxx
@@ -18,10 +18,6 @@
*/
#include "res_LegendPosition.hxx"
-#include "ResourceIds.hrc"
-#include "Strings.hrc"
-#include "res_LegendPosition_IDs.hrc"
-#include "ResId.hxx"
#include "ChartModelHelper.hxx"
#include "macros.hxx"
#include "LegendHelper.hxx"
@@ -254,222 +250,6 @@ void LegendPositionResources::SetAccessibleRelationMemberOf(Window* pMemberOf)
m_pRbtBottom->SetAccessibleRelationMemberOf(pMemberOf);
}
-oldLegendPositionResources::oldLegendPositionResources( Window* pWindow )
- : m_xCC() //unused in this scenario
- , m_aCbxShow( pWindow ) //unused in this scenario
- , m_aRbtLeft( pWindow, SchResId(RBT_LEFT) )
- , m_aRbtRight( pWindow, SchResId(RBT_RIGHT) )
- , m_aRbtTop( pWindow, SchResId(RBT_TOP) )
- , m_aRbtBottom( pWindow, SchResId(RBT_BOTTOM) )
-{
- m_aCbxShow.Check();//legend is assumed to be visible in this scenario
- impl_setRadioButtonToggleHdl();
-}
-
-oldLegendPositionResources::oldLegendPositionResources( Window* pWindow, const uno::Reference< uno::XComponentContext >& xCC )
- : m_xCC( xCC )
- , m_aCbxShow( pWindow, SchResId(CBX_SHOWLEGEND) )
- , m_aRbtLeft( pWindow, SchResId(RBT_LEFT) )
- , m_aRbtRight( pWindow, SchResId(RBT_RIGHT) )
- , m_aRbtTop( pWindow, SchResId(RBT_TOP) )
- , m_aRbtBottom( pWindow, SchResId(RBT_BOTTOM) )
-{
- m_aCbxShow.SetToggleHdl( LINK( this, oldLegendPositionResources, PositionEnableHdl ) );
- impl_setRadioButtonToggleHdl();
- m_aCbxShow.SetAccessibleRelationMemberOf(&m_aCbxShow);
- m_aRbtLeft.SetAccessibleRelationMemberOf(&m_aCbxShow);
- m_aRbtRight.SetAccessibleRelationMemberOf(&m_aCbxShow);
- m_aRbtTop.SetAccessibleRelationMemberOf(&m_aCbxShow);
- m_aRbtBottom.SetAccessibleRelationMemberOf(&m_aCbxShow);
-}
-
-void oldLegendPositionResources::impl_setRadioButtonToggleHdl()
-{
- m_aRbtLeft.SetToggleHdl( LINK( this, oldLegendPositionResources, PositionChangeHdl ) );
- m_aRbtTop.SetToggleHdl( LINK( this, oldLegendPositionResources, PositionChangeHdl ) );
- m_aRbtRight.SetToggleHdl( LINK( this, oldLegendPositionResources, PositionChangeHdl ) );
- m_aRbtBottom.SetToggleHdl( LINK( this, oldLegendPositionResources, PositionChangeHdl ) );
-}
-
-oldLegendPositionResources::~oldLegendPositionResources()
-{
-}
-
-void oldLegendPositionResources::writeToResources( const uno::Reference< frame::XModel >& xChartModel )
-{
- try
- {
- uno::Reference< XDiagram > xDiagram = ChartModelHelper::findDiagram( xChartModel );
- uno::Reference< beans::XPropertySet > xProp( xDiagram->getLegend(), uno::UNO_QUERY );
- if( xProp.is() )
- {
- //show
- sal_Bool bShowLegend = sal_False;
- xProp->getPropertyValue( "Show" ) >>= bShowLegend;
- m_aCbxShow.Check( bShowLegend );
- PositionEnableHdl(0);
-
- //position
- chart2::LegendPosition ePos;
- xProp->getPropertyValue( "AnchorPosition" ) >>= ePos;
- switch( ePos )
- {
- case chart2::LegendPosition_LINE_START:
- m_aRbtLeft.Check();
- break;
- case chart2::LegendPosition_LINE_END:
- m_aRbtRight.Check();
- break;
- case chart2::LegendPosition_PAGE_START:
- m_aRbtTop.Check();
- break;
- case chart2::LegendPosition_PAGE_END:
- m_aRbtBottom.Check();
- break;
-
- case chart2::LegendPosition_CUSTOM:
- default:
- m_aRbtRight.Check();
- break;
- }
- }
- }
- catch( const uno::Exception & ex )
- {
- ASSERT_EXCEPTION( ex );
- }
-}
-
-void oldLegendPositionResources::writeToModel( const ::com::sun::star::uno::Reference< frame::XModel >& xChartModel ) const
-{
- try
- {
- sal_Bool bShowLegend = static_cast<sal_Bool>(m_aCbxShow.IsChecked());
- ChartModel* pModel = dynamic_cast<ChartModel*>(xChartModel.get());
- uno::Reference< beans::XPropertySet > xProp( LegendHelper::getLegend( *pModel,m_xCC,bShowLegend ), uno::UNO_QUERY );
- if( xProp.is() )
- {
- //show
- xProp->setPropertyValue( "Show" , uno::makeAny( bShowLegend ));
-
- //position
- chart2::LegendPosition eNewPos;
- ::com::sun::star::chart::ChartLegendExpansion eExp = ::com::sun::star::chart::ChartLegendExpansion_HIGH;
-
- if( m_aRbtLeft.IsChecked() )
- eNewPos = chart2::LegendPosition_LINE_START;
- else if( m_aRbtRight.IsChecked() )
- {
- eNewPos = chart2::LegendPosition_LINE_END;
- }
- else if( m_aRbtTop.IsChecked() )
- {
- eNewPos = chart2::LegendPosition_PAGE_START;
- eExp = ::com::sun::star::chart::ChartLegendExpansion_WIDE;
- }
- else if( m_aRbtBottom.IsChecked() )
- {
- eNewPos = chart2::LegendPosition_PAGE_END;
- eExp = ::com::sun::star::chart::ChartLegendExpansion_WIDE;
- }
-
- xProp->setPropertyValue( "AnchorPosition" , uno::makeAny( eNewPos ));
- xProp->setPropertyValue( "Expansion" , uno::makeAny( eExp ));
- xProp->setPropertyValue( "RelativePosition" , uno::Any());
- }
- }
- catch( const uno::Exception & ex )
- {
- ASSERT_EXCEPTION( ex );
- }
-}
-
-IMPL_LINK_NOARG(oldLegendPositionResources, PositionEnableHdl)
-{
- sal_Bool bEnable = m_aCbxShow.IsChecked();
-
- m_aRbtLeft.Enable( bEnable );
- m_aRbtTop.Enable( bEnable );
- m_aRbtRight.Enable( bEnable );
- m_aRbtBottom.Enable( bEnable );
-
- m_aChangeLink.Call(NULL);
-
- return 0;
-}
-
-void oldLegendPositionResources::initFromItemSet( const SfxItemSet& rInAttrs )
-{
- const SfxPoolItem* pPoolItem = NULL;
- if( rInAttrs.GetItemState( SCHATTR_LEGEND_POS, sal_True, &pPoolItem ) == SFX_ITEM_SET )
- {
- sal_Int32 nLegendPosition = ((const SfxInt32Item*)pPoolItem)->GetValue();
- switch( nLegendPosition )
- {
- case chart2::LegendPosition_LINE_START:
- m_aRbtLeft.Check(sal_True);
- break;
- case chart2::LegendPosition_PAGE_START:
- m_aRbtTop.Check(sal_True);
- break;
- case chart2::LegendPosition_LINE_END:
- m_aRbtRight.Check(sal_True);
- break;
- case chart2::LegendPosition_PAGE_END:
- m_aRbtBottom.Check(sal_True);
- break;
- default:
- break;
- }
- }
-
- if( rInAttrs.GetItemState( SCHATTR_LEGEND_SHOW, sal_True, &pPoolItem ) == SFX_ITEM_SET )
- {
- bool bShow = static_cast< const SfxBoolItem * >( pPoolItem )->GetValue();
- m_aCbxShow.Check(bShow);
- }
-}
-
-void oldLegendPositionResources::writeToItemSet( SfxItemSet& rOutAttrs ) const
-{
- sal_Int32 nLegendPosition = chart2::LegendPosition_CUSTOM;
- if( m_aRbtLeft.IsChecked() )
- nLegendPosition = chart2::LegendPosition_LINE_START;
- else if( m_aRbtTop.IsChecked() )
- nLegendPosition = chart2::LegendPosition_PAGE_START;
- else if( m_aRbtRight.IsChecked() )
- nLegendPosition = chart2::LegendPosition_LINE_END;
- else if( m_aRbtBottom.IsChecked() )
- nLegendPosition = chart2::LegendPosition_PAGE_END;
- rOutAttrs.Put(SfxInt32Item(SCHATTR_LEGEND_POS, nLegendPosition ));
-
- rOutAttrs.Put( SfxBoolItem(SCHATTR_LEGEND_SHOW, m_aCbxShow.IsChecked()) );
-}
-
-IMPL_LINK( oldLegendPositionResources, PositionChangeHdl, RadioButton*, pRadio )
-{
- //for each radio click ther are coming two change events
- //first uncheck of previous button -> ignore that call
- //the second call gives the check of the new button
- if( pRadio && pRadio->IsChecked() )
- m_aChangeLink.Call(NULL);
- return 0;
-}
-
-void oldLegendPositionResources::SetChangeHdl( const Link& rLink )
-{
- m_aChangeLink = rLink;
-}
-
-void oldLegendPositionResources::SetAccessibleRelationMemberOf(Window* pMemberOf)
-{
- m_aRbtLeft.SetAccessibleRelationMemberOf(pMemberOf);
- m_aRbtRight.SetAccessibleRelationMemberOf(pMemberOf);
- m_aRbtTop.SetAccessibleRelationMemberOf(pMemberOf);
- m_aRbtBottom.SetAccessibleRelationMemberOf(pMemberOf);
-}
-
-
} //namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/dialogs/res_LegendPosition.hxx b/chart2/source/controller/dialogs/res_LegendPosition.hxx
index b28cdf9f1d17..f1989c676ab0 100644
--- a/chart2/source/controller/dialogs/res_LegendPosition.hxx
+++ b/chart2/source/controller/dialogs/res_LegendPosition.hxx
@@ -72,51 +72,6 @@ private:
Link m_aChangeLink;
};
-
-class oldLegendPositionResources
-{
-
-public:
- //constructor without Display checkbox
- oldLegendPositionResources( Window* pParent );
- //constructor inclusive Display checkbox
- oldLegendPositionResources( Window* pParent, const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext>& xCC );
- virtual ~oldLegendPositionResources();
-
- void writeToResources( const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel >& xChartModel );
- void writeToModel( const ::com::sun::star::uno::Reference<
- ::com::sun::star::frame::XModel >& xChartModel ) const;
-
- void initFromItemSet( const SfxItemSet& rInAttrs );
- void writeToItemSet( SfxItemSet& rOutAttrs ) const;
-
- void SetChangeHdl( const Link& rLink );
-
- DECL_LINK( PositionEnableHdl, void* );
- DECL_LINK( PositionChangeHdl, RadioButton* );
-
- void SetAccessibleRelationMemberOf(Window* pMemberOf);
-
-private:
- void impl_setRadioButtonToggleHdl();
-
-private:
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext> m_xCC;
-
- CheckBox m_aCbxShow;
-
- RadioButton m_aRbtLeft;
- RadioButton m_aRbtRight;
- RadioButton m_aRbtTop;
- RadioButton m_aRbtBottom;
-
- Link m_aChangeLink;
-};
-
-
} //namespace chart
#endif
diff --git a/chart2/source/controller/dialogs/res_LegendPosition_IDs.hrc b/chart2/source/controller/dialogs/res_LegendPosition_IDs.hrc
deleted file mode 100644
index c513cbf001c6..000000000000
--- a/chart2/source/controller/dialogs/res_LegendPosition_IDs.hrc
+++ /dev/null
@@ -1,26 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#define CBX_SHOWLEGEND 21
-#define RBT_LEFT 22
-#define RBT_TOP 23
-#define RBT_RIGHT 24
-#define RBT_BOTTOM 25
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/inc/HelpIds.hrc b/chart2/source/controller/inc/HelpIds.hrc
index c450268a6d47..d518b2cbbf0d 100644
--- a/chart2/source/controller/inc/HelpIds.hrc
+++ b/chart2/source/controller/inc/HelpIds.hrc
@@ -99,7 +99,6 @@
#define HID_DIAGRAM_TYPE "CHART2_HID_DIAGRAM_TYPE"
#define HID_DIAGRAM_DATA "CHART2_HID_DIAGRAM_DATA"
#define HID_INSERT_STATISTICS "CHART2_HID_INSERT_STATISTICS"
-#define HID_INSERT_CHART_LEGEND "CHART2_HID_INSERT_CHART_LEGEND"
#define HID_INSERT_DESCRIPTION "CHART2_HID_INSERT_DESCRIPTION"
diff --git a/chart2/source/controller/inc/dlg_InsertLegend.hxx b/chart2/source/controller/inc/dlg_InsertLegend.hxx
index 379efe9b499e..6c07cbf2ff14 100644
--- a/chart2/source/controller/inc/dlg_InsertLegend.hxx
+++ b/chart2/source/controller/inc/dlg_InsertLegend.hxx
@@ -22,24 +22,21 @@
// header for class ModalDialog
#include <vcl/dialog.hxx>
// header for class CheckBox
-#include <vcl/button.hxx>
-//for auto_ptr
-#include <memory>
+#include <sfx2/basedlgs.hxx>
+
+#include <boost/scoped_ptr.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
namespace chart
{
-class oldLegendPositionResources;
+class LegendPositionResources;
+
class SchLegendDlg : public ModalDialog
{
private:
- ::std::auto_ptr< oldLegendPositionResources > m_apLegendPositionResources;
-
- OKButton aBtnOK;
- CancelButton aBtnCancel;
- HelpButton aBtnHelp;
+ boost::scoped_ptr < LegendPositionResources > m_apLegendPositionResources;
public:
SchLegendDlg( Window* pParent, const ::com::sun::star::uno::Reference<
diff --git a/chart2/uiconfig/ui/dlg_InsertLegend.ui b/chart2/uiconfig/ui/dlg_InsertLegend.ui
new file mode 100644
index 000000000000..bd9a662329b2
--- /dev/null
+++ b/chart2/uiconfig/ui/dlg_InsertLegend.ui
@@ -0,0 +1,233 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkDialog" id="dlg_InsertLegend">
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="title" translatable="yes">Legend</property>
+ <property name="type_hint">dialog</property>
+ <child internal-child="vbox">
+ <object class="GtkBox" id="dialog-vbox1">
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">12</property>
+ <child internal-child="action_area">
+ <object class="GtkButtonBox" id="dialog-action_area1">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="ok">
+ <property name="label">gtk-ok</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="has_default">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">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="cancel">
+ <property name="label">gtk-cancel</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">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="help">
+ <property name="label">gtk-help</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="use_stock">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="expand">False</property>
+ <property name="fill">True</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="dlg_LegendPosition">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkFrame" id="framePOSITION">
+ <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="GtkBox" id="box1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkCheckButton" id="show">
+ <property name="label" translatable="yes">_Display legend</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="xalign">0</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkGrid" id="grid1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">12</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkRadioButton" id="left">
+ <property name="label" translatable="yes">_Left</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">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>
+ <object class="GtkRadioButton" id="right">
+ <property name="label" translatable="yes">_Right</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">top</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="top">
+ <property name="label" translatable="yes">_Top</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">bottom</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="GtkRadioButton" id="bottom">
+ <property name="label" translatable="yes">_Bottom</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">left</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>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="TXT_POSITION">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Position</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="0">ok</action-widget>
+ <action-widget response="0">cancel</action-widget>
+ <action-widget response="0">help</action-widget>
+ </action-widgets>
+ </object>
+</interface>