-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzaudiofmtdialog.cpp
More file actions
76 lines (52 loc) · 2.09 KB
/
Copy pathzaudiofmtdialog.cpp
File metadata and controls
76 lines (52 loc) · 2.09 KB
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
#include "zaudiofmtdialog.h"
ZAudioFmtDialog::ZAudioFmtDialog()
{
this->setWindowTitle(tr("采样参数设置"));
this->m_llCodec=new QLabel(tr("编码器:"));
this->m_cbCodec=new QComboBox;
this->m_llSampleRate=new QLabel(tr("采样率:"));
this->m_cbSampleRate=new QComboBox;
this->m_llSampleSize=new QLabel(tr("数据大小:"));
this->m_cbSampleSize=new QComboBox;
this->m_llChannelCount=new QLabel(tr("通道数:"));
this->m_cbChannelCount=new QComboBox;
this->m_gLayout=new QGridLayout;
this->m_gLayout->addWidget(this->m_llCodec,0,0,1,1);
this->m_gLayout->addWidget(this->m_cbCodec,0,1,1,1);
this->m_gLayout->addWidget(this->m_llSampleRate,1,0,1,1);
this->m_gLayout->addWidget(this->m_cbSampleRate,1,1,1,1);
this->m_gLayout->addWidget(this->m_llSampleSize,2,0,1,1);
this->m_gLayout->addWidget(this->m_cbSampleSize,2,1,1,1);
this->m_gLayout->addWidget(this->m_llChannelCount,3,0,1,1);
this->m_gLayout->addWidget(this->m_cbChannelCount,3,1,1,1);
this->m_tbOkay=new QToolButton;
this->m_tbOkay->setText(tr("确定"));
this->m_tbCancel=new QToolButton;
this->m_tbCancel->setText(tr("取消"));
this->m_hLayout=new QHBoxLayout;
this->m_hLayout->addStretch(1);
this->m_hLayout->addWidget(this->m_tbOkay);
this->m_hLayout->addWidget(this->m_tbCancel);
this->m_vLayout=new QVBoxLayout;
this->m_vLayout->addLayout(this->m_gLayout);
this->m_vLayout->addLayout(this->m_hLayout);
this->setLayout(this->m_vLayout);
connect(this->m_tbOkay,SIGNAL(clicked(bool)),this,SLOT(accept()));
connect(this->m_tbCancel,SIGNAL(clicked(bool)),this,SLOT(reject()));
}
ZAudioFmtDialog::~ZAudioFmtDialog()
{
delete this->m_llCodec;
delete this->m_cbCodec;
delete this->m_llSampleRate;
delete this->m_cbSampleRate;
delete this->m_llSampleSize;
delete this->m_cbSampleSize;
delete this->m_llChannelCount;
delete this->m_cbChannelCount;
delete this->m_gLayout;
delete this->m_tbOkay;
delete this->m_tbCancel;
delete this->m_hLayout;
delete this->m_vLayout;
}