src/MonNodes.h

Sat, 21 Jan 2023 14:27:10 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 21 Jan 2023 14:27:10 +0100
changeset 468
b21da6f583be
parent 346
792058058c2f
permissions
-rw-r--r--

The images tab now looks complete. Made the left side (thumbnails) a bit smaller. The right side of the screen now shows the current image and all data that belongs to that. After a new image is added, reload the images. Implemented delete image.

#ifndef _MONNODES_H
#define _MONNODES_H

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

namespace Ui {
class MonNodes;
}

class MonNodes : public QDialog
{
    Q_OBJECT

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

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

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

public slots:
    void refreshNodes(QString);

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

    void edit(int recno);
};

#endif

mercurial