Initial Commit Update Telerik
This commit is contained in:
51
LPWeb20/RichtextEditor/rtepaint5/dropdown/bool.xml
Normal file
51
LPWeb20/RichtextEditor/rtepaint5/dropdown/bool.xml
Normal file
@@ -0,0 +1,51 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml-stylesheet type="text/xsl" href="jsml.xsl"?>
|
||||
<jsml xmlns="http://cutesoft.net/jsml"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://cutesoft.net/jsml ../../JSML/jsml.xsd">
|
||||
<panel jsml-class="boolitem" width="50" height="24" overflow="visible" margin="2" border_color="transparent" border_width="0">
|
||||
<label jsml-local="txt_font" dock="fill" overflow="visible" padding="0,0,0,10" vertical_align="middle" horizontal_align="left"></label>
|
||||
<property name="boolean">
|
||||
<get>
|
||||
return self._boolean;
|
||||
</get>
|
||||
<set>
|
||||
self._boolean = value;
|
||||
txt_font.set_text(value);
|
||||
</set>
|
||||
</property>
|
||||
<attach name="click">
|
||||
<![CDATA[
|
||||
if(selectfunc)
|
||||
selectfunc(self.get_boolean());
|
||||
box.dispose();
|
||||
]]>
|
||||
</attach>
|
||||
<attach name="mousehover">
|
||||
<![CDATA[
|
||||
self.set_back_color("#dddddd");
|
||||
self.set_text_color("Blue");
|
||||
]]>
|
||||
</attach>
|
||||
<attach name="mouseleave">
|
||||
<![CDATA[
|
||||
self.set_back_color("");
|
||||
self.set_text_color("");
|
||||
]]>
|
||||
</attach>
|
||||
</panel>
|
||||
<panel jsml-class="boolpanel" width="50" height="30" overflow="visible" back_color="white">
|
||||
<initialize>
|
||||
<![CDATA[
|
||||
var PreInitFonts = [doc.Text["Select_Bool_True"],doc.Text["Select_Bool_False"]];
|
||||
for(var i=0;i<PreInitFonts.length;i++)
|
||||
{
|
||||
var fb = jsml.class_create_instance("boolitem");
|
||||
fb.set_dock("top");
|
||||
fb.set_boolean(PreInitFonts[i]);
|
||||
self.append_child(fb);
|
||||
}
|
||||
]]>
|
||||
</initialize>
|
||||
</panel>
|
||||
<panel jsml-base="boolpanel"></panel>
|
||||
</jsml>
|
||||
72
LPWeb20/RichtextEditor/rtepaint5/dropdown/font.xml
Normal file
72
LPWeb20/RichtextEditor/rtepaint5/dropdown/font.xml
Normal file
@@ -0,0 +1,72 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml-stylesheet type="text/xsl" href="jsml.xsl"?>
|
||||
<jsml xmlns="http://cutesoft.net/jsml"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://cutesoft.net/jsml ../../JSML/jsml.xsd">
|
||||
<panel jsml-class="fontbutton" width="200" height="36" margin="4,1,0,1" border_color="#8f8f8f" border_width="0" css_text="border-radius:2px;">
|
||||
<image jsml-local="img_loaded" src="images/accept.png" width="16" margin="2" dock="right" vertical_align="middle" tooltip="@Title_Loaded" visible="0"></image>
|
||||
<image jsml-local="img_font" dock="fill" vertical_align="middle"></image>
|
||||
<property name="fontname">
|
||||
<get>
|
||||
return self._fontname;
|
||||
</get>
|
||||
<set>
|
||||
self._fontname = value;
|
||||
</set>
|
||||
</property>
|
||||
<method name="InitFont">
|
||||
<![CDATA[
|
||||
var fontname = self.get_fontname();
|
||||
var arr = doc.GetOption("LoadedFonts");
|
||||
img_font.set_src("images/font/"+fontname+".gif");
|
||||
for(var i=0; i<arr.length;i++)
|
||||
{
|
||||
if(fontname!=arr[i])
|
||||
continue;
|
||||
img_loaded.set_visible(1);
|
||||
return;
|
||||
}
|
||||
]]>
|
||||
</method>
|
||||
<attach name="click">
|
||||
<![CDATA[
|
||||
var isloaded = img_loaded.get_visible();
|
||||
if(isloaded)
|
||||
{
|
||||
if(selectfunc) selectfunc(self.get_fontname());
|
||||
}
|
||||
else if(loadfunc)
|
||||
{
|
||||
loadfunc(self.get_fontname());
|
||||
img_loaded.set_visible(1);
|
||||
}
|
||||
box.dispose();
|
||||
]]>
|
||||
</attach>
|
||||
<attach name="mousehover">
|
||||
<![CDATA[
|
||||
self.set_back_color("#dddddd");
|
||||
]]>
|
||||
</attach>
|
||||
<attach name="mouseleave">
|
||||
<![CDATA[
|
||||
self.set_back_color("");
|
||||
]]>
|
||||
</attach>
|
||||
</panel>
|
||||
<panel jsml-class="fontpanel" width="200" height="80" back_color="white">
|
||||
<initialize>
|
||||
<![CDATA[
|
||||
var PreInitFonts = ["WorldWideWeb","AnandaNeptouch"];
|
||||
for(var i=0;i<PreInitFonts.length;i++)
|
||||
{
|
||||
var fb = jsml.class_create_instance("fontbutton");
|
||||
fb.set_dock("top");
|
||||
fb.set_fontname(PreInitFonts[i]);
|
||||
fb.InitFont();
|
||||
self.append_child(fb);
|
||||
}
|
||||
]]>
|
||||
</initialize>
|
||||
</panel>
|
||||
<panel jsml-base="fontpanel"></panel>
|
||||
</jsml>
|
||||
54
LPWeb20/RichtextEditor/rtepaint5/dropdown/fontfamily.xml
Normal file
54
LPWeb20/RichtextEditor/rtepaint5/dropdown/fontfamily.xml
Normal file
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml-stylesheet type="text/xsl" href="jsml.xsl"?>
|
||||
<jsml xmlns="http://cutesoft.net/jsml"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://cutesoft.net/jsml ../../JSML/jsml.xsd">
|
||||
<panel jsml-class="fontfamilyitem" width="120" height="24" overflow="visible" margin="2" border_color="transparent" border_width="0" css_text="background:url(images/font.gif) 0% 50% no-repeat;">
|
||||
<label jsml-local="txt_font" dock="fill" overflow="visible" margin="0,20,0,20" vertical_align="middle" horizontal_align="left"></label>
|
||||
<property name="fontfamily">
|
||||
<get>
|
||||
return self._fontfamily;
|
||||
</get>
|
||||
<set>
|
||||
self._fontfamily = value;
|
||||
txt_font.set_text(value);
|
||||
txt_font.get_element().style.fontFamily = value;
|
||||
</set>
|
||||
</property>
|
||||
<attach name="click">
|
||||
<![CDATA[
|
||||
if(selectfunc)
|
||||
selectfunc(self.get_fontfamily());
|
||||
box.dispose();
|
||||
]]>
|
||||
</attach>
|
||||
<attach name="mousehover">
|
||||
<![CDATA[
|
||||
self.set_back_color("#dddddd");
|
||||
self.set_text_color("Blue");
|
||||
]]>
|
||||
</attach>
|
||||
<attach name="mouseleave">
|
||||
<![CDATA[
|
||||
self.set_back_color("");
|
||||
self.set_text_color("");
|
||||
]]>
|
||||
</attach>
|
||||
</panel>
|
||||
<panel jsml-class="fontfamilypanel" width="120" height="30" overflow="visible" back_color="white">
|
||||
<initialize>
|
||||
<![CDATA[
|
||||
var PreInitFonts = ["Arial","Verdana","Tahoma","Segoe UI","Sans Serif","Lucida Console"];
|
||||
var fonts = doc.GetOption("LoadedFonts");
|
||||
PreInitFonts = PreInitFonts.concat(fonts);
|
||||
for(var i=0;i<PreInitFonts.length;i++)
|
||||
{
|
||||
var fb = jsml.class_create_instance("fontfamilyitem");
|
||||
fb.set_dock("top");
|
||||
fb.set_fontfamily(PreInitFonts[i]);
|
||||
self.append_child(fb);
|
||||
}
|
||||
]]>
|
||||
</initialize>
|
||||
</panel>
|
||||
<panel jsml-base="fontfamilypanel"></panel>
|
||||
</jsml>
|
||||
52
LPWeb20/RichtextEditor/rtepaint5/dropdown/fontsize.xml
Normal file
52
LPWeb20/RichtextEditor/rtepaint5/dropdown/fontsize.xml
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml-stylesheet type="text/xsl" href="jsml.xsl"?>
|
||||
<jsml xmlns="http://cutesoft.net/jsml"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://cutesoft.net/jsml ../../JSML/jsml.xsd">
|
||||
<panel jsml-class="fontsizeitem" width="120" height="24" overflow="visible" margin="2" border_color="transparent" border_width="0">
|
||||
<label jsml-local="txt_font" dock="fill" overflow="visible" padding="0,0,0,10" vertical_align="middle" horizontal_align="left"></label>
|
||||
<property name="fontsize">
|
||||
<get>
|
||||
return self._fontsize;
|
||||
</get>
|
||||
<set>
|
||||
self._fontsize = value;
|
||||
txt_font.set_text(value);
|
||||
txt_font.get_element().style.fontSize = value;
|
||||
</set>
|
||||
</property>
|
||||
<attach name="click">
|
||||
<![CDATA[
|
||||
if(selectfunc)
|
||||
selectfunc(self.get_fontsize());
|
||||
box.dispose();
|
||||
]]>
|
||||
</attach>
|
||||
<attach name="mousehover">
|
||||
<![CDATA[
|
||||
self.set_back_color("#dddddd");
|
||||
self.set_text_color("Blue");
|
||||
]]>
|
||||
</attach>
|
||||
<attach name="mouseleave">
|
||||
<![CDATA[
|
||||
self.set_back_color("");
|
||||
self.set_text_color("");
|
||||
]]>
|
||||
</attach>
|
||||
</panel>
|
||||
<panel jsml-class="fontsizepanel" width="120" height="30" overflow="visible" back_color="white">
|
||||
<initialize>
|
||||
<![CDATA[
|
||||
var PreInitFonts = ["8px","9px","10px","11px","12px","13px","14px","16px","18px","20px","24px","36px"];
|
||||
for(var i=0;i<PreInitFonts.length;i++)
|
||||
{
|
||||
var fb = jsml.class_create_instance("fontsizeitem");
|
||||
fb.set_dock("top");
|
||||
fb.set_fontsize(PreInitFonts[i]);
|
||||
self.append_child(fb);
|
||||
}
|
||||
]]>
|
||||
</initialize>
|
||||
</panel>
|
||||
<panel jsml-base="fontsizepanel"></panel>
|
||||
</jsml>
|
||||
Reference in New Issue
Block a user