diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-24 12:16:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-24 16:02:12 +0100 |
commit | 7d55b62c1e306819fe3235cdb5a9c1aff792fe05 (patch) | |
tree | 32b177a3bcc5b9f4964c2e94c203ffe748376969 /svx/source | |
parent | 9843c68c0402fc589494dfa28e22fa43b99ac9ae (diff) |
rename LightCtl3D back to SvxLightCtl3D
Change-Id: I2cf5d019324643b048eea432753705af485720a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87336
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/dialog/dlgctl3d.cxx | 36 | ||||
-rw-r--r-- | svx/source/engine3d/float3d.cxx | 4 |
2 files changed, 20 insertions, 20 deletions
diff --git a/svx/source/dialog/dlgctl3d.cxx b/svx/source/dialog/dlgctl3d.cxx index 758084678aea..7e76f5dff640 100644 --- a/svx/source/dialog/dlgctl3d.cxx +++ b/svx/source/dialog/dlgctl3d.cxx @@ -1594,7 +1594,7 @@ basegfx::B3DVector LightControl3D::GetLightDirection(sal_uInt32 nNum) const return basegfx::B3DVector(); } -LightCtl3D::LightCtl3D(LightControl3D& rLightControl, weld::Scale& rHori, +SvxLightCtl3D::SvxLightCtl3D(LightControl3D& rLightControl, weld::Scale& rHori, weld::Scale& rVert, weld::Button& rSwitcher) : mrLightControl(rLightControl) , mrHorScroller(rHori) @@ -1605,7 +1605,7 @@ LightCtl3D::LightCtl3D(LightControl3D& rLightControl, weld::Scale& rHori, Init(); } -void LightCtl3D::Init() +void SvxLightCtl3D::Init() { Size aSize(mrLightControl.GetDrawingArea()->get_ref_device().LogicToPixel(Size(80, 100), MapMode(MapUnit::MapAppFont))); mrLightControl.set_size_request(aSize.Width(), aSize.Height()); @@ -1618,39 +1618,39 @@ void LightCtl3D::Init() // Light preview mrLightControl.Show(); - mrLightControl.SetChangeCallback( LINK(this, LightCtl3D, InternalInteractiveChange) ); - mrLightControl.SetSelectionChangeCallback( LINK(this, LightCtl3D, InternalSelectionChange) ); + mrLightControl.SetChangeCallback( LINK(this, SvxLightCtl3D, InternalInteractiveChange) ); + mrLightControl.SetSelectionChangeCallback( LINK(this, SvxLightCtl3D, InternalSelectionChange) ); // Horiz Scrollbar mrHorScroller.show(); mrHorScroller.set_range(0, 36000); - mrHorScroller.connect_value_changed( LINK(this, LightCtl3D, ScrollBarMove) ); + mrHorScroller.connect_value_changed( LINK(this, SvxLightCtl3D, ScrollBarMove) ); // Vert Scrollbar mrVerScroller.show(); mrVerScroller.set_range(0, 18000); - mrVerScroller.connect_value_changed( LINK(this, LightCtl3D, ScrollBarMove) ); + mrVerScroller.connect_value_changed( LINK(this, SvxLightCtl3D, ScrollBarMove) ); // Switch Button mrSwitcher.show(); - mrSwitcher.connect_clicked( LINK(this, LightCtl3D, ButtonPress) ); + mrSwitcher.connect_clicked( LINK(this, SvxLightCtl3D, ButtonPress) ); weld::DrawingArea* pArea = mrLightControl.GetDrawingArea(); pArea->connect_key_press(Link<const KeyEvent&, bool>()); //acknowledge we first remove the old one - pArea->connect_key_press(LINK(this, LightCtl3D, KeyInput)); + pArea->connect_key_press(LINK(this, SvxLightCtl3D, KeyInput)); pArea->connect_focus_in(Link<weld::Widget&, void>()); //acknowledge we first remove the old one - pArea->connect_focus_in(LINK(this, LightCtl3D, FocusIn)); + pArea->connect_focus_in(LINK(this, SvxLightCtl3D, FocusIn)); // check selection CheckSelection(); } -LightCtl3D::~LightCtl3D() +SvxLightCtl3D::~SvxLightCtl3D() { } -void LightCtl3D::CheckSelection() +void SvxLightCtl3D::CheckSelection() { const bool bSelectionValid(mrLightControl.IsSelectionValid() || mrLightControl.IsGeometrySelected()); mrHorScroller.set_sensitive(bSelectionValid); @@ -1665,7 +1665,7 @@ void LightCtl3D::CheckSelection() } } -void LightCtl3D::move( double fDeltaHor, double fDeltaVer ) +void SvxLightCtl3D::move( double fDeltaHor, double fDeltaVer ) { double fHor(0.0), fVer(0.0); @@ -1689,7 +1689,7 @@ void LightCtl3D::move( double fDeltaHor, double fDeltaVer ) } } -IMPL_LINK(LightCtl3D, KeyInput, const KeyEvent&, rKEvt, bool) +IMPL_LINK(SvxLightCtl3D, KeyInput, const KeyEvent&, rKEvt, bool) { const vcl::KeyCode aCode(rKEvt.GetKeyCode()); @@ -1797,7 +1797,7 @@ IMPL_LINK(LightCtl3D, KeyInput, const KeyEvent&, rKEvt, bool) return bHandled; } -IMPL_LINK_NOARG(LightCtl3D, FocusIn, weld::Widget&, void) +IMPL_LINK_NOARG(SvxLightCtl3D, FocusIn, weld::Widget&, void) { if (mrLightControl.IsEnabled()) { @@ -1805,7 +1805,7 @@ IMPL_LINK_NOARG(LightCtl3D, FocusIn, weld::Widget&, void) } } -IMPL_LINK_NOARG(LightCtl3D, ScrollBarMove, weld::Scale&, void) +IMPL_LINK_NOARG(SvxLightCtl3D, ScrollBarMove, weld::Scale&, void) { const sal_Int32 nHor(mrHorScroller.get_value()); const sal_Int32 nVer(mrVerScroller.get_value()); @@ -1820,7 +1820,7 @@ IMPL_LINK_NOARG(LightCtl3D, ScrollBarMove, weld::Scale&, void) } } -IMPL_LINK_NOARG(LightCtl3D, ButtonPress, weld::Button&, void) +IMPL_LINK_NOARG(SvxLightCtl3D, ButtonPress, weld::Button&, void) { if(SvxPreviewObjectType::SPHERE == GetSvx3DLightControl().GetObjectType()) { @@ -1832,7 +1832,7 @@ IMPL_LINK_NOARG(LightCtl3D, ButtonPress, weld::Button&, void) } } -IMPL_LINK_NOARG(LightCtl3D, InternalInteractiveChange, LightControl3D*, void) +IMPL_LINK_NOARG(SvxLightCtl3D, InternalInteractiveChange, LightControl3D*, void) { double fHor(0.0), fVer(0.0); @@ -1846,7 +1846,7 @@ IMPL_LINK_NOARG(LightCtl3D, InternalInteractiveChange, LightControl3D*, void) } } -IMPL_LINK_NOARG(LightCtl3D, InternalSelectionChange, LightControl3D*, void) +IMPL_LINK_NOARG(SvxLightCtl3D, InternalSelectionChange, LightControl3D*, void) { CheckSelection(); diff --git a/svx/source/engine3d/float3d.cxx b/svx/source/engine3d/float3d.cxx index 2147bc152fc3..063dccfcc075 100644 --- a/svx/source/engine3d/float3d.cxx +++ b/svx/source/engine3d/float3d.cxx @@ -183,7 +183,7 @@ Svx3DWin::Svx3DWin(SfxBindings* pInBindings, SfxChildWindow *pCW, vcl::Window* p , m_xBtn_Corner(m_xBuilder->weld_button("corner")) , m_xLightPreview(new LightControl3D) , m_xCtlLightPreviewWin(new weld::CustomWeld(*m_xBuilder, "lightpreview", *m_xLightPreview)) - , m_xCtlLightPreview(new LightCtl3D(*m_xLightPreview, *m_xHoriScale, *m_xVertScale, *m_xBtn_Corner)) // TODO might be other body widget as arg 1 + , m_xCtlLightPreview(new SvxLightCtl3D(*m_xLightPreview, *m_xHoriScale, *m_xVertScale, *m_xBtn_Corner)) // TODO might be other body widget as arg 1 , m_xBtnConvertTo3D(m_xBuilder->weld_button("to3d")) , m_xBtnLatheObject(m_xBuilder->weld_button("tolathe")) @@ -2645,7 +2645,7 @@ void Svx3DWin::ClickLight(const LightButton& rBtn) m_xCtlLightPreview->CheckSelection(); } -IMPL_LINK_NOARG(Svx3DWin, ChangeSelectionCallbackHdl, LightCtl3D*, void) +IMPL_LINK_NOARG(Svx3DWin, ChangeSelectionCallbackHdl, SvxLightCtl3D*, void) { const sal_uInt32 nLight(m_xCtlLightPreview->GetSvx3DLightControl().GetSelectedLight()); weld::Button* pBtn = nullptr; |