Skip to content

Commit

Permalink
added help menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarpicva committed Feb 3, 2023
1 parent 3d8974e commit 567d2e2
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 3 deletions.
3 changes: 1 addition & 2 deletions maidenhead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ QPair<double, double> Maidenhead::mh2ll(const QString mh)
//qDebug()<<"short version";
lat = ((double)cc2 - 90) + (double)cc4;
}

// end latitude calcs

// longitude calcs
Expand All @@ -57,7 +56,7 @@ QPair<double, double> Maidenhead::mh2ll(const QString mh)
cc5 -= 97.0;
cc5 /= 12.0;
cc5 += (1.0/24.0);
lon = ((double)cc1 + (double) cc3 + cc5) - 180.0;
lon = ((double)cc1 + (double)cc3 + cc5) - 180.0;
}
else {
lon = (double)cc1 + (double)cc3 - 180.0;
Expand Down
39 changes: 38 additions & 1 deletion rpikeyerterm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <QThread>
#include <QDebug>
#include <QUrlQuery>
#include <QMessageBox>

RPiKeyerTerm::RPiKeyerTerm(QWidget *parent)
: QMainWindow(parent)
Expand Down Expand Up @@ -329,7 +330,7 @@ void RPiKeyerTerm::loadMacros()

void RPiKeyerTerm::sendText() // send whatever is in the QString tokey
{
qDebug()<<"Send Text: socket"<<socket<<"server:"<<server;
//qDebug()<<"Send Text: socket"<<socket<<"server:"<<server;
const int end = tokey.size(); // current size so when we send this doesn't change
const QString tosend = tokey;
tokey = tokey.mid(end); // so more can be added
Expand Down Expand Up @@ -883,3 +884,39 @@ void RPiKeyerTerm::on_destGridLineEdit_returnPressed()
//qDebug()<<"return pressed...";
on_mapButton_clicked();
}

void RPiKeyerTerm::on_action_Getting_Started_triggered()
{
QMessageBox::information(this, "Getting Started", "Set 'My Loc', 'My Call' and 'My Name' first. Then set the desired WPM for keying speed.\n\n"
"Next choose the 'Band' you are working on and record your current 'PWR Out' level.\n\nAs you make or take calls, enter the other station's call sign into the"
" field next to the 'X' button at the left end of the logging line. As your exchange takes place enter the 'Op Name' and other values as required for logging.\n\n"
"When you are ready to log the QSO, click the 'LOG' button on the toolbar to view the information and add or change the values.\n\nIf you get the Maidenhead"
" location for the other station, enter it into the 'Loc' field and press <Enter> or click the 'MAP' button to show an approximate location for the other station"
" (requires internet connection).\n\n"
"To send text, type it into the box provided and click the 'SEND' button or use <Ctrl>+<Enter> to send it. The 'KILL TX' toolbar button may be used to stop the"
" current transmission.");
}

void RPiKeyerTerm::on_action_Networking_triggered()
{
QMessageBox::information(this, "Server and Client Networking", "(OPTIONAL!) Networking features allow multiple operator environments"
" to switch between dedicated station installations for things such as Field Day or other group activations on multiple bands. Operators"
" need not move to the other station, they would simply put all stations into 'Server' mode and use 'Client' mode at their own operating position"
" in order to work the chosen station.\n\n"
"Server mode allows the user to use a second copy of this program on another Raspberry Pi via a connected network to control keying.\n\n"
"Choose either 'Server Settings' or 'Client Settings' and once configured, click the corresponding checkbox menu item to enable"
" the mode selected.\n\nUse Server mode on the"
" Raspberry Pi which is connected to the radio.\n\nUse Client mode"
" on the remote Raspberry Pi computer. Match up the IP address and port numbers on each.");
}

void RPiKeyerTerm::on_action_Macros_triggered()
{
QMessageBox::information(this, "Creating and Using Macros", "Click the small 'gear' button at the end of the Macro toolbar to open the Macro dialog.\n\nEach macro may contain both static text"
" and the displayed text substitution values, such as '{CS}', which means the configured station call sign. This allows the user to build powerful"
" macros for use in exchanges and contesting. The text substitution values are taken from the currently displayed values of the station line and"
" the log line in the main UI.\n\nYou may create a short name for each macro which is displayed on it's button for easy visual reference. Clicking a macro"
" button builds the text and replaces the text in the send text area. Then click the 'SEND' button or <Ctrl>+<Enter> to transmit the displayed text.\n\n"
"Using the macros makes working sprint, party, *OTA and other contests very efficient and the act of entering the other station's data makes logging a"
" two button click process.");
}
6 changes: 6 additions & 0 deletions rpikeyerterm.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ private slots:

void on_destGridLineEdit_returnPressed();

void on_action_Getting_Started_triggered();

void on_action_Networking_triggered();

void on_action_Macros_triggered();

private:
Ui::RPiKeyerTerm *ui;
LogDialog *ld = nullptr;
Expand Down
27 changes: 27 additions & 0 deletions rpikeyerterm.ui
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@
<bold>true</bold>
</font>
</property>
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Delete the selected other station call sign.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>X</string>
</property>
Expand Down Expand Up @@ -776,8 +779,17 @@
<addaction name="actionEnable_QRZ_com"/>
<addaction name="actionOpen_Logs_Folder"/>
</widget>
<widget class="QMenu" name="menu_Help">
<property name="title">
<string>&amp;Help</string>
</property>
<addaction name="action_Getting_Started"/>
<addaction name="action_Networking"/>
<addaction name="action_Macros"/>
</widget>
<addaction name="menu_File"/>
<addaction name="menu_Logging"/>
<addaction name="menu_Help"/>
</widget>
<widget class="QToolBar" name="macroToolBar">
<property name="windowTitle">
Expand Down Expand Up @@ -1112,6 +1124,21 @@
<string>Open Logs Folder</string>
</property>
</action>
<action name="action_Getting_Started">
<property name="text">
<string>&amp;Getting Started</string>
</property>
</action>
<action name="action_Networking">
<property name="text">
<string>&amp;Networking</string>
</property>
</action>
<action name="action_Macros">
<property name="text">
<string>&amp;Macros</string>
</property>
</action>
</widget>
<tabstops>
<tabstop>heardListComboBox</tabstop>
Expand Down

0 comments on commit 567d2e2

Please sign in to comment.