MCPcopy Create free account
hub / github.com/cmauri/eviacam / WriteProfileData

Method WriteProfileData

src/hotkeymanager.cpp:255–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255void HotkeyManager::WriteProfileData(wxConfigBase* pConfObj) {
256 pConfObj->SetPath (_T("hotKeyManager"));
257
258 for (unsigned int i=0; i<m_HotKeys.size(); i++) {
259 HotKey* hk= m_HotKeys[i];
260 pConfObj->Write(hk->GetName(), hk->IsEnabled());
261 pConfObj->Write(hk->GetName() + _T("Key"),
262 static_cast<int>(hk->GetKey().get_native()));
263 }
264
265 pConfObj->SetPath (_T(".."));
266}
267
268void HotkeyManager::ReadProfileData(wxConfigBase* pConfObj) {
269 pConfObj->SetPath (_T("hotKeyManager"));

Callers

nothing calls this directly

Calls 3

get_nativeMethod · 0.80
GetNameMethod · 0.45
IsEnabledMethod · 0.45

Tested by

no test coverage detected