mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-11 10:18:50 -04:00
WSPR band hopping improvements
Any band can be added to the schedule for a day phase, when a coordinated band slot is not available a random band will be chosen from all the bands enabled for the current phase (Day, Night, etc.). Fine tuned the size of the hopping schedule table widget. Coloured the coordinated band columns in the schedule table widget. Due to the full range of bands now being supported, the settings key for the band hopping schedule has been changed forcing current testers to redefine their schedultes. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5543 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+13
-10
@@ -583,16 +583,6 @@ auto FrequencyList::end () const -> FrequencyList::const_iterator
|
||||
return const_iterator (this, rowCount ());
|
||||
}
|
||||
|
||||
auto FrequencyList::all_bands () const -> BandSet
|
||||
{
|
||||
BandSet result;
|
||||
for (auto const& item : m_->frequency_list_)
|
||||
{
|
||||
result << m_->bands_->find (item.frequency_);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
auto FrequencyList::filtered_bands () const -> BandSet
|
||||
{
|
||||
BandSet result;
|
||||
@@ -602,3 +592,16 @@ auto FrequencyList::filtered_bands () const -> BandSet
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
auto FrequencyList::all_bands (Mode mode) const -> BandSet
|
||||
{
|
||||
BandSet result;
|
||||
for (auto const& item : m_->frequency_list_)
|
||||
{
|
||||
if (mode == Modes::NULL_MODE || item.mode_ == mode)
|
||||
{
|
||||
result << m_->bands_->find (item.frequency_);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user