sdrangelove/mainwindow.h

107 lines
3.8 KiB
C
Raw Normal View History

2012-05-28 21:02:45 +00:00
///////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2012 maintech GmbH, Otto-Hahn-Str. 15, 97204 Hoechberg, Germany //
// written by Christian Daniel //
// //
// 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 as version 3 of the License, or //
// //
// 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 V3 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 INCLUDE_MAINWINDOW_H
#define INCLUDE_MAINWINDOW_H
#include <QMainWindow>
#include <QTimer>
#include "settings.h"
#include "dsp/dspengine.h"
2012-10-29 20:42:52 +00:00
class QLabel;
2012-05-28 21:02:45 +00:00
class DSPEngine;
class Indicator;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget* parent = NULL);
~MainWindow();
private:
Ui::MainWindow *ui;
Settings m_settings;
DSPEngine m_dspEngine;
QTimer m_statusTimer;
DSPEngine::State m_lastEngineState;
2012-10-29 20:42:52 +00:00
QLabel* m_sampleRateWidget;
2012-05-28 21:02:45 +00:00
Indicator* m_engineIdle;
Indicator* m_engineRunning;
Indicator* m_engineError;
int m_sampleRate;
2012-10-29 20:42:52 +00:00
bool m_startOSDRUpdateAfterStop;
2012-05-28 21:02:45 +00:00
void createStatusBar();
void updateCenterFreqDisplay();
void updateSampleRate();
2012-05-28 21:02:45 +00:00
2012-11-03 14:56:25 +00:00
int e4kLNAGainToIdx(int gain) const;
int e4kIdxToLNAGain(int idx) const;
2012-05-28 21:02:45 +00:00
private slots:
void updateStatus();
2012-10-29 20:42:52 +00:00
void viewToolBoxClosed();
void viewToolBoxWaterfallUpward(bool checked);
2012-05-28 21:02:45 +00:00
void on_action_Start_triggered();
void on_action_Stop_triggered();
void on_fftWindow_currentIndexChanged(int index);
void on_iqSwap_toggled(bool checked);
void on_e4000MixerGain_currentIndexChanged(int index);
void on_e4000MixerEnh_currentIndexChanged(int index);
void on_e4000if1_currentIndexChanged(int index);
void on_e4000if2_currentIndexChanged(int index);
void on_e4000if3_currentIndexChanged(int index);
void on_e4000if4_currentIndexChanged(int index);
void on_e4000if5_currentIndexChanged(int index);
void on_e4000if6_currentIndexChanged(int index);
void on_centerFrequency_changed(quint64 value);
void on_action_Debug_triggered();
void on_dcOffset_toggled(bool checked);
void on_iqImbalance_toggled(bool checked);
2012-10-29 20:42:52 +00:00
void on_filterI1_valueChanged(int value);
void on_filterI2_valueChanged(int value);
void on_filterQ1_valueChanged(int value);
void on_filterQ2_valueChanged(int value);
void on_action_View_Waterfall_toggled(bool checked);
void on_action_View_Histogram_toggled(bool checked);
void on_action_View_LiveSpectrum_toggled(bool checked);
void on_action_View_Fullscreen_toggled(bool checked);
void on_actionOsmoSDR_Firmware_Upgrade_triggered();
2012-11-03 14:56:25 +00:00
void on_decimation_valueChanged(int value);
void on_fftSize_valueChanged(int value);
void on_e4000LNAGain_valueChanged(int value);
2012-11-03 21:13:21 +00:00
void on_waterfall_toggled(bool checked);
void on_histogram_toggled(bool checked);
void on_liveSpectrum_toggled(bool checked);
void on_refLevel_valueChanged(int value);
void on_levelRange_valueChanged(int value);
2012-05-28 21:02:45 +00:00
};
#endif // INCLUDE_MAINWINDOW_H