You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
1.4 KiB

#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
this->setWindowTitle("DeltaPro XML Generator");
this->setFixedSize(500,260);
this->setGeometry(QStyle::alignedRect(
Qt::LeftToRight,
Qt::AlignCenter,
this->size(),
qApp->desktop()->availableGeometry()
));
// if (QCoreApplication::arguments().length() >=2) {
// QString argvstr = QCoreApplication::arguments().at(1);
// filename = argvstr.section("/",-1,-1);
// ui->FileLabel->setText(filename);
// doEncrypt(QString(filename));
// }
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on_BtnExit_clicked()
{
QApplication::quit();
}
void MainWindow::on_actionExit_triggered()
{
QApplication::quit();
}
void MainWindow::on_BtnBrowse_clicked()
{
QString filepath = QFileDialog::getOpenFileName(this, "Open a file for encryption", QString(), "*");
filename = filepath.section("/",-1,-1);
ui->FileLabel->setText(filename);
}
void MainWindow::on_actionAbout_triggered()
{
About *AboutWindow = new About(this);
AboutWindow->show();
}
int MainWindow::ReadExcel() {
using namespace libxl;
Book* book = xlCreateBook();
return 1;
}