blob: ca78603f09cfadf45b5115fbb9927dabf676f539 (
plain)
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
|
#include <QMenuBar>
#include <QGridLayout>
#include <QTabWidget>
#include "mainwindow.h"
#include "ui_tab_automations.h"
#include "ui_tab_node_overview.h"
CDMainWindow::CDMainWindow(QWidget *parent) : QMainWindow(parent) {
this->mesh_connector = new CDMeshConnector();
QMenuBar* menu_bar = new QMenuBar(this);
menu_bar->addMenu("ayo");
QTabWidget* tab_bar_widget = new QTabWidget(this);
this->automations_widget = new CDAutomationsTabWidget(this);
this->node_overview_widget = new CDNodeOverviewTabWidget(this);
tab_bar_widget->addTab(this->node_overview_widget, "node overview");
tab_bar_widget->addTab(this->automations_widget, "automations");
setMenuBar(menu_bar);
setCentralWidget(tab_bar_widget);
setWindowTitle("confui");
}
CDMainWindow::~CDMainWindow() {
delete this->mesh_connector;
}
|