<commit_before><?xml version="1.0" encoding="ISO-8859-1" ?>
<controls xmlVersion="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../schemas/control.xsd">

<!-- 

Copyright (C) 2016 - <NAME> / Rapid Information Systems

<EMAIL>


This file is part of the Rapid Application Platform

Rapid is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. The terms require you to include
the original copyright, and the license notice in all redistributions.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
in a file named "COPYING".  If not, see <http://www.gnu.org/licenses/>.

 -->

	<control>
	    
	    <type>panel</type>
	    <name>Panel</name>
	    <image>images/panel_24x24.png</image>
	    <helpHtml>The panel control is used to display controls inside of it. Panels can have text within them and can also have user roles set so only certain users can see them. Panels can be completely stylised, and the themes in Rapid offer a variety of different panel options to suit your app.</helpHtml>
	    
	    <addToNewApplications>true</addToNewApplications>
	    <addToNewResponsiveApplications>false</addToNewResponsiveApplications>
	    
	    <noDefaultName>true</noDefaultName>
	    
	    <canUserAdd>true</canUserAdd>
	    <canUserMove>true</canUserMove>
	    <canUserInsert>true</canUserInsert>
	    <canUserAddPeers>true</canUserAddPeers>
	    
	    <properties>
	            
	        <property>
	            <key>name</key>
	            <name>Name</name>
	            <changeValueJavaScript>text</changeValueJavaScript>
	            <helpHtml>Name that can be given to the control. Names are used to help identify controls uniquely.</helpHtml>
	        </property>
	             
	        <property>
	            <key>text</key>
	            <name>Text</name>
	            <setConstructValueFunction>return ""</setConstructValueFunction>
	            <changeValueJavaScript>bigtext</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Inputs text into the panel.</helpHtml>
	        </property>
	        
	        <property>
	            <key>roles</key>
	            <name>User roles</name>
	            <changeValueJavaScript>roles</changeValueJavaScript>
	            <helpHtml>Only allows the viewing of the panel based on the type of privileges a user has.</helpHtml>
	        </property>
	        
	        <property>
	            <key>hidden</key>
	            <name>Hidden</name>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <helpHtml>Whether the panel hidden when the page first loads.</helpHtml>
	        </property>
	        
	    </properties>
	    
	    <getHtmlFunction>
	        <![CDATA[
// get the style classes for this control	        
classes = getStyleClasses(this); 	      
// if they start with "alert" do not include "panel" as this messes up bootstrap
if (!classes && classes.indexOf("alert") != 1) classes = "panel" + classes;  
// return our html for adding to our parent object	        
return "<div id='" + this.id + "' class='" + classes + "'" + (this.text ? "" : " style='min-height:15px;'") + ">" + this.text + "</div>";
	        ]]>
	    </getHtmlFunction> 
	    
	    <saveJavaScript>
	        <![CDATA[
// get the style attribute 	        
var style = this.object.attr("style");
// if the min-height:15 is present but there are children
if (style && style.indexOf("min-height:15px;") > -1 && this.childControls && this.childControls.length > 0) {
	// remove the min-height
	style = style.replace("min-height:15px;","");
	// if there are other attributes
	if (style) {
		// update changed style
		this.object.attr("style",style );
	} else {
		// remove empty style
		this.object.removeAttr("style");
	}
}
// hide if hidden
if (this.hidden) this.object.hide();	        
	        ]]>
	    </saveJavaScript>
	    
	    <events>
	        <event>
	            <type>mouseover</type>
	            <name>Mouse over</name>
	        </event>
	        <event>
	            <type>mouseout</type>
	            <name>Mouse out</name>
	        </event>
	        <event>
	            <type>click</type>
	            <name>Click</name>
	        </event>	        
	    </events>
	    
	    <styles>       
	        <style>
	            <name>Panel</name>  
	            <getAppliesToFunction>
					<![CDATA[	      
return "#" + this.id;
	       			 ]]>	                
	            </getAppliesToFunction>
	        </style>
	    </styles>
	    
	</control>
</controls><commit_msg>Replaced panel control mouse in out with enter leave<commit_after><?xml version="1.0" encoding="ISO-8859-1" ?>
<controls xmlVersion="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../schemas/control.xsd">

<!-- 

Copyright (C) 2017 - <NAME> / Rapid Information Systems

<EMAIL>


