mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-25 07:40:03 +02:00

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@171 af1100a4-978c-4157-bff7-07162d2ba061
87 lines
1.2 KiB
C++
87 lines
1.2 KiB
C++
/*
|
|
* qTabMessages.h
|
|
*
|
|
* Created on: Jun 26, 2012
|
|
* Author: l_maliakal_d
|
|
*/
|
|
|
|
#ifndef QTABMESSAGES_H_
|
|
#define QTABMESSAGES_H_
|
|
|
|
|
|
#include "qDefs.h"
|
|
|
|
|
|
|
|
/** Project Class Headers */
|
|
class qDetectorMain;
|
|
/** Qt Include Headers */
|
|
#include <QWidget>
|
|
#include <QTextEdit>
|
|
#include <QEvent>
|
|
#include <QPushButton>
|
|
#include "qDebugStream.h"
|
|
|
|
/**
|
|
*@short sets up the Messages parameters
|
|
*/
|
|
class qTabMessages:public QWidget{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
/** \short The constructor
|
|
* @param det the qDetectorMain class reference
|
|
*/
|
|
qTabMessages(qDetectorMain* m);
|
|
|
|
/** Destructor
|
|
*/
|
|
~qTabMessages();
|
|
|
|
|
|
private:
|
|
/** The qDetectorMain object */
|
|
qDetectorMain *myMainTab;
|
|
|
|
/** Log of executed commands */
|
|
QTextEdit *dispLog;
|
|
|
|
/** To save the log to file */
|
|
QPushButton *btnSave;
|
|
|
|
/** To clear the log to file */
|
|
QPushButton *btnClear;
|
|
|
|
/** This class creates the log */
|
|
qDebugStream *qout;
|
|
qDebugStream *qerr;
|
|
|
|
string errMsg;
|
|
|
|
/** methods */
|
|
/** Sets up the widget */
|
|
void SetupWidgetWindow();
|
|
|
|
/** Sets up all the slots and signals */
|
|
void Initialization();
|
|
|
|
private slots:
|
|
/** Stream log to textedit in GUI */
|
|
void customEvent(QEvent *e);
|
|
|
|
/** Save Log to File*/
|
|
void SaveLog();
|
|
|
|
/** Clear Log to File*/
|
|
void ClearLog();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* QTABMESSAGES_H_ */
|