diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:49 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-09 14:12:49 +0200 |
| commit | 76956486fa7ef52a51d4e56df1e13a9f19a6c93c (patch) | |
| tree | fe0c394439fdc167d1970372e8998874090854dd /widgets/SuggestedFrequenciesDialog.hpp | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
| parent | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (diff) | |
Update upstream source from tag 'upstream/3.3.0_beta1+dfsg'
Update to upstream version '3.3.0~beta1+dfsg'
with Debian dir 85037bbb9376721108594b59b54ead82ac6924a3
Diffstat (limited to 'widgets/SuggestedFrequenciesDialog.hpp')
| -rw-r--r-- | widgets/SuggestedFrequenciesDialog.hpp | 49 |
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 |
