[Pkg-mozext-commits] [itsalltext] 13/459: Okay, we have options
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit 2562d5cfec45e435bf27f9fd38e9d9d8c5f2a03b
Author: docwhat at gerf.org <docwhat at gerf.org>
Date: Sun Dec 10 21:35:07 2006 -0500
Okay, we have options
---
chrome/content/itsalltext.js | 4 ++--
chrome/content/options.js | 4 ++++
chrome/content/options.xul | 36 ++++++++++++++++++++++++------------
3 files changed, 30 insertions(+), 14 deletions(-)
diff --git a/chrome/content/itsalltext.js b/chrome/content/itsalltext.js
index e01d8e2..a8986c4 100644
--- a/chrome/content/itsalltext.js
+++ b/chrome/content/itsalltext.js
@@ -436,7 +436,7 @@ function ItsAllTextOverlay() {
* Initialize the module. Should be called once, when a window is loaded.
* @private
*/
- var init = function() {
+ var startup = function() {
var appcontent = document.getElementById("appcontent"); // The Browser
if (appcontent) {
appcontent.addEventListener("DOMContentLoaded", that.onDOMContentLoad,
@@ -447,6 +447,6 @@ function ItsAllTextOverlay() {
};
- window.addEventListener("load", init, true);
+ window.addEventListener("load", startup, true);
}
var itsAllTextOverlay = new ItsAllTextOverlay();
diff --git a/chrome/content/options.js b/chrome/content/options.js
index e69de29..c5b302a 100644
--- a/chrome/content/options.js
+++ b/chrome/content/options.js
@@ -0,0 +1,4 @@
+/* stuff */
+var itsalltextOptionsLoad = function() {
+ alert('narf');
+};
diff --git a/chrome/content/options.xul b/chrome/content/options.xul
index 7ae12ae..90c4f4c 100644
--- a/chrome/content/options.xul
+++ b/chrome/content/options.xul
@@ -1,18 +1,30 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+
+<prefwindow id="itsalltext-prefs"
+ title="It's All Text Preferences"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+<prefpane id="itsalltext-pane" label="It's All Text Preferences">
+ <preferences>
+ <preference id="pref_charset"
+ name="extensions.itsalltext.charset" type="string"/>
+ <preference id="pref_editor"
+ name="extensions.itsalltext.editor" type="string"/>
+ </preferences>
-<dialog
- id="ItsAllTextOptions"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- ondialogaccept="itsalltextOptionsSave();"
- onload="itsalltextOptionsLoad();"
- title="Options for It's All Text"
- buttons="accept,cancel"
- >
- <script type="application/x-javascript" src="options.js"/>
- <vbox>
+ <vbox>
<hbox>
- <caption>Nothing Here Yet</caption>
+ <hbox align="right">
+ <label control="editor" value="Editor (needs full path): "/>
+ <textbox preference="pref_editor" id="editor" maxlength="20"/>
+ </hbox>
+ <hbox align="right">
+ <label control="charset"
+ value="Character Set (default: UTF-8): "/>
+ <textbox preference="pref_charset" id="charset" maxlength="8"/>
</hbox>
</vbox>
-</dialog>
+</prefpane>
+
+</prefwindow>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list