7
7
Date : 08-Jul-2010
8
8
Copyright : (C) 2010 by Sourcepole
9
9
Email : info at sourcepole.ch
10
- / ***************************************************************************
10
+ ***************************************************************************
11
11
* *
12
12
* This program is free software; you can redistribute it and/or modify *
13
13
* it under the terms of the GNU General Public License as published by *
@@ -440,7 +440,11 @@ void GlobePlugin::setupControls()
440
440
moveHControls->setFrame ( new RoundedFrame () );
441
441
moveHControls->getFrame ()->setBackColor ( 1 , 1 , 1 , 0.5 );
442
442
moveHControls->setMargin ( 0 );
443
- moveHControls->setSpacing ( 47 ); // OsgEarth >2.0: setChildSpacing( 47 );
443
+ #if HAVE_OSGEARTH_CHILD_SPACING
444
+ moveHControls->setChildSpacing ( 47 );
445
+ #else
446
+ moveHControls->setSpacing ( 47 );
447
+ #endif
444
448
moveHControls->setVertAlign ( Control::ALIGN_CENTER );
445
449
moveHControls->setHorizAlign ( Control::ALIGN_CENTER );
446
450
moveHControls->setPosition ( 5 , 30 );
@@ -462,7 +466,11 @@ void GlobePlugin::setupControls()
462
466
moveVControls->setFrame ( new RoundedFrame () );
463
467
moveVControls->getFrame ()->setBackColor ( 1 , 1 , 1 , 0.5 );
464
468
moveVControls->setMargin ( 0 );
469
+ #if HAVE_OSGEARTH_CHILD_SPACING
470
+ moveVControls->setChildSpacing ( 36 );
471
+ #else
465
472
moveVControls->setSpacing ( 36 );
473
+ #endif
466
474
moveVControls->setVertAlign ( Control::ALIGN_CENTER );
467
475
moveVControls->setHorizAlign ( Control::ALIGN_CENTER );
468
476
moveVControls->setPosition ( 35 , 5 );
@@ -492,7 +500,11 @@ void GlobePlugin::setupControls()
492
500
rotateControls->setFrame ( new RoundedFrame () );
493
501
rotateControls->getFrame ()->setBackColor ( 1 , 1 , 1 , 0.5 );
494
502
rotateControls->setMargin ( 0 );
503
+ #if HAVE_OSGEARTH_CHILD_SPACING
504
+ rotateControls->setChildSpacing ( 10 );
505
+ #else
495
506
rotateControls->setSpacing ( 10 );
507
+ #endif
496
508
rotateControls->setVertAlign ( Control::ALIGN_CENTER );
497
509
rotateControls->setHorizAlign ( Control::ALIGN_CENTER );
498
510
rotateControls->setPosition ( 5 , 113 );
@@ -526,7 +538,11 @@ void GlobePlugin::setupControls()
526
538
tiltControls->setFrame ( new RoundedFrame () );
527
539
tiltControls->getFrame ()->setBackColor ( 1 , 1 , 1 , 0.5 );
528
540
tiltControls->setMargin ( 0 );
541
+ #if HAVE_OSGEARTH_CHILD_SPACING
542
+ tiltControls->setChildSpacing ( 30 );
543
+ #else
529
544
tiltControls->setSpacing ( 30 );
545
+ #endif
530
546
tiltControls->setVertAlign ( Control::ALIGN_CENTER );
531
547
tiltControls->setHorizAlign ( Control::ALIGN_CENTER );
532
548
tiltControls->setPosition ( 35 , 90 );
@@ -554,7 +570,11 @@ void GlobePlugin::setupControls()
554
570
zoomControls->setFrame ( new RoundedFrame () );
555
571
zoomControls->getFrame ()->setBackColor ( 1 , 1 , 1 , 0.5 );
556
572
zoomControls->setMargin ( 0 );
573
+ #if HAVE_OSGEARTH_CHILD_SPACING
574
+ zoomControls->setChildSpacing ( 5 );
575
+ #else
557
576
zoomControls->setSpacing ( 5 );
577
+ #endif
558
578
zoomControls->setVertAlign ( Control::ALIGN_CENTER );
559
579
zoomControls->setHorizAlign ( Control::ALIGN_CENTER );
560
580
zoomControls->setPosition ( 35 , 170 );
@@ -582,7 +602,11 @@ void GlobePlugin::setupControls()
582
602
extraControls->setFrame ( new RoundedFrame () );
583
603
extraControls->getFrame ()->setBackColor ( 1 , 1 , 1 , 0.5 );
584
604
extraControls->setMargin ( 0 );
605
+ #if HAVE_OSGEARTH_CHILD_SPACING
606
+ extraControls->setChildSpacing ( 10 );
607
+ #else
585
608
extraControls->setSpacing ( 10 );
609
+ #endif
586
610
extraControls->setVertAlign ( Control::ALIGN_CENTER );
587
611
extraControls->setHorizAlign ( Control::ALIGN_CENTER );
588
612
extraControls->setPosition ( 5 , 220 );
0 commit comments