2022-03-11 13:11:39 -05:00
|
|
|
// -*- Mode: C++ -*-
|
|
|
|
#ifndef ARRL_DIGI_H_
|
|
|
|
#define ARRL_DIGI_H_
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QSettings;
|
|
|
|
class QFont;
|
|
|
|
|
|
|
|
namespace Ui {
|
2022-03-11 14:58:13 -05:00
|
|
|
class ActiveStations;
|
2022-03-11 13:11:39 -05:00
|
|
|
}
|
|
|
|
|
2022-03-11 14:58:13 -05:00
|
|
|
class ActiveStations
|
2022-03-11 13:11:39 -05:00
|
|
|
: public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2022-03-11 14:58:13 -05:00
|
|
|
explicit ActiveStations(QSettings *, QFont const&, QWidget * parent = 0);
|
|
|
|
~ActiveStations();
|
2022-03-16 14:37:25 -04:00
|
|
|
void displayRecentStations(QString const&);
|
2022-03-11 13:11:39 -05:00
|
|
|
void changeFont (QFont const&);
|
2022-03-16 14:37:25 -04:00
|
|
|
int maxRecent();
|
|
|
|
int maxAge();
|
2022-03-18 10:39:08 -04:00
|
|
|
void setClickOK(bool b);
|
2022-03-19 16:05:30 -04:00
|
|
|
void erase();
|
2022-03-20 14:16:20 -04:00
|
|
|
bool readyOnly();
|
2022-03-26 16:15:04 -04:00
|
|
|
void setRate(int n);
|
|
|
|
void setBandChanges(int n);
|
|
|
|
void setScore(int n);
|
2022-03-17 09:36:59 -04:00
|
|
|
Q_SLOT void select();
|
|
|
|
|
2022-03-18 10:39:08 -04:00
|
|
|
bool m_clickOK=false;
|
2022-03-26 10:42:01 -04:00
|
|
|
bool m_bReadyOnly;
|
2022-03-18 10:39:08 -04:00
|
|
|
|
2022-03-17 09:36:59 -04:00
|
|
|
signals:
|
|
|
|
void callSandP(int nline);
|
2022-03-26 10:42:01 -04:00
|
|
|
void activeStationsDisplay();
|
2022-03-11 13:11:39 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
void read_settings ();
|
|
|
|
void write_settings ();
|
2022-03-26 10:42:01 -04:00
|
|
|
Q_SLOT void on_cbReadyOnly_toggled(bool b);
|
2022-03-17 16:43:58 -04:00
|
|
|
|
|
|
|
qint64 m_msec0=0;
|
2022-03-11 13:11:39 -05:00
|
|
|
QSettings * settings_;
|
|
|
|
|
2022-03-11 14:58:13 -05:00
|
|
|
QScopedPointer<Ui::ActiveStations> ui;
|
2022-03-11 13:11:39 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|