101 lines
2.5 KiB
C++
101 lines
2.5 KiB
C++
/**
|
|
* @file cusdr_radioTabWidget.h
|
|
* @brief Radio settings tab widget header file for cuSDR
|
|
* @author Hermann von Hasseln, DL3HVH
|
|
* @version 0.1
|
|
* @date 2012-09-29
|
|
*/
|
|
|
|
/*
|
|
*
|
|
* Copyright 2010 - 2012 Hermann von Hasseln, DL3HVH
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Library General Public License version 2 as
|
|
* published by the Free Software Foundation
|
|
*
|
|
* 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 Library General Public
|
|
* License along with this program; if not, write to the
|
|
* Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef _CUSDR_RADIO_TABWIDGET_H
|
|
#define _CUSDR_RADIO_TABWIDGET_H
|
|
|
|
//#include <QWidget>
|
|
//#include <QTabWidget>
|
|
//#include <QGroupBox>
|
|
//#include <QLineEdit>
|
|
|
|
#include "Util/cusdr_buttons.h"
|
|
#include "cusdr_settings.h"
|
|
#include "cusdr_radioWidget.h"
|
|
#include "cusdr_agcWidget.h"
|
|
#include "cusdr_transmitTabWidget.h"
|
|
|
|
|
|
class RadioTabWidget : public QTabWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
RadioTabWidget(QWidget *parent = 0);
|
|
~RadioTabWidget();
|
|
|
|
|
|
public slots:
|
|
QSize sizeHint() const;
|
|
QSize minimumSizeHint() const;
|
|
|
|
protected:
|
|
void closeEvent(QCloseEvent *event);
|
|
void showEvent(QShowEvent *event);
|
|
void enterEvent(QEvent *event);
|
|
void leaveEvent(QEvent *event);
|
|
void mouseMoveEvent(QMouseEvent *event);
|
|
void mousePressEvent(QMouseEvent *event);
|
|
void mouseReleaseEvent(QMouseEvent *event);
|
|
|
|
private:
|
|
Settings* set;
|
|
|
|
QSDR::_Error m_error;
|
|
QSDR::_ServerMode m_serverMode;
|
|
QSDR::_HWInterfaceMode m_hwInterface;
|
|
QSDR::_DataEngineState m_dataEngineState;
|
|
|
|
QString m_message;
|
|
|
|
RadioWidget *m_radioWidget;
|
|
AGCOptionsWidget *m_agcWidget;
|
|
TransmitTabWidget *m_transmitTabWidget;
|
|
|
|
int m_minimumWidgetWidth;
|
|
int m_minimumGroupBoxWidth;
|
|
|
|
void setupConnections();
|
|
|
|
private slots:
|
|
void systemStateChanged(
|
|
QObject *sender,
|
|
QSDR::_Error err,
|
|
QSDR::_HWInterfaceMode hwmode,
|
|
QSDR::_ServerMode mode,
|
|
QSDR::_DataEngineState state);
|
|
|
|
void setPennyPresence(bool value);
|
|
|
|
signals:
|
|
void showEvent(QObject *sender);
|
|
void closeEvent(QObject *sender);
|
|
void messageEvent(QString message);
|
|
};
|
|
|
|
#endif // _CUSDR_RADIO_TABWIDGET_H
|