-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2276 from srcejon/pager_notifications
Pager notifications
- Loading branch information
Showing
27 changed files
with
1,243 additions
and
110 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/////////////////////////////////////////////////////////////////////////////////// | ||
// Copyright (C) 2021 Jon Beniston, M7RCE // | ||
// // | ||
// This program is free software; you can redistribute it and/or modify // | ||
// it under the terms of the GNU General Public License as published by // | ||
// the Free Software Foundation as version 3 of the License, or // | ||
// (at your option) any later version. // | ||
// // | ||
// This program is distributed in the hope that it will be useful, // | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of // | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // | ||
// GNU General Public License V3 for more details. // | ||
// // | ||
// You should have received a copy of the GNU General Public License // | ||
// along with this program. If not, see <http://www.gnu.org/licenses/>. // | ||
/////////////////////////////////////////////////////////////////////////////////// | ||
|
||
#include <QDebug> | ||
#include <QCheckBox> | ||
|
||
#include "pagerdemodfilterdialog.h" | ||
|
||
PagerDemodFilterDialog::PagerDemodFilterDialog(PagerDemodSettings *settings, | ||
QWidget* parent) : | ||
QDialog(parent), | ||
ui(new Ui::PagerDemodFilterDialog), | ||
m_settings(settings) | ||
{ | ||
ui->setupUi(this); | ||
|
||
ui->matchLastOnly->setChecked(m_settings->m_duplicateMatchLastOnly); | ||
ui->matchMessageOnly->setChecked(m_settings->m_duplicateMatchMessageOnly); | ||
} | ||
|
||
PagerDemodFilterDialog::~PagerDemodFilterDialog() | ||
{ | ||
delete ui; | ||
} | ||
|
||
void PagerDemodFilterDialog::accept() | ||
{ | ||
m_settings->m_duplicateMatchLastOnly = ui->matchLastOnly->isChecked(); | ||
m_settings->m_duplicateMatchMessageOnly = ui->matchMessageOnly->isChecked(); | ||
|
||
QDialog::accept(); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/////////////////////////////////////////////////////////////////////////////////// | ||
// Copyright (C) 2021 Jon Beniston, M7RCE // | ||
// // | ||
// This program is free software; you can redistribute it and/or modify // | ||
// it under the terms of the GNU General Public License as published by // | ||
// the Free Software Foundation as version 3 of the License, or // | ||
// (at your option) any later version. // | ||
// // | ||
// This program is distributed in the hope that it will be useful, // | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of // | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // | ||
// GNU General Public License V3 for more details. // | ||
// // | ||
// You should have received a copy of the GNU General Public License // | ||
// along with this program. If not, see <http://www.gnu.org/licenses/>. // | ||
/////////////////////////////////////////////////////////////////////////////////// | ||
|
||
#ifndef INCLUDE_PAGERDEMODFILTERDIALOG_H | ||
#define INCLUDE_PAGERDEMODFILTERDIALOG_H | ||
|
||
|
||
#include "ui_pagerdemodfilterdialog.h" | ||
#include "pagerdemodsettings.h" | ||
|
||
|
||
class PagerDemodFilterDialog : public QDialog { | ||
Q_OBJECT | ||
|
||
public: | ||
explicit PagerDemodFilterDialog(PagerDemodSettings* settings, QWidget* parent = nullptr); | ||
~PagerDemodFilterDialog(); | ||
|
||
private slots: | ||
void accept() override; | ||
|
||
private: | ||
Ui::PagerDemodFilterDialog* ui; | ||
PagerDemodSettings *m_settings; | ||
}; | ||
|
||
#endif // INCLUDE_PAGERDEMODFILTERDIALOG_H |
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 |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>PagerDemodFilterDialog</class> | ||
<widget class="QDialog" name="PagerDemodFilterDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>396</width> | ||
<height>167</height> | ||
</rect> | ||
</property> | ||
<property name="font"> | ||
<font> | ||
<family>Liberation Sans</family> | ||
<pointsize>9</pointsize> | ||
</font> | ||
</property> | ||
<property name="contextMenuPolicy"> | ||
<enum>Qt::ContextMenuPolicy::PreventContextMenu</enum> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Duplicate Filtering</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QGroupBox" name="groupBox"> | ||
<property name="title"> | ||
<string>Duplicate Filtering</string> | ||
</property> | ||
<layout class="QFormLayout" name="formLayout"> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="matchMessageOnlyLabel"> | ||
<property name="text"> | ||
<string>Match message only</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="1"> | ||
<widget class="QCheckBox" name="matchMessageOnly"> | ||
<property name="toolTip"> | ||
<string>Whether both the address and message must match or only the message to be considered a duplicate</string> | ||
</property> | ||
<property name="text"> | ||
<string/> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="0"> | ||
<widget class="QLabel" name="matchLastOnlyLabel"> | ||
<property name="text"> | ||
<string>Match last message only</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="1"> | ||
<widget class="QCheckBox" name="matchLastOnly"> | ||
<property name="toolTip"> | ||
<string>Whether to match with only the last message or any message in the table</string> | ||
</property> | ||
<property name="text"> | ||
<string/> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="orientation"> | ||
<enum>Qt::Orientation::Horizontal</enum> | ||
</property> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources> | ||
<include location="../../../sdrgui/resources/res.qrc"/> | ||
</resources> | ||
<connections> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>accepted()</signal> | ||
<receiver>PagerDemodFilterDialog</receiver> | ||
<slot>accept()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>248</x> | ||
<y>254</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>157</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>rejected()</signal> | ||
<receiver>PagerDemodFilterDialog</receiver> | ||
<slot>reject()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>316</x> | ||
<y>260</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>286</x> | ||
<y>274</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
</connections> | ||
</ui> |
Oops, something went wrong.