diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-14 16:57:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-15 08:26:02 +0100 |
commit | 85cf4881fc4e1bfa5f21ae3e719bbd40ba3fce8b (patch) | |
tree | d04747b9c0f5db0e34831fc8dc9e3073e0a16b14 /svtools/source/dialogs/roadmapwizard.cxx | |
parent | 7de2366a975c22cd77a1a3a64da6b7c642334ae1 (diff) |
drop FixedLines from wizards to be consistent with the rest of the ui
and two virtual methods don't need to exist after that
Change-Id: I50ea8eaa99fddfed7e0c61e99e76631aa595f2dc
Diffstat (limited to 'svtools/source/dialogs/roadmapwizard.cxx')
-rw-r--r-- | svtools/source/dialogs/roadmapwizard.cxx | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/svtools/source/dialogs/roadmapwizard.cxx b/svtools/source/dialogs/roadmapwizard.cxx index ba3a71876fc4..a1dc4f9883db 100644 --- a/svtools/source/dialogs/roadmapwizard.cxx +++ b/svtools/source/dialogs/roadmapwizard.cxx @@ -61,20 +61,17 @@ namespace svt StateDescriptions aStateDescriptors; StateSet aDisabledStates; bool bActivePathIsDefinite; - FixedLine* pFixedLine; RoadmapWizardImpl() :pRoadmap( NULL ) ,nActivePath( -1 ) ,bActivePathIsDefinite( false ) - ,pFixedLine(NULL) { } ~RoadmapWizardImpl() { delete pRoadmap; - delete pFixedLine; } /// returns the index of the current state in given path, or -1 @@ -193,11 +190,6 @@ namespace svt aRoadmapSize.Height() = GetSizePixel().Height(); m_pImpl->pRoadmap->SetSizePixel( aRoadmapSize ); - m_pImpl->pFixedLine = new FixedLine( this, WB_VERT ); - m_pImpl->pFixedLine->Show(); - m_pImpl->pFixedLine->SetPosPixel( Point( aRoadmapSize.Width() + 1, 0 ) ); - m_pImpl->pFixedLine->SetSizePixel( Size( LogicToPixel( Size( 2, 0 ) ).Width(), aRoadmapSize.Height() ) ); - SetViewWindow( m_pImpl->pRoadmap ); SetViewAlign( WINDOWALIGN_LEFT ); m_pImpl->pRoadmap->Show(); @@ -634,40 +626,11 @@ namespace svt return false; } - bool RoadmapWizard::isStateEnabled( WizardState _nState ) const { return m_pImpl->aDisabledStates.find( _nState ) == m_pImpl->aDisabledStates.end(); } - - void RoadmapWizard::Resize() - { - OWizardMachine::Resize(); - - if ( IsReallyShown() && !IsInInitShow() ) - ResizeFixedLine(); - } - - - - void RoadmapWizard::StateChanged( StateChangedType nType ) - { - WizardDialog::StateChanged( nType ); - - if ( nType == STATE_CHANGE_INITSHOW ) - ResizeFixedLine(); - } - - - void RoadmapWizard::ResizeFixedLine() - { - Size aSize( m_pImpl->pRoadmap->GetSizePixel() ); - aSize.Width() = m_pImpl->pFixedLine->GetSizePixel().Width(); - m_pImpl->pFixedLine->SetSizePixel( aSize ); - } - - void RoadmapWizard::updateRoadmapItemLabel( WizardState _nState ) { const WizardPath& rActivePath( m_pImpl->aPaths[ m_pImpl->nActivePath ] ); |