2009-11-15 03:24:04 +00:00
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
// oxygenclientgroupitemdata.cpp
|
2010-05-22 05:40:39 +00:00
|
|
|
// handles tabs' geometry and animations
|
2009-11-15 03:24:04 +00:00
|
|
|
// -------------------
|
|
|
|
//
|
|
|
|
// Copyright (c) 2009 Hugo Pereira Da Costa <hugo.pereira@free.fr>
|
2010-05-22 05:40:39 +00:00
|
|
|
|
2009-11-15 03:24:04 +00:00
|
|
|
//
|
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
// of this software and associated documentation files (the "Software"), to
|
|
|
|
// deal in the Software without restriction, including without limitation the
|
|
|
|
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
// sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
// furnished to do so, subject to the following conditions:
|
|
|
|
//
|
|
|
|
// The above copyright notice and this permission notice shall be included in
|
|
|
|
// all copies or substantial portions of the Software.
|
|
|
|
//
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
|
// IN THE SOFTWARE.
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "oxygenclientgroupitemdata.h"
|
|
|
|
#include "oxygenclientgroupitemdata.moc"
|
|
|
|
#include "oxygenclient.h"
|
|
|
|
|
|
|
|
namespace Oxygen
|
|
|
|
{
|
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
//____________________________________________________________________________
|
|
|
|
ClientGroupItemDataList::ClientGroupItemDataList( Client* parent ):
|
|
|
|
QObject( parent ),
|
|
|
|
QList<ClientGroupItemData>(),
|
2011-02-24 16:37:04 +00:00
|
|
|
_client( *parent ),
|
|
|
|
_dirty( false ),
|
2010-05-02 18:34:08 +00:00
|
|
|
animationsEnabled_( true ),
|
2011-02-24 16:37:04 +00:00
|
|
|
_animation( new Animation( 150, this ) ),
|
2010-05-02 18:34:08 +00:00
|
|
|
animationType_( AnimationNone ),
|
|
|
|
progress_(0),
|
|
|
|
draggedItem_( NoItem ),
|
|
|
|
targetItem_( NoItem )
|
2009-11-15 03:24:04 +00:00
|
|
|
{
|
2010-05-02 18:34:08 +00:00
|
|
|
|
|
|
|
// setup animation
|
|
|
|
animation().data()->setStartValue( 0 );
|
|
|
|
animation().data()->setEndValue( 1.0 );
|
|
|
|
animation().data()->setTargetObject( this );
|
|
|
|
animation().data()->setPropertyName( "progress" );
|
|
|
|
|
2009-11-15 03:24:04 +00:00
|
|
|
}
|
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
//________________________________________________________________
|
|
|
|
int ClientGroupItemDataList::itemAt( const QPoint& point, bool between ) const
|
|
|
|
{
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
for( int i=0; i < count(); i++ )
|
|
|
|
{
|
2011-02-24 16:37:04 +00:00
|
|
|
QRect rect = at(i)._activeRect;
|
2010-05-02 18:34:08 +00:00
|
|
|
if( between ) rect.translate( -rect.width() / 2, 0 );
|
|
|
|
if( rect.adjusted(0,0,0,2).contains( point ) )
|
|
|
|
{ return i; }
|
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
return NoItem;
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
//____________________________________________________________________________
|
|
|
|
void ClientGroupItemDataList::animate( AnimationTypes type, int target )
|
2009-11-15 03:24:04 +00:00
|
|
|
{
|
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// store animation type
|
|
|
|
animationType_ = type;
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( type == AnimationNone )
|
|
|
|
{
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( isAnimationRunning() ) animation().data()->stop();
|
|
|
|
targetItem_ = NoItem;
|
|
|
|
draggedItem_ = NoItem;
|
|
|
|
targetRect_ = QRect();
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
} else if( type & (AnimationEnter|AnimationMove ) ) {
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// store dragged item
|
|
|
|
bool animate( true );
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( (type&AnimationSameTarget) && draggedItem_ == NoItem )
|
|
|
|
{
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
animate = false;
|
|
|
|
draggedItem_ = target;
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
} else if( (type&AnimationMove) && targetItem_ == target ) return;
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// check animation state
|
|
|
|
if( isAnimationRunning() ) animation().data()->stop();
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
targetItem_ = target;
|
|
|
|
targetRect_ = QRect();
|
2011-02-24 16:37:04 +00:00
|
|
|
QRect titleRect( _client.titleRect() );
|
2010-05-02 18:34:08 +00:00
|
|
|
int left( titleRect.left() );
|
|
|
|
int width = (type&AnimationSameTarget) ?
|
|
|
|
titleRect.width()/count():
|
|
|
|
titleRect.width()/(count()+1);
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( (type&AnimationSameTarget) && draggedItem_ < target )
|
|
|
|
{
|
|
|
|
target++;
|
|
|
|
if( target >= count() ) target = NoItem;
|
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// loop over items and update bounding rects
|
|
|
|
for( int index = 0; index < count(); index++ )
|
|
|
|
{
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
ClientGroupItemData& item( ClientGroupItemDataList::operator[](index) );
|
|
|
|
if( index == target )
|
|
|
|
{
|
2011-02-24 16:37:04 +00:00
|
|
|
targetRect_ = item._refBoundingRect;
|
2010-05-02 18:34:08 +00:00
|
|
|
targetRect_.setLeft( left );
|
|
|
|
targetRect_.setWidth( width );
|
|
|
|
left+=width;
|
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
item._startBoundingRect = item._boundingRect;
|
|
|
|
item._endBoundingRect = item._refBoundingRect;
|
|
|
|
item._endBoundingRect.setLeft( left );
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( (type&AnimationSameTarget) && index == draggedItem_ )
|
|
|
|
{
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
item._endBoundingRect.setWidth( 0 );
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
} else {
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
item._endBoundingRect.setWidth( width );
|
2010-05-02 18:34:08 +00:00
|
|
|
left+=width;
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2010-02-12 01:14:43 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( targetRect_.isNull() )
|
|
|
|
{
|
2011-02-24 16:37:04 +00:00
|
|
|
targetRect_ = back()._refBoundingRect;
|
2010-05-02 18:34:08 +00:00
|
|
|
targetRect_.setLeft( left );
|
|
|
|
targetRect_.setWidth( width );
|
|
|
|
}
|
2010-02-12 01:14:43 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( animate )
|
|
|
|
{
|
2010-02-12 01:14:43 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( animationsEnabled() ) animation().data()->start();
|
|
|
|
else {
|
2010-02-12 01:14:43 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// change progress to maximum
|
|
|
|
progress_ = 1;
|
|
|
|
updateBoundingRects();
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
} else {
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
for( int index = 0; index < count(); index++ )
|
|
|
|
{
|
|
|
|
ClientGroupItemData& item( ClientGroupItemDataList::operator[](index) );
|
2011-02-24 16:37:04 +00:00
|
|
|
item._boundingRect = item._endBoundingRect;
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
updateButtons( true );
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
} else if( type & AnimationLeave ) {
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// stop animation state
|
|
|
|
if( isAnimationRunning() ) animation().data()->stop();
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// reset target
|
|
|
|
targetItem_ = NoItem;
|
|
|
|
targetRect_ = QRect();
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( type & AnimationSameTarget )
|
|
|
|
{
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// store dragged item
|
|
|
|
draggedItem_ = target;
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// do nothing if only one item
|
|
|
|
if( count() <= 1 ) return;
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
QRect titleRect( _client.titleRect() );
|
2010-05-02 18:34:08 +00:00
|
|
|
int left( titleRect.left() );
|
|
|
|
int width = titleRect.width()/(count()-1);
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// loop over items and update bounding rects
|
|
|
|
for( int index = 0; index < count(); index++ )
|
|
|
|
{
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
ClientGroupItemData& item( ClientGroupItemDataList::operator[](index) );
|
2011-02-24 16:37:04 +00:00
|
|
|
item._startBoundingRect = item._boundingRect;
|
|
|
|
item._endBoundingRect = item._refBoundingRect;
|
|
|
|
item._endBoundingRect.setLeft( left );
|
2010-05-02 18:34:08 +00:00
|
|
|
if( index != target )
|
|
|
|
{
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( count() <= 2 )
|
|
|
|
{
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2012-01-12 06:42:55 +00:00
|
|
|
item._endBoundingRect = _client.defaultTitleRect( _client.tabId(index) == _client.currentTabId() );
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
} else {
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2009-11-15 07:27:49 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
item._endBoundingRect.setWidth( width );
|
2010-05-02 18:34:08 +00:00
|
|
|
left+=width;
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
} else {
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
item._endBoundingRect.setWidth( 0 );
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
} else {
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// loop over items and update bounding rects
|
|
|
|
for( int index = 0; index < count(); index++ )
|
|
|
|
{
|
|
|
|
ClientGroupItemData& item( ClientGroupItemDataList::operator[](index) );
|
2011-02-24 16:37:04 +00:00
|
|
|
item._startBoundingRect = item._boundingRect;
|
|
|
|
item._endBoundingRect = item._refBoundingRect;
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( animationsEnabled() ) animation().data()->start();
|
|
|
|
else {
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// change progress to maximum
|
|
|
|
progress_ = 1;
|
|
|
|
updateBoundingRects();
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
return;
|
2009-11-15 03:24:04 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
//____________________________________________________________________________
|
2012-01-12 06:42:55 +00:00
|
|
|
void ClientGroupItemDataList::updateButtonActivity( long visibleItem ) const
|
2010-05-02 18:34:08 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
for( int index = 0; index < count(); index++ )
|
|
|
|
{
|
|
|
|
|
|
|
|
const ClientGroupItemData& item( at(index) );
|
2011-02-24 16:37:04 +00:00
|
|
|
if( item._closeButton )
|
2012-01-12 06:42:55 +00:00
|
|
|
{ item._closeButton.data()->setForceInactive( _client.tabId(index) != visibleItem ); }
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//____________________________________________________________________________
|
|
|
|
void ClientGroupItemDataList::updateButtons( bool alsoUpdate ) const
|
2009-11-15 03:24:04 +00:00
|
|
|
{
|
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// move close buttons
|
2011-02-24 16:37:04 +00:00
|
|
|
if( alsoUpdate ) _client.widget()->setUpdatesEnabled( false );
|
2010-05-02 18:34:08 +00:00
|
|
|
for( int index = 0; index < count(); index++ )
|
|
|
|
{
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
const ClientGroupItemData& item( at(index) );
|
2011-02-24 16:37:04 +00:00
|
|
|
if( !item._closeButton ) continue;
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
if( (!item._boundingRect.isValid()) || ((animationType_ & AnimationSameTarget)&&count()<=2 ) )
|
2010-05-02 18:34:08 +00:00
|
|
|
{
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
item._closeButton.data()->hide();
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
} else {
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
QPoint position(
|
2011-02-24 16:37:04 +00:00
|
|
|
item._boundingRect.right() - _client.configuration().buttonSize() - _client.layoutMetric(KCommonDecoration::LM_TitleEdgeRight),
|
|
|
|
item._boundingRect.top() + _client.layoutMetric( KCommonDecoration::LM_TitleEdgeTop ) );
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
if( item._closeButton.data()->isHidden() ) item._closeButton.data()->show();
|
|
|
|
item._closeButton.data()->move( position );
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
if( alsoUpdate )
|
|
|
|
{
|
2011-02-24 16:37:04 +00:00
|
|
|
_client.widget()->setUpdatesEnabled( true );
|
|
|
|
_client.updateTitleRect();
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
//____________________________________________________________________________
|
|
|
|
void ClientGroupItemDataList::updateBoundingRects( bool alsoUpdate )
|
2009-11-15 03:24:04 +00:00
|
|
|
{
|
|
|
|
|
2010-05-20 22:00:13 +00:00
|
|
|
qreal ratio( progress() );
|
2010-05-02 18:34:08 +00:00
|
|
|
for( iterator iter = begin(); iter != end(); ++iter )
|
|
|
|
{
|
|
|
|
|
|
|
|
// left
|
2011-02-24 16:37:04 +00:00
|
|
|
if( iter->_endBoundingRect.left() == iter->_startBoundingRect.left() )
|
2010-05-02 18:34:08 +00:00
|
|
|
{
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
iter->_boundingRect.setLeft( iter->_startBoundingRect.left() );
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
} else {
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
iter->_boundingRect.setLeft( (1.0-ratio)*iter->_startBoundingRect.left() + ratio*iter->_endBoundingRect.left() );
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// right
|
2011-02-24 16:37:04 +00:00
|
|
|
if( iter->_endBoundingRect.right() == iter->_startBoundingRect.right() )
|
2010-05-02 18:34:08 +00:00
|
|
|
{
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
iter->_boundingRect.setRight( iter->_startBoundingRect.right() );
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
} else {
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2011-02-24 16:37:04 +00:00
|
|
|
iter->_boundingRect.setRight( (1.0-ratio)*iter->_startBoundingRect.right() + ratio*iter->_endBoundingRect.right() );
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
// update button position
|
|
|
|
updateButtons( alsoUpdate );
|
2009-11-15 03:24:04 +00:00
|
|
|
|
2010-05-02 18:34:08 +00:00
|
|
|
}
|
2009-11-15 03:24:04 +00:00
|
|
|
}
|