#include #include #include #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; }