spellcheck_value.h 794 B

1234567891011121314151617181920212223242526272829303132333435
  1. // This file is part of Desktop App Toolkit,
  2. // a set of libraries for developing nice desktop applications.
  3. //
  4. // For license and copyright information please follow this link:
  5. // https://github.com/desktop-app/legal/blob/master/LEGAL
  6. //
  7. #pragma once
  8. #include "ui/ph.h"
  9. namespace ph {
  10. extern phrase lng_spellchecker_submenu;
  11. extern phrase lng_spellchecker_add;
  12. extern phrase lng_spellchecker_remove;
  13. extern phrase lng_spellchecker_ignore;
  14. } // namespace ph
  15. namespace Spellchecker {
  16. ////// Phrases.
  17. inline constexpr auto kPhrasesCount = 4;
  18. inline void SetPhrases(ph::details::phrase_value_array<kPhrasesCount> data) {
  19. ph::details::set_values(std::move(data));
  20. }
  21. //////
  22. [[nodiscard]] QString WorkingDirPath();
  23. void SetWorkingDirPath(const QString &path);
  24. } // namespace Spellchecker