From 7c7d83755bdfa013549d2c7e18a6c7ebb9bf8fe6 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Tue, 12 Nov 2013 16:12:36 +0100 Subject: [PATCH] [globe] Re-Enable sync extent button and disable home button The home button was a duplicate of the globe in the center of the navigation arrows --- src/plugins/globe/globe_plugin.cpp | 9 ++++++--- src/plugins/globe/images/gui/sync-extent.png | Bin 1337 -> 288 bytes 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/globe/globe_plugin.cpp b/src/plugins/globe/globe_plugin.cpp index 449060b4c394..c23737cbad75 100644 --- a/src/plugins/globe/globe_plugin.cpp +++ b/src/plugins/globe/globe_plugin.cpp @@ -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() diff --git a/src/plugins/globe/images/gui/sync-extent.png b/src/plugins/globe/images/gui/sync-extent.png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