1. Christopher De Vries
  2. infopad

Commits

Christopher De Vries  committed 5825581

Added many things.

  • Participants
  • Parent commits c60a5b5
  • Branches default

Comments (0)

Files changed (14)

File build.xml

View file
   <property name="jnlpdeploy" value="${depbase}/jnlp"/>
   <property name="jarname" value="infopad.jar"/>
   <property name="conf" value="${basedir}/conf"/>
+  <property name="distbuild" value="${build}/sdist"/>
+  <property name="sharbuild" value="${build}/shar"/>
+  <property name="sharname" value="infopad-install.sh"/>
 </target>
 
 <target name="clean" depends="init">
   manifest="${conf}/manifest"/>
 </target>
 
+<target name="shar" depends="jar">
+  <copy todir="${sharbuild}">
+    <fileset dir="${basedir}/shar">
+      <include name="install.sh"/>
+    </fileset>
+    <fileset dir="${basedir}/doc">
+      <include name="LICENSE"/>
+      <include name="README-unix"/>
+    </fileset>
+    <fileset dir="${depbase}">
+      <include name="${jarname}"/>
+    </fileset>
+  </copy>
+  <tar destfile="${build}/shar.tar.gz" compression="gzip">
+    <tarfileset dir="${sharbuild}" prefix="."/>
+  </tar>
+  <concat destfile="${depbase}/${sharname}">
+    <filelist dir="shar" files="sh-header"/>
+    <filelist dir="${build}" files="shar.tar.gz"/>
+  </concat>
+</target>
+
 <target name="jarsign" depends="jar">
   <input message="Type in your key password:" addproperty="keypass"/>
   <signjar jar="${depbase}/${jarname}" alias="devries" storepass="${keypass}"/>
   <copy file="${depbase}/${jarname}" todir="${jnlpdeploy}"/>
 </target>
 
+<target name="sdist" depends="prepare">
+  <copy todir="${distbuild}">
+    <fileset dir="${basedir}">
+      <include name="src/**"/>
+      <include name="conf/**"/>
+      <include name="doc/**"/>
+      <include name="helpdoc/**"/>
+      <include name="icons/**"/>
+      <include name="build.xml"/>
+      <exclude name="**/CVS/*"/>
+    </fileset>
+  </copy>
+  <zip destfile="${depbase}/infopad.zip">
+    <zipfileset dir="${distbuild}" prefix="infopad"/>
+  </zip>
+  <tar destfile="${depbase}/infopad.tar.gz" compression="gzip">
+    <tarfileset dir="${distbuild}" prefix="infopad"/>
+  </tar>
+</target>
+
 </project>

File doc/LICENSE

