KiCad PCB EDA Suite
Loading...
Searching...
No Matches
toolbar_configuration.cpp File Reference
#include <magic_enum.hpp>
#include <nlohmann/json.hpp>
#include <tool/action_toolbar.h>
#include <tool/ui/toolbar_configuration.h>

Go to the source code of this file.

Functions

void to_json (nlohmann::json &aJson, const TOOLBAR_ITEM &aItem)
 
void from_json (const nlohmann::json &aJson, TOOLBAR_ITEM &aItem)
 
void to_json (nlohmann::json &aJson, const TOOLBAR_CONFIGURATION &aConfig)
 
void from_json (const nlohmann::json &aJson, TOOLBAR_CONFIGURATION &aConfig)
 

Variables

const int toolbarSchemaVersion = 1
 ! Update the schema version whenever a migration is required
 

Function Documentation

◆ from_json() [1/2]

void from_json ( const nlohmann::json &  aJson,
TOOLBAR_CONFIGURATION aConfig 
)

Definition at line 132 of file toolbar_configuration.cpp.

References TOOLBAR_CONFIGURATION::m_toolbarItems.

◆ from_json() [2/2]

◆ to_json() [1/2]

void to_json ( nlohmann::json &  aJson,
const TOOLBAR_CONFIGURATION aConfig 
)

Definition at line 123 of file toolbar_configuration.cpp.

References TOOLBAR_CONFIGURATION::m_toolbarItems.

◆ to_json() [2/2]

Variable Documentation

◆ toolbarSchemaVersion

const int toolbarSchemaVersion = 1

! Update the schema version whenever a migration is required

Definition at line 32 of file toolbar_configuration.cpp.