MNE-CPP  beta 0.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
70 {
71 
72 }
73 
74 
75 //*************************************************************************************************************
76 
78 {
79  ui.m_qLabel_Text->setText(m_pText->getText());
80 }
81 
82 
83 //*************************************************************************************************************
84 
86 {
87  ui.m_qLabel_Caption->setText(m_pText->getName());
88 }
virtual void update(Subject *pSubject)
Definition: textwidget.cpp:77
The MeasurementWidget class is the base class of all measurement widgets.
Contains the declaration of the Text class.
virtual void init()
Definition: textwidget.cpp:85
TextWidget(QSharedPointer< Text > pText, QWidget *parent=0)
Definition: textwidget.cpp:59
Contains the declaration of the TextWidget class.
The Subject class provides the base class of every subject of the observer design pattern...