View file
+The Artistic License
+
+Preamble
+
+The intent of this document is to state the conditions under which a Package
+may be copied, such that the Copyright Holder maintains some semblance of
+artistic control over the development of the package, while giving the users of
+the package the right to use and distribute the Package in a more-or-less
+customary fashion, plus the right to make reasonable modifications. 
+
+Definitions:
+
+    * "Package" refers to the collection of files distributed by the Copyright
+      Holder, and derivatives of that collection of files created through
+      textual modification. 
+    * "Standard Version" refers to such a Package if it has not been modified,
+      or has been modified in accordance with the wishes of the Copyright
+      Holder. 
+    * "Copyright Holder" is whoever is named in the copyright or copyrights for
+      the package. 
+    * "You" is you, if you're thinking about copying or distributing this
+      Package. 
+    * "Reasonable copying fee" is whatever you can justify on the basis of
+      media cost, duplication charges, time of people involved, and so on. (You
+      will not be required to justify it to the Copyright Holder, but only to
+      the computing community at large as a market that must bear the fee.) 
+    * "Freely Available" means that no fee is charged for the item itself,
+      though there may be fees involved in handling the item. It also means
+      that recipients of the item may redistribute it under the same conditions
+      they received it. 
+
+1. You may make and give away verbatim copies of the source form of the
+   Standard Version of this Package without restriction, provided that you
+   duplicate all of the original copyright notices and associated disclaimers. 
+
+2. You may apply bug fixes, portability fixes and other modifications derived
+   from the Public Domain or from the Copyright Holder. A Package modified in
+   such a way shall still be considered the Standard Version. 
+
+3. You may otherwise modify your copy of this Package in any way, provided that
+   you insert a prominent notice in each changed file stating how and when you
+   changed that file, and provided that you do at least ONE of the following: 
+
+    a) place your modifications in the Public Domain or otherwise make them
+    Freely Available, such as by posting said modifications to Usenet or an
+    equivalent medium, or placing the modifications on a major archive site
+    such as ftp.uu.net, or by allowing the Copyright Holder to include your
+    modifications in the Standard Version of the Package. 
+
+    b) use the modified Package only within your corporation or organization.
+
+    c) rename any non-standard executables so the names do not conflict with
+    standard executables, which must also be provided, and provide a separate
+    manual page for each non-standard executable that clearly documents how it
+    differs from the Standard Version. 
+
+    d) make other distribution arrangements with the Copyright Holder.
+
+4. You may distribute the programs of this Package in object code or executable
+   form, provided that you do at least ONE of the following: 
+
+    a) distribute a Standard Version of the executables and library files,
+    together with instructions (in the manual page or equivalent) on where to
+    get the Standard Version. 
+
+    b) accompany the distribution with the machine-readable source of the
+    Package with your modifications. 
+
+    c) accompany any non-standard executables with their corresponding Standard
+    Version executables, giving the non-standard executables non-standard
+    names, and clearly documenting the differences in manual pages (or
+    equivalent), together with instructions on where to get the Standard
+    Version. 
+
+    d) make other distribution arrangements with the Copyright Holder.
+
+5. You may charge a reasonable copying fee for any distribution of this
+   Package. You may charge any fee you choose for support of this Package. You
+   may not charge a fee for this Package itself. However, you may distribute
+   this Package in aggregate with other (possibly commercial) programs as part
+   of a larger (possibly commercial) software distribution provided that you do
+   not advertise this Package as a product of your own. 
+
+6. The scripts and library files supplied as input to or produced as output
+   from the programs of this Package do not automatically fall under the
+   copyright of this Package, but belong to whomever generated them, and may be
+   sold commercially, and may be aggregated with this Package. 
+
+7. C or perl subroutines supplied by you and linked into this Package shall not
+   be considered part of this Package. 
+
+8. The name of the Copyright Holder may not be used to endorse or promote
+   products derived from this software without specific prior written
+   permission. 
+
+9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
+   WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
+   MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+The End

File doc/README

