Files
gKeyMapper/src/mappings.h

21 lines
562 B
C
Raw Normal View History

2026-10-17 03:53:51 +02:00
// gKeyMapper - GUI glue between the mappings file and the row widgets.
2026-10-17 02:57:21 +02:00
#ifndef GKEYMAPPER_MAPPINGS_H
#define GKEYMAPPER_MAPPINGS_H
#include <string>
#include <vector>
#include "keyrow.h"
namespace gkeymapper {
2026-10-17 03:53:51 +02:00
// Collects the current widget state and writes it to path.
2026-10-17 02:57:21 +02:00
bool write_mappings(const std::string& path, const std::vector<KeyRow>& rows);
2026-10-17 03:53:51 +02:00
// Loads path into the rows' widgets (type dropdown + target entry).
2026-10-17 02:57:21 +02:00
void read_mappings(const std::string& path, const std::vector<KeyRow>& rows);
} // namespace gkeymapper
#endif // GKEYMAPPER_MAPPINGS_H