SeriesInfoDialog.cpp 983 Bytes
Newer Older
Hurstel's avatar
Hurstel committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
#include "SeriesInfoDialog.h"

#include "ProtocolTrainingSeries.h"
#include "ProtocolModulableGapSeries.h"
#include "ProtocolConstantSeries.h"
#include "ProtocolStairCaseSeries.h"

void SeriesInfoDialog::setUI(){
    this->setObjectName("SeriesInfoDialog");
    this->resize(600,500);

    m_ui.v_layout= new QVBoxLayout(this);
    m_ui.v_layout->setObjectName("VLayout");

    m_ui.text_edit= new QTextEdit(this);
    m_ui.text_edit->setTextInteractionFlags(Qt::TextBrowserInteraction);
    m_ui.v_layout->addWidget(m_ui.text_edit);

    m_ui.h_layout= new QHBoxLayout(this);
    m_ui.h_layout->setObjectName("HLayout");

    m_ui.h_spacer= new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
    m_ui.h_layout->addItem(m_ui.h_spacer);

    m_ui.ok_button= new QPushButton("OK", this);
    m_ui.h_layout->addWidget(m_ui.ok_button);

    connect(m_ui.ok_button, SIGNAL(clicked()),
            this, SLOT(accept()));

    m_ui.v_layout->addLayout(m_ui.h_layout);
}