You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
2.0 KiB

  1. /*
  2. * This program source code file is part of KiCad, a free EDA CAD application.
  3. *
  4. * Copyright (C) 2023 Rivos
  5. * Copyright (C) 2023 KiCad Developers, see AUTHORS.txt for contributors.
  6. *
  7. * @author Wayne Stambaugh <stambaughw@gmail.com>
  8. *
  9. * This program is free software: you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the
  11. * Free Software Foundation, either version 3 of the License, or (at your
  12. * option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful, but
  15. * WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License along
  20. * with this program. If not, see <http://www.gnu.org/licenses/>.
  21. */
  22. #ifndef _AUI_SETTINGS_H_
  23. #define _AUI_SETTINGS_H_
  24. #include <settings/json_settings.h>
  25. class wxAuiPaneInfo;
  26. class wxPoint;
  27. class wxRect;
  28. class wxSize;
  29. KICOMMON_API void to_json( nlohmann::json& aJson, const wxPoint& aPoint );
  30. KICOMMON_API void from_json( const nlohmann::json& aJson, wxPoint& aPoint );
  31. KICOMMON_API bool operator<( const wxPoint& aLhs, const wxPoint& aRhs );
  32. KICOMMON_API void to_json( nlohmann::json& aJson, const wxSize& aPoint );
  33. KICOMMON_API void from_json( const nlohmann::json& aJson, wxSize& aPoint );
  34. KICOMMON_API bool operator<( const wxSize& aLhs, const wxSize& aRhs );
  35. KICOMMON_API void to_json( nlohmann::json& aJson, const wxRect& aRect );
  36. KICOMMON_API void from_json( const nlohmann::json& aJson, wxRect& aRect );
  37. KICOMMON_API bool operator<( const wxRect& aLhs, const wxRect& aRhs );
  38. KICOMMON_API void to_json( nlohmann::json& aJson, const wxAuiPaneInfo& aPaneInfo );
  39. KICOMMON_API void from_json( const nlohmann::json& aJson, wxAuiPaneInfo& aPaneInfo );
  40. KICOMMON_API bool operator<( const wxAuiPaneInfo& aLhs, const wxAuiPaneInfo& aRhs );
  41. KICOMMON_API bool operator==( const wxAuiPaneInfo& aLhs, const wxAuiPaneInfo& aRhs );
  42. #endif // _AUI_SETTINGS_H_