[Pkg-mozext-commits] [itsalltext] 236/459: * Added It's All Text! to the tools menu. * Rewrote chunks of the readme.
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:25 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 ec0436727789178d5973bbc3fd04c89b39bde2d3
Author: docwhat at gerf.org <docwhat at gerf.org>
Date: Mon Jun 11 09:56:06 2007 -0400
* Added It's All Text! to the tools menu.
* Rewrote chunks of the readme.
---
src/chrome/content/itsalltext.xul | 20 ++++++++-
src/chrome/locale/en-US/itsalltext.dtd | 18 ++++----
src/chrome/locale/en-US/readme.xhtml | 80 ++++++++++++++++++++++++++--------
3 files changed, 89 insertions(+), 29 deletions(-)
diff --git a/src/chrome/content/itsalltext.xul b/src/chrome/content/itsalltext.xul
index d62f0c1..cd8de19 100644
--- a/src/chrome/content/itsalltext.xul
+++ b/src/chrome/content/itsalltext.xul
@@ -19,7 +19,7 @@
<menuseparator/>
<menuitem label=".txt" oncommand="ItsAllText.menuExtEdit(event);"/>
<menuseparator/>
- <menuitem label="&pref.readme;"
+ <menuitem label="&readme.label;"
oncommand="ItsAllText.openReadme();"/>
<menuitem label="&pref.label;"
accesskey="&pref.key;"
@@ -38,7 +38,7 @@
<menuseparator/>
<menuitem label=".txt" oncommand="ItsAllText.menuExtEdit(event);"/>
<menuseparator/>
- <menuitem label="&pref.readme;"
+ <menuitem label="&readme.label;"
oncommand="ItsAllText.openReadme();"/>
<menuitem label="&pref.label;"
accesskey="&pref.key;"
@@ -47,6 +47,22 @@
</popupset>
</window>
+ <!-- The merge point is the Tools menu -->
+ <menupopup id="menu_ToolsPopup">
+ <menu id="menu_itsalltext" class="menuitem-iconic"
+ image="chrome://itsalltext/chrome/icon16.png"
+ label="&top.label;"
+ insertbefore="sanitizeSeparator">
+ <menupopup>
+ <menuitem label="&readme.label;"
+ oncommand="ItsAllText.openReadme();"/>
+ <menuitem label="&pref.label;"
+ accesskey="&pref.key;"
+ oncommand="ItsAllText.openPreferences();"/>
+ </menupopup>
+ </menu>
+ </menupopup>
+
</overlay>
<!-- Local Variables: -->
<!-- mode: xml -->
diff --git a/src/chrome/locale/en-US/itsalltext.dtd b/src/chrome/locale/en-US/itsalltext.dtd
index 0be76e2..a70ea50 100644
--- a/src/chrome/locale/en-US/itsalltext.dtd
+++ b/src/chrome/locale/en-US/itsalltext.dtd
@@ -1,14 +1,14 @@
-<!ENTITY top.label "It's All Text!">
-<!ENTITY top.key "i">
+<!ENTITY top.label "It's All Text!">
+<!ENTITY top.key "i">
-<!ENTITY edit.label "Edit with default extension">
-<!ENTITY edit.key "e">
+<!ENTITY edit.label "Edit with default extension">
+<!ENTITY edit.key "e">
-<!ENTITY newext.label "Edit with new extension...">
-<!ENTITY newext.key "n">
+<!ENTITY newext.label "Edit with new extension...">
+<!ENTITY newext.key "n">
-<!ENTITY pref.label "Preferences...">
-<!ENTITY pref.key "p">
+<!ENTITY pref.label "Preferences...">
+<!ENTITY pref.key "p">
-<!ENTITY pref.readme "View the README...">
+<!ENTITY readme.label "View the README...">
diff --git a/src/chrome/locale/en-US/readme.xhtml b/src/chrome/locale/en-US/readme.xhtml
index c047843..7b65d16 100644
--- a/src/chrome/locale/en-US/readme.xhtml
+++ b/src/chrome/locale/en-US/readme.xhtml
@@ -6,14 +6,20 @@
html { background: #abd; color: #000; padding: 0; margin: 0; }
body { background: #fff; color: #000; margin: 1ex auto; padding: 1em;
-moz-border-radius: 1em; width: 30em;
- font: 1.2em sans-serif;}
- h1, h2, h3, h4, h5, h6 { background: #00d; color: #fff; -moz-border-radius: 1ex; padding: 0.3em 0.8em 0.3em 2em; margin-left: -2em;}
- h1 { padding: 0.5em 1em 0.5em 2em; margin: 0 -2em;}
+ font-family: sans-serif;}
+ h1, h2, h3, h4, h5, h6 { background: #ffa; color: #06d; -moz-border-radius: 1ex; padding: 0 0.8em 0 2em; margin-left: -2em;}
+ h1 { padding: 0.5ex 1em 0.5ex 2em; margin: 0 -2em;}
h2, h3, h4, h5, h6 { display: block; width: 20em; clear: both; }
+
+ tt, code { font-size: 1.1em; font-weight: bold; color: #048; }
+ dt { font-weight: bold; color: #048; }
+
#ver { margin: 0; text-align: right; }
#test { width: 50%; height: 10em; background: #cdf; }
#nteb { font-size: 0.5em; text-align: right; margin-right: 50%; padding-right: 30px; }
- #signoff { font-size: 2em; font-style: oblique; font-family: monospace; }
+
+ .iat { font-style: oblique; color: #024; }
+ .warn { background: #fdd; }
#faq dl { margin-left: 1em; }
#faq dd { font-size: 0.8em; }
@@ -23,28 +29,42 @@
<h1>Welcome to <span class="iat">It's All Text!</span></h1>
<p id="ver"> version 999.@@VERSION@@</p>
- <p>
- This software is ALMOST version 1.0! However, this version is still beta.
+ <p class="warn">
+ This software is ALMOST version 1.0! It's inches from being
+ ready to go. Please <a
+ href="http://docwhat.gerf.org/2007/03/its_all_text_v06">report</a>
+ any problems you have to help!
</p>
<p>
- Upon installation, go to <tt>Tools->Addons</tt> and select <span class="iat">It's All Text!</span> and
- set the Preferences. Specifically, you'll have to set the editor's
- full path. A future version will auto-magically pop up preferences
- when you try to edit without an editor set.
+ <span class="iat">It's All Text!</span> gives you a simple way to edit textareas, the large text boxes in forms, using your favorite editor.
</p>
-
+
+
+
+ <h3>Quick Start</h3>
<p>
- Note to Mac OS X users: Most editors come with a component in
- /usr/bin/, use that as your editor. If you want to use something
- strange, then create a shell script to do an "open -a /path/to/editor
- $*".
+ Upon installation, go to the menu <tt>Tools -> It's All Text!
+ -> Preferences</tt> to set your preferences. Specifically,
+ you'll have to set the editor's full path.
</p>
<p>
- Here is a test edit box for you to play with...
+ There are three ways to use <span class="iat">It's All Text!</span>:
</p>
- <form action="">
+ <ul>
+ <li>Right click on a textarea, select <tt>It's All Text!</tt>.
+ </li>
+ <li>Click on the edit buttons added for your convenience.
+ </li>
+ <li>Right click on the edit buttons for more options.
+ </li>
+ </ul>
+
+ <p>
+ Here is a test edit box for you to play with…
+ </p>
+ <form action="" style="margin-left: 2em;">
<p style="margin: 0; padding: 0;">
<textarea id="test" cols="10" rows="4">Click the edit button and have fun editing!</textarea>
</p>
@@ -54,10 +74,29 @@
<div style="clear:both;"/>
<p id="signoff"> Ciao! </p>
+
+ <h3>A note to Mac OS X users</h3>
+
+ <p>
+ Out of the box, <span class="iat">It's All Text!</span> uses the <code>open</code> program; it will use the correct program depending on file extension.
+ </p>
+ <p>
+ If you wish to use a specific editor instead of the <code>open</code> program then you need to find the correct path to use. You cannot use the <tt>.app</tt> directory because Firefox does not currently understand them. Read the documentation for your editor; most editors come with a program in <code>/usr/bin/</code>.
+ </p>
+ <p>
+ If you are trying to do something more complicated or if you cannot find the correct program, you can create a shell script and use that instead. For example:<br/> <code>open -a /path/to/editor $*</code>
+ </p>
+ <p>
+ Other alternatives are available at <a href="http://docwhat.gerf.org/2007/03/its_all_text_v06/#comment-2054">my website</a>.
+ </p>
+
+
+
+
<h3>FAQ</h3>
<dl id="faq">
- <dt>I want to do something more complicated than just running an editor with a filename.</dt>
+ <dt>I want to do something more complicated than just running an editor with a file-name.</dt>
<dd>
<p>In UNIX systems, such as Mac OS X or Linux, you can create a shell script with your commands in it.</p>
<p>In windows, you can create a <tt>.cmd</tt> file instead.</p>
@@ -85,3 +124,8 @@
</body>
</html>
+
+<!-- LocalWords: gmail blogger WordPad UTF html abd fff moz ffa tt dt ver cdf
+-->
+<!-- LocalWords: nteb px iat faq dl cmd
+-->
--
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