FemaLocalSoftware/mainwindow.h
LopataPC fe614284de background task done
need to do:
1)style blocks
2)connect api
3)some test
2024-11-25 00:46:29 +03:00

50 lines
1.0 KiB
C++

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <Qlabel>
#include <QPixmap>
#include <QVBoxLayout>
#include <map>
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE
struct TabImageData {
QLabel *label;
QPixmap pixmap;
QSize originalSize;
};
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private:
Ui::MainWindow *ui;
private:
QLabel* imageLabel;
QPixmap pixmap;
std::map<QWidget *, TabImageData> tabImageLabels;
private:
void ResizeEvent(QResizeEvent *event);
void SetupTabs();
void SetupSensorTab(QWidget *tab, QVBoxLayout *mainLayout);
void SetupIncidentTab(QWidget *tab, QVBoxLayout *mainLayout);
void SetupStatisticsTab(QWidget *tab, QVBoxLayout *mainLayout);
void SetupJournalTab(QWidget *tab, QVBoxLayout *mainLayout);
void SetupSettingsTab(QWidget *tab, QVBoxLayout *mainLayout);
};
#endif // MAINWINDOW_H