DSRemote/wave_dialog.h

107 wiersze
2.0 KiB
C
Czysty Zwykły widok Historia

2016-12-28 10:48:47 +00:00
/*
***************************************************************************
*
* Author: Teunis van Beelen
*
2023-02-08 20:22:28 +00:00
* Copyright (C) 2016 - 2023 Teunis van Beelen
2016-12-28 10:48:47 +00:00
*
2019-05-28 06:36:25 +00:00
* Email: teuniz@protonmail.com
2016-12-28 10:48:47 +00:00
*
***************************************************************************
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*
***************************************************************************
*/
#ifndef WAVE_DIALOG_H
#define WAVE_DIALOG_H
2023-02-08 20:22:28 +00:00
#include "qt_headers.h"
2016-12-28 10:48:47 +00:00
#include "mainwindow.h"
#include "global.h"
#include "wave_view.h"
class UI_Mainwindow;
class WaveCurve;
class UI_wave_window : public QDialog
{
Q_OBJECT
public:
UI_wave_window(struct device_settings *, short *wbuf[MAX_CHNS], QWidget *parent=0);
~UI_wave_window();
2016-12-28 14:06:11 +00:00
void set_wavslider(void);
2016-12-28 10:48:47 +00:00
private:
struct device_settings *devparms;
UI_Mainwindow *mainwindow;
2017-01-06 16:34:49 +00:00
QMenuBar *menubar;
2017-01-07 18:19:37 +00:00
QMenu *savemenu,
*helpmenu;
2017-01-06 16:34:49 +00:00
2016-12-28 10:48:47 +00:00
QGridLayout *g_layout;
WaveCurve *wavcurve;
QSlider *wavslider;
2016-12-28 14:06:11 +00:00
QAction *former_page_act,
*shift_page_left_act,
*shift_page_right_act,
*next_page_act,
*zoom_in_act,
*zoom_out_act,
2016-12-29 09:56:58 +00:00
*center_position_act,
2016-12-28 14:06:11 +00:00
*center_trigger_act;
2016-12-28 10:48:47 +00:00
private slots:
void wavslider_value_changed(int);
2016-12-28 14:06:11 +00:00
void former_page();
void shift_page_left();
void shift_page_right();
void next_page();
void zoom_in();
void zoom_out();
2016-12-29 09:56:58 +00:00
void center_position();
2016-12-28 14:06:11 +00:00
void center_trigger();
2017-01-07 18:19:37 +00:00
void save_wi_buffer_to_edf();
2016-12-28 10:48:47 +00:00
};
#endif