2 #include "canvas/grid.hpp" 3 #include "nlohmann/json_fwd.hpp" 4 #include <sigc++/sigc++.h> 6 #include "action_catalog.hpp" 8 #include "core/core.hpp" 15 enum class BackgroundColor { BLUE, BLACK };
16 BackgroundColor background_color = BackgroundColor::BLUE;
18 Grid::Style grid_style = Grid::Style::CROSS;
19 float grid_opacity = .5;
20 float highlight_dim = .3;
21 float highlight_shadow = .3;
22 float highlight_lighten = .3;
23 unsigned int msaa = 0;
25 enum class GridFineModifier { CTRL, ALT };
26 GridFineModifier grid_fine_modifier = GridFineModifier::ALT;
28 void load_from_json(
const json &j);
29 json serialize()
const;
34 bool show_all_junctions =
false;
35 bool drag_start_net_line =
true;
37 void load_from_json(
const json &j);
38 json serialize()
const;
43 bool drag_start_track =
true;
45 void load_from_json(
const json &j);
46 json serialize()
const;
51 std::map<std::pair<ActionID, ToolID>, std::map<ActionCatalogItem::Availability, std::vector<KeySequence2>>> keys;
53 void load_from_json(
const json &j);
54 void append_from_json(
const json &j);
55 json serialize()
const;
61 void set_filename(
const std::string &filename);
67 static std::string get_preferences_filename();
75 typedef sigc::signal<void> type_signal_changed;
76 type_signal_changed signal_changed()
78 return s_signal_changed;
83 type_signal_changed s_signal_changed;
84 json serialize()
const;
a class to store JSON values
Definition: json.hpp:161
Definition: preferences.hpp:13
Definition: preferences.hpp:32
Definition: preferences.hpp:58
Definition: preferences.hpp:41
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61
Definition: preferences.hpp:49