-
Notifications
You must be signed in to change notification settings - Fork 0
/
librarianui.cpp
85 lines (75 loc) · 1.6 KB
/
librarianui.cpp
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#include "librarianui.h"
#include "ui_librarianui.h"
#include"addmemberui.h"
#include"addwriterui.h"
#include"addbook.h"
#include"showmembers.h"
#include"borrowboow.h"
#include"returnbook.h"
#include"pay.h"
#include"showborrowedbook.h"
#include"showavailablebook.h"
LibrarianUi::LibrarianUi(QWidget *parent) :
QWidget(parent),
ui(new Ui::LibrarianUi)
{
ui->setupUi(this);
}
LibrarianUi::~LibrarianUi()
{
delete ui;
}
void LibrarianUi::on_addmember_clicked()
{
this->hide();
AddMemberUi * amu = new AddMemberUi;
amu->show();
}
void LibrarianUi::on_addnewwirter_clicked()
{
this->hide();
AddWriterUi * awu = new AddWriterUi;
awu->show();
}
void LibrarianUi::on_addnewbook_clicked()
{
this->hide();
AddBook * abu = new AddBook;
abu->show();
}
void LibrarianUi::on_commandLinkButton_7_clicked()
{
this->hide();
ShowMembers * sm = new ShowMembers;
sm->show();
}
void LibrarianUi::on_commandLinkButton_6_clicked()
{
this->hide();
BorrowBoow * sm = new BorrowBoow;
sm->show();
}
void LibrarianUi::on_commandLinkButton_5_clicked()
{
this->hide();
ReturnBook * sm = new ReturnBook;
sm->show();
}
void LibrarianUi::on_commandLinkButton_clicked()
{
this->hide();
Pay * sm = new Pay;
sm->show();
}
void LibrarianUi::on_commandLinkButton_3_clicked()
{
this->hide();
ShowBorrowedBook * sm = new ShowBorrowedBook;
sm->show();
}
void LibrarianUi::on_commandLinkButton_8_clicked()
{
this->hide();
ShowAvailableBook * sm = new ShowAvailableBook;
sm->show();
}