This file is part of the Rapid Application Platform

Rapid is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. The terms require you to include
the original copyright, and the license notice in all redistributions.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
in a file named "COPYING".  If not, see <http://www.gnu.org/licenses/>.

 -->

	<control>
	    
	    <type>panel</type>
	    <name>Panel</name>
	    <image>images/panel_24x24.png</image>
	    <helpHtml>The panel control is used to display controls inside of it. Panels can have text within them and can also have user roles set so only certain users can see them. Panels can be completely stylised, and the themes in Rapid offer a variety of different panel options to suit your app.</helpHtml>
	    
	    <addToNewApplications>true</addToNewApplications>
	    <addToNewResponsiveApplications>false</addToNewResponsiveApplications>
	    
	    <noDefaultName>true</noDefaultName>
	    
	    <canUserAdd>true</canUserAdd>
	    <canUserMove>true</canUserMove>
	    <canUserInsert>true</canUserInsert>
	    <canUserAddPeers>true</canUserAddPeers>
	    
	    <properties>
	            
	        <property>
	            <key>name</key>
	            <name>Name</name>
	            <changeValueJavaScript>text</changeValueJavaScript>
	            <helpHtml>Name that can be given to the control. Names are used to help identify controls uniquely.</helpHtml>
	        </property>
	             
	        <property>
	            <key>text</key>
	            <name>Text</name>
	            <setConstructValueFunction>return ""</setConstructValueFunction>
	            <changeValueJavaScript>bigtext</changeValueJavaScript>
	            <refreshHtml>true</refreshHtml>
	            <helpHtml>Inputs text into the panel.</helpHtml>
	        </property>
	        
	        <property>
	            <key>roles</key>
	            <name>User roles</name>
	            <changeValueJavaScript>roles</changeValueJavaScript>
	            <helpHtml>Only allows the viewing of the panel based on the type of privileges a user has.</helpHtml>
	        </property>
	        
	        <property>
	            <key>hidden</key>
	            <name>Hidden</name>
	            <changeValueJavaScript>checkbox</changeValueJavaScript>
	            <helpHtml>Whether the panel hidden when the page first loads.</helpHtml>
	        </property>
	        
	    </properties>
	    
	    <getHtmlFunction>
	        <![CDATA[
// get the style classes for this control	        
classes = getStyleClasses(this); 	      
// if they start with "alert" do not include "panel" as this messes up bootstrap
if (!classes && classes.indexOf("alert") != 1) classes = "panel" + classes;  
// return our html for adding to our parent object	        
return "<div id='" + this.id + "' class='" + classes + "'" + (this.text ? "" : " style='min-height:15px;'") + ">" + this.text + "</div>";
	        ]]>
	    </getHtmlFunction> 
	    
	    <saveJavaScript>
	        <![CDATA[
// get the style attribute 	        
var style = this.object.attr("style");
// if the min-height:15 is present but there are children
if (style && style.indexOf("min-height:15px;") > -1 && this.childControls && this.childControls.length > 0) {
	// remove the min-height
	style = style.replace("min-height:15px;","");
	// if there are other attributes
	if (style) {
		// update changed style
		this.object.attr("style",style );
	} else {
		// remove empty style
		this.object.removeAttr("style");
	}
}
// hide if hidden
if (this.hidden) this.object.hide();	        
	        ]]>
	    </saveJavaScript>
	    
	    <events>
	    	<event>
	            <type>click</type>
	            <name>Click</name>
	        </event>
	        <event>
	            <type>mouseenter</type>
	            <name>Mouse enter</name>
	        </event>
	        <event>
	            <type>mouseleave</type>
	            <name>Mouse leave</name>
	        </event>	              
	    </events>
	    
	    <styles>       
	        <style>
	            <name>Panel</name>  
	            <getAppliesToFunction>
					<![CDATA[	      
return "#" + this.id;
	       			 ]]>	                
	            </getAppliesToFunction>
	        </style>
	    </styles>
	    
	</control>
</controls>
{'fraction_non_alphanumeric': 0.11095449053564237, 'fraction_numerical': 0.0066451872734595244, 'mean_word_length': 2.311, 'pattern_counts': {'":': 0, '<': 231, '<?xml version=': 2, '>': 235, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1878015', 'n_tokens_mistral': 2993, 'n_tokens_neox': 2681, 'n_words': 821}