summaryrefslogtreecommitdiff
path: root/cad/plugins/NanoVision-1/src/LogHandlerWidget.h
blob: b3acef1ea7e0085b08fcc5794d450d69129a3a18 (plain)
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
33
34
35
36
37
// Copyright 2008 Nanorex, Inc.  See LICENSE file for details.

#ifndef LOGHANDLERWIDGET_H
#define LOGHANDLERWIDGET_H

#include <QWidget>
#include <QTextEdit>
#include <QHBoxLayout>
#include <QMessageBox>

#include "Nanorex/Utility/NXLogger.h"
using namespace Nanorex;

#include "ui_LogHandlerWidget.h"


/* CLASS: LogHandlerWidget */
class LogHandlerWidget : public QWidget, public NXLogHandler,
						 private Ui_LogHandlerWidget {
	Q_OBJECT
	
	public:
		LogHandlerWidget(NXLogLevel logLevel, QWidget* parent = 0);
		~LogHandlerWidget() { }
			
		void publish(LogRecord logRecord);
		
		QSize sizeHint() const;
	
	signals:
		void raiseWidget();
		
	private:
		//QMutex mutex;
};

#endif