mirea-projects/Third term/Industrial programming technologies/10_Tables/tables.h
2024-09-27 08:31:03 +03:00

38 lines
654 B
C++
Executable File

#ifndef TABLES_H
#define TABLES_H
#include <QMainWindow>
#include <QMap>
QT_BEGIN_NAMESPACE
namespace Ui {
class Tables;
}
QT_END_NAMESPACE
class Tables : public QMainWindow
{
Q_OBJECT
public:
Tables(QWidget *parent = nullptr);
~Tables();
private slots:
void setRowsClicked();
void setRandomDataClicked();
void minClicked();
void avgClicked();
void maxClicked();
void tableCellChanged(int row, int collumn);
void searchClicked();
void sortClicked();
void loadDataFromJson();
void saveDataToJson();
private:
Ui::Tables *ui;
QMap<int, QMap<QString, QString>> dataMap;
};
#endif // TABLES_H