2024-08-18 13:57:57 +03:00
|
|
|
#include "mainwindow.h"
|
|
|
|
#include "./ui_mainwindow.h"
|
2024-08-19 02:46:45 +03:00
|
|
|
<<<<<<< HEAD
|
2024-08-19 02:35:16 +03:00
|
|
|
#include "goods/goods.h"
|
|
|
|
#include "check/check.h"
|
|
|
|
|
|
|
|
#include <iostream>
|
2024-08-18 13:57:57 +03:00
|
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent)
|
2024-08-19 02:35:16 +03:00
|
|
|
: QMainWindow(parent), ui(new Ui::MainWindow) {
|
2024-08-18 13:57:57 +03:00
|
|
|
ui->setupUi(this);
|
2024-08-19 02:35:16 +03:00
|
|
|
this->setupStoresList();
|
|
|
|
}
|
|
|
|
|
|
|
|
MainWindow::~MainWindow() { delete ui; }
|
|
|
|
|
|
|
|
void MainWindow::setupStoresList() {
|
|
|
|
// Make file format that is a regeeex which parse check, load these files
|
|
|
|
// here
|
|
|
|
parser = *(new Parser());
|
|
|
|
for (auto module : parser.search_modules()) {
|
|
|
|
std::cout << module << std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void MainWindow::on_checkType_currentIndexChanged(int index) {
|
|
|
|
switch (index) {
|
|
|
|
case 0:
|
|
|
|
ui->checkInfo->setVisible(true);
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
ui->checkInfo->setVisible(false);
|
|
|
|
break;
|
|
|
|
}
|
2024-08-18 13:57:57 +03:00
|
|
|
}
|
|
|
|
|
2024-08-19 02:35:16 +03:00
|
|
|
void MainWindow::on_parseButton_clicked() {
|
|
|
|
std::cout << ui->checkContent->toPlainText().toStdString() << std::endl;
|
2024-08-19 02:46:45 +03:00
|
|
|
=======
|
|
|
|
|
|
|
|
MainWindow::MainWindow(QWidget *parent)
|
|
|
|
: QMainWindow(parent)
|
|
|
|
, ui(new Ui::MainWindow)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
>>>>>>> f886b4b (Initial commit)
|
2024-08-18 13:57:57 +03:00
|
|
|
}
|