snowl/content/preferences.xul

240 строки
8.9 KiB
Plaintext
Исходник Обычный вид История

2008-08-05 01:22:20 +04:00
<?xml version="1.0" encoding="UTF-8"?>
2008-04-30 05:16:08 +04:00
<!-- ***** BEGIN LICENSE BLOCK *****
- Version: MPL 1.1/GPL 2.0/LGPL 2.1
-
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
-
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
-
- The Original Code is Snowl.
-
- The Initial Developer of the Original Code is Mozilla.
- Portions created by the Initial Developer are Copyright (C) 2008
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
- Myk Melez <myk@mozilla.org>
2008-12-01 23:24:19 +03:00
- alta88 <alta88@gmail.com>
2008-04-30 05:16:08 +04:00
-
- Alternatively, the contents of this file may be used under the terms of
- either the GNU General Public License Version 2 or later (the "GPL"), or
- the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- in which case the provisions of the GPL or the LGPL are applicable instead
- of those above. If you wish to allow use of your version of this file only
- under the terms of either the GPL or the LGPL, and not to allow others to
- use your version of this file under the terms of the MPL, indicate your
- decision by deleting the provisions above and replace them with the notice
- and other provisions required by the GPL or the LGPL. If you do not delete
- the provisions above, a recipient may use your version of this file under
- the terms of any one of the MPL, the GPL or the LGPL.
-
- ***** END LICENSE BLOCK ***** -->
2008-12-01 23:24:19 +03:00
<?xml-stylesheet href="chrome://global/skin/"?>
<?xml-stylesheet href="chrome://browser/skin/"?>
2008-11-14 02:52:55 +03:00
<?xml-stylesheet href="chrome://snowl/content/preferences.css"?>
2008-04-30 05:16:08 +04:00
<?xul-overlay href="chrome://snowl/content/preferencesCustomize.xul"?>
2008-12-01 23:24:19 +03:00
<!DOCTYPE prefwindow [
2008-11-14 02:52:55 +03:00
<!ENTITY % snowlPreferencesDTD SYSTEM "chrome://snowl/locale/preferences.dtd">
<!ENTITY % snowlLoginDTD SYSTEM "chrome://snowl/locale/login.dtd">
2008-11-14 02:52:55 +03:00
%snowlPreferencesDTD;
%snowlLoginDTD;
2008-11-14 02:52:55 +03:00
]>
2008-12-01 23:24:19 +03:00
<prefwindow id="SnowlPreferences"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
type="prefwindow"
windowtype="Snowl:Preferences"
XXXondialoghelp="openPrefsHelp()"
ondialogaccept="SnowlPreferences.onAccept();"
persist="width height screenX screenY lastSelected sizemode"
onload="SnowlPreferences.onLoad();">
2008-04-30 05:16:08 +04:00
<script type="application/javascript" src="chrome://snowl/content/preferences.js"/>
<script type="application/javascript" src="chrome://snowl/content/preferencesCommon.js"/>
<script type="application/javascript" src="chrome://snowl/content/strands.js"/>
<script type="application/javascript" src="chrome://snowl/content/subscribe.js"/>
<stringbundleset id="stringbundleset">
<stringbundle id="snowlStringBundle"
src="chrome://snowl/locale/preferences.properties"/>
</stringbundleset>
2008-04-30 05:16:08 +04:00
2008-12-01 23:24:19 +03:00
<!-- Subscribe -->
<prefpane id="subscribe"
flex="1"
2008-12-01 23:24:19 +03:00
label="&subscribe.title;"
onpaneload="SnowlPreferences.onPaneLoad();">
2008-11-14 02:52:55 +03:00
2008-12-01 23:24:19 +03:00
<!--
2008-11-14 02:52:55 +03:00
<preferences id="snowlPreferences">
<preference id="extensions.snowl.preferences.selectedTabIndex"
name="extensions.snowl.preferences.selectedTabIndex"
2008-11-14 02:52:55 +03:00
type="int"/>
2008-12-01 23:24:19 +03:00
</preferences> -->
<!-- New Source -->
<groupbox>
<caption label="&source.label;"/>
<radiogroup id="subscribeRadio"
orient="horizontal"
2009-01-08 10:38:22 +03:00
oncommand="SnowlPreferences.selectSubscribeDeck()">
2008-12-01 23:24:19 +03:00
<radio label="&feeds.label;"
accesskey="&feeds.accesskey;"/>
<radio label="&twitter.label;"
accesskey="&twitter.accesskey;"/>
<!--<radio label="&mail.label;" disabled="true"-->
<!-- accesskey="&mail.accesskey;"/>-->
<!--<radio label="&newsgroup.label;" disabled="true"-->
<!-- accesskey="&newsgroup.accesskey;"/>-->
2008-12-01 23:24:19 +03:00
</radiogroup>
<separator class="groove-thin"/>
<deck id="subscribeDeck">
<grid id="feedSubscribe">
<columns>
<column/>
<column flex="1"/>
</columns>
<rows>
<row align="center">
<hbox flex="1" pack="end">
<label control="locationTextbox" value="&location.label;"/>
</hbox>
<textbox id="locationTextbox" clickSelectsAll="true"/>
</row>
<row align="center">
<hbox flex="1" pack="end">
<label control="nameTextbox" value="&name.label;"/>
</hbox>
<textbox id="nameTextbox" readonly="true" clickSelectsAll="true"/>
</row>
<row>
<box/>
<hbox pack="start">
<button label="&subscribeButton.label;" default="true"
accesskey="&subscribeButton.accesskey;"
oncommand="SnowlPreferences.onSubscribeFeed()"/>
2008-12-01 23:24:19 +03:00
<spacer flex="1"/>
<button label="&clearButton.label;"
accesskey="&clearButton.accesskey;"
oncommand="SnowlPreferences.clearFields()"/>
</hbox>
</row>
</rows>
</grid>
<grid id="twitterSubscribe">
<columns>
<column/>
<column flex="1"/>
</columns>
<rows>
<row align="center">
<hbox flex="1" pack="end">
<label control="twitterUsername" value="&username.label;"/>
</hbox>
<textbox id="twitterUsername"/>
</row>
<row align="center">
<hbox flex="1" pack="end">
<label control="twitterPassword" value="&password.label;"/>
</hbox>
<textbox id="twitterPassword" type="password" disabled="true"/>
2008-12-01 23:24:19 +03:00
</row>
<row align="center">
<box/>
<checkbox id="showTwitterPassword" label="&showPassword.label;" disabled="true"
oncommand="SnowlPreferences.onShowTwitterPassword()"/>
2008-12-01 23:24:19 +03:00
</row>
<row align="center">
<box/>
<checkbox id="rememberTwitterPassword" label="&rememberPassword.label;" disabled="true"/>
2008-12-01 23:24:19 +03:00
</row>
<row>
<box/>
<hbox >
<button label="&subscribeButton.label;" default="true"
accesskey="&subscribeButton.accesskey;"
oncommand="SnowlPreferences.onSubscribeTwitter()"/>
2008-12-01 23:24:19 +03:00
<spacer flex="1"/>
<button label="&clearButton.label;"
accesskey="&clearButton.accesskey;"
oncommand="SnowlPreferences.clearFields()"/>
</hbox>
</row>
</rows>
</grid>
</deck>
</groupbox>
<hbox id="statusBox">
<vbox pack="center">
<image id="statusIcon" />
</vbox>
<description id="statusMessage" flex="1"/>
</hbox>
</prefpane>
<!-- Settings -->
<prefpane id="settings"
flex="1"
label="&settings.title;"
onpaneload="SnowlPreferencesCommon.onPaneLoad();">
<groupbox>
<caption label="&settings.label;"/>
<radiogroup id="settingsRadio"
orient="horizontal"
oncommand="SnowlPreferencesCommon.onPaneLoad();">
<!-- Attribute value must equal the source type's contstructor name. -->
<radio label="&feeds.label;"
value="SnowlFeed"
accesskey="&feeds.accesskey;"/>
<radio label="&twitter.label;"
value="SnowlTwitter"
accesskey="&twitter.accesskey;"/>
<!--<radio label="&mail.label;" disabled="true"-->
<!-- accesskey="&mail.accesskey;"/>-->
<!--<radio label="&newsgroup.label;" disabled="true"-->
<!-- accesskey="&newsgroup.accesskey;"/>-->
</radiogroup>
<vbox id="editBookmarkPanelContent"/>
</groupbox>
</prefpane>
<!-- Subscriptions
<prefpane id="subscriptions"
label="&subscriptions.title;"
XXXonpaneload="SnowlPreferences.onPaneLoad();">
<groupbox>
<caption label="Subscriptions"/>
</groupbox>
</prefpane> -->
2008-11-14 02:52:55 +03:00
2008-12-01 23:24:19 +03:00
<!-- Organize -->
<!--<prefpane id="organize"-->
<!-- label="&organize.title;"-->
<!-- XXXonpaneload="SnowlPreferences.onPaneLoad();">-->
<!-- <groupbox>-->
<!-- <caption label="Organize"/>-->
<!-- </groupbox>-->
<!--</prefpane>-->
2008-11-14 02:52:55 +03:00
2008-12-01 23:24:19 +03:00
<hbox id="resizerBox" flex="1">
<spacer flex="1"/>
<resizer dir="bottomright"/>
</hbox>
2008-11-14 02:52:55 +03:00
2008-04-30 05:16:08 +04:00
</prefwindow>
2008-11-14 02:52:55 +03:00