mirror of
https://github.com/vgough/encfs.git
synced 2025-01-20 12:48:35 +01:00
5f0806c5cc
git-vendor-name: easylogging git-vendor-dir: vendor/github.com/muflihun/easyloggingpp git-vendor-repository: https://github.com/muflihun/easyloggingpp git-vendor-ref: master
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
#include "joinerwidget.h"
|
|
#include "ui_joinerwidget.h"
|
|
#include <QTreeWidgetItem>
|
|
#include <QDebug>
|
|
#include "addsplittedfiledialog.h"
|
|
#include "joinercore.h"
|
|
#include "partprocessor.h"
|
|
#include "easylogging++.h"
|
|
|
|
JoinerWidget::JoinerWidget(QWidget *parent) :
|
|
QWidget(parent),
|
|
ui(new Ui::JoinerWidget) {
|
|
ui->setupUi(this);
|
|
QStringList headers;
|
|
headers << "Filename / Parts" << "Size" << "Status";
|
|
this->ui->treeFiles->setHeaderLabels(headers);
|
|
}
|
|
|
|
JoinerWidget::~JoinerWidget() {
|
|
delete ui;
|
|
}
|
|
|
|
void JoinerWidget::on_buttonAddParts_clicked() {
|
|
AddSplittedFileDialog addSplittedFileDialog(ui->treeFiles, this);
|
|
addSplittedFileDialog.exec();
|
|
}
|
|
|
|
void JoinerWidget::on_buttonUp_clicked() {
|
|
//TODO: implement this
|
|
//move up
|
|
}
|
|
|
|
void JoinerWidget::on_buttonDown_clicked() {
|
|
//TODO: implement this
|
|
//move down
|
|
}
|
|
|
|
void JoinerWidget::on_buttonStart_clicked() {
|
|
core = new JoinerCore(ui->treeFiles);
|
|
core->startJoining();
|
|
}
|
|
|
|
void JoinerWidget::started(PartProcessor* startedFile) {
|
|
//TODO: Have a pointer for current QTreeWidgetItem under progress
|
|
//to update UI
|
|
}
|
|
|
|
void JoinerWidget::finished(PartProcessor* finishedFile) {
|
|
|
|
}
|
|
|
|
void JoinerWidget::updated(PartProcessor* updatedFile) {
|
|
|
|
}
|