opl.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #include "opl.h"
  2. namespace OPL {
  3. void OplGlobals::fillLanguageComboBox(QComboBox *combo_box) const
  4. {
  5. QSignalBlocker blocker(combo_box);
  6. for (const auto &language : L10N_DisplayNames)
  7. combo_box->addItem(language);
  8. }
  9. void OplGlobals::fillViewNamesComboBox(QComboBox *combo_box) const
  10. {
  11. const QSignalBlocker blocker(combo_box);
  12. for (const auto &view_name : DATABASE_VIEW_DISPLAY_NAMES)
  13. combo_box->addItem(view_name);
  14. }
  15. void OplGlobals::loadPilotFunctios(QComboBox *combo_box) const
  16. {
  17. const QSignalBlocker blocker(combo_box);
  18. for (const auto& pilot_function : PILOT_FUNCTIONS)
  19. combo_box->addItem(pilot_function);
  20. }
  21. void OplGlobals::loadSimulatorTypes(QComboBox *combo_box) const
  22. {
  23. const QSignalBlocker blocker(combo_box);
  24. for (const auto &sim_type : SIMULATOR_TYPES)
  25. combo_box->addItem(sim_type);
  26. }
  27. void OplGlobals::loadApproachTypes(QComboBox *combo_box) const
  28. {
  29. const QSignalBlocker blocker(combo_box);
  30. for (const auto &approach : APPROACH_TYPES)
  31. combo_box->addItem(approach);
  32. }
  33. } // namespace Opl