-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScopeWindow.h
More file actions
44 lines (36 loc) · 1.18 KB
/
ScopeWindow.h
File metadata and controls
44 lines (36 loc) · 1.18 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
#ifndef SSCOPE_SCOPEWINDOW_H
#define SSCOPE_SCOPEWINDOW_H
#include <QWidget>
#include <QSignalMapper>
#include <QPushButton>
#include <QCheckBox>
#include <QGridLayout>
#include <QComboBox>
#include <QSpinBox>
#include "ScopeWidget.h"
class ScopeWindow : public QWidget
{
Q_OBJECT
public:
ScopeWindow(const char* sourcename);
public slots:
void channelEnableChanged(int ch);
void channelScaleChanged(int ch);
void channelOffsetChanged(int ch);
void runPauseButton();
void timeScaleChanged();
private:
void makeChannelCfg(QGridLayout* l, int ch, QSignalMapper* enableMapper, QSignalMapper *scaleMapper, QSignalMapper* offsetMapper);
void makeTimeCfg(QGridLayout* l, int col);
static const int U_PER_DIV_CHOICES[];
static const int U_PER_DIV_DEFAULT, U_PER_DIV_WIDTH;
static const int T_PER_DIV_CHOICES[];
static const int T_PER_DIV_DEFAULT, T_PER_DIV_WIDTH;
ScopeWidget *fScopeWidget;
QCheckBox* fEnableWidgets[ScopeWidget::N_CHANNELS];
QComboBox* fScaleWidgets[ScopeWidget::N_CHANNELS];
QSpinBox* fOffsetWidgets[ScopeWidget::N_CHANNELS];
QPushButton* fRunPauseButton;
QComboBox* fTimeScaleWidget;
};
#endif