20#include <boost/test/unit_test.hpp> 
   32                         .Scope( 
AS_GLOBAL ).DefaultHotkey( 
'A' ) );
 
   34                         .Scope( 
AS_GLOBAL ).DefaultHotkey( 
'B' ) );
 
   37    store.
Init( { &action1, &action2 }, false );
 
   42    HOTKEY& hk = sections[0].m_HotKeys[0];
 
 
   54                         .Scope( 
AS_GLOBAL ).DefaultHotkey( 
'A' ) );
 
   56                         .Scope( 
AS_GLOBAL ).DefaultHotkey( 
'B' ) );
 
   59    store.
Init( { &action1, &action2 }, false );
 
   61    HOTKEY* conflict = 
nullptr;
 
   64    BOOST_CHECK( conflict != 
nullptr );
 
 
A class that contains a set of hotkeys, arranged into "sections" and provides some book-keeping funct...
 
bool CheckKeyConflicts(TOOL_ACTION *aAction, long aKey, HOTKEY **aConflict)
Check whether the given key conflicts with anything in this store.
 
void ResetAllHotkeysToDefault()
Reset every hotkey in the store to the default values.
 
void Init(std::vector< TOOL_ACTION * > aActionsList, bool aIncludeReadOnlyCmds)
 
std::vector< HOTKEY_SECTION > & GetSections()
Get the list of sections managed by this store.
 
void SaveAllHotkeys()
Persist all changes to hotkeys in the store to the underlying data structures.
 
wxString KeyNameFromKeyCode(int aKeycode, bool *aIsFound)
Return the key name from the key code.
 
int KeyCodeFromKeyName(const wxString &keyname)
Return the key code from its user-friendly key name (ie: "Ctrl+M").
 
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
 
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
 
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
 
BOOST_AUTO_TEST_SUITE_END()
 
BOOST_AUTO_TEST_CASE(PersistenceAndDefaults)
 
BOOST_CHECK_EQUAL(result, "25.4")