MNE-CPP  beta 1.0
startupwidget.cpp
Go to the documentation of this file.
1 //=============================================================================================================
36 //*************************************************************************************************************
37 //=============================================================================================================
38 // INCLUDES
39 //=============================================================================================================
40 
41 #include "startupwidget.h"
42 
43 
44 //*************************************************************************************************************
45 //=============================================================================================================
46 // QT INCLUDES
47 //=============================================================================================================
48 
49 #include <QLabel>
50 #include <QVBoxLayout>
51 
52 #include <QDebug>
53 
54 
55 //*************************************************************************************************************
56 //=============================================================================================================
57 // USED NAMESPACES
58 //=============================================================================================================
59 
60 using namespace MNEX;
61 
62 
63 //*************************************************************************************************************
64 //=============================================================================================================
65 // DEFINE MEMBER METHODS
66 //=============================================================================================================
67 
69 : QWidget(parent)
70 {
71 
72  QWidget *topFiller = new QWidget;
73  topFiller->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
74 
75  m_pLabel_Info = new QLabel(tr("MNE-X - Real-Time Acquisition & Processing"), this);
76  m_pLabel_Info->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken);
77  m_pLabel_Info->setAlignment(Qt::AlignCenter);
78 
79  QWidget *bottomFiller = new QWidget;
80  bottomFiller->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
81 
82  QVBoxLayout *layout = new QVBoxLayout;
83  layout->setMargin(5);
84  layout->addWidget(topFiller);
85  layout->addWidget(m_pLabel_Info);
86  layout->addWidget(bottomFiller);
87 
88  this->setLayout(layout);
89 }
90 
91 
92 //*************************************************************************************************************
93 
95 {
96 
97 }
Contains declaration of StartUpWidget class.
Definition: arrow.h:75
StartUpWidget(QWidget *parent=0)