Index: lams_central/src/flash/org/lamsfoundation/lams/authoring/cv/PropertyInspectorNew.as =================================================================== diff -u -ra77ed59a7ca2849c44981650cb26f1f88a4cfe2f -r3e258411b7d1a994ccc453a0f4758392c342b8b9 --- lams_central/src/flash/org/lamsfoundation/lams/authoring/cv/PropertyInspectorNew.as (.../PropertyInspectorNew.as) (revision a77ed59a7ca2849c44981650cb26f1f88a4cfe2f) +++ lams_central/src/flash/org/lamsfoundation/lams/authoring/cv/PropertyInspectorNew.as (.../PropertyInspectorNew.as) (revision 3e258411b7d1a994ccc453a0f4758392c342b8b9) @@ -71,6 +71,9 @@ private var runOffline_chk:CheckBox; private var defineLater_chk:CheckBox; + //genral info + private var total_num_activities_lbl:Label; + //gates private var gateType_lbl:Label; private var gateType_cmb:ComboBox; @@ -174,7 +177,7 @@ numRandomGroups_stp.addEventListener("change",Delegate.create(this,updateGroupingMethodData)); numRandomGroups_stp.addEventListener("focusOut",Delegate.create(this,updateGroupingMethodData)); - dispatchEvent({type:'load',target:this}); + this.onEnterFrame = setupLabels; } @@ -227,8 +230,9 @@ showToolActivityControls(false); showGateControls(false); showAppliedGroupingControls(false); + showGeneralInfo(true); - + dispatchEvent({type:'load',target:this}); } @@ -295,9 +299,10 @@ delimitLine._visible = true; showGroupingControls(false); showToolActivityControls(false); + showGeneralInfo(false); showOptionalControls(false); showGateControls(true); - showAppliedGroupingControls(true); + showAppliedGroupingControls(false); //showGeneralProperties(a) checkEnableGateControls(); showGateActivityProperties(GateActivity(a)); @@ -314,6 +319,7 @@ showGroupingControls(true); showGeneralControls(true); showOptionalControls(false); + showGeneralInfo(false); showRelevantGroupOptions(); showToolActivityControls(false); showGateControls(false); @@ -332,6 +338,7 @@ showOptionalControls(false); showGeneralControls(true); showGroupingControls(false); + showGeneralInfo(false); showAppliedGroupingControls(true); showToolActivityControls(true); showGateControls(false); @@ -357,6 +364,7 @@ //showRelevantGroupOptions(); showToolActivityControls(false); showGateControls(false); + showGeneralInfo(false); showAppliedGroupingControls(false); showOptionalControls(true); //showGeneralProperties(cca) @@ -374,6 +382,7 @@ //its an parallel activity showOptionalControls(false); showGeneralControls(true); + showGeneralInfo(false); showGroupingControls(false); //showRelevantGroupOptions(); showToolActivityControls(false); @@ -393,6 +402,7 @@ delimitLine._visible = false; showTransitionProperties(t); //showGeneralProperties(t) + showGeneralInfo(false); showGeneralControls(false); showOptionalControls(false); showGroupingControls(false); @@ -403,8 +413,9 @@ }else{ Debugger.log('Its a something we dont know',Debugger.CRITICAL,'updateItemProperties','PropertyInspector'); + showGeneralInfo(true); delimitLine._visible = false; - toolDisplayName_lbl.text = ""+Dictionary.getValue('pi_title')+"" + toolDisplayName_lbl.text = ""+Dictionary.getValue('pi_title')+" "//Dictionary.getValue('pi_title_generalinfo'); showGroupingControls(false); showGeneralControls(false); showOptionalControls(false); @@ -442,6 +453,11 @@ } + private function showGeneralInfo(v:Boolean){ + + total_num_activities_lbl.visible = v; + } + private function showGeneralControls(v:Boolean){ title_lbl.visible = v;