diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-12-02 17:03:29 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-12-02 17:03:29 +0100 |
commit | 652450629442677317fc45c3f5cfb8ab1cfac6f2 (patch) | |
tree | 80ebc746a43e74a7b2a8e600fd2101f2693ae855 /confui/mainwindow.cpp | |
parent | bb7ec2144fecd1c7a41d14cc42f144c9923d70dc (diff) |
qt gui starting point
Diffstat (limited to 'confui/mainwindow.cpp')
-rw-r--r-- | confui/mainwindow.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/confui/mainwindow.cpp b/confui/mainwindow.cpp index 93ca8d7..b6d952b 100644 --- a/confui/mainwindow.cpp +++ b/confui/mainwindow.cpp @@ -1,7 +1,27 @@ +#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->automations_widget, "automations"); + tab_bar_widget->addTab(this->node_overview_widget, "node overview"); + + setMenuBar(menu_bar); + setCentralWidget(tab_bar_widget); + setWindowTitle("confui"); } CDMainWindow::~CDMainWindow() { |