View file
+InfoPad is an application designed to store short notes. It is based on the
+concept of a spiral notebook, however it is searchable and expandable. I first
+designed InfoPad because I always had to note down little pieces of
+information, and ended up usually writing them on post-it notes and putting
+them on my computer monitor. Some computers include a post-it note program, but
+that does little more than clutter up your desktop. I wanted a single window
+where I could write notes, where they would automatically be backed up, and
+that would automatically save them. I decided to take a day to write this
+program. I ended up writing this version over a period of about a week. The key
+feature of this program is the search bar. It accepts regular expression
+searches and returns the first note that matches as you type, highlighting all
+matches in that note. Click the "Find Next" button and you go to the next
+matching note (if there is one). I personally find this to be a good way of
+organizing short notes. Now my monitor is post-it note free.
+
+To run infopad just type
+
+java -jar infopad.jar
+
+or double click on the jar file. You must install java (http://www.java.com/)
+for this program to work.

File doc/README-mac

View file
+InfoPad is an application designed to store short notes. It is based on the
+concept of a spiral notebook, however it is searchable and expandable. I first
+designed InfoPad because I always had to note down little pieces of
+information, and ended up usually writing them on post-it notes and putting
+them on my computer monitor. Some computers include a post-it note program, but
+that does little more than clutter up your desktop. I wanted a single window
+where I could write notes, where they would automatically be backed up, and
+that would automatically save them. I decided to take a day to write this
+program. I ended up writing this version over a period of about a week. The key
+feature of this program is the search bar. It accepts regular expression
+searches and returns the first note that matches as you type, highlighting all
+matches in that note. Click the "Find Next" button and you go to the next
+matching note (if there is one). I personally find this to be a good way of
+organizing short notes. Now my monitor is post-it note free.
+
+INSTALLATION
+
+You can just double click on the InfoPad icon. If you like the program, I
+recommend dragging it to your applications folder. 

File doc/README-unix

View file
+InfoPad is an application designed to store short notes. It is based on the
+concept of a spiral notebook, however it is searchable and expandable. I first
+designed InfoPad because I always had to note down little pieces of
+information, and ended up usually writing them on post-it notes and putting
+them on my computer monitor. Some computers include a post-it note program, but
+that does little more than clutter up your desktop. I wanted a single window
+where I could write notes, where they would automatically be backed up, and
+that would automatically save them. I decided to take a day to write this
+program. I ended up writing this version over a period of about a week. The key
+feature of this program is the search bar. It accepts regular expression
+searches and returns the first note that matches as you type, highlighting all
+matches in that note. Click the "Find Next" button and you go to the next
+matching note (if there is one). I personally find this to be a good way of
+organizing short notes. Now my monitor is post-it note free.
+
+To install infopad just run the infopad-install.sh script:
+
+sh infopad-install.sh
+
+By default the program "infopad" will be installed in /usr/local/bin. Just type
+"infopad" to run the program. 

File helpdoc/index.html

View file
 <html>
-<h1 align="center">InfoPad alpha-4</h1>
+<h1 align="center">InfoPad alpha-5</h1>
 <h2 align="center">Christopher De Vries</h2>
 <p>It seems like only yesterday I thought to myself, "If only I had a
 searchable notepad to hold small random stuff on my computer I would be

File jnlp/icon-trans.gif

Added
New image

File jnlp/index.html

View file
+<html>
+<title>InfoPad Web Start</title>
+<SCRIPT LANGUAGE="JavaScript"> 
+var javawsInstalled = 0;  
+var javaws142Installed=0;
+var javaws150Installed=0;
+isIE = "false"; 
+if (navigator.mimeTypes && navigator.mimeTypes.length) { 
+   x = navigator.mimeTypes['application/x-java-jnlp-file']; 
+   if (x) { 
+      javawsInstalled = 1; 
+      javaws142Installed=1;
+      javaws150Installed=1;
+   } 
+} 
+else { 
+   isIE = "true"; 
+} 
+</SCRIPT> 
+
+<SCRIPT LANGUAGE="VBScript">
+on error resume next
+If isIE = "true" Then
+  If Not(IsObject(CreateObject("JavaWebStart.isInstalled"))) Then
+     javawsInstalled = 0
+  Else
+     javawsInstalled = 1
+  End If
+  If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.4.2.0"))) Then
+     javaws142Installed = 0
+  Else
+     javaws142Installed = 1
+  End If 
+  If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.5.0.0"))) Then
+     javaws150Installed = 0
+  Else
+     javaws150Installed = 1
+  End If  
+End If
+</SCRIPT>
+</head>
+
+<body>
+<h1 align="center">InfoPad Web Start</h1>
+
+<p>Click the link below to run InfoPad using Java Web Start (Recommended for
+Windows and Linux). Web start will warn you that it could not verify the
+authenticity of this certificate. This is because I have not paid to have a
+certificate authority sign my code signing certificate. In any case you should
+only run a program on your computer if you trust that it is not malicious, and
+the fact that someone has paid for a certificate authority to sign their code
+does not mean that they are now benevolant programmers, but that's a story for
+another time.</p>
+<script language="JavaScript">
+/* Note that the logic below always launches the JNLP application
+ *if the browser is Gecko based. This is because it is not possible
+ *to detect MIME type application/x-java-jnlp-file on Gecko-based browsers. 
+ */
+if (javawsInstalled || (navigator.userAgent.indexOf("Gecko") !=-1)) {
+    document.write("<a href=infopad.jnlp>Launch InfoPad</a>");
+} else {
+    document.write("Click ");
+    document.write("<a href=http://java.sun.com/PluginBrowserCheck?pass=http://infopad.sourceforge.net/jnlp/infopadjredownload.html&fail=http://java.sun.com/j2se/1.5.0/download.html>here</a> ");
+    document.write("to download and install JRE 5.0 and the application.");
+}
+</SCRIPT>
+</body>

File jnlp/infopad-splash.gif

Added
New image

File jnlp/infopad.jnlp

View file
+<?xml version="1.0" encoding="utf-8"?>
+<!-- JNLP File for LST Clock Application -->
+<jnlp
+  spec="1.0+"
+  codebase="http://infopad.sourceforge.net/jnlp"
+  href="infopad.jnlp">
+  <information>
+    <title>InfoPad</title>
+    <vendor>Christopher De Vries</vendor>
+    <homepage href="index.html"/>
+    <description>A Simple Utility for Small Random Information</description>
+    <description kind="short">InfoPad allows you to store short notes in a searchable notebook.</description>
+    <icon href="icon-trans.gif"/>
+    <icon kind="splash" href="infopad-splash.gif"/>
+    <offline-allowed/>
+  </information>
+  <resources>
+    <j2se version="1.4+"/>
+    <jar href="infopad.jar"/>
+    <property name="java.awt.Window.locationByPlatform" value="true"/>
+  </resources>
+  <application-desc main-class="com.idolstarastronomer.infopad.MainApp"/>
+  <security>
+    <all-permissions/>
+  </security>
+</jnlp>

File jnlp/infopadjredownload.html

View file
+<HTML>
+<BODY>
+<OBJECT
+codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0-windows-i586.cab" 
+classid="clsid:5852F5ED-8BF4-11D4-A245-0080C6F74284" height=0 width=0>
+<PARAM name="app" value="http://infopad.sourceforge.net/jnlp/infopad.jnlp">
+<PARAM name="back" value="true">
+<!-- Alternate HTML for browsers which cannot instantiate the object -->
+<A href="http://java.sun.com/j2se/1.5.0/download.html">
+Download Java Web Start</A>
+</OBJECT>
+</BODY>
+</HTML>

File shar/install.sh

View file
+#!/bin/sh
+
+# Try some echo setup:
+if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
+  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
+  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
+    ac_n= ac_c='
+' ac_t='	'
+  else
+    ac_n=-n ac_c= ac_t=
+  fi
+else
+  ac_n= ac_c='\c' ac_t=
+fi
+
+less -e README-unix
+less -e LICENSE
+echo $ac_n "Do you accept the terms of this license? (yes/no): $ac_c"
+read accept
+if [ "$accept" != "y" ] && [ "$accept" != "Y" ] && [ "$accept" != "yes" ] && [ "$accept" != "YES" ]; then
+    exit 1
+fi
+
+defaultprefix="/usr/local"
+
+echo $ac_n "Where would you like to install InfoPad? [$defaultprefix]: $ac_c"
+read prefix
+if [ "$prefix" = "" ]; then
+    prefix="$defaultprefix"
+fi
+
+mkdir -p $prefix/share/infopad
+cp -f infopad.jar $prefix/share/infopad/infopad.jar
+
+echo "#!/bin/sh" > infopad
+echo "jarloc=\"$prefix/share/infopad/infopad.jar\"" >> infopad
+echo "java -jar \$jarloc" >> infopad
+chmod 755 infopad
+
+mkdir -p $prefix/bin
+cp -f infopad $prefix/bin/infopad
+

File shar/sh-header

View file
+#!/bin/sh
+echo ""
+echo "InfoPad - starting installation... please wait"
+echo ""
+
+# create a temp directory to extract to.
+export WRKDIR=`mktemp -d /tmp/selfextract.XXXXXX`
+
+SKIP=`awk '/^__ARCHIVE_FOLLOWS__/ { print NR + 1; exit 0; }' $0`
+
+# Take the TGZ portion of this file and pipe it to tar.
+tail +$SKIP $0 | tar xz -C $WRKDIR
+
+# execute the installation script
+
+PREV=`pwd`
+cd $WRKDIR
+sh install.sh
+
+
+# delete the temp files
+cd $PREV
+rm -rf $WRKDIR
+
+exit 0
+
+__ARCHIVE_FOLLOWS__

File src/com/idolstarastronomer/infopad/AboutDialog.java

View file
 
     public AboutDialog(MainUI owner) {
 	this.owner = owner;
-	dialogPane = new JOptionPane("<html><p align=\"center\"><font size=\"+1\">InfoPad alpha-4</font><br>&copy; 2005<br>Christopher De Vries</html></p>",JOptionPane.INFORMATION_MESSAGE);
+	dialogPane = new JOptionPane("<html><p align=\"center\"><font size=\"+1\">InfoPad alpha-5</font><br>&copy; 2005<br>Christopher De Vries</html></p>",JOptionPane.INFORMATION_MESSAGE);
 	dialogPane.setIcon(owner.infoPadIcon);
     }