src/MonFermenters.h

Thu, 30 Jun 2022 21:05:30 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 30 Jun 2022 21:05:30 +0200
changeset 323
d053ffbbf3e9
parent 312
251b9aaae916
permissions
-rw-r--r--

Started with change and signal functions. Implemented mode change for test. The MainWindow webSocket is now global so the Detail screens can send websocket messages.

#ifndef _MONFERMENTERS_H
#define _MONFERMENTERS_H

#include <QDialog>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QTableWidget>

namespace Ui {
class MonFermenters;
}

class MonFermenters : public QDialog
{
    Q_OBJECT

public:
    explicit MonFermenters(QWidget *parent = nullptr);
    ~MonFermenters();

signals:
    void setStatus(QString);
    void updateFermenter(QString);

private slots:
    void on_editButton_clicked();
    void refreshTable(void);

public slots:
    void refreshFermenters(QString);

private:
    QGridLayout *gridLayout;
    QTableWidget *tableFermenters;
    QGroupBox *groupBox;
    QHBoxLayout *horizontalLayout;
    QPushButton *quitButton;

    void edit(int recno);
};

#endif

mercurial