29 #include "itksys/SystemTools.hxx"
50 QVBoxLayout *mainLayout =
new QVBoxLayout();
51 QTabWidget *tab =
new QTabWidget();
54 QTextEdit *log =
new QTextEdit();
55 connect(
m_Model->
GetLogOutput(), SIGNAL(NewContentLog(QString)), log, SLOT(append(QString) ) );
56 tab->addTab(log,
"Logs");
59 tab->addTab(prog,
"Progress");
60 tab->addTab(
CreateDoc(),
"Documentation");
61 mainLayout->addWidget(tab);
63 m_Message =
new QLabel(
"<center><font color=\"#FF0000\">Select parameters</font></center>");
70 QHBoxLayout *footLayout =
new QHBoxLayout;
71 footLayout->addWidget(progressReport);
73 mainLayout->addLayout(footLayout);
75 QGroupBox *mainGroup =
new QGroupBox();
76 mainGroup->setLayout(mainLayout);
78 QVBoxLayout *finalLayout =
new QVBoxLayout();
79 finalLayout->addWidget(mainGroup);
82 this->setLayout(finalLayout);
87 m_Message->setText(
"<center><font color=\"#FF0000\">Running</font></center>");
93 m_Message->setText(
"<center><font color=\"#00FF00\">Ready to run</font></center>");
95 m_Message->setText(
"<center><font color=\"#FF0000\">Select parameters</font></center>");
100 QScrollArea *scrollArea =
new QScrollArea;
103 scrollArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
104 scrollArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
105 scrollArea->setWidgetResizable(
true);
114 QGroupBox *footerGroup =
new QGroupBox;
115 QHBoxLayout *footerLayout =
new QHBoxLayout;
117 footerGroup->setFixedHeight(40);
118 footerGroup->setContentsMargins(0, 0, 0, 0);
119 footerLayout->setContentsMargins(5, 5, 5, 5);
126 connect(
m_Model, SIGNAL(SetApplicationReady(
bool)),
m_ExecButton, SLOT(setEnabled(
bool)) );
134 footerLayout->addStretch();
138 footerGroup->setLayout(footerLayout);
145 QTextEdit *text =
new QTextEdit;
146 text->setReadOnly(
true);
148 QTextDocument * doc =
new QTextDocument();
150 std::string docContain;
153 doc->setHtml(docContain.c_str());
155 text->setDocument(doc);