Skip to content

Commit

Permalink
[globe] Re-Enable sync extent button and disable home button
Browse files Browse the repository at this point in the history
The home button was a duplicate of the globe in the center of the
navigation arrows
  • Loading branch information
m-kuhn committed Nov 12, 2013
1 parent 4fd011f commit 7c7d837
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/plugins/globe/globe_plugin.cpp
Expand Up @@ -663,26 +663,29 @@ void GlobePlugin::setupControls()
mControlCanvas->addControl( backgroundGrp2 );

//Zoom Reset
#if ENABLE_HOME_BUTTON
osg::Image* homeImg = osgDB::readImageFile( imgDir + "/zoom-home.png" );
ImageControl* home = new NavigationControl( homeImg );
home->setPosition( imgLeft + 12 + 3, imgTop + 2 );
imgTop = imgTop + 23 + 2;
home->addEventHandler( new HomeControlHandler( manip ) );
mControlCanvas->addControl( home );
#endif

//refresh layers
osg::Image* refreshImg = osgDB::readImageFile( imgDir + "/refresh-view.png" );
ImageControl* refresh = new NavigationControl( refreshImg );
refresh->setPosition( imgLeft + 12 + 3, imgTop + 2 + 23 + 2 );
refresh->setPosition( imgLeft + 12 + 3, imgTop + 3 );
imgTop = imgTop + 23 + 2;
refresh->addEventHandler( new RefreshControlHandler( this ) );
mControlCanvas->addControl( refresh );

//Sync Extent
#if ENABLE_SYNC_BUTTON
osg::Image* syncImg = osgDB::readImageFile( imgDir + "/sync-extent.png" );
ImageControl* sync = new NavigationControl( syncImg );
sync->setPosition( imgLeft + 12 + 3, imgTop + 2 );
sync->addEventHandler( new SyncExtentControlHandler( this ) );
mControlCanvas->addControl( sync );
#endif
}

void GlobePlugin::setupProxy()
Expand Down
Binary file modified src/plugins/globe/images/gui/sync-extent.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7c7d837

Please sign in to comment.