~ubuntu-branches/ubuntu/quantal/linpsk/quantal

« back to all changes in this revision

Viewing changes to linpsk/csquelch.h

  • Committer: Bazaar Package Importer
  • Author(s): Bruce Walker
  • Date: 2002-02-06 11:43:38 UTC
  • Revision ID: james.westby@ubuntu.com-20020206114338-xqmjmhh01lpjm0g4
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          csquelch.h  -  description
 
3
                             -------------------
 
4
    begin                : Sun Apr 2 2000
 
5
    copyright            : (C) 2000 by Volker Schroer
 
6
    email                : DL1KSV@gmx.de
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *   based on the work of Moe Wheatley, AE4JY                              *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef CSQUELCH_H
 
19
#define CSQUELCH_H
 
20
 
 
21
#include <qwidget.h>
 
22
#include <qslider.h>
 
23
#include <qpainter.h>
 
24
#include <qgroupbox.h>
 
25
#include <qradiobutton.h>
 
26
#include "color.h"
 
27
#include "parameter.h"
 
28
 
 
29
extern Parameter settings;
 
30
/**
 
31
  *@author Volker Schroer
 
32
  */
 
33
 
 
34
class mySlider : public QSlider {
 
35
   Q_OBJECT
 
36
public: 
 
37
        mySlider(QWidget *parent, const char *name);
 
38
        ~mySlider();
 
39
int Threshold;
 
40
int SquelchLevel;
 
41
bool SquelchStatus;
 
42
public slots: // Public slots
 
43
  /** sets a new Threshold for Squelch */
 
44
  void newThreshold(int value);
 
45
private:
 
46
 
 
47
protected:
 
48
/** Painter for Squelch  */
 
49
  void paintEvent(QPaintEvent *);
 
50
 
 
51
};
 
52
 
 
53
class CSquelch : public QGroupBox {
 
54
        Q_OBJECT
 
55
public :
 
56
        CSquelch(QWidget *parent, const char *name = 0);
 
57
        ~CSquelch();
 
58
/** Status of Squelch*/
 
59
bool SquelchOn();
 
60
void setSquelchLevel(int);
 
61
void setSquelchStatus(bool);
 
62
 
 
63
 
 
64
private slots:
 
65
void turnOnOffSquelch();
 
66
private:
 
67
QRadioButton *OnOff;
 
68
bool OnOffStatus;
 
69
        
 
70
mySlider *Slider;       
 
71
};
 
72
#endif