diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-17 12:12:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-17 20:18:14 +0100 |
commit | dca52ec998946d3e5213190d04cdf98bace50e2c (patch) | |
tree | 19ba6f527d1f4b9b98e3245206134d9b8e4a60b3 /chart2 | |
parent | 357d0010058f57a9ec79f0c7d084eeeb3e1edb14 (diff) |
show degree symbol in DialControl linked spinbuttons
Change-Id: I792755f043109173606a78e947d5dc01f78c6849
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86982
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2')
8 files changed, 8 insertions, 8 deletions
diff --git a/chart2/source/controller/dialogs/res_DataLabel.cxx b/chart2/source/controller/dialogs/res_DataLabel.cxx index 2889bdb74f13..69ed9f478746 100644 --- a/chart2/source/controller/dialogs/res_DataLabel.cxx +++ b/chart2/source/controller/dialogs/res_DataLabel.cxx @@ -106,7 +106,7 @@ DataLabelResources::DataLabelResources(weld::Builder* pBuilder, weld::Window* pP , m_xLB_LabelPlacement(pBuilder->weld_combo_box("LB_LABEL_PLACEMENT")) , m_xBxOrientation(pBuilder->weld_widget("boxORIENTATION")) , m_xFT_Dial(pBuilder->weld_label("CT_LABEL_DIAL")) - , m_xNF_Degrees(pBuilder->weld_spin_button("NF_LABEL_DEGREES")) + , m_xNF_Degrees(pBuilder->weld_metric_spin_button("NF_LABEL_DEGREES", FieldUnit::DEGREE)) , m_xBxTextDirection(pBuilder->weld_widget("boxTXT_DIRECTION")) , m_xLB_TextDirection(new TextDirectionListBox(pBuilder->weld_combo_box("LB_LABEL_TEXTDIR"))) , m_xDC_Dial(new weld::CustomWeld(*pBuilder, "CT_DIAL", m_aDC_Dial)) diff --git a/chart2/source/controller/dialogs/res_DataLabel.hxx b/chart2/source/controller/dialogs/res_DataLabel.hxx index 617056298b42..42f5a9f24e4e 100644 --- a/chart2/source/controller/dialogs/res_DataLabel.hxx +++ b/chart2/source/controller/dialogs/res_DataLabel.hxx @@ -78,7 +78,7 @@ private: std::unique_ptr<weld::Widget> m_xBxOrientation; std::unique_ptr<weld::Label> m_xFT_Dial; - std::unique_ptr<weld::SpinButton> m_xNF_Degrees; + std::unique_ptr<weld::MetricSpinButton> m_xNF_Degrees; std::unique_ptr<weld::Widget> m_xBxTextDirection; diff --git a/chart2/source/controller/dialogs/tp_AxisLabel.cxx b/chart2/source/controller/dialogs/tp_AxisLabel.cxx index dfc6bf887878..82617b346fd2 100644 --- a/chart2/source/controller/dialogs/tp_AxisLabel.cxx +++ b/chart2/source/controller/dialogs/tp_AxisLabel.cxx @@ -50,7 +50,7 @@ SchAxisLabelTabPage::SchAxisLabelTabPage(weld::Container* pPage, weld::DialogCon , m_xFtABCD(m_xBuilder->weld_label("labelABCD")) , m_xFlOrient(m_xBuilder->weld_label("labelTextOrient")) , m_xFtRotate(m_xBuilder->weld_label("degreeL")) - , m_xNfRotate(m_xBuilder->weld_spin_button("OrientDegree")) + , m_xNfRotate(m_xBuilder->weld_metric_spin_button("OrientDegree", FieldUnit::DEGREE)) , m_xCbStacked(m_xBuilder->weld_check_button("stackedCB")) , m_xFtTextDirection(m_xBuilder->weld_label("textdirL")) , m_xLbTextDirection(new TextDirectionListBox(m_xBuilder->weld_combo_box("textdirLB"))) diff --git a/chart2/source/controller/dialogs/tp_AxisLabel.hxx b/chart2/source/controller/dialogs/tp_AxisLabel.hxx index ae048cf53079..d654d7df6e40 100644 --- a/chart2/source/controller/dialogs/tp_AxisLabel.hxx +++ b/chart2/source/controller/dialogs/tp_AxisLabel.hxx @@ -59,7 +59,7 @@ private: std::unique_ptr<weld::Label> m_xFtABCD; std::unique_ptr<weld::Label> m_xFlOrient; std::unique_ptr<weld::Label> m_xFtRotate; - std::unique_ptr<weld::SpinButton> m_xNfRotate; + std::unique_ptr<weld::MetricSpinButton> m_xNfRotate; std::unique_ptr<weld::CheckButton> m_xCbStacked; std::unique_ptr<weld::Label> m_xFtTextDirection; std::unique_ptr<TextDirectionListBox> m_xLbTextDirection; diff --git a/chart2/source/controller/dialogs/tp_PolarOptions.cxx b/chart2/source/controller/dialogs/tp_PolarOptions.cxx index 74f8d12d14a5..c4da9b16f2aa 100644 --- a/chart2/source/controller/dialogs/tp_PolarOptions.cxx +++ b/chart2/source/controller/dialogs/tp_PolarOptions.cxx @@ -30,7 +30,7 @@ PolarOptionsTabPage::PolarOptionsTabPage(weld::Container* pPage, weld::DialogCon : SfxTabPage(pPage, pController, "modules/schart/ui/tp_PolarOptions.ui", "tp_PolarOptions", &rInAttrs) , m_xCB_Clockwise(m_xBuilder->weld_check_button("CB_CLOCKWISE")) , m_xFL_StartingAngle(m_xBuilder->weld_frame("frameANGLE")) - , m_xNF_StartingAngle(m_xBuilder->weld_spin_button("NF_STARTING_ANGLE")) + , m_xNF_StartingAngle(m_xBuilder->weld_metric_spin_button("NF_STARTING_ANGLE", FieldUnit::DEGREE)) , m_xFL_PlotOptions(m_xBuilder->weld_frame("framePLOT_OPTIONS")) , m_xCB_IncludeHiddenCells(m_xBuilder->weld_check_button("CB_INCLUDE_HIDDEN_CELLS_POLAR")) , m_xAngleDial(new weld::CustomWeld(*m_xBuilder, "CT_ANGLE_DIAL", m_aAngleDial)) diff --git a/chart2/source/controller/dialogs/tp_PolarOptions.hxx b/chart2/source/controller/dialogs/tp_PolarOptions.hxx index 55b26d3e56d1..65911dc4eb52 100644 --- a/chart2/source/controller/dialogs/tp_PolarOptions.hxx +++ b/chart2/source/controller/dialogs/tp_PolarOptions.hxx @@ -47,7 +47,7 @@ private: svx::DialControl m_aAngleDial; std::unique_ptr<weld::CheckButton> m_xCB_Clockwise; std::unique_ptr<weld::Frame> m_xFL_StartingAngle; - std::unique_ptr<weld::SpinButton> m_xNF_StartingAngle; + std::unique_ptr<weld::MetricSpinButton> m_xNF_StartingAngle; std::unique_ptr<weld::Frame> m_xFL_PlotOptions; std::unique_ptr<weld::CheckButton> m_xCB_IncludeHiddenCells; std::unique_ptr<weld::CustomWeld> m_xAngleDial; diff --git a/chart2/source/controller/dialogs/tp_TitleRotation.cxx b/chart2/source/controller/dialogs/tp_TitleRotation.cxx index 1cd5ecdf6558..e5754ef3e94e 100644 --- a/chart2/source/controller/dialogs/tp_TitleRotation.cxx +++ b/chart2/source/controller/dialogs/tp_TitleRotation.cxx @@ -33,7 +33,7 @@ SchAlignmentTabPage::SchAlignmentTabPage(weld::Container* pPage, weld::DialogCon const SfxItemSet& rInAttrs, bool bWithRotation) : SfxTabPage(pPage, pController, "modules/schart/ui/titlerotationtabpage.ui", "TitleRotationTabPage", &rInAttrs) , m_xFtRotate(m_xBuilder->weld_label("degreeL")) - , m_xNfRotate(m_xBuilder->weld_spin_button("OrientDegree")) + , m_xNfRotate(m_xBuilder->weld_metric_spin_button("OrientDegree", FieldUnit::DEGREE)) , m_xCbStacked(m_xBuilder->weld_check_button("stackedCB")) , m_xFtTextDirection(m_xBuilder->weld_label("textdirL")) , m_xFtABCD(m_xBuilder->weld_label("labelABCD")) diff --git a/chart2/source/controller/dialogs/tp_TitleRotation.hxx b/chart2/source/controller/dialogs/tp_TitleRotation.hxx index b84c4720f173..cb2258c27d99 100644 --- a/chart2/source/controller/dialogs/tp_TitleRotation.hxx +++ b/chart2/source/controller/dialogs/tp_TitleRotation.hxx @@ -39,7 +39,7 @@ class SchAlignmentTabPage : public SfxTabPage private: svx::DialControl m_aCtrlDial; std::unique_ptr<weld::Label> m_xFtRotate; - std::unique_ptr<weld::SpinButton> m_xNfRotate; + std::unique_ptr<weld::MetricSpinButton> m_xNfRotate; std::unique_ptr<weld::CheckButton> m_xCbStacked; std::unique_ptr<weld::Label> m_xFtTextDirection; std::unique_ptr<weld::Label> m_xFtABCD; |