-
Notifications
You must be signed in to change notification settings - Fork 3
/
EventEditor.cpp
63 lines (53 loc) · 1.31 KB
/
EventEditor.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
#include <QDialogButtonBox>
#include <QBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QSpinBox>
#include <QPushButton>
#include "qtimemage.h"
#include "RateEditor.h"
#include "Event.h"
#include "EventEditor.h"
EventEditor::
EventEditor(int64_t event_id, QWidget *parent)
/*************************************************************************************
* Construct the dialog.
*/
: QWidget(parent)
{
setWindowTitle("Event Editor");
QVBoxLayout *vbl = new QVBoxLayout(this);
_tw= new QTreeWidget(this);
vbl->addWidget(_tw);
#if 0
{ /**************** 1st row **********************/
QHBoxLayout *hbl = new QHBoxLayout;
vbl->addLayout(hbl);
{ /* Title */
QLabel *lbl = new QLabel("Title:", this);
hbl->addWidget(lbl);
_title_le = new QLineEdit(this);
hbl->addWidget(_title_le);
QString title;
src->title(&title);
_title_le->setText(title);
}
hbl->addStretch();
{ /* Rate */
QLabel *lbl = new QLabel("Rate:", this);
hbl->addWidget(lbl);
int64_t rate= 0;
src->rate(&rate);
_rate_re = new RateEditor(rate, this);
hbl->addWidget(_rate_re);
}
}
#endif
}
EventEditor::
~EventEditor()
/*************************************************************************************
* Destruct the dialog.
*/
{
}