blob: 2d0626833abdaf873df83151d47e3d49194f27a6 (
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
31
32
33
|
#include <QMenuBar>
#include <QGridLayout>
#include <QTabWidget>
#include "mainwindow.h"
#include "ui_tab_automations.h"
#include "ui_tab_node_overview.h"
CDMeshConnector* g_cd_mesh_connector = nullptr;
CDMainWindow::CDMainWindow(QWidget *parent) : QMainWindow(parent) {
g_cd_mesh_connector = new CDMeshConnector();
this->mesh_connector = g_cd_mesh_connector;
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;
}
|