src/database/db_recipe.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 249
3c28dc8dd51d
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	_DB_RECIPE_H
#define _DB_RECIPE_H

#include <QDebug>
#include <QMessageBox>
#include <QUuid>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QTranslator>
#include <QSqlQuery>
#include <QSqlError>
#include <QSqlRecord>
#include <QObject>
#include <math.h>


/**
 * @namespace db_recipe
 *
 * @brief Global database recipe functions..
 */
namespace DB_recipe {

    bool load(Recipe *reci, QDialog *dialog, int recno);
    bool save(Recipe *reci, QDialog *dialog);
    bool dele(QDialog *dialog, int recno);
}

#endif

mercurial