summaryrefslogtreecommitdiff
path: root/widgets/SuggestedFrequenciesDialog.hpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
committerChristoph Berg <myon@debian.org>2026-10-09 14:12:35 +0200
commitffc62c792c9a5196cb4ce7a353287dfe20db6524 (patch)
tree1269efa852935b183daae4bb33a58d1b4d2ffb53 /widgets/SuggestedFrequenciesDialog.hpp
parent059831534c7e884f0a607ed86b582fd00d821731 (diff)
New upstream version 3.3.0~beta1+dfsgupstream/3.3.0_beta1+dfsg
Diffstat (limited to 'widgets/SuggestedFrequenciesDialog.hpp')
-rw-r--r--widgets/SuggestedFrequenciesDialog.hpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/widgets/SuggestedFrequenciesDialog.hpp b/widgets/SuggestedFrequenciesDialog.hpp
new file mode 100644
index 00000000..be7fc040
--- /dev/null
+++ b/widgets/SuggestedFrequenciesDialog.hpp
@@ -0,0 +1,49 @@
+#ifndef SUGGESTED_FREQUENCIES_DIALOG_HPP__
+#define SUGGESTED_FREQUENCIES_DIALOG_HPP__
+
+#include <QDialog>
+#include <QList>
+#include <QSet>
+
+#include "models/FrequencyList.hpp"
+
+class Bands;
+class QCheckBox;
+class QComboBox;
+class QLabel;
+class QPushButton;
+class QScrollArea;
+
+class SuggestedFrequenciesDialog final : public QDialog
+{
+public:
+ using Items = FrequencyList_v2_101::FrequencyItems;
+
+ SuggestedFrequenciesDialog (Items const& catalog, Items const& working,
+ Bands const& bands, QSet<QString> new_keys,
+ QWidget * parent = nullptr);
+
+ Items selected_items () const;
+
+private:
+ bool eventFilter (QObject * watched, QEvent * event) override;
+ void refresh ();
+
+ Items const& catalog_;
+ Items const& working_;
+ Bands const& bands_;
+ QSet<QString> new_keys_;
+ QSet<int> selected_;
+ QComboBox * band_filter_;
+ QComboBox * mode_filter_;
+ QCheckBox * show_present_;
+ QCheckBox * new_only_;
+ QCheckBox * selected_only_;
+ QScrollArea * list_;
+ QList<QCheckBox *> row_checkboxes_;
+ QLabel * empty_label_;
+ QPushButton * add_button_;
+ QPushButton * cancel_button_;
+};
+
+#endif