Autostart option added

This commit is contained in:
2026-10-18 18:26:06 +02:00
parent 74503c27dd
commit 95f101c0c9
22 changed files with 2987 additions and 80 deletions

View File

@@ -6,9 +6,17 @@
#include <vector>
#include "keyrow.h"
#include "mapping.h"
namespace gkeymapper {
// The rows' current state, or a file's content put into the rows. Both are also
// what write/read use, so the widget <-> file mapping lives in one place; and a
// window that is rebuilt (language switch) carries the rows over this way
// without writing a file, so unsaved edits survive.
MappingSet collect_mappings(const std::vector<KeyRow>& rows);
void apply_mappings(const MappingSet& set, const std::vector<KeyRow>& rows);
// Collects the current widget state and writes it to path.
bool write_mappings(const std::string& path, const std::vector<KeyRow>& rows);