@@ -305,7 +305,6 @@ GuiControlProfile::GuiControlProfile(void) :
305
305
{
306
306
mRefCount = 0 ;
307
307
mBitmapArrayRects .clear ();
308
- mMouseOverSelected = false ;
309
308
310
309
mTabable = false ;
311
310
mCanKeyFocus = false ;
@@ -337,8 +336,6 @@ GuiControlProfile::GuiControlProfile(void) :
337
336
338
337
mAlignment = AlignmentType::LeftAlign;
339
338
mVAlignment = VertAlignmentType::MiddleVAlign;
340
- mProfileForChildrenName = NULL ;
341
- mProfileForChildren = NULL ;
342
339
343
340
// fill color
344
341
mFillColor .set (0 , 0 , 0 , 0 );
@@ -382,10 +379,6 @@ GuiControlProfile::GuiControlProfile(void) :
382
379
mAlignment = def->mAlignment ;
383
380
mVAlignment = def->mVAlignment ;
384
381
mCursorColor = def->mCursorColor ;
385
-
386
- // Child profile
387
- mProfileForChildrenName = def->mProfileForChildrenName ;
388
- setChildrenProfile (def->mProfileForChildren );
389
382
}
390
383
}
391
384
@@ -400,7 +393,6 @@ void GuiControlProfile::initPersistFields()
400
393
addGroup (" Behavior" );
401
394
addField (" tab" , TypeBool, Offset (mTabable , GuiControlProfile));
402
395
addField (" canKeyFocus" , TypeBool, Offset (mCanKeyFocus , GuiControlProfile));
403
- addField (" mouseOverSelected" , TypeBool, Offset (mMouseOverSelected , GuiControlProfile));
404
396
endGroup (" Behavior" );
405
397
406
398
addGroup (" FillColor" );
@@ -442,10 +434,6 @@ void GuiControlProfile::initPersistFields()
442
434
addField (" bitmap" , TypeFilename, Offset (mBitmapName , GuiControlProfile));
443
435
addProtectedField (" imageAsset" , TypeAssetId, Offset (mImageAssetID , GuiControlProfile), &setImageAsset, &getImageAsset, " The image asset ID used to render the control" );
444
436
445
- addField (" soundButtonDown" , TypeAudioAssetPtr, Offset (mSoundButtonDown , GuiControlProfile));
446
- addField (" soundButtonOver" , TypeAudioAssetPtr, Offset (mSoundButtonOver , GuiControlProfile));
447
- addField (" profileForChildren" , TypeString, Offset (mProfileForChildrenName , GuiControlProfile));
448
-
449
437
addField (" category" , TypeString, Offset (mCategory , GuiControlProfile));
450
438
}
451
439
@@ -461,8 +449,6 @@ bool GuiControlProfile::onAdd()
461
449
getTopProfile ();
462
450
getBottomProfile ();
463
451
464
- getChildrenProfile ();
465
-
466
452
return true ;
467
453
}
468
454
@@ -626,40 +612,6 @@ void GuiControlProfile::setBottomProfile(GuiBorderProfile * prof)
626
612
deleteNotify (mBorderBottom );
627
613
}
628
614
629
- GuiControlProfile* GuiControlProfile::getChildrenProfile ()
630
- {
631
- // We can early out if we still have a valid profile
632
- if (mProfileForChildren )
633
- return mProfileForChildren ;
634
-
635
- // Attempt to find the profile specified
636
- if (mProfileForChildrenName )
637
- {
638
- GuiControlProfile *profile = dynamic_cast <GuiControlProfile*> (Sim::findObject (mProfileForChildrenName ));
639
-
640
- if (profile)
641
- setChildrenProfile (profile);
642
- }
643
-
644
- return mProfileForChildren ;
645
- }
646
-
647
- void GuiControlProfile::setChildrenProfile (GuiControlProfile *prof)
648
- {
649
- if (prof == mProfileForChildren )
650
- return ;
651
-
652
- // Clear the delete notification we previously set up
653
- if (mProfileForChildren )
654
- clearNotify (mProfileForChildren );
655
-
656
- mProfileForChildren = prof;
657
-
658
- // Make sure that the new profile will notify us when it is deleted
659
- if (mProfileForChildren )
660
- deleteNotify (mProfileForChildren );
661
- }
662
-
663
615
S32 GuiControlProfile::constructBitmapArray ()
664
616
{
665
617
if (mBitmapArrayRects .size ())
@@ -762,9 +714,6 @@ void GuiControlProfile::incRefCount(F32 fontAdjust)
762
714
}
763
715
764
716
mRefCount ++;
765
-
766
- getChildrenProfile ();
767
-
768
717
}
769
718
770
719
void GuiControlProfile::decRefCount ()
0 commit comments