1 #ifndef __ADD_LIBRARY_DIALOG_H
2 #define __ADD_LIBRARY_DIALOG_H
3 
4 #include <QDialog>
5 #include <QLabel>
6 #include <QLineEdit>
7 #include <QPushButton>
8 #include <QThread>
9 
10 class AddLibraryDialog : public QDialog
11 {
12     Q_OBJECT
13 public:
14     AddLibraryDialog(QWidget *parent = nullptr);
15 
16 private:
17     QLabel *nameLabel;
18     QLabel *textLabel;
19     QLineEdit *path;
20     QLineEdit *nameEdit;
21     QPushButton *find;
22     QPushButton *accept;
23     QPushButton *cancel;
24     void setupUI();
25 public slots:
26     void add();
27     void findPath();
28     void close();
29     void nameSetted(const QString &text);
30     void pathSetted(const QString &text);
31 signals:
32     void addLibrary(QString target, QString name);
33 };
34 
35 #endif
36