0.8/chrome/content/preferences.xul

Back to the directory <?xml version="1.0"?>
<?xml
-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE prefwindow SYSTEM "chrome://notify/locale/notify.dtd">

<prefwindow
    type="prefwindow"
    title="&prefs.title;"
    id="notifyPrefs"
    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
    <prefpane id="notifyPane" label="&prefs.pane;">
        
        <preferences>
            <preference id="pref_sound" name="extensions.notify.sound" type="bool" />
            <preference id="pref_tray" name="extensions.notify.tray" type="bool" />
            <preference id="pref_open" name="extensions.notify.open" type="bool" />
            <preference id="pref_period" name="extensions.notify.period" type="int" />
        </preferences>
        
        <vbox>
            <groupbox style="margin-bottom: 1em;">
                <caption label="&prefs.notifyWith;"/>
                
                <checkbox preference="pref_sound" id="sound" label="&prefs.sound;" />
                <checkbox preference="pref_tray" id="tray" label="&prefs.tray;" />
            </groupbox>
            <checkbox preference="pref_open" id="open" label="&prefs.open;" style="margin-bottom: 1em;" />
            
            <hbox>
                <label value="&prefs.period1;" control="period" />
                <textbox preference="pref_period" id="period" maxlength="10" pref="true" preftype="int" prefstring="extensions.notify.period" style="width: 5em;" />
                <label value="&prefs.period2;" control="period" />
            </hbox>
        </vbox>
        
        <script type="text/javascript">
            <![CDATA[
            
                // check if the alert service is present
                if (!("@mozilla.org/alerts-service;1" in Components.classes))
                    document.getElementById("tray").hidden = true;
                    // TODO: works?
                
            ]]>
        </script>
        
    </prefpane>
    
</prefwindow>
© 2006-2007 Zespół Gemme - Programy na zamówienie