-
Notifications
You must be signed in to change notification settings - Fork 0
/
addmangadialog.h
49 lines (41 loc) · 1.53 KB
/
addmangadialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef ADDMANGADIALOG_H
#define ADDMANGADIALOG_H
#include <QDialog>
#include <QLineEdit>
#include <QPushButton>
#include <QFormLayout>
#include <QVBoxLayout>
class AddMangaDialog : public QDialog {
Q_OBJECT
public:
AddMangaDialog(QWidget *parent = nullptr);
QLineEdit* getIsbnEdit() const { return isbnEdit; }
QLineEdit* getTitleEdit() const { return titleEdit; }
QLineEdit* getAuthorEdit() const { return authorEdit; }
QLineEdit* getStartYearEdit() const { return startYearEdit; }
QLineEdit* getEndYearEdit() const { return endYearEdit; }
QLineEdit* getGenreEdit() const { return genreEdit; }
QLineEdit* getMagazineEdit() const { return magazineEdit; }
QLineEdit* getPublisherEdit() const { return publisherEdit; }
QLineEdit* getEditionYearEdit() const { return editionYearEdit; }
QLineEdit* getVolumesCountEdit() const { return volumesCountEdit; }
QLineEdit* getAcquiredVolumesCountEdit() const { return acquiredVolumesCountEdit; }
QLineEdit* getAcquiredVolumesListEdit() const { return acquiredVolumesListEdit; }
private slots:
void onSaveButtonClicked();
private:
QLineEdit *isbnEdit;
QLineEdit *titleEdit;
QLineEdit *authorEdit;
QLineEdit *startYearEdit;
QLineEdit *endYearEdit;
QLineEdit *genreEdit;
QLineEdit *magazineEdit;
QLineEdit *publisherEdit;
QLineEdit *editionYearEdit;
QLineEdit *volumesCountEdit;
QLineEdit *acquiredVolumesCountEdit;
QLineEdit *acquiredVolumesListEdit;
QPushButton *saveButton;
};
#endif // ADDMANGADIALOG_H