summaryrefslogtreecommitdiffstats
path: root/src/fbgui/console.h
blob: bc6ec5049e6c0687cd763a8a05cdb1708911969a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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_ */