From 34a25856a5d095733f718f8de819966b299cf9f6 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 10 Sep 2010 10:42:01 +0000 Subject: [PATCH] - added navigation to next/prev search page using arrow keys (left/right) - better information text for YaCy GUI application git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7134 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacysearch.html | 20 +++++++++++++++++++- htroot/yacysearch.java | 4 ++-- source/net/yacy/gui/InfoPage.java | 10 +++++++++- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/htroot/yacysearch.html b/htroot/yacysearch.html index 51dbb4d22..71047868e 100644 --- a/htroot/yacysearch.html +++ b/htroot/yacysearch.html @@ -18,7 +18,25 @@ :: #(/display)# - + diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java index 85da95e2e..8f29244b8 100644 --- a/htroot/yacysearch.java +++ b/htroot/yacysearch.java @@ -617,7 +617,7 @@ public class yacysearch { if (thispage == 0) { resnav.append("\"arrowleft\" "); } else { - resnav.append("\"arrowleft\" "); } @@ -642,7 +642,7 @@ public class yacysearch { if (thispage >= numberofpages) { resnav.append("\"arrowright\""); } else { - resnav.append("\"arrowright\""); } diff --git a/source/net/yacy/gui/InfoPage.java b/source/net/yacy/gui/InfoPage.java index 5299ff561..79f923f35 100644 --- a/source/net/yacy/gui/InfoPage.java +++ b/source/net/yacy/gui/InfoPage.java @@ -45,6 +45,7 @@ import javax.swing.text.JTextComponent; import net.yacy.gui.framework.Browser; import net.yacy.gui.framework.Layout; import net.yacy.gui.framework.Switchboard; +import net.yacy.kelondro.util.OS; public class InfoPage implements Layout { @@ -109,7 +110,14 @@ public class InfoPage implements Layout { // make the scroll pane that contains the search result JComponent mainText = new JEditorPane(); mainText.setPreferredSize(new java.awt.Dimension(480, 590)); - ((JEditorPane) mainText).setText("This is a very early test for a YaCy search gui.\nYou may enter a search term and press enter."); + String infotext = + "This is a very early test for a YaCy GUI.\n\n" + + "The YaCy administration interface is in your browser\n" + + "just open http://localhost:8080\n\n" + + "You may also enter a search term and press enter,\n" + + "then the query will be opened in your browser\n"; + if (OS.isMacArchitecture) infotext += "\nThe application data on Mac is stored at ~Library/YaCy/\n"; + ((JEditorPane) mainText).setText(infotext); //page.add(new splashCanvas()); //SplashScreen splash = SplashScreen.getSplashScreen();