Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions QLog.pro
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ SOURCES += \
ui/DxccTableWidget.cpp \
ui/EditActivitiesDialog.cpp \
ui/ExportDialog.cpp \
ui/SqlQueryDialog.cpp \
ui/ExportPasswordDialog.cpp \
ui/LoadDatabaseDialog.cpp \
ui/PlatformSettingsDialog.cpp \
Expand Down Expand Up @@ -199,6 +200,7 @@ SOURCES += \
ui/component/MultiselectCompleter.cpp \
ui/component/RepeatButton.cpp \
ui/component/SmartSearchBox.cpp \
ui/component/SqlHighlighter.cpp \
ui/component/SwitchButton.cpp

HEADERS += \
Expand Down Expand Up @@ -324,6 +326,7 @@ HEADERS += \
ui/DxccTableWidget.h \
ui/EditActivitiesDialog.h \
ui/ExportDialog.h \
ui/SqlQueryDialog.h \
ui/ExportPasswordDialog.h \
ui/LoadDatabaseDialog.h \
ui/PlatformSettingsDialog.h \
Expand Down Expand Up @@ -368,6 +371,7 @@ HEADERS += \
ui/component/RepeatButton.h \
ui/component/ShutdownAwareWidget.h \
ui/component/SmartSearchBox.h \
ui/component/SqlHighlighter.h \
ui/component/StyleItemDelegate.h \
ui/component/SwitchButton.h

Expand All @@ -388,6 +392,7 @@ FORMS += \
ui/DxWidget.ui \
ui/EditActivitiesDialog.ui \
ui/ExportDialog.ui \
ui/SqlQueryDialog.ui \
ui/ExportPasswordDialog.ui \
ui/LoadDatabaseDialog.ui \
ui/PlatformSettingsDialog.ui \
Expand Down
9 changes: 9 additions & 0 deletions ui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "ui/SettingsDialog.h"
#include "ui/ImportDialog.h"
#include "ui/ExportDialog.h"
#include "ui/SqlQueryDialog.h"
#include "core/FldigiTCPServer.h"
#include "rig/Rig.h"
#include "rotator/Rotator.h"
Expand Down Expand Up @@ -1100,6 +1101,14 @@ void MainWindow::showQSLGallery()
dialog.exec();
}

void MainWindow::showSqlQuery()
{
FCT_IDENTIFICATION;

SqlQueryDialog dialog(this);
dialog.exec();
}

void MainWindow::showDumpDB()
{
FCT_IDENTIFICATION;
Expand Down
1 change: 1 addition & 0 deletions ui/MainWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ private slots:
void showDumpDB();
void showLoadDB();
void showQSLGallery();
void showSqlQuery();

void saveProfileLayoutGeometry();
void setEquipmentKeepOptions(bool);
Expand Down
31 changes: 31 additions & 0 deletions ui/MainWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
<addaction name="actionStatistics"/>
<addaction name="separator"/>
<addaction name="actionQSLGallery"/>
<addaction name="separator"/>
<addaction name="actionSqlQuery"/>
</widget>
<widget class="QMenu" name="menuEquipment">
<property name="title">
Expand Down Expand Up @@ -463,6 +465,18 @@
<string>QSL &amp;Gallery</string>
</property>
</action>
<action name="actionSqlQuery">
<property name="icon">
<iconset theme="accessories-text-editor">
<normaloff>.</normaloff>.</iconset>
</property>
<property name="text">
<string>SQL &amp;Query...</string>
</property>
<property name="toolTip">
<string>Run custom read-only SQL queries against the logbook database</string>
</property>
</action>
<action name="actionWsjtx">
<property name="text">
<string>Wsjtx</string>
Expand Down Expand Up @@ -1737,6 +1751,22 @@
</hint>
</hints>
</connection>
<connection>
<sender>actionSqlQuery</sender>
<signal>triggered()</signal>
<receiver>MainWindow</receiver>
<slot>showSqlQuery()</slot>
<hints>
<hint type="sourcelabel">
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>456</x>
<y>298</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<signal>settingsChanged()</signal>
Expand Down Expand Up @@ -1770,5 +1800,6 @@
<slot>showDumpDB()</slot>
<slot>showLoadDB()</slot>
<slot>showQSLGallery()</slot>
<slot>showSqlQuery()</slot>
</slots>
</ui>
Loading