Added FreeObserver() and all assorted code that goes with it.
[aesalon.git] / src / gui / ActiveSessionOverview.cpp
blob3765eda41b62d80c533cbc9c772a8156704b9a08
1 #include <iostream>
3 #include "ActiveSessionOverview.h"
4 #include "ActiveSessionOverview.moc"
6 namespace Aesalon {
7 namespace GUI {
9 ActiveSessionOverview::ActiveSessionOverview(Session *session, QWidget *parent) : session(session) {
10 info_form = new QFormLayout();
12 info_form->addRow(tr("Session name:"), new QLabel(session->get_session_name()));
13 info_form->addRow(tr("Executable path:"), new QLabel(session->get_executable_path()));
14 info_form->addRow(tr("Arguments:"), new QLabel(session->get_arguments()));
15 info_form->addRow(tr("Port:"), new QLabel(QString().setNum(session->get_port())));
16 /* Use an empty QLabel as a separator. */
17 info_form->addWidget(new QLabel());
18 status = new QLabel();
19 info_form->addRow(tr("Status:"), status);
21 this->setLayout(info_form);
24 void ActiveSessionOverview::update_status(QString new_status) {
25 status->setText(new_status);
28 } // namespace GUI
29 } // namespace Aesalon