Initial: added urpo files!
[urpo] / src / debugconsole.cpp
diff --git a/src/debugconsole.cpp b/src/debugconsole.cpp
new file mode 100644 (file)
index 0000000..10c3f5d
--- /dev/null
@@ -0,0 +1,37 @@
+/**************************************************************************
+
+    URPO
+
+    Unix Remote Printing Operation
+    Copyright (c) Arto Hyvättinen 2010
+
+    This file is part of URPO.
+
+    URPO is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    URPO is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+
+**************************************************************************/
+
+#include "debugconsole.h"
+
+DebugConsole::DebugConsole(QWidget *parent) :
+    QTextBrowser(parent)
+{
+    // Set window
+    setWindowTitle("URPO Debug");
+    append( tr("This window shows information for resolving error situations\n"));
+}
+
+void DebugConsole::debugMessage(QString message)
+{
+    // Show everything sent by this slot.
+    append( message );
+}