MNE-CPP  beta 1.0
rtsssrunwidget.cpp
1 //=============================================================================================================
36 //*************************************************************************************************************
37 //=============================================================================================================
38 // INCLUDES
39 //=============================================================================================================
40 
41 #include "rtsssrunwidget.h"
42 #include "rtsssaboutwidget.h"
43 
44 #include "../rtsss.h"
45 
46 
47 //*************************************************************************************************************
48 //=============================================================================================================
49 // USED NAMESPACES
50 //=============================================================================================================
51 
52 using namespace RtSssPlugin;
53 
54 
55 //*************************************************************************************************************
56 //=============================================================================================================
57 // DEFINE MEMBER METHODS
58 //=============================================================================================================
59 
60 RtSssRunWidget::RtSssRunWidget(RtSss* toolbox, QWidget *parent)
61 : QWidget(parent)
62 , m_pRtSss(toolbox)
63 {
64  ui.setupUi(this);
65 
66  connect(ui.m_qPushButton_About, SIGNAL(released()), this, SLOT(showAboutDialog()));
67 }
68 
69 
70 //*************************************************************************************************************
71 
73 {
74 
75 }
76 
77 
78 //*************************************************************************************************************
79 
80 void RtSssRunWidget::writeToLog(QString p_sLogMsg)
81 {
82  ui.m_qTextBrowser_Information->insertHtml(p_sLogMsg);
83 
84  ui.m_qTextBrowser_Information->insertPlainText("\n"); // new line
85  //scroll down to the newest entry
86  QTextCursor c = ui.m_qTextBrowser_Information->textCursor();
87  c.movePosition(QTextCursor::End);
88  ui.m_qTextBrowser_Information->setTextCursor(c);
89 }
90 
91 
92 //*************************************************************************************************************
93 
94 void RtSssRunWidget::showAboutDialog()
95 {
96  RtSssAboutWidget aboutDialog(this);
97  aboutDialog.exec();
98 }
void writeToLog(QString p_sLogMsg)
Contains the declaration of the RtSssAboutWidget class.
The RtSss class provides a rtsss algorithm structure.
Definition: rtsss.h:102
The RtSssAboutWidget class provides the about dialog for the RtSss.
Contains the declaration of the RtSssRunWidget class.
RtSssRunWidget(RtSss *toolbox, QWidget *parent=0)