-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhafficheraudio.cpp
46 lines (35 loc) · 1.59 KB
/
hafficheraudio.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
#include "hafficheraudio.h"
WindowAfficherAudio::WindowAfficherAudio(audio* au, QWidget* parent):
Audio(au), QWidget(parent) {
setFixedSize(300, 350);
frame = new QVBoxLayout;
titre_title = new QHBoxLayout;
titre_label = new QLabel("Titre: ");
titre_text = new QLineEdit(Audio->getTitle());
desc_title = new QHBoxLayout;
desc_label = new QLabel("Texte:");
desc_text = new QTextEdit(Audio->getDesc());
image_title = new QHBoxLayout;
image_label = new QLabel("Chemin image:");
image_text = new QLineEdit(Audio->getimg_URL());
audio_title = new QHBoxLayout;
audio_label = new QLabel("Chemin audio:");
audio_text = new QLineEdit(Audio->getAudio_URL());
button_bar = new QHBoxLayout;
button_save = new QPushButton("Sauvegarder");
//QObject::connect(button_save, SIGNAL(clicked()), this, SLOT(save()));
button_close = new QPushButton("Fermer");
QObject::connect(button_close, SIGNAL(clicked()), this, SLOT(close()));
titre_title->addWidget(titre_label); titre_title->addWidget(titre_text);
desc_title->addWidget(desc_label); desc_title->addWidget(desc_text);
image_title->addWidget(image_label); image_title->addWidget(image_text);
audio_title->addWidget(audio_label); audio_title->addWidget(audio_text);
button_bar->addWidget(button_save); button_bar->addWidget(button_close);
frame->addLayout(titre_title);
frame->addLayout(desc_title);
frame->addLayout(image_title);
frame->addLayout(audio_title);
frame->addLayout(button_bar);
//frame->addWidget(button_close);
this->setLayout(frame);
}