aboutsummaryrefslogtreecommitdiff
path: root/confui/mainwindow.h
blob: 398ed7f7f8a4968efbcd502f29737f3f264fe4f9 (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
#pragma once

#include <QMainWindow>
#include <QtSerialPort/QSerialPort>

#include <QDebug>

#include "mesh_connector.h"

class CDAutomationsTabWidget;
class CDNodeOverviewTabWidget;

class CDMainWindow : public QMainWindow {
	Q_OBJECT
private:
	QMenuBar* menu_bar = nullptr;
	CDAutomationsTabWidget* automations_tab = nullptr;
	CDNodeOverviewTabWidget* node_overview_tab = nullptr;

public:
	CDMeshConnector *mesh_connector = nullptr;
	
	CDMainWindow(QWidget *parent = nullptr);
	~CDMainWindow();
	virtual void update();
	virtual void menu_refresh();
	virtual void menu_add_automation();
};