MNE-CPP
beta 0.1
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
applications
mne_x_libs
xDisp
textwidget.cpp
Go to the documentation of this file.
1
//=============================================================================================================
36
//*************************************************************************************************************
37
//=============================================================================================================
38
// INCLUDES
39
//=============================================================================================================
40
41
#include "
textwidget.h
"
42
#include <
xMeas/Measurement/text.h
>
43
44
45
//*************************************************************************************************************
46
//=============================================================================================================
47
// USED NAMESPACES
48
//=============================================================================================================
49
50
using namespace
XDISPLIB;
51
using namespace
XMEASLIB;
52
53
54
//*************************************************************************************************************
55
//=============================================================================================================
56
// DEFINE MEMBER METHODS
57
//=============================================================================================================
58
59
TextWidget::TextWidget
(QSharedPointer<Text> pText, QWidget *parent)
60
:
MeasurementWidget
(parent)
61
, m_pText(pText)
62
{
63
ui.setupUi(
this
);
64
}
65
66
67
//*************************************************************************************************************
68
69
TextWidget::~TextWidget
()
70
{
71
72
}
73
74
75
//*************************************************************************************************************
76
77
void
TextWidget::update
(
Subject
*)
78
{
79
ui.m_qLabel_Text->setText(m_pText->getText());
80
}
81
82
83
//*************************************************************************************************************
84
85
void
TextWidget::init
()
86
{
87
ui.m_qLabel_Caption->setText(m_pText->getName());
88
}
XDISPLIB::TextWidget::update
virtual void update(Subject *pSubject)
Definition:
textwidget.cpp:77
XDISPLIB::MeasurementWidget
The MeasurementWidget class is the base class of all measurement widgets.
Definition:
measurementwidget.h:98
text.h
Contains the declaration of the Text class.
XDISPLIB::TextWidget::init
virtual void init()
Definition:
textwidget.cpp:85
XDISPLIB::TextWidget::TextWidget
TextWidget(QSharedPointer< Text > pText, QWidget *parent=0)
Definition:
textwidget.cpp:59
textwidget.h
Contains the declaration of the TextWidget class.
Subject
The Subject class provides the base class of every subject of the observer design pattern...
Definition:
observerpattern.h:99
XDISPLIB::TextWidget::~TextWidget
~TextWidget()
Definition:
textwidget.cpp:69
Generated on Mon Jun 9 2014 15:58:06 for MNE-CPP by
1.8.7