summaryrefslogtreecommitdiff
path: root/widgets/activeStations.h
blob: 236f52351e5b1ead03c8389fcfd9fa59b6ce2b53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// -*- Mode: C++ -*-
#ifndef ARRL_DIGI_H_
#define ARRL_DIGI_H_

#include <QWidget>

class QSettings;
class QFont;

namespace Ui {
  class ActiveStations;
}

class ActiveStations
  : public QWidget
{
  Q_OBJECT

public:
  explicit ActiveStations(QSettings *, QFont const&, QWidget * parent = 0);
  ~ActiveStations();
  void displayRecentStations(QString const&);
  void changeFont (QFont const&);
  int  maxRecent();
  int  maxAge();
  void setClickOK(bool b);
  void erase();
  bool readyOnly();
  void setRate(int n);
  void setBandChanges(int n);
  void setScore(int n);
  Q_SLOT void select();

  bool m_clickOK=false;
  bool m_bReadyOnly;

signals:
  void callSandP(int nline);
  void activeStationsDisplay();

private:
  void read_settings ();
  void write_settings ();
  Q_SLOT void on_cbReadyOnly_toggled(bool b);

  qint64 m_msec0=0;
  QSettings * settings_;

  QScopedPointer<Ui::ActiveStations> ui;
};

#endif