MNE-CPP  beta 1.0
informationwindow.h
Go to the documentation of this file.
1 //=============================================================================================================
37 #ifndef INFORMATIONWINDOW_H
38 #define INFORMATIONWINDOW_H
39 
40 //*************************************************************************************************************
41 //=============================================================================================================
42 // INCLUDES
43 //=============================================================================================================
44 
45 #include "ui_informationwindow.h"
46 #include "../Utils/info.h"
47 
48 //*************************************************************************************************************
49 //=============================================================================================================
50 // QT INCLUDES
51 //=============================================================================================================
52 
53 #include <QDockWidget>
54 #include <QScrollBar>
55 
56 
57 //*************************************************************************************************************
58 //=============================================================================================================
59 // DEFINE NAMESPACE MNEBrowseRawQt
60 //=============================================================================================================
61 
62 namespace MNEBrowseRawQt
63 {
64 
65 //*************************************************************************************************************
66 //=============================================================================================================
67 // DEFINE FORWARD DECLARATIONS
68 //=============================================================================================================
69 
75 class InformationWindow : public QDockWidget
76 {
77  Q_OBJECT
78 
79 public:
80  //=========================================================================================================
86  InformationWindow(QWidget *parent = 0);
87 
88  //=========================================================================================================
94 
95  //=========================================================================================================
103  void writeToLog(const QString& logMsg, LogKind lgknd, LogLevel lglvl);
104 
105  //=========================================================================================================
111  void setLogLevel(LogLevel lvl);
112 
113 private:
114  Ui::InformationWindowWidget *ui;
116  //Log
117  QTextBrowser* m_pTextBrowser_Log;
118  LogLevel m_eLogLevelCurrent;
120 };
121 
122 } // NAMESPACE MNEBrowseRawQt
123 
124 #endif // INFORMATIONWINDOW_H
void writeToLog(const QString &logMsg, LogKind lgknd, LogLevel lglvl)
The InformationWindow class provides a dockable InformationWindow window.