YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yscopewindow.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#include "yscopewindow.h"
7#include "ui_yscopewindow.h"
8
9YscopeWindow::YscopeWindow(QWidget *parent) :
10 QDialog(parent),
11 ui(new Ui::YscopeWindow)
12{
13 ui->setupUi(this);
14 index = 0;
15 connect(ui->cancelBtn,SIGNAL(clicked()),this,SLOT(onCancel()));
16 connect(ui->inspectBtn,SIGNAL(clicked()),this,SLOT(onInspect()));
17 connect(ui->spinBox,SIGNAL(valueChanged(int)),this,SLOT(onIndexChanged(int)));
18}
19
21{
22 delete ui;
23}
24
25void YscopeWindow::onCancel()
26{
27 reject();
28}
29
30void YscopeWindow::onInspect()
31{
32 accept();
33}
34
35void YscopeWindow::onIndexChanged(int val)
36{
37 index = val;
38}
39
41{
42 return index;
43}
int SIGNAL(int pid, int signum)
YscopeWindow(QWidget *parent=0)
Definition aboutdlg.h:11