[svn] Add presentation page. immsview
authorfabien
Fri, 06 Feb 2004 01:10:49 -0500
branchimmsview
changeset 21 8ccee783880a
parent 20 7af7e8196170
child 22 7441fc82f74d
[svn] Add presentation page.
Makefile
immsview
index.html.in
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Fri Feb 06 01:10:49 2004 -0500
@@ -0,0 +1,12 @@
+REMOTE_DIR=o:public_html/oss/immsview
+VERSION=$(shell python -c 'from imp import load_source; \
+		print load_source(".","immsview")._version_' \
+		| sed -e 's;\$$Id$$;\1;')
+
+index.html: index.html.in immsview
+	perl -p -e 's;\@IMMSVIEW_VERSION\@;$(VERSION);g' $< > $@
+
+update: immsview index.html
+	rsync -zp $^ $(REMOTE_DIR)/
+
+.PHONY: index.html
\ No newline at end of file
--- a/immsview	Thu Feb 05 12:14:33 2004 -0500
+++ b/immsview	Fri Feb 06 01:10:49 2004 -0500
@@ -20,9 +20,12 @@
 # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 # Boston, MA 02111-1307, USA.
 
-_immsview_version = "$Id: immsview 1702 2004-02-05 17:14:33Z fabien $"
+_version_ = "$Id: immsview 1703 2004-02-06 06:10:49Z fabien $"
 
 # $Log$
+# Revision 1.22  2004/02/06 06:10:49  fabien
+# Add presentation page.
+#
 # Revision 1.21  2004/02/05 17:14:33  fabien
 # Fix curtime until refresh.
 #
@@ -443,24 +446,34 @@
 		if gtk.main_iteration_do(gtk.FALSE):
 			break;
 
-root = gtk.Window()
-root.set_title(_("IMMSView"))
-root.connect('destroy', gtk.mainquit)
-vbox = gtk.VBox(spacing = 3)
-root.add(vbox)
-vbox.show()
-model = IMMSStore(IMMSDb())
-xmms_control = XMMSControl()
-iview = IMMSView(model,xmms_control)
-scroll = gtk.ScrolledWindow()
-scroll.add(iview)
-vbox.pack_end(scroll)
-iview.show()
-scroll.show()
-toolbar = IMMSToolbar(iview, xmms_control)
-vbox.pack_start(toolbar, expand = gtk.FALSE)
-toolbar.show()
-root.show()
-toolbar.do_refresh(None)
-toolbar.do_get_current(None)
-gtk.main()
+class Application:
+    def __init__(self):
+        self.xmms = XMMSControl()
+        self.db = IMMSDb()
+        self.model = IMMSStore(self.db)
+    def main(self):
+        create_widgets()
+        gtk.main_loop()
+    def create_widgets(self):
+        root = gtk.Window()
+        root.set_title(_("IMMSView"))
+        root.connect('destroy', gtk.mainquit)
+        vbox = gtk.VBox(spacing = 3)
+        root.add(vbox)
+        vbox.show()
+        iview = IMMSView(self.model,self.xmms)
+        scroll = gtk.ScrolledWindow()
+        scroll.add(iview)
+        vbox.pack_end(scroll)
+        iview.show()
+        scroll.show()
+        toolbar = IMMSToolbar(iview, self.xmms)
+        vbox.pack_start(toolbar, expand = gtk.FALSE)
+        toolbar.show()
+        root.show()
+        toolbar.do_refresh(None)
+        toolbar.do_get_current(None)
+
+if __name__ == '__main__':
+    app = Application()
+    app.main()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/index.html.in	Fri Feb 06 01:10:49 2004 -0500
@@ -0,0 +1,50 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+  <head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+    <title>IMMSView</title>
+  </head>
+  
+  <body>
+    <h1>IMMSView</h1>
+
+    <p>Current version is: <tt>@IMMSVIEW_VERSION@</tt></p>
+
+    <p>IMMSView is aim to became a playlist editor replacement for
+      XMMS, using the IMMS plugin.  Currently, it simply able to
+      display the IMMS database, and have also some functionnality to
+      control XMMS.  But I hope to make it a plugin for XMMS once I
+      have a better idea of the exact interface I want.</p>
+
+    <p>IMMSView is distributed under the GPL, written in Python, with
+      a PyGTK2 interface, and used both the PySQLite and Python-XMMS
+      module. You can download it at this address: <a
+      href="immsview">http://www.tzone.org/~fabien/oss/immsview/immsview</a>.
+      Current release is near daily, but I make no promise about
+      it.</p>
+
+    <hr>
+    <address><a href="mailto:fabien@tzone.org?subject=immsview">Fabien NiƱoles &lt;fabien@tzone.org&gt;</a>
+</address>
+
+    <!-- hhmts start -->Last modified: Fri Feb  6 00:48:27 EST 2004 <!-- hhmts end -->
+  </body>
+</html>
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-namecase-general:t
+sgml-general-insert-case:lower
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.sgml/html401.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->