Files
yacreader/YACReaderLibrary/import_comics_info_dialog.h
luisangelsm 3709b6e737
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled
Build / Publish YACReader10 Pre-release Builds (push) Has been cancelled
Format includes using clang-format
2026-03-13 18:21:38 +01:00

59 lines
1.1 KiB
C++

#ifndef IMPORT_COMICS_INFO_DIALOG_H
#define IMPORT_COMICS_INFO_DIALOG_H
#include "themable.h"
#include <QDialog>
#include <QLabel>
#include <QLineEdit>
#include <QProgressBar>
#include <QPushButton>
#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