Files
yacreader/YACReaderLibrary/import_comics_info_dialog.h
2026-02-19 18:06:32 +01:00

60 lines
1.1 KiB
C++

#ifndef IMPORT_COMICS_INFO_DIALOG_H
#define IMPORT_COMICS_INFO_DIALOG_H
#include "themable.h"
#include <QDialog>
#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QProgressBar>
#include <QThread>
class Importer : public QThread
{
public:
QString source;
QString dest;
private:
void run() override;
};
class ImportComicsInfoDialog : public QDialog, protected Themable
{
Q_OBJECT
public:
ImportComicsInfoDialog(QWidget *parent = nullptr);
~ImportComicsInfoDialog();
QString dest;
protected:
void applyTheme(const Theme &theme) override;
private:
QLabel *imgLabel;
QLabel *nameLabel;
QLabel *textLabel;
QLabel *destLabel;
QLineEdit *path;
QLineEdit *destPath;
QLineEdit *nameEdit;
QPushButton *find;
QPushButton *findDest;
QPushButton *accept;
QPushButton *cancel;
QLabel *progress;
void setupUI();
int progressCount;
QProgressBar *progressBar;
public slots:
void findPath();
void import();
void close();
};
#endif // IMPORT_COMICS_INFO_DIALOG_H