-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
d
authored and
d
committed
Apr 30, 2024
1 parent
3a74502
commit 8516b74
Showing
14 changed files
with
362 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,15 +41,26 @@ email : [email protected] | |
class QWidget; | ||
class QTcpSocket; | ||
|
||
class Frequency; | ||
|
||
struct DXSpot { // Used to pass a list of data from Awards to dxccstatuswidget | ||
QString dxcall = QString(); | ||
Frequency freq = Frequency(); | ||
QString spotter = QString(); | ||
QString comment = QString(); | ||
QDateTime dateTime = QDateTime(); | ||
MouseClicks clickStatus = SingleClick; | ||
bool valid = false; | ||
QString dxcall; | ||
Frequency freq; | ||
QString spotter; | ||
QString comment; | ||
QDateTime dateTime; | ||
MouseClicks clickStatus; | ||
bool valid; | ||
DXSpot() {valid = false;} | ||
DXSpot(const DXSpot& other) { | ||
dxcall = other.dxcall; | ||
freq = other.freq; // Might need a copy constructor for Frequency as well | ||
spotter = other.spotter; | ||
comment = other.comment; | ||
dateTime = other.dateTime; | ||
clickStatus = other.clickStatus; | ||
valid = other.valid; | ||
} | ||
}; | ||
|
||
class DXClusterWidget : public QWidget | ||
|
@@ -72,7 +83,7 @@ class DXClusterWidget : public QWidget | |
void loadSettings(); | ||
void setDXClusterServer(const QString &clusterToConnect, const int portToConnect); | ||
|
||
void rightButtonFromLogMenu(DXSpot _spot); | ||
void rightButtonFromLogMenu(const DXSpot &_spot); | ||
//void sendSpotToCluster(const QString &_dx, const QString &_freq); | ||
|
||
private slots: | ||
|
@@ -91,8 +102,8 @@ private slots: | |
void slotCheckQRZCom(); | ||
|
||
signals: | ||
void dxspotclicked(DXSpot _dxSpot); // DXSpotCall, DX-Freq, doubleClicked | ||
void dxspotArrived(const QString &_call, Frequency _freq); | ||
void dxspotclicked(const DXSpot &_dxSpot); // DXSpotCall, DX-Freq, doubleClicked | ||
void dxspotArrived(const QString &_call, double _f); | ||
//void dxspot(const QString &_spot); // The text string to be saved | ||
|
||
private: | ||
|
@@ -101,7 +112,7 @@ private slots: | |
void createActions(); | ||
void connectToDXCluster(); | ||
//QStringList readItem(QListWidgetItem * _stringSpot); | ||
DXSpot readItem (const QString _stringSpot); | ||
DXSpot readItem(const QString _stringSpot); | ||
bool checkIfNeedsToBePrinted(EntityStatus _entityStatus); | ||
void saveSpot (const QString &_spot); | ||
bool openFile(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,14 @@ email : [email protected] | |
#include "../utilities.h" | ||
#include "../frequency.h" | ||
|
||
struct proposedQSOs { // Used to pass a list of data from Awards to dxccstatuswidget | ||
QString call = QString(); | ||
Frequency freq; | ||
int priority = -1; | ||
QSOStatus status = unknown; | ||
class Frequency; | ||
|
||
struct proposedQSOs | ||
{ // Used to pass a list of data from Awards to dxccstatuswidget | ||
QString call; | ||
//Frequency freq; | ||
int priority; | ||
QSOStatus status; | ||
}; | ||
|
||
class DXClusterAssistant : public QWidget | ||
|
Oops, something went wrong.