-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlatitude_controller_widget.cpp_EXPIRED
More file actions
64 lines (50 loc) · 1.57 KB
/
latitude_controller_widget.cpp_EXPIRED
File metadata and controls
64 lines (50 loc) · 1.57 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
//#include "latitude_controller_widget.h"
//#include <QBoxLayout>
//#include <QLabel>
//#define DEFAULT_LATITUDE 0
//LatitudeSlider::LatitudeSlider(QWidget * parent) : QSlider(Qt::Vertical, parent)
//{
// setRange(-90,90);
// setValue(DEFAULT_LATITUDE);
//}
//LatitudeSlider::~LatitudeSlider()
//{
//}
////------------------------------------
//#define LATITUDE_CONTROLLER_HEIGHT 400
//#define LATITUDE_CONTROLLER_WIDTH 50
//LatitudeControllerWidget::LatitudeControllerWidget(QWidget * parent, Qt::WindowFlags f) : QWidget(parent, f),
// m_latitude_slider(new LatitudeSlider(this)), m_lbl(new QLabel(this))
//{
// setFixedSize(LATITUDE_CONTROLLER_WIDTH, LATITUDE_CONTROLLER_HEIGHT);
// init_layout();
// connect(m_latitude_slider, SIGNAL(valueChanged(int)), this, SLOT(refresh_label(int)));
//}
//LatitudeControllerWidget::~LatitudeControllerWidget()
//{
//}
//int LatitudeControllerWidget::getLatitude() const
//{
// return m_latitude_slider->value();
//}
//void LatitudeControllerWidget::init_layout()
//{
// QVBoxLayout * main_layout(new QVBoxLayout);
// // Slider
// {
// QHBoxLayout * layout(new QHBoxLayout);
// layout->addWidget(m_latitude_slider, 1, Qt::AlignCenter);
// main_layout->addLayout(layout,1);
// }
// // Label
// {
// QHBoxLayout * layout(new QHBoxLayout);
// layout->addWidget(m_lbl, 1, Qt::AlignCenter);
// main_layout->addLayout(layout,0);
// }
// setLayout(main_layout);
//}
//void LatitudeControllerWidget::refresh_label(int value)
//{
// m_lbl->setText(QString::number(value));
//}