mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
42 lines
822 B
C++
42 lines
822 B
C++
#ifndef __ADD_LIBRARY_DIALOG_H
|
|
#define __ADD_LIBRARY_DIALOG_H
|
|
|
|
#include "themable.h"
|
|
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QPushButton>
|
|
#include <QThread>
|
|
|
|
class AddLibraryDialog : public QDialog, protected Themable
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
AddLibraryDialog(QWidget *parent = nullptr);
|
|
|
|
protected:
|
|
void applyTheme(const Theme &theme) override;
|
|
|
|
private:
|
|
QLabel *imgLabel;
|
|
QLabel *nameLabel;
|
|
QLabel *textLabel;
|
|
QLineEdit *path;
|
|
QLineEdit *nameEdit;
|
|
QPushButton *find;
|
|
QPushButton *accept;
|
|
QPushButton *cancel;
|
|
void setupUI();
|
|
public slots:
|
|
void add();
|
|
void findPath();
|
|
void close();
|
|
void nameSetted(const QString &text);
|
|
void pathSetted(const QString &text);
|
|
signals:
|
|
void addLibrary(QString target, QString name);
|
|
};
|
|
|
|
#endif
|