logic-analyzer: Small fixes.
authorRobert Schuster <thebohemian@gmx.net>
Mon, 11 Feb 2008 23:14:34 +0000 (23:14 +0000)
committerRobert Schuster <thebohemian@gmx.net>
Mon, 11 Feb 2008 23:14:34 +0000 (23:14 +0000)
  - added java2-runtime RDEPENDS
  - added classpath-awt RDEPENDS
  - added patch to make capture dialog scrollable (for small screens)

packages/logic-analyzer/files/scrolling-capture-dialog.patch [new file with mode: 0644]
packages/logic-analyzer/logic-analyzer_0.8.bb

diff --git a/packages/logic-analyzer/files/scrolling-capture-dialog.patch b/packages/logic-analyzer/files/scrolling-capture-dialog.patch
new file mode 100644 (file)
index 0000000..91e9ce0
--- /dev/null
@@ -0,0 +1,21 @@
+Index: LogicAnalyzer/client/org/sump/analyzer/DeviceController.java
+===================================================================
+--- LogicAnalyzer.orig/client/org/sump/analyzer/DeviceController.java  2008-02-11 23:34:01.000000000 +0100
++++ LogicAnalyzer/client/org/sump/analyzer/DeviceController.java       2008-02-11 23:35:17.000000000 +0100
+@@ -43,6 +43,7 @@
+ import javax.swing.JProgressBar;
+ import javax.swing.JTabbedPane;
+ import javax.swing.JTextField;
++import javax.swing.JScrollPane;
+ import javax.swing.Timer;
+ import org.sump.util.Properties;
+@@ -312,7 +313,7 @@
+               // if no valid dialog exists, create one
+               if (dialog == null) {
+                       dialog = new JDialog(frame, "Capture", true);
+-                      dialog.getContentPane().add(this);
++                      dialog.getContentPane().add(new JScrollPane(this));
+                       dialog.setResizable(false);
+                       dialog.setSize(this.getPreferredSize());
+                       // dialog.pack();
index f66752a..863a7a3 100644 (file)
@@ -2,15 +2,18 @@ DESCRIPTION = "A Java-based logical analyzer for home use."
 LICENSE = "GPL"
 HOMEPAGE = "http://sump.org/projects/analyzer/"
 
+PR = "r1"
+
 inherit java
 
 DEPENDS = "rxtx"
-RDEPENDS = "librxtx-java"
+RDEPENDS = "java2-runtime classpath-awt librxtx-java"
 
 SRC_URI = "\
     http://sump.org/projects/analyzer/downloads/la-src-${PV}.tar.bz2 \
     file://cp-run-fix.patch;patch=1 \
     file://client-makefile.patch;patch=1 \
+    file://scrolling-capture-dialog.patch;patch=1 \
     "
 
 S = "${WORKDIR}/LogicAnalyzer"