aboutsummaryrefslogtreecommitdiff
path: root/confui/mainwindow.cpp
blob: 27bdb6c720718b234c2cff41e39c40151ff8fa6c (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_automations.h"
#include "ui_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 CDAutomationsWidget(this);
	this->node_overview_widget = new CDNodeOverviewWidget(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;
}