add new icon for v0.97
BIN
DSView/icons/add_dis.png
Executable file
|
After Width: | Height: | Size: 399 B |
BIN
DSView/icons/arrow-loop.png
Executable file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
DSView/icons/del_dis.png
Executable file
|
After Width: | Height: | Size: 785 B |
11
DSView/icons/logo.svg
Executable file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="256pt" height="256pt" viewBox="0 0 256 256" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill="#fefefe" d=" M 0.00 0.00 L 56.60 0.00 C 40.80 1.65 25.70 9.35 15.34 21.41 C 6.87 30.97 1.57 43.16 0.00 55.81 L 0.00 0.00 Z" />
|
||||
<path fill="#1185e5" d=" M 56.60 0.00 L 199.56 0.00 C 211.49 1.39 223.17 5.87 232.53 13.47 C 245.40 23.52 253.88 38.88 256.00 55.03 L 256.00 59.75 C 246.92 44.56 235.18 29.93 218.89 22.15 C 207.31 16.63 193.56 15.92 181.57 20.55 C 168.19 25.49 157.52 35.74 149.07 46.95 C 130.45 71.90 120.91 102.02 112.47 131.60 C 106.52 151.99 98.91 172.21 86.86 189.85 C 80.68 198.41 73.35 207.32 62.85 210.49 C 54.74 212.91 46.62 208.51 40.66 203.30 C 27.83 191.53 19.81 175.66 13.16 159.82 C 7.57 147.35 4.30 134.06 0.00 121.15 L 0.00 55.81 C 1.57 43.16 6.87 30.97 15.34 21.41 C 25.70 9.35 40.80 1.65 56.60 0.00 Z" />
|
||||
<path fill="#fefefe" d=" M 199.56 0.00 L 256.00 0.00 L 256.00 55.03 C 253.88 38.88 245.40 23.52 232.53 13.47 C 223.17 5.87 211.49 1.39 199.56 0.00 Z" />
|
||||
<path fill="#fefefe" d=" M 181.57 20.55 C 193.56 15.92 207.31 16.63 218.89 22.15 C 235.18 29.93 246.92 44.56 256.00 59.75 L 256.00 134.53 C 248.91 111.26 241.48 87.58 227.75 67.23 C 221.49 58.65 214.38 49.63 203.96 46.08 C 197.49 43.74 190.42 46.17 184.99 49.88 C 176.43 56.07 170.05 64.70 164.67 73.68 C 158.93 83.12 154.55 93.31 150.60 103.61 C 144.34 120.03 140.44 137.22 134.67 153.81 C 128.34 172.75 120.10 191.19 108.52 207.54 C 99.57 219.91 87.97 231.30 73.24 236.31 C 58.65 241.43 41.95 238.36 29.36 229.64 C 17.06 221.07 7.44 209.08 0.00 196.16 L 0.00 121.15 C 4.30 134.06 7.57 147.35 13.16 159.82 C 19.81 175.66 27.83 191.53 40.66 203.30 C 46.62 208.51 54.74 212.91 62.85 210.49 C 73.35 207.32 80.68 198.41 86.86 189.85 C 98.91 172.21 106.52 151.99 112.47 131.60 C 120.91 102.02 130.45 71.90 149.07 46.95 C 157.52 35.74 168.19 25.49 181.57 20.55 Z" />
|
||||
<path fill="#1185e5" d=" M 184.99 49.88 C 190.42 46.17 197.49 43.74 203.96 46.08 C 214.38 49.63 221.49 58.65 227.75 67.23 C 241.48 87.58 248.91 111.26 256.00 134.53 L 256.00 201.15 C 254.22 215.68 247.14 229.46 236.45 239.45 C 226.90 248.39 214.54 254.29 201.56 256.00 L 54.62 256.00 C 39.95 254.08 26.10 246.79 16.13 235.88 C 7.21 225.95 1.41 213.25 0.00 199.96 L 0.00 196.16 C 7.44 209.08 17.06 221.07 29.36 229.64 C 41.95 238.36 58.65 241.43 73.24 236.31 C 87.97 231.30 99.57 219.91 108.52 207.54 C 120.10 191.19 128.34 172.75 134.67 153.81 C 140.44 137.22 144.34 120.03 150.60 103.61 C 154.55 93.31 158.93 83.12 164.67 73.68 C 170.05 64.70 176.43 56.07 184.99 49.88 Z" />
|
||||
<path fill="#fefefe" d=" M 0.00 199.96 C 1.41 213.25 7.21 225.95 16.13 235.88 C 26.10 246.79 39.95 254.08 54.62 256.00 L 0.00 256.00 L 0.00 199.96 Z" />
|
||||
<path fill="#fefefe" d=" M 236.45 239.45 C 247.14 229.46 254.22 215.68 256.00 201.15 L 256.00 256.00 L 201.56 256.00 C 214.54 254.29 226.90 248.39 236.45 239.45 Z" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
BIN
DSView/icons/logo_128.png
Executable file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
DSView/icons/logo_16.png
Executable file
|
After Width: | Height: | Size: 763 B |
BIN
DSView/icons/logo_256.png
Executable file
|
After Width: | Height: | Size: 16 KiB |
BIN
DSView/icons/logo_32.png
Executable file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
DSView/icons/logo_48.png
Executable file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
DSView/icons/logo_64.png
Executable file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
DSView/icons/moder.png
Executable file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
DSView/icons/moder_dis.png
Executable file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
DSView/icons/modes.png
Executable file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
DSView/icons/modes_dis.png
Executable file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
DSView/icons/nav.png
Executable file
|
After Width: | Height: | Size: 660 B |
BIN
DSView/icons/oneloop.png
Executable file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
DSView/icons/repeat.png
Executable file
|
After Width: | Height: | Size: 1.1 KiB |
75
DSView/pv/dialogs/interval.cpp
Executable file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* This file is part of the DSView project.
|
||||
* DSView is based on PulseView.
|
||||
*
|
||||
* Copyright (C) 2016 DreamSourceLab <support@dreamsourcelab.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include "interval.h"
|
||||
|
||||
#include <QGridLayout>
|
||||
|
||||
namespace pv {
|
||||
namespace dialogs {
|
||||
|
||||
Interval::Interval(SigSession &session, QWidget *parent) :
|
||||
_session(session),
|
||||
DSDialog(parent),
|
||||
_button_box(QDialogButtonBox::Ok,
|
||||
Qt::Horizontal, this)
|
||||
{
|
||||
setMinimumWidth(300);
|
||||
_interval_label = new QLabel(tr("Interval(s): "), this);
|
||||
_interval_spinBox = new QSpinBox(this);
|
||||
_interval_spinBox->setRange(1, 10);
|
||||
_interval_spinBox->setButtonSymbols(QAbstractSpinBox::NoButtons);
|
||||
_interval_slider = new QSlider(Qt::Horizontal, this);
|
||||
_interval_slider->setRange(1, 10);
|
||||
connect(_interval_slider, SIGNAL(valueChanged(int)), _interval_spinBox, SLOT(setValue(int)));
|
||||
connect(_interval_spinBox, SIGNAL(valueChanged(int)), _interval_slider, SLOT(setValue(int)));
|
||||
|
||||
_interval_slider->setValue(_session.get_repeat_intvl());
|
||||
|
||||
QGridLayout *glayout = new QGridLayout(this);
|
||||
glayout->addWidget(_interval_label, 0, 0);
|
||||
glayout->addWidget(_interval_spinBox, 0, 1);
|
||||
glayout->addWidget(_interval_slider, 1, 0, 1, 3);
|
||||
glayout->addWidget(&_button_box, 2, 2);
|
||||
|
||||
layout()->addLayout(glayout);
|
||||
setTitle(tr("Repetitive Interval"));
|
||||
|
||||
connect(&_button_box, SIGNAL(accepted()), this, SLOT(accept()));
|
||||
}
|
||||
|
||||
void Interval::accept()
|
||||
{
|
||||
using namespace Qt;
|
||||
_session.set_repeat_intvl(_interval_slider->value());
|
||||
QDialog::accept();
|
||||
}
|
||||
|
||||
void Interval::reject()
|
||||
{
|
||||
using namespace Qt;
|
||||
|
||||
QDialog::reject();
|
||||
}
|
||||
|
||||
|
||||
} // namespace dialogs
|
||||
} // namespace pv
|
||||
62
DSView/pv/dialogs/interval.h
Executable file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* This file is part of the DSView project.
|
||||
* DSView is based on PulseView.
|
||||
*
|
||||
* Copyright (C) 2016 DreamSourceLab <support@dreamsourcelab.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
|
||||
#ifndef DSVIEW_PV_INTERVAL_H
|
||||
#define DSVIEW_PV_INTERVAL_H
|
||||
|
||||
#include <QLabel>
|
||||
#include <QSpinBox>
|
||||
#include <QSlider>
|
||||
#include <QDialogButtonBox>
|
||||
|
||||
#include "../sigsession.h"
|
||||
#include "../toolbars/titlebar.h"
|
||||
#include "dsdialog.h"
|
||||
|
||||
namespace pv {
|
||||
namespace dialogs {
|
||||
|
||||
class Interval : public DSDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Interval(SigSession &session, QWidget *parent);
|
||||
|
||||
protected:
|
||||
void accept();
|
||||
void reject();
|
||||
|
||||
private:
|
||||
SigSession &_session;
|
||||
|
||||
QLabel *_interval_label;
|
||||
QSpinBox *_interval_spinBox;
|
||||
QSlider *_interval_slider;
|
||||
|
||||
QDialogButtonBox _button_box;
|
||||
};
|
||||
|
||||
} // namespace dialogs
|
||||
} // namespace pv
|
||||
|
||||
#endif // DSVIEW_PV_INTERVAL_H
|
||||