1
0
forked from GitHub/gf-core

Fixes to the GWT UI to be able to run it on other machines (still some hardcoded paths in the compilation).

This commit is contained in:
bjorn
2008-09-15 13:49:55 +00:00
parent c2da4129ed
commit b9ec6b089f
2 changed files with 15 additions and 2 deletions

View File

@@ -7,6 +7,9 @@ gf.fcgi:
cabal build
cp dist/build/gf.fcgi/gf.fcgi .
gwt:
gwt-client/Translate-compile
food:
gfc --make --name=grammar ../../examples/tutorial/food/Food{Eng,Ita}.gf
@@ -41,5 +44,16 @@ lang:
gfc $(GFCFLAGS) --make --parser=on --name=LangSwe ../../lib/resource/swedish/LangSwe.gf
gfc $(GFCFLAGS) --name=grammar Lang???.pgf
installball: gf.fcgi gwt
rm -rf gf-server
rm -f gf-server-installball.tar.gz
mkdir gf-server
cp -pr gwt-client/www/se.chalmers.cs.gf.gwt_translate.Translate/* gf-server
mv gf-server/Translate.html gf-server/index.html
cp grammar.pgf gf-server
cp gf.fcgi gf-server
cp README gf-server
tar -zcf gf-server-installball.tar.gz gf-server
clean:
cabal clean

View File

@@ -24,7 +24,7 @@ import java.util.Set;
public class Translate implements EntryPoint {
private static final String gfBaseURL = "http://localhost/~bringert/gf-server/gf.fcgi";
private static final String gfBaseURL = "gf.fcgi";
private GF gf;
@@ -70,7 +70,6 @@ public class Translate implements EntryPoint {
oracle = new CompletionOracle(gf);
suggest = new SuggestBox(oracle);
suggest.setText("this cheese is warm");
suggest.addKeyboardListener(new KeyboardListenerAdapter() {
public void onKeyUp (Widget sender, char keyCode, int modifiers) {
if (keyCode == KEY_ENTER) {