ui
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "outputdialog.h"
|
||||
#include "settings.h"
|
||||
#include <iostream>
|
||||
#include <QFileDialog>
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent)
|
||||
: QMainWindow(parent), ui(new Ui::MainWindow) {
|
||||
@@ -35,14 +36,16 @@ void MainWindow::setupStoresList() {
|
||||
}
|
||||
|
||||
void MainWindow::on_checkType_currentIndexChanged(int index) {
|
||||
switch (index) {
|
||||
case 0:
|
||||
ui->checkInfoText->setVisible(true);
|
||||
break;
|
||||
case 1:
|
||||
ui->checkInfoText->setVisible(false);
|
||||
break;
|
||||
}
|
||||
|
||||
ui->inputHolder->setCurrentIndex(index);
|
||||
// switch (index) {
|
||||
// case 0:
|
||||
// ui->checkInfoText->setVisible(true);
|
||||
// break;
|
||||
// case 1:
|
||||
// ui->checkInfoText->setVisible(false);
|
||||
// break;
|
||||
// }
|
||||
}
|
||||
|
||||
void MainWindow::on_parseButton_clicked() {
|
||||
@@ -72,3 +75,12 @@ void MainWindow::on_storeType_currentIndexChanged(int index) {
|
||||
std::string module = parser.search_modules()[index];
|
||||
parser.set_module(module);
|
||||
}
|
||||
|
||||
void MainWindow::on_chooseImageButton_clicked() {
|
||||
QString filename = QFileDialog::getOpenFileName();
|
||||
std::cout << filename.toStdString() << std::endl;
|
||||
|
||||
// this->options.set_path(filename.toStdString());
|
||||
ui->pathLabel->setText("Path to export: " + filename);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user