diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-25 16:54:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-29 10:07:17 +0200 |
commit | 66cd438e3545edecaa05aa27beb289c6a6df53fc (patch) | |
tree | c06dfadb1d4d8fae17c08605684cac2e7aa60c69 /cui | |
parent | a2dae039f1209b5324879930c142b24d50fafc69 (diff) |
weld SvxAngleTabPage
Change-Id: I03bd0a6a0805d549570ce44030a0f58ca2b98d05
Reviewed-on: https://gerrit.libreoffice.org/54818
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/colorpicker.cxx | 14 | ||||
-rw-r--r-- | cui/source/inc/transfrm.hxx | 27 | ||||
-rw-r--r-- | cui/source/tabpages/transfrm.cxx | 134 | ||||
-rw-r--r-- | cui/uiconfig/ui/rotationtabpage.ui | 86 |
4 files changed, 142 insertions, 119 deletions
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx index 4fba23b2f7ca..3b182cde641a 100644 --- a/cui/source/dialogs/colorpicker.cxx +++ b/cui/source/dialogs/colorpicker.cxx @@ -426,7 +426,7 @@ void ColorFieldControl::ShowPosition( const Point& rPos, bool bUpdate ) void ColorFieldControl::MouseButtonDown(const MouseEvent& rMEvt) { - grab_add(); + CaptureMouse(); mbMouseCaptured = true; ShowPosition(rMEvt.GetPosPixel(), true); Modify(); @@ -443,7 +443,7 @@ void ColorFieldControl::MouseMove(const MouseEvent& rMEvt) void ColorFieldControl::MouseButtonUp(const MouseEvent&) { - grab_remove(); + ReleaseMouse(); mbMouseCaptured = false; } @@ -537,14 +537,12 @@ private: VclPtr<VirtualDevice> mxBitmap; sal_Int16 mnLevel; double mdValue; - bool mbMouseCaptured; }; ColorSliderControl::ColorSliderControl() : meMode( DefaultMode ) , mnLevel( 0 ) , mdValue( -1.0 ) - , mbMouseCaptured(false) { } @@ -651,15 +649,14 @@ void ColorSliderControl::ChangePosition(long nY) void ColorSliderControl::MouseButtonDown(const MouseEvent& rMEvt) { - grab_add(); - mbMouseCaptured = true; + CaptureMouse(); ChangePosition(rMEvt.GetPosPixel().Y()); Modify(); } void ColorSliderControl::MouseMove(const MouseEvent& rMEvt) { - if (mbMouseCaptured) + if (IsMouseCaptured()) { ChangePosition(rMEvt.GetPosPixel().Y()); Modify(); @@ -668,8 +665,7 @@ void ColorSliderControl::MouseMove(const MouseEvent& rMEvt) void ColorSliderControl::MouseButtonUp(const MouseEvent&) { - grab_remove(); - mbMouseCaptured = false; + ReleaseMouse(); } void ColorSliderControl::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) diff --git a/cui/source/inc/transfrm.hxx b/cui/source/inc/transfrm.hxx index 7e7aa264f91b..9dccd2663241 100644 --- a/cui/source/inc/transfrm.hxx +++ b/cui/source/inc/transfrm.hxx @@ -175,15 +175,6 @@ class SvxAngleTabPage : public SvxTabPage static const sal_uInt16 pAngleRanges[]; private: - VclPtr<VclFrame> m_pFlPosition; - VclPtr<MetricField> m_pMtrPosX; - VclPtr<MetricField> m_pMtrPosY; - VclPtr<SvxRectCtl> m_pCtlRect; - - VclPtr<VclFrame> m_pFlAngle; - VclPtr<NumericField> m_pNfAngle; - VclPtr<svx::DialControl> m_pCtlAngle; - const SfxItemSet& rOutAttrs; const SdrView* pView; @@ -194,10 +185,20 @@ private: MapUnit ePoolUnit; FieldUnit eDlgUnit; + svx::SvxDialControl m_aCtlAngle; + RectCtl m_aCtlRect; + + std::unique_ptr<weld::Widget> m_xFlPosition; + std::unique_ptr<weld::MetricSpinButton> m_xMtrPosX; + std::unique_ptr<weld::MetricSpinButton> m_xMtrPosY; + std::unique_ptr<weld::CustomWeld> m_xCtlRect; + std::unique_ptr<weld::Widget> m_xFlAngle; + std::unique_ptr<weld::SpinButton> m_xNfAngle; + std::unique_ptr<weld::CustomWeld> m_xCtlAngle; + public: - SvxAngleTabPage( vcl::Window* pParent, const SfxItemSet& rInAttrs ); + SvxAngleTabPage(TabPageParent pParent, const SfxItemSet& rInAttrs); virtual ~SvxAngleTabPage() override; - virtual void dispose() override; static VclPtr<SfxTabPage> Create( TabPageParent, const SfxItemSet* ); static const sal_uInt16* GetRanges() { return pAngleRanges; } @@ -208,8 +209,8 @@ public: virtual void ActivatePage( const SfxItemSet& rSet ) override; virtual DeactivateRC DeactivatePage( SfxItemSet* pSet ) override; - virtual void PointChanged( vcl::Window* pWindow, RectPoint eRP ) override; - virtual void PointChanged( weld::DrawingArea* pWindow, RectPoint eRP ) override; + virtual void PointChanged(weld::DrawingArea* pWindow, RectPoint eRP) override; + virtual void PointChanged(vcl::Window* pWindow, RectPoint eRP) override; void Construct(); void SetView( const SdrView* pSdrView ) { pView = pSdrView; } diff --git a/cui/source/tabpages/transfrm.cxx b/cui/source/tabpages/transfrm.cxx index b37d366f2f0b..cf3bc446a78e 100644 --- a/cui/source/tabpages/transfrm.cxx +++ b/cui/source/tabpages/transfrm.cxx @@ -173,57 +173,43 @@ void SvxTransformTabDialog::SetValidateFramePosLink(const Link<SvxSwFrameValidat |* angle and the rotation angle of the graphic objects |* \************************************************************************/ -SvxAngleTabPage::SvxAngleTabPage(vcl::Window* pParent, const SfxItemSet& rInAttrs) - : SvxTabPage( pParent,"Rotation","cui/ui/rotationtabpage.ui", rInAttrs) +SvxAngleTabPage::SvxAngleTabPage(TabPageParent pParent, const SfxItemSet& rInAttrs) + : SvxTabPage(pParent, "cui/ui/rotationtabpage.ui", "Rotation", rInAttrs) , rOutAttrs(rInAttrs) , pView(nullptr) , eDlgUnit(FUNIT_NONE) + , m_aCtlRect(this) + , m_xFlPosition(m_xBuilder->weld_widget("FL_POSITION")) + , m_xMtrPosX(m_xBuilder->weld_metric_spin_button("MTR_FLD_POS_X", FUNIT_CM)) + , m_xMtrPosY(m_xBuilder->weld_metric_spin_button("MTR_FLD_POS_Y", FUNIT_CM)) + , m_xCtlRect(new weld::CustomWeld(*m_xBuilder, "CTL_RECT", m_aCtlRect)) + , m_xFlAngle(m_xBuilder->weld_widget("FL_ANGLE")) + , m_xNfAngle(m_xBuilder->weld_spin_button("NF_ANGLE")) + , m_xCtlAngle(new weld::CustomWeld(*m_xBuilder, "CTL_ANGLE", m_aCtlAngle)) { - get(m_pFlPosition, "FL_POSITION"); - get(m_pMtrPosX, "MTR_FLD_POS_X"); - get(m_pMtrPosY, "MTR_FLD_POS_Y"); - get(m_pCtlRect, "CTL_RECT"); - - get(m_pFlAngle, "FL_ANGLE"); - get(m_pNfAngle, "NF_ANGLE"); - get(m_pCtlAngle, "CTL_ANGLE"); - // calculate PoolUnit SfxItemPool* pPool = rOutAttrs.GetPool(); DBG_ASSERT( pPool, "no pool (!)" ); ePoolUnit = pPool->GetMetric(SID_ATTR_TRANSFORM_POS_X); - m_pCtlAngle->SetLinkedField( m_pNfAngle, 2 ); + m_aCtlAngle.SetLinkedField(m_xNfAngle.get(), 2); } SvxAngleTabPage::~SvxAngleTabPage() { - disposeOnce(); -} - -void SvxAngleTabPage::dispose() -{ - m_pFlPosition.clear(); - m_pMtrPosX.clear(); - m_pMtrPosY.clear(); - m_pCtlRect.clear(); - m_pFlAngle.clear(); - m_pNfAngle.clear(); - m_pCtlAngle.clear(); - SvxTabPage::dispose(); } void SvxAngleTabPage::Construct() { DBG_ASSERT(pView, "No valid view (!)"); eDlgUnit = GetModuleFieldUnit(GetItemSet()); - SetFieldUnit(*m_pMtrPosX, eDlgUnit, true); - SetFieldUnit(*m_pMtrPosY, eDlgUnit, true); + SetFieldUnit(*m_xMtrPosX, eDlgUnit, true); + SetFieldUnit(*m_xMtrPosY, eDlgUnit, true); - if(FUNIT_MILE == eDlgUnit || FUNIT_KM == eDlgUnit) + if (FUNIT_MILE == eDlgUnit || FUNIT_KM == eDlgUnit) { - m_pMtrPosX->SetDecimalDigits( 3 ); - m_pMtrPosY->SetDecimalDigits( 3 ); + m_xMtrPosX->set_digits(3); + m_xMtrPosY->set_digits(3); } { // #i75273# @@ -251,13 +237,13 @@ void SvxAngleTabPage::Construct() TransfrmHelper::ScaleRect(maRange, aUIScale); // take UI units into account - sal_uInt16 nDigits(m_pMtrPosX->GetDecimalDigits()); + sal_uInt16 nDigits(m_xMtrPosX->get_digits()); TransfrmHelper::ConvertRect(maRange, nDigits, ePoolUnit, eDlgUnit); if(!pView->IsRotateAllowed()) { - m_pFlPosition->Disable(); - m_pFlAngle->Disable(); + m_xFlPosition->set_sensitive(false); + m_xFlAngle->set_sensitive(false); } } @@ -265,13 +251,13 @@ bool SvxAngleTabPage::FillItemSet(SfxItemSet* rSet) { bool bModified = false; - if(m_pCtlAngle->IsValueModified() || m_pMtrPosX->IsValueModified() || m_pMtrPosY->IsValueModified()) + if (m_aCtlAngle.IsValueModified() || m_xMtrPosX->get_value_changed_from_saved() || m_xMtrPosY->get_value_changed_from_saved()) { const double fUIScale(double(pView->GetModel()->GetUIScale())); - const double fTmpX((GetCoreValue(*m_pMtrPosX, ePoolUnit) + maAnchor.getX()) * fUIScale); - const double fTmpY((GetCoreValue(*m_pMtrPosY, ePoolUnit) + maAnchor.getY()) * fUIScale); + const double fTmpX((GetCoreValue(*m_xMtrPosX, ePoolUnit) + maAnchor.getX()) * fUIScale); + const double fTmpY((GetCoreValue(*m_xMtrPosY, ePoolUnit) + maAnchor.getY()) * fUIScale); - rSet->Put(SfxInt32Item(GetWhich(SID_ATTR_TRANSFORM_ANGLE), m_pCtlAngle->GetRotation())); + rSet->Put(SfxInt32Item(GetWhich(SID_ATTR_TRANSFORM_ANGLE), m_aCtlAngle.GetRotation())); rSet->Put(SfxInt32Item(GetWhich(SID_ATTR_TRANSFORM_ROT_X), basegfx::fround(fTmpX))); rSet->Put(SfxInt32Item(GetWhich(SID_ATTR_TRANSFORM_ROT_Y), basegfx::fround(fTmpY))); @@ -290,39 +276,41 @@ void SvxAngleTabPage::Reset(const SfxItemSet* rAttrs) if(pItem) { const double fTmp((static_cast<double>(static_cast<const SfxInt32Item*>(pItem)->GetValue()) - maAnchor.getX()) / fUIScale); - SetMetricValue(*m_pMtrPosX, basegfx::fround(fTmp), ePoolUnit); + SetMetricValue(*m_xMtrPosX, basegfx::fround(fTmp), ePoolUnit); } else { - m_pMtrPosX->SetText( OUString() ); + m_xMtrPosX->set_text(OUString()); } pItem = GetItem(*rAttrs, SID_ATTR_TRANSFORM_ROT_Y); if(pItem) { const double fTmp((static_cast<double>(static_cast<const SfxInt32Item*>(pItem)->GetValue()) - maAnchor.getY()) / fUIScale); - SetMetricValue(*m_pMtrPosY, basegfx::fround(fTmp), ePoolUnit); + SetMetricValue(*m_xMtrPosY, basegfx::fround(fTmp), ePoolUnit); } else { - m_pMtrPosY->SetText( OUString() ); + m_xMtrPosY->set_text(OUString()); } pItem = GetItem( *rAttrs, SID_ATTR_TRANSFORM_ANGLE ); if(pItem) { - m_pCtlAngle->SetRotation(static_cast<const SfxInt32Item*>(pItem)->GetValue()); + m_aCtlAngle.SetRotation(static_cast<const SfxInt32Item*>(pItem)->GetValue()); } else { - m_pCtlAngle->SetRotation(0); + m_aCtlAngle.SetRotation(0); } - m_pCtlAngle->SaveValue(); + m_aCtlAngle.SaveValue(); + m_xMtrPosX->save_value(); + m_xMtrPosY->save_value(); } -VclPtr<SfxTabPage> SvxAngleTabPage::Create( TabPageParent pWindow, const SfxItemSet* rSet) +VclPtr<SfxTabPage> SvxAngleTabPage::Create(TabPageParent pParent, const SfxItemSet* rSet) { - return VclPtr<SvxAngleTabPage>::Create(pWindow.pParent, *rSet); + return VclPtr<SvxAngleTabPage>::Create(pParent, *rSet); } void SvxAngleTabPage::ActivatePage(const SfxItemSet& rSet) @@ -330,8 +318,8 @@ void SvxAngleTabPage::ActivatePage(const SfxItemSet& rSet) SfxBoolItem const * bPosProtect = nullptr; if(SfxItemState::SET == rSet.GetItemState( GetWhich(SID_ATTR_TRANSFORM_PROTECT_POS ) , false, reinterpret_cast<SfxPoolItem const **>(&bPosProtect) )) { - m_pFlPosition->Enable(!bPosProtect->GetValue()); - m_pFlAngle->Enable(!bPosProtect->GetValue()); + m_xFlPosition->set_sensitive(!bPosProtect->GetValue()); + m_xFlAngle->set_sensitive(!bPosProtect->GetValue()); } } @@ -345,75 +333,75 @@ DeactivateRC SvxAngleTabPage::DeactivatePage( SfxItemSet* _pSet ) return DeactivateRC::LeavePage; } -void SvxAngleTabPage::PointChanged(vcl::Window* pWindow, RectPoint eRP) +void SvxAngleTabPage::PointChanged(vcl::Window*, RectPoint) +{ + assert(false); +} + +void SvxAngleTabPage::PointChanged(weld::DrawingArea* pDrawingArea, RectPoint eRP) { - if(pWindow == m_pCtlRect) + if (pDrawingArea == m_aCtlRect.GetDrawingArea()) { switch(eRP) { case RectPoint::LT: { - m_pMtrPosX->SetUserValue( basegfx::fround64(maRange.getMinX()), FUNIT_NONE ); - m_pMtrPosY->SetUserValue( basegfx::fround64(maRange.getMinY()), FUNIT_NONE ); + m_xMtrPosX->set_value( basegfx::fround64(maRange.getMinX()), FUNIT_NONE ); + m_xMtrPosY->set_value( basegfx::fround64(maRange.getMinY()), FUNIT_NONE ); break; } case RectPoint::MT: { - m_pMtrPosX->SetUserValue( basegfx::fround64(maRange.getCenter().getX()), FUNIT_NONE ); - m_pMtrPosY->SetUserValue( basegfx::fround64(maRange.getMinY()), FUNIT_NONE ); + m_xMtrPosX->set_value( basegfx::fround64(maRange.getCenter().getX()), FUNIT_NONE ); + m_xMtrPosY->set_value( basegfx::fround64(maRange.getMinY()), FUNIT_NONE ); break; } case RectPoint::RT: { - m_pMtrPosX->SetUserValue( basegfx::fround64(maRange.getMaxX()), FUNIT_NONE ); - m_pMtrPosY->SetUserValue( basegfx::fround64(maRange.getMinY()), FUNIT_NONE ); + m_xMtrPosX->set_value( basegfx::fround64(maRange.getMaxX()), FUNIT_NONE ); + m_xMtrPosY->set_value( basegfx::fround64(maRange.getMinY()), FUNIT_NONE ); break; } case RectPoint::LM: { - m_pMtrPosX->SetUserValue( basegfx::fround64(maRange.getMinX()), FUNIT_NONE ); - m_pMtrPosY->SetUserValue( basegfx::fround64(maRange.getCenter().getY()), FUNIT_NONE ); + m_xMtrPosX->set_value( basegfx::fround64(maRange.getMinX()), FUNIT_NONE ); + m_xMtrPosY->set_value( basegfx::fround64(maRange.getCenter().getY()), FUNIT_NONE ); break; } case RectPoint::MM: { - m_pMtrPosX->SetUserValue( basegfx::fround64(maRange.getCenter().getX()), FUNIT_NONE ); - m_pMtrPosY->SetUserValue( basegfx::fround64(maRange.getCenter().getY()), FUNIT_NONE ); + m_xMtrPosX->set_value( basegfx::fround64(maRange.getCenter().getX()), FUNIT_NONE ); + m_xMtrPosY->set_value( basegfx::fround64(maRange.getCenter().getY()), FUNIT_NONE ); break; } case RectPoint::RM: { - m_pMtrPosX->SetUserValue( basegfx::fround64(maRange.getMaxX()), FUNIT_NONE ); - m_pMtrPosY->SetUserValue( basegfx::fround64(maRange.getCenter().getY()), FUNIT_NONE ); + m_xMtrPosX->set_value( basegfx::fround64(maRange.getMaxX()), FUNIT_NONE ); + m_xMtrPosY->set_value( basegfx::fround64(maRange.getCenter().getY()), FUNIT_NONE ); break; } case RectPoint::LB: { - m_pMtrPosX->SetUserValue( basegfx::fround64(maRange.getMinX()), FUNIT_NONE ); - m_pMtrPosY->SetUserValue( basegfx::fround64(maRange.getMaxY()), FUNIT_NONE ); + m_xMtrPosX->set_value( basegfx::fround64(maRange.getMinX()), FUNIT_NONE ); + m_xMtrPosY->set_value( basegfx::fround64(maRange.getMaxY()), FUNIT_NONE ); break; } case RectPoint::MB: { - m_pMtrPosX->SetUserValue( basegfx::fround64(maRange.getCenter().getX()), FUNIT_NONE ); - m_pMtrPosY->SetUserValue( basegfx::fround64(maRange.getMaxY()), FUNIT_NONE ); + m_xMtrPosX->set_value( basegfx::fround64(maRange.getCenter().getX()), FUNIT_NONE ); + m_xMtrPosY->set_value( basegfx::fround64(maRange.getMaxY()), FUNIT_NONE ); break; } case RectPoint::RB: { - m_pMtrPosX->SetUserValue( basegfx::fround64(maRange.getMaxX()), FUNIT_NONE ); - m_pMtrPosY->SetUserValue( basegfx::fround64(maRange.getMaxY()), FUNIT_NONE ); + m_xMtrPosX->set_value( basegfx::fround64(maRange.getMaxX()), FUNIT_NONE ); + m_xMtrPosY->set_value( basegfx::fround64(maRange.getMaxY()), FUNIT_NONE ); break; } } } } -void SvxAngleTabPage::PointChanged(weld::DrawingArea* /*pWindow*/, RectPoint /*eRP*/) -{ - assert(false); -} - /************************************************************************* |* |* dialog for changing slant and corner radius diff --git a/cui/uiconfig/ui/rotationtabpage.ui b/cui/uiconfig/ui/rotationtabpage.ui index e1f27a26c222..af5f9ec6260c 100644 --- a/cui/uiconfig/ui/rotationtabpage.ui +++ b/cui/uiconfig/ui/rotationtabpage.ui @@ -1,14 +1,19 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.18.3 --> +<!-- Generated with glade 3.22.1 --> <interface domain="cui"> <requires lib="gtk+" version="3.18"/> - <requires lib="LibreOffice" version="1.0"/> <object class="GtkAdjustment" id="adjustmentANGLE"> <property name="upper">359.99000000000001</property> <property name="step_increment">1</property> <property name="page_increment">10</property> </object> - <object class="GtkAdjustment" id="adjustmentPOS"> + <object class="GtkAdjustment" id="adjustmentPOS1"> + <property name="lower">-500</property> + <property name="upper">50000</property> + <property name="step_increment">10</property> + <property name="page_increment">10</property> + </object> + <object class="GtkAdjustment" id="adjustmentPOS2"> <property name="lower">-500</property> <property name="upper">50000</property> <property name="step_increment">10</property> @@ -48,10 +53,10 @@ <object class="GtkLabel" id="FT_POS_X"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="xalign">0</property> <property name="label" translatable="yes" context="rotationtabpage|FT_POS_X">Position _X:</property> <property name="use_underline">True</property> - <property name="mnemonic_widget">MTR_FLD_POS_X:0.00cm</property> + <property name="mnemonic_widget">MTR_FLD_POS_X</property> + <property name="xalign">0</property> </object> <packing> <property name="left_attach">0</property> @@ -62,10 +67,10 @@ <object class="GtkLabel" id="FT_POS_Y"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="xalign">0</property> <property name="label" translatable="yes" context="rotationtabpage|FT_POS_Y">Position _Y:</property> <property name="use_underline">True</property> - <property name="mnemonic_widget">MTR_FLD_POS_Y:0.00cm</property> + <property name="mnemonic_widget">MTR_FLD_POS_Y</property> + <property name="xalign">0</property> </object> <packing> <property name="left_attach">0</property> @@ -73,10 +78,11 @@ </packing> </child> <child> - <object class="GtkSpinButton" id="MTR_FLD_POS_X:0.00cm"> + <object class="GtkSpinButton" id="MTR_FLD_POS_X"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="adjustment">adjustmentPOS</property> + <property name="activates_default">True</property> + <property name="adjustment">adjustmentPOS1</property> <property name="digits">2</property> </object> <packing> @@ -85,10 +91,11 @@ </packing> </child> <child> - <object class="GtkSpinButton" id="MTR_FLD_POS_Y:0.00cm"> + <object class="GtkSpinButton" id="MTR_FLD_POS_Y"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="adjustment">adjustmentPOS</property> + <property name="activates_default">True</property> + <property name="adjustment">adjustmentPOS2</property> <property name="digits">2</property> </object> <packing> @@ -124,14 +131,31 @@ </packing> </child> <child> - <object class="svxlo-SvxRectCtl" id="CTL_RECT"> + <object class="GtkScrolledWindow"> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="tooltip_text" translatable="yes" context="rotationtabpage|CTL_RECT|tooltip_text">Rotation point</property> + <property name="can_focus">True</property> <property name="halign">center</property> + <property name="valign">center</property> + <property name="hscrollbar_policy">never</property> + <property name="vscrollbar_policy">never</property> + <property name="shadow_type">in</property> + <child> + <object class="GtkViewport"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkDrawingArea" id="CTL_RECT"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="events">GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_STRUCTURE_MASK</property> + <property name="tooltip_text" translatable="yes" context="rotationtabpage|CTL_RECT|tooltip_text">Rotation point</property> + </object> + </child> + </object> + </child> </object> <packing> - <property name="expand">False</property> + <property name="expand">True</property> <property name="fill">True</property> <property name="position">1</property> </packing> @@ -151,8 +175,8 @@ <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" context="rotationtabpage|label1">Pivot Point</property> + <property name="xalign">0</property> <attributes> <attribute name="weight" value="bold"/> </attributes> @@ -193,10 +217,10 @@ <object class="GtkLabel" id="FT_ANGLE"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="xalign">0</property> <property name="label" translatable="yes" context="rotationtabpage|FT_ANGLE">_Angle:</property> <property name="use_underline">True</property> <property name="mnemonic_widget">NF_ANGLE</property> + <property name="xalign">0</property> </object> <packing> <property name="expand">False</property> @@ -208,6 +232,7 @@ <object class="GtkSpinButton" id="NF_ANGLE"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="activates_default">True</property> <property name="adjustment">adjustmentANGLE</property> <property name="digits">2</property> <property name="wrap">True</property> @@ -237,7 +262,6 @@ <property name="can_focus">False</property> <property name="label" translatable="yes" context="rotationtabpage|FT_ANGLEPRESETS">Default _settings:</property> <property name="use_underline">True</property> - <property name="mnemonic_widget">CTL_ANGLE</property> </object> <packing> <property name="expand">False</property> @@ -246,11 +270,25 @@ </packing> </child> <child> - <object class="svxlo-DialControl" id="CTL_ANGLE"> + <object class="GtkScrolledWindow"> <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="tooltip_text" translatable="yes" context="rotationtabpage|CTL_ANGLE|tooltip_text">Rotation Angle</property> + <property name="can_focus">True</property> <property name="halign">center</property> + <property name="shadow_type">in</property> + <child> + <object class="GtkViewport"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <child> + <object class="GtkDrawingArea" id="CTL_ANGLE"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="events">GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_STRUCTURE_MASK</property> + <property name="tooltip_text" translatable="yes" context="rotationtabpage|CTL_ANGLE|tooltip_text">Rotation Angle</property> + </object> + </child> + </object> + </child> </object> <packing> <property name="expand">False</property> @@ -273,8 +311,8 @@ <object class="GtkLabel" id="label2"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="xalign">0</property> <property name="label" translatable="yes" context="rotationtabpage|label2">Rotation Angle</property> + <property name="xalign">0</property> <attributes> <attribute name="weight" value="bold"/> </attributes> @@ -297,8 +335,8 @@ </object> <object class="GtkSizeGroup" id="sizegroup2"> <widgets> - <widget name="MTR_FLD_POS_X:0.00cm"/> - <widget name="MTR_FLD_POS_Y:0.00cm"/> + <widget name="MTR_FLD_POS_X"/> + <widget name="MTR_FLD_POS_Y"/> <widget name="NF_ANGLE"/> </widgets> </object> |