/*************************************************************************** |FILENAME| - description ------------------- begin : |DATE| copyright : (C) |YEAR| by |AUTHOR| email : |EMAIL| ***************************************************************************/ /*************************************************************************** * * * 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. * * The PSK part is based on WinPSK 1.0 by Moe Wheatley, AE4JY * ***************************************************************************/ #ifndef CSQUELCH_H #define CSQUELCH_H #include #include #include class QRadioButton; class QLabel; class mySlider : public QSlider { Q_OBJECT public: mySlider(QWidget *parent, const char *name); virtual ~mySlider(); void setSquelchLevel(int); int getThreshold(); private: int SquelchLevel; protected: /** Painter for Squelch */ void paintEvent(QPaintEvent *); }; class CSquelch : public QGroupBox { Q_OBJECT public: CSquelch( QWidget* parent = 0, const char* name = 0 ); ~CSquelch(); void setSquelchLevel(int); int getThreshold(); bool getSquelchState(); void setSquelchState(bool); void setThreshold(int); public slots: protected: void resizeEvent( QResizeEvent * ); protected slots: virtual void languageChange(); private: void calculateSizeofComponents(); mySlider* Squelch; QRadioButton* Activate; QLabel *ActivateText; }; #endif // CSQUELCH_H