home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / aim.jar / content / aim / pref-Icq_style.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-07-29  |  6.2 KB  |  136 lines

  1. <?xml version="1.0"?>
  2.  
  3. <?xml-stylesheet href="chrome://editor/skin/editorFormatToolbar.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://aim/skin/prefPanels.css" type="text/css"?>
  5. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  6. <?xml-stylesheet href="chrome://editor/skin/EditorDialog.css" type="text/css"?>
  7. <?xul-overlay href="chrome://editor/content/editorOverlay.xul"?>
  8. <?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
  9.  
  10. <!DOCTYPE window SYSTEM "chrome://communicator/locale/pref/pref-Icq_style.dtd">
  11.  
  12. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  13.       onload="icqPreferenceOnload(); parent.initPanel('chrome://aim/content/pref-Icq_style.xul'); PrefIcqStyleOnload();"
  14.       headertitle="&window.title;"
  15.       isIcqPanel="true">
  16.  
  17.   <script language="JavaScript">
  18.   <![CDATA[
  19.     _elementIDs = ["FontFaceSelectStyle", "fontsize", "textstyles", "bold", "italics", "underline", "textColorData", "backgroundColorData"];
  20.   ]]>
  21.   </script>
  22.         
  23.   <script language="JavaScript" src="chrome://aim/content/aimHelpers.js" />
  24.   <script language="javascript" src="chrome://aim/content/prefIcq.js"/>
  25.   
  26.  
  27. <script type="application/x-javascript" src="chrome://editor/content/EdDialogCommon.js"/>
  28.  
  29.   <!-- Color pickers from the editorOverlay.xul -->
  30.   <popupset id="popup_set">
  31.     <popup id="TextColorPopup"/>
  32.     <popup id="BackColorPopup"/>
  33.   </popupset>
  34.  
  35.   <!-- No "oncommand", use EditorSelectColor() to bring up color dialog -->
  36.   <command id="cmd_fontColor"       state=""/>
  37.   <command id="cmd_backgroundColor" state=""/>
  38.  
  39.    <vbox>
  40.     <groupbox>
  41.       <caption label="&header1.label;"/>
  42.       <grid>
  43.       
  44.         <columns>
  45.           <column/>
  46.           <column flex="1"/>
  47.         </columns>
  48.       
  49.         <rows>
  50.           <row>
  51.             <label value="&font.label;" control="FontFaceSelectStyle"/>
  52.               <hbox orient="vertical" pack="center">
  53.                 <menulist class="toolbar-focustarget" pref="true" preftype="string" prefstring="icq.style.fontface" id="FontFaceSelectStyle" tooltip="aTooltip" tooltiptext="&FontFaceSelect.tooltip;" crop="right">
  54.                 <menupopup id="FontFacePopupStyle">
  55.                   <menuitem label="&fontVarWidth.label;"      value=""/>
  56.                   <menuitem label="&fontFixedWidth.label;"    value="tt"/>
  57.                   <menuseparator/>
  58.                   <menuitem label="&fontHelveticaFont.label;" value="Helvetica, foo, sans-serif"/>
  59.                   <menuitem label="&fontTimes.label;"         value="Times New Roman, Times, serif"/>
  60.                   <menuitem label="&fontCourier.label;"       value="Courier New, Courier, monospace"/>
  61.                 </menupopup>
  62.                 </menulist> 
  63.               </hbox>
  64.             <spacer flex="1"/>
  65.           <label value="&fontsize.label;" control="fontsize"/>
  66.           <radiogroup id="fontsize" pref="true" preftype="string" prefstring="icq.style.fontsize">
  67.             <radio id="small" class="small-margin" group="fontsize" value="small" label="&radioSmall.label;" />
  68.             <radio id="medium" class="small-margin" group="fontsize" value="" label="&radioMedium.label;" />
  69.             <radio id="large"  class="small-margin" group="fontsize" value="big" label="&radioLarge.label;" />
  70.           </radiogroup>
  71.         
  72.           </row>
  73.         </rows>
  74.         
  75.       </grid>
  76.       
  77.      </groupbox> 
  78.  
  79.       <hbox id="topTextBox">
  80.       
  81.         <groupbox flex="1">
  82.           <caption label="&header2.label;"/>
  83.           <grid>
  84.             <columns>
  85.               <column/>
  86.               <column flex="1"/>
  87.             </columns>
  88.             <rows>
  89.               <row>
  90.                  <radiogroup id="textstyles" pref="true" preftype="string" prefstring="icq.style.textstyles" oncommand="SwapSpecialStyles()">
  91.                     <radio id="none" class="small-margin" group="textstyles" value="" label="&radioNone.label;" />
  92.                     <radio id="some" class="small-margin" group="textstyles" value="1" label="&radioSome.label;" />
  93.                   </radiogroup>
  94.               </row>
  95.               <row>       
  96.                 <hbox>
  97.                     <checkbox id="bold" style="font-weight: bold;" label="&bold.label;" pref="true" preftype="bool" prefstring="icq.style.bold"/>
  98.                     <checkbox id="italics" pref="true" preftype="bool" style="font-style: italic;" label="&italic.label;" prefstring="icq.style.italics"/>
  99.                     <checkbox id="underline" pref="true" preftype="bool" style="text-decoration: underline;" label="&underline.label;" prefstring="icq.style.underline"/>
  100.                 </hbox>
  101.               </row>
  102.             </rows>
  103.           </grid>
  104.         </groupbox> 
  105.  
  106.         <!-- Protocol -->
  107.         <groupbox flex="1" orient="horizontal">
  108.           <caption label="&header3.label;"/>
  109.             <observes element="cmd_fontColor"       attribute="state" onbroadcast="onFontColorChange()"/>
  110.             <observes element="cmd_backgroundColor" attribute="state" onbroadcast="onBackgroundColorChange()"/>
  111.             <vbox>
  112.                 <hbox flex="1">
  113.  
  114.                   <label value="&text.label;" control="TextColorButton"/>
  115.                   <spacer flex="1"/>
  116.                   <button id="TextColorButton" class="color-button" oncommand="GetColorAndUpdate('textCW');">
  117.                   <spacer id="textCW" class="color-well"/>
  118.                   </button>
  119.                   <data id="textColorData" pref="true" preftype="color" prefstring="icq.style.forecolor" prefattribute="value" wsm_attributes="value"/>
  120.                 </hbox>
  121.  
  122.                 <hbox flex="1">
  123.                   <label value="&background.label;" control="BackgroundColorButton"/>
  124.                   <spacer flex="1"/>
  125.                   <button id="BackgroundColorButton" class="color-button" oncommand="GetColorAndUpdate('backgroundCW');">
  126.                   <spacer id="backgroundCW" class="color-well"/>
  127.                   </button>
  128.                   <data id="backgroundColorData" pref="true" preftype="color" prefstring="icq.style.backcolor" prefattribute="value" wsm_attributes="value"/>
  129.                 </hbox>
  130.             </vbox>
  131.         </groupbox> 
  132.       </hbox>
  133.   </vbox>
  134.  
  135. </page>
  136.