summaryrefslogtreecommitdiffstats
path: root/src/fbgui/console.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fbgui/console.h')
-rw-r--r--src/fbgui/console.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/fbgui/console.h b/src/fbgui/console.h
new file mode 100644
index 0000000..cb6dd34
--- /dev/null
+++ b/src/fbgui/console.h
@@ -0,0 +1,32 @@
+/*
+ * console.h
+ *
+ * Created on: Jan 31, 2012
+ * Author: joe
+ */
+
+#ifndef CONSOLE_H_
+#define CONSOLE_H_
+
+#include "fbgui.h"
+#include <QtGui>
+
+extern QString logFilePath;
+
+class console : public QTextEdit
+{
+ Q_OBJECT
+
+public:
+ console(QMainWindow* parent = 0);
+ virtual ~console();
+
+private:
+ QFile* _logFile;
+ QTextStream* _logFileIn;
+private slots:
+ void toggle();
+ void refresh(const QString& fileName);
+};
+
+#endif /* CONSOLE_H_ */