38 lines
654 B
C
38 lines
654 B
C
|
#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
|