summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fbbrowser.ui19
-rw-r--r--src/fbgui.qrc5
-rw-r--r--src/html/errorPage.html32
-rwxr-xr-xsrc/testApp.sh27
4 files changed, 83 insertions, 0 deletions
diff --git a/src/fbbrowser.ui b/src/fbbrowser.ui
new file mode 100644
index 0000000..a02b1ab
--- /dev/null
+++ b/src/fbbrowser.ui
@@ -0,0 +1,19 @@
+<ui version="4.0" >
+ <class>fbbrowserClass</class>
+ <widget class="QWidget" name="fbbrowserClass" >
+ <property name="geometry" >
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>400</width>
+ <height>300</height>
+ </rect>
+ </property>
+ <property name="windowTitle" >
+ <string>fbbrowser</string>
+ </property>
+ </widget>
+ <layoutdefault spacing="6" margin="11" />
+ <resources/>
+ <connections/>
+</ui>
diff --git a/src/fbgui.qrc b/src/fbgui.qrc
new file mode 100644
index 0000000..da051a4
--- /dev/null
+++ b/src/fbgui.qrc
@@ -0,0 +1,5 @@
+<!DOCTYPE RCC><RCC version="1.0">
+ <qresource>
+ <file>html/errorPage.html</file>
+ </qresource>
+ </RCC>
diff --git a/src/html/errorPage.html b/src/html/errorPage.html
new file mode 100644
index 0000000..271d9fe
--- /dev/null
+++ b/src/html/errorPage.html
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+
+<script type="text/javascript">
+function quitProgramm(){
+webkitTest.signalQuitAll();
+}
+
+</script>
+
+</head>
+<body>
+<h1>ERROR</h1>
+
+<p>
+No Internet Connection or Server is down.
+
+
+Please contact your Administrator.
+</p>
+
+<form name="formular">
+ <p>
+ <input type="button" name="quitProgramm_Button" value="quit programm"
+ onclick="quitProgramm()">
+ </p>
+</form>
+
+</body>
+</html>
diff --git a/src/testApp.sh b/src/testApp.sh
new file mode 100755
index 0000000..ccd7cd6
--- /dev/null
+++ b/src/testApp.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# This script now needs to have the URL to load as an argument.
+if [ $# = 0 ]; then
+ echo "No URL passed, exiting..."
+ exit
+fi
+
+script_path="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"
+
+# to get the path only - not the script name - add
+working_path=`dirname "$script_path"`
+
+# Start QT's virtual framebuffer
+/usr/local/Trolltech/Qt-4.7.1/bin/qvfb -width 800 -height 600 &
+# Wait for it to load (needed?)
+sleep 1
+# Start the fbbrowser app.
+# This requires the fbgui git repository to be in the user's home directory.
+$working_path/fbgui -qws $1
+# Check if fbbrowser is not running, if so kill the qvfb.
+if [ $(ps aux | grep -v grep | grep -c fbgui) -eq 1 ]
+then
+ echo "fbgui is still running ..."
+else
+ echo "fbgui stopped running, killing qvfb ..."
+ killall qvfb
+fi