Changeset 1521

Show
Ignore:
Timestamp:
05/17/08 21:33:27 (5 years ago)
Author:
lmajano
Message:

show expanded panels can now be declared separately like in the config.xsd.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • coldbox/trunk/src/system/plugins/XMLParser.cfc

    r1500 r1521  
    894894                                /* TracerPanel */ 
    895895                                if ( structKeyExists(DebuggerSettingNodes[1], "TracerPanel") ){ 
    896                                         StructInsert(ConfigStruct.DebuggerSettings, "showTracerPanel", trim(DebuggerSettingNodes[1].TracerPanel.xmlAttributes.show) ); 
    897                                         StructInsert(ConfigStruct.DebuggerSettings, "expandedTracerPanel", trim(DebuggerSettingNodes[1].TracerPanel.xmlAttributes.expanded) ); 
     896                                        debugPanelAttributeInsert(ConfigStruct.DebuggerSettings,"TracerPanel",DebuggerSettingNodes[1].TracerPanel.xmlAttributes); 
    898897                                } 
    899898                                /* InfoPanel */ 
    900899                                if ( structKeyExists(DebuggerSettingNodes[1], "InfoPanel") ){ 
    901                                         StructInsert(ConfigStruct.DebuggerSettings, "showInfoPanel", trim(DebuggerSettingNodes[1].InfoPanel.xmlAttributes.show) ); 
    902                                         StructInsert(ConfigStruct.DebuggerSettings, "expandedInfoPanel", trim(DebuggerSettingNodes[1].InfoPanel.xmlAttributes.expanded) ); 
     900                                        debugPanelAttributeInsert(ConfigStruct.DebuggerSettings,"InfoPanel",DebuggerSettingNodes[1].InfoPanel.xmlAttributes); 
    903901                                } 
    904902                                /* CachePanel */ 
    905903                                if ( structKeyExists(DebuggerSettingNodes[1], "CachePanel") ){ 
    906                                         StructInsert(ConfigStruct.DebuggerSettings, "showCachePanel", trim(DebuggerSettingNodes[1].CachePanel.xmlAttributes.show) ); 
    907                                         StructInsert(ConfigStruct.DebuggerSettings, "expandedCachePanel", trim(DebuggerSettingNodes[1].CachePanel.xmlAttributes.expanded) ); 
     904                                        debugPanelAttributeInsert(ConfigStruct.DebuggerSettings,"CachePanel",DebuggerSettingNodes[1].CachePanel.xmlAttributes); 
    908905                                } 
    909906                                /* RCPanel */ 
    910907                                if ( structKeyExists(DebuggerSettingNodes[1], "RCPanel") ){ 
    911                                         StructInsert(ConfigStruct.DebuggerSettings, "showRCPanel", trim(DebuggerSettingNodes[1].RCPanel.xmlAttributes.show) ); 
    912                                         StructInsert(ConfigStruct.DebuggerSettings, "expandedRCPanel", trim(DebuggerSettingNodes[1].RCPanel.xmlAttributes.expanded) ); 
     908                                        debugPanelAttributeInsert(ConfigStruct.DebuggerSettings,"RCPanel",DebuggerSettingNodes[1].RCPanel.xmlAttributes); 
    913909                                }        
    914910                                 
     
    10051001 
    10061002<!------------------------------------------- PRIVATE -------------------------------------------> 
    1007  
    1008         <!--- ************************************************************* ---> 
    1009  
     1003                                         
     1004        <!--- Debug Panel attribute insert ---> 
     1005        <cffunction name="debugPanelAttributeInsert" access="private" returntype="void" hint="Insert a key into a panel attribute" output="false" > 
     1006                <!--- ************************************************************* ---> 
     1007                <cfargument name="Config"                       required="true" type="struct" hint=""> 
     1008                <cfargument name="Panel"                        required="true" type="string" hint=""> 
     1009                <cfargument name="PanelXML"             required="true" type="any" hint=""> 
     1010                <!--- ************************************************************* ---> 
     1011                <cfscript> 
     1012                        /* Show Key */ 
     1013                        if( structKeyExists(arguments.panelXML,"show") ){ 
     1014                                StructInsert(arguments.config, "show#arguments.Panel#", trim(arguments.panelXML.show) ); 
     1015                        }        
     1016                        /* Expanded Key */ 
     1017                        if( structKeyExists(arguments.panelXML,"expanded") ){ 
     1018                                StructInsert(arguments.config, "expanded#arguments.Panel#", trim(arguments.panelXML.expanded) ); 
     1019                        }                
     1020                </cfscript> 
     1021        </cffunction> 
     1022 
     1023        <!--- read file ---> 
    10101024        <cffunction name="readFile" access="private" output="false" returntype="string"  hint="Facade to Read a file's content"> 
    10111025                <!--- ************************************************************* ---> 
     
    10171031        </cffunction> 
    10181032 
    1019         <!--- ************************************************************* ---> 
    1020          
     1033        <!--- Get Absolute Path ---> 
    10211034        <cffunction name="getAbsolutePath" access="private" output="false" returntype="string" hint="Turn any system path, either relative or absolute, into a fully qualified one"> 
    10221035                <!--- ************************************************************* --->