Skip to content

Commit 6ba1758

Browse files
committed
Logbook: Added Search Types to Search Editbox - SIG
1 parent 57d93ad commit 6ba1758

File tree

3 files changed

+41
-1
lines changed

3 files changed

+41
-1
lines changed

ui/LogbookWidget.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ LogbookWidget::LogbookWidget(QWidget *parent) :
6666
SearchDefinition(WWFF_SEARCH,
6767
ui->actionSearchWWFF,
6868
"wwff_ref"));
69+
70+
searchTypeList.insert(SIG_SEARCH,
71+
SearchDefinition(SIG_SEARCH,
72+
ui->actionSearchSIG,
73+
"sig_intl"));
6974
setupSearchMenu();
7075

7176
connect(ui->countrySelectFilter, &SmartSearchBox::currentTextChanged,
@@ -559,6 +564,14 @@ void LogbookWidget::setWwffSearch()
559564
ui->searchTextFilter->setPlaceholderText(tr("WWFF"));
560565
}
561566

567+
void LogbookWidget::setSigSearch()
568+
{
569+
FCT_IDENTIFICATION;
570+
571+
clearSearchText();
572+
ui->searchTextFilter->setPlaceholderText(tr("SIG"));
573+
}
574+
562575
void LogbookWidget::filterCallsign(const QString &call)
563576
{
564577
FCT_IDENTIFICATION;

ui/LogbookWidget.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ class LogbookWidget : public QWidget, public ShutdownAwareWidget
3535
GRIDSQUARE_SEARCH = 2,
3636
POTA_SEARCH = 3,
3737
SOTA_SEARCH = 4,
38-
WWFF_SEARCH = 5
38+
WWFF_SEARCH = 5,
39+
SIG_SEARCH = 6
3940
};
4041

4142
signals:
@@ -94,6 +95,7 @@ public slots:
9495
void setPotaSearch();
9596
void setSotaSearch();
9697
void setWwffSearch();
98+
void setSigSearch();
9799

98100
private:
99101
ClubLogUploader* clublog;

ui/LogbookWidget.ui

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,14 @@
356356
<string>WWFF</string>
357357
</property>
358358
</action>
359+
<action name="actionSearchSIG">
360+
<property name="checkable">
361+
<bool>true</bool>
362+
</property>
363+
<property name="text">
364+
<string>SIG</string>
365+
</property>
366+
</action>
359367
</widget>
360368
<customwidgets>
361369
<customwidget>
@@ -630,6 +638,22 @@
630638
</hint>
631639
</hints>
632640
</connection>
641+
<connection>
642+
<sender>actionSearchSIG</sender>
643+
<signal>triggered()</signal>
644+
<receiver>LogbookWidget</receiver>
645+
<slot>setSigSearch()</slot>
646+
<hints>
647+
<hint type="sourcelabel">
648+
<x>-1</x>
649+
<y>-1</y>
650+
</hint>
651+
<hint type="destinationlabel">
652+
<x>404</x>
653+
<y>168</y>
654+
</hint>
655+
</hints>
656+
</connection>
633657
</connections>
634658
<slots>
635659
<slot>deleteContact()</slot>
@@ -653,5 +677,6 @@
653677
<slot>setPotaSearch()</slot>
654678
<slot>setSotaSearch()</slot>
655679
<slot>setWwffSearch()</slot>
680+
<slot>setSigSearch()</slot>
656681
</slots>
657682
</ui>

0 commit comments

Comments
 